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.Flow.ShortTimeExistence |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Flow.FiniteLifetime |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Basic.BoundedMaximality |
| 4 | |
| 5 | /-! |
| 6 | # Actual maximal standard-cap existence |
| 7 | |
| 8 | Short-time construction gives a first partial flow. Positive scalar |
| 9 | comparison bounds all partial lifetimes, and compatible chain unions |
| 10 | then give a maximal flow in the exact frozen sense. Each included metric |
| 11 | is complete (Morgan-Tian Definition 12.4 and Theorem 12.5, pp. 295-297). |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | |
| 18 | namespace PoincareMT.M34 |
| 19 | |
| 20 | /-- Every supplied standard initial metric admits an actual maximal cap |
| 21 | flow with complete slices (Theorem 12.5, pp. 295-297). -/ |
| 22 | theorem maximalStandardCapFlow_exists (P : M34StandardCapPredecessors) |
| 23 | (g0 : StandardInitialMetric) : |
| 24 | ∃ F : MaximalStandardCapFlow g0, |
| 25 | ∀ t ∈ Ico 0 F.base.lifetime, MetricComplete (F.metric t) := by |
| 26 | obtain ⟨E0⟩ := standardCapEstimate_exists g0 |
| 27 | obtain ⟨F0, _hcomplete, _hbound⟩ := completePartialStandardCapFlow_exists P g0 |
| 28 | obtain ⟨F⟩ := maximalStandardCapFlow_exists_of_bounded_lifetimes F0 |
| 29 | (partialFlow_lifetime_le_scalar_bound P.curvature E0) |
| 30 | exact ⟨F, fun _ ht => partialFlow_complete F.base P.curvature ht⟩ |
| 31 | |
| 32 | end PoincareMT.M34 |