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.Construction.Curvature.InitialFlowCurvature |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Flow.InitialFlowCompleteness |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.InitialEstimates.ScalarPositivity |
| 4 | |
| 5 | /-! |
| 6 | # Short-time partial standard-cap existence |
| 7 | |
| 8 | For every supplied standard initial metric, compact doubles and the |
| 9 | fixed-coordinate endpoint limit construct a genuine complete flow on |
| 10 | a positive half-open slab, retaining the prescribed initial metric and |
| 11 | connection and one global full-curvature bound. This is the short-time |
| 12 | construction in Morgan-Tian Theorem 12.5, p. 297; maximal continuation |
| 13 | and unit lifetime are separate obligations. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff |
| 20 | |
| 21 | namespace PoincareMT.M34 |
| 22 | |
| 23 | /-- The constructed initial slab fills every field of the frozen partial |
| 24 | standard-cap flow structure (Theorem 12.5, p. 297). -/ |
| 25 | noncomputable def InteriorCoefficientLimit.partialFlow |
| 26 | {g0 : StandardInitialMetric} {A : CompactCapApproximation g0} |
| 27 | (G : InteriorCoefficientLimit A) (P : RicciFlowCurvatureTheory.{0}) : |
| 28 | PartialStandardCapFlow g0 where |
| 29 | lifetime := A.time |
| 30 | lifetime_pos := A.time_pos |
| 31 | flow := G.initialFlow P |
| 32 | initial_metric := G.initialFlow_metric_zero P |
| 33 | initial_connection := G.initialFlow_connection_zero P |
| 34 | curvature_locally_bounded := by |
| 35 | intro T0 _hT0 hT0T |
| 36 | refine ⟨A.curvature_bound 0, (A.bound_pos 0).le, ?_⟩ |
| 37 | intro t ht x |
| 38 | exact G.initialFlow_abs_curvature_le P ⟨ht.1, ht.2.trans_lt hT0T⟩ x |
| 39 | |
| 40 | /-- Every supplied standard initial metric has an actual complete |
| 41 | positive-time partial Ricci flow with globally bounded full curvature |
| 42 | (Theorem 12.5, p. 297). -/ |
| 43 | theorem completePartialStandardCapFlow_exists (P : M34StandardCapPredecessors) |
| 44 | (g0 : StandardInitialMetric) : |
| 45 | ∃ F : PartialStandardCapFlow g0, |
| 46 | (∀ t ∈ Ico 0 F.lifetime, MetricComplete (F.flow.metric t)) ∧ |
| 47 | ∃ K : ℝ, 0 < K ∧ ∀ t ∈ Ico 0 F.lifetime, ∀ x : StandardCapSpace, |
| 48 | |(F.flow.connection t).curvatureTensorNorm x| ≤ K := by |
| 49 | obtain ⟨E0⟩ := standardCapEstimate_exists g0 |
| 50 | obtain ⟨A⟩ := compactCapApproximation_exists P g0 E0 |
| 51 | obtain ⟨G⟩ := interiorCoefficientLimit_exists A P.curvature |
| 52 | refine ⟨G.partialFlow P.curvature, ?_, A.curvature_bound 0, A.bound_pos 0, ?_⟩ |
| 53 | · exact fun _ ht => G.initialFlow_complete P.curvature ht |
| 54 | · exact fun _ ht x => G.initialFlow_abs_curvature_le P.curvature ht x |
| 55 | |
| 56 | end PoincareMT.M34 |