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.Curvature.Calculus |
| 2 | import PoincareLib.Geometry.RicciFlow.Splitting.Persistence |
| 3 | |
| 4 | /-! |
| 5 | # Backward persistence on a bounded ancient flow |
| 6 | |
| 7 | Restricting an ancient flow to each closed slab ending at zero preserves |
| 8 | the actual metric and connection representatives. Closed-slab persistence |
| 9 | therefore fixes the same terminal unit parallel gradient at every past time. |
| 10 | |
| 11 | Reference: Kleiner--Lott (2013), Proposition 41.13, p. 2678, and Appendix A, |
| 12 | Theorem A.7, p. 2841. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.RicciFlow |
| 24 | |
| 25 | /-- A smooth terminal unit parallel gradient persists as the same actual |
| 26 | field throughout a bounded complete nonnegatively curved ancient flow. -/ |
| 27 | theorem ancient_backward_persistence_of_parallel_gradient |
| 28 | {n : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] [ConnectedSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 30 | (hC : RicciFlowCurvatureCalculus.{u}) (hn : 1 ≤ n) |
| 31 | (F : RicciFlow n M (Iic 0)) |
| 32 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 33 | (hcurv : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 34 | (hbound : ∃ K : ℝ, 0 ≤ K ∧ ∀ t ≤ 0, ∀ x, |
| 35 | (F.connection t).curvatureTensorNorm x ≤ K) |
| 36 | (f : M → ℝ) (hf : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ f) |
| 37 | (hunit : RiemannianMetric.HasUnitGradient (F.connection 0) f) |
| 38 | (hzero : RiemannianMetric.HasZeroHessian (F.connection 0) f) : |
| 39 | ∀ t ≤ 0, (F.connection t).gradient f = (F.connection 0).gradient f ∧ |
| 40 | RiemannianMetric.HasUnitGradient (F.connection t) f ∧ |
| 41 | RiemannianMetric.HasZeroHessian (F.connection t) f := by |
| 42 | intro t ht |
| 43 | rcases lt_or_eq_of_le ht with ht | rfl |
| 44 | · have hsub : Icc t 0 ⊆ Iic 0 := fun _ hs => hs.2 |
| 45 | let G := Poincare.Geometry.RicciFlow.Harnack.restrictFlow F hsub ordConnected_Icc |
| 46 | ⟨t, left_mem_Icc.mpr ht.le, 0, right_mem_Icc.mpr ht.le, ht.ne⟩ |
| 47 | have hGbound : ∃ K : ℝ, 0 ≤ K ∧ ∀ s ∈ Icc t 0, ∀ x, |
| 48 | (G.connection s).curvatureTensorNorm x ≤ K := by |
| 49 | obtain ⟨K, hK, hb⟩ := hbound |
| 50 | exact ⟨K, hK, fun s hs x => hb s hs.2 x⟩ |
| 51 | exact Splitting.backward_persistence_of_parallel_gradient hC hn ht G |
| 52 | (fun s hs => hcomplete s hs.2) (fun s hs => hcurv s hs.2) |
| 53 | hGbound f hf hunit hzero t ⟨le_rfl, ht.le⟩ |
| 54 | · exact ⟨rfl, hunit, hzero⟩ |
| 55 | |
| 56 | end PoincareMT.RicciFlow |