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.Surgery.StandardCap.Existence.Geometry.Curvature.ProperSectionalComparison |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Limits.EndExhaustionLaplacian |
| 3 | |
| 4 | /-! |
| 5 | # Nonnegative sectional curvature of every partial cap flow |
| 6 | |
| 7 | On each included closed slab, the supplied initial end gives a smooth |
| 8 | proper height with bounded evolving Laplacian. The actual full curvature |
| 9 | bound and exact initial connection allow the complete-space comparison. |
| 10 | This proves the nonnegativity assertion in Lemma 12.6, pp. 297-298. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff |
| 17 | |
| 18 | namespace PoincareMT.M34 |
| 19 | |
| 20 | /-- Every frozen partial standard-cap flow has nonnegative sectional |
| 21 | curvature at all included times (Lemma 12.6, pp. 297-298). -/ |
| 22 | theorem partialFlow_nonnegativeSectionalCurvature (P : RicciFlowCurvatureTheory.{0}) |
| 23 | {g0 : StandardInitialMetric} (E0 : StandardCapEstimate g0) |
| 24 | (F : PartialStandardCapFlow g0) : |
| 25 | ∀ t ∈ Ico 0 F.lifetime, (F.flow.connection t).NonnegativeSectionalCurvature := by |
| 26 | have hpair : (⟨F.flow.metric 0, F.flow.connection 0⟩ : |
| 27 | Σ g : RiemannianMetric 3 StandardCapSpace, LeviCivitaData g) = |
| 28 | ⟨g0.metric, g0.connection⟩ := |
| 29 | Sigma.mk.inj_iff.mpr ⟨F.initial_metric, F.initial_connection⟩ |
| 30 | have hinit : (F.flow.connection 0).NonnegativeSectionalCurvature := by |
| 31 | have heq := congrArg (fun p : Σ g : RiemannianMetric 3 StandardCapSpace, |
| 32 | LeviCivitaData g => p.2.NonnegativeSectionalCurvature) hpair |
| 33 | exact heq.mpr g0.nonnegative_sectional |
| 34 | intro t ht |
| 35 | let T := (t + F.lifetime) / 2 |
| 36 | have hT : 0 < T := by dsimp [T]; linarith [F.lifetime_pos, ht.1] |
| 37 | have htT : t ≤ T := by dsimp [T]; linarith [ht.2] |
| 38 | have hTF : T < F.lifetime := by dsimp [T]; linarith [ht.2] |
| 39 | have hsub : Icc 0 T ⊆ Ico 0 F.lifetime := |
| 40 | fun _ hs => ⟨hs.1, hs.2.trans_lt hTF⟩ |
| 41 | have hne : (Icc 0 T).Nontrivial := |
| 42 | ⟨0, ⟨le_rfl, hT.le⟩, T, ⟨hT.le, le_rfl⟩, ne_of_lt hT⟩ |
| 43 | let G := Poincare.Geometry.RicciFlow.Harnack.restrictFlow F.flow hsub ordConnected_Icc hne |
| 44 | obtain ⟨B, hB, hfull⟩ := F.curvature_locally_bounded T hT.le hTF |
| 45 | obtain ⟨C, hC, hlap⟩ := partialFlow_exhaustion_laplacian_bound P E0 F hT.le hTF |
| 46 | have hresult := nonnegativeSectionalCurvature_of_proper_barrier hT hB hC G |
| 47 | (fun s hs x => (le_abs_self _).trans (hfull s hs x)) hinit |
| 48 | (endExhaustion g0.cylindrical_end) (endExhaustion_contMDiff _) |
| 49 | (one_le_endExhaustion _) (endExhaustion_sublevel_isCompact _) |
| 50 | (fun s hs x => ((le_abs_self _).trans (hlap s hs x)).trans |
| 51 | (le_mul_of_one_le_right hC (one_le_endExhaustion _ x))) |
| 52 | exact hresult t ⟨ht.1, htT⟩ |
| 53 | |
| 54 | end PoincareMT.M34 |