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.Restart.Curvature |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Basic.Restart.Completeness |
| 3 | |
| 4 | /-! |
| 5 | # Complete flow existence from actual fixed-coordinate approximations |
| 6 | |
| 7 | The metric-general extraction produces a complete Ricci flow with a |
| 8 | global full-curvature bound and the exact supplied initial metric and |
| 9 | connection records. The only geometric hypotheses are the approximation |
| 10 | data and initial completeness. This is the restart construction for |
| 11 | Morgan-Tian Theorem 12.5, pp. 296-297. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff |
| 18 | |
| 19 | namespace PoincareMT.M34.MetricFlowApproximation |
| 20 | |
| 21 | variable {ginit : RiemannianMetric 3 StandardCapSpace} {Mfamily : ℕ → Type} |
| 22 | [∀ k, TopologicalSpace (Mfamily k)] [∀ k, ChartedSpace StandardCapSpace (Mfamily k)] |
| 23 | [∀ k, IsManifold (𝓡 3) ∞ (Mfamily k)] (A : MetricFlowApproximation ginit Mfamily) |
| 24 | |
| 25 | /-- Actual approximation data give a complete initial-slab flow that |
| 26 | retains both supplied records and the same uniform full-curvature bound |
| 27 | (Theorem 12.5, pp. 296-297). -/ |
| 28 | theorem complete_flow_exists (Dinit : LeviCivitaData ginit) |
| 29 | (P : RicciFlowCurvatureTheory.{0}) (hcomplete : MetricComplete ginit) : |
| 30 | ∃ H : RicciFlow 3 StandardCapSpace (Ico 0 A.time), |
| 31 | H.metric 0 = ginit ∧ HEq (H.connection 0) Dinit ∧ |
| 32 | (∀ t ∈ Ico 0 A.time, MetricComplete (H.metric t)) ∧ |
| 33 | ∀ t ∈ Ico 0 A.time, ∀ x : StandardCapSpace, |
| 34 | |(H.connection t).curvatureTensorNorm x| ≤ A.curvature_bound 0 := by |
| 35 | obtain ⟨G⟩ := metricInteriorCoefficientLimit_exists A P |
| 36 | refine ⟨G.initialFlow Dinit P, G.initialFlow_metric_zero Dinit P, |
| 37 | G.initialFlow_connection_zero Dinit P, ?_, ?_⟩ |
| 38 | · exact fun _ ht => G.initialFlow_complete Dinit P hcomplete ht |
| 39 | · exact fun _ ht x => G.initialFlow_abs_curvature_le Dinit P ht x |
| 40 | |
| 41 | end PoincareMT.M34.MetricFlowApproximation |