Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | import PoincareLib.Geometry.RicciFlow.Splitting.Persistence |
| 2 | |
| 3 | /-! |
| 4 | # Parallel gradients on ancient Ricci flows |
| 5 | |
| 6 | Closed-slab persistence preserves a terminal unit parallel gradient at every |
| 7 | earlier time of an ancient flow, with the same function and vector field. |
| 8 | This supplies the persistence hypotheses of the fixed-factor construction. |
| 9 | |
| 10 | Reference: Kleiner--Lott (corrected 2013), Proposition 41.13, p. 2678. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.RicciFlow.Splitting |
| 21 | |
| 22 | /-- Terminal unit parallel gradients persist on the whole ancient interval. -/ |
| 23 | theorem ancient_parallel_gradient |
| 24 | {n : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] [ConnectedSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 26 | (hC : RicciFlowCurvatureTheory.{u}) (hn : 1 ≤ n) {b : ℝ} |
| 27 | (F : RicciFlow n M (Iic b)) |
| 28 | (hc : ∀ t ≤ b, MetricComplete (F.metric t)) |
| 29 | (hop : ∀ t ≤ b, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 30 | (hbound : ∃ K : ℝ, 0 ≤ K ∧ ∀ t ≤ b, ∀ x, |
| 31 | (F.connection t).curvatureTensorNorm x ≤ K) |
| 32 | (f : M → ℝ) (hf : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ f) |
| 33 | (hu : RiemannianMetric.HasUnitGradient (F.connection b) f) |
| 34 | (hz : RiemannianMetric.HasZeroHessian (F.connection b) f) : |
| 35 | ∀ t ≤ b, (F.connection t).gradient f = (F.connection b).gradient f ∧ |
| 36 | RiemannianMetric.HasUnitGradient (F.connection t) f ∧ |
| 37 | RiemannianMetric.HasZeroHessian (F.connection t) f := by |
| 38 | intro t ht |
| 39 | have hab : t - 1 < b := by linarith |
| 40 | have hsub : Icc (t - 1) b ⊆ Iic b := fun _ hs => hs.2 |
| 41 | let G := Poincare.Geometry.RicciFlow.Harnack.restrictFlow F hsub ordConnected_Icc |
| 42 | ⟨t - 1, left_mem_Icc.mpr hab.le, b, right_mem_Icc.mpr hab.le, hab.ne⟩ |
| 43 | obtain ⟨K, hK, hnorm⟩ := hbound |
| 44 | exact backward_persistence_of_parallel_gradient hC hn hab G |
| 45 | (fun s hs => hc s hs.2) (fun s hs => hop s hs.2) |
| 46 | ⟨K, hK, fun s hs => hnorm s hs.2⟩ f hf hu hz t ⟨by linarith, ht⟩ |
| 47 | |
| 48 | end PoincareMT.RicciFlow.Splitting |