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.TerminalCutoffFlows |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Basic.Restart.Existence |
| 3 | |
| 4 | /-! |
| 5 | # Forward Ricci flow from the complete terminal metric |
| 6 | |
| 7 | The actual cutoff doubles and their common-time flows supply the |
| 8 | metric-general extraction. The resulting complete forward flow starts |
| 9 | at the terminal metric with any supplied compatible connection and a |
| 10 | global curvature bound. Joining to the old flow is a separate step in |
| 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.PartialFlowTerminalJets |
| 20 | |
| 21 | variable {g0 : StandardInitialMetric} {F : PartialStandardCapFlow g0} {S : ℝ} |
| 22 | (L : PartialFlowTerminalJets F S) (P : M34StandardCapPredecessors) |
| 23 | (E0 : StandardCapEstimate g0) {B : ℝ} (hS : 0 < S) (hSF : S ≤ F.lifetime) (hB : 0 < B) |
| 24 | (hfull : ∀ t ∈ Ico 0 S, ∀ x : StandardCapSpace, |
| 25 | (F.flow.connection t).curvatureTensorNorm x ≤ B) |
| 26 | |
| 27 | /-- A bounded past admits an actual complete forward Ricci flow from |
| 28 | its terminal metric, retaining a prescribed compatible connection |
| 29 | (Theorem 12.5, pp. 296-297). -/ |
| 30 | theorem forward_flow_exists |
| 31 | (D : LeviCivitaData (L.metric P.curvature E0 hS hSF hB hfull)) : |
| 32 | ∃ τ K : ℝ, 0 < τ ∧ 0 < K ∧ |
| 33 | ∃ H : RicciFlow 3 StandardCapSpace (Ico 0 τ), |
| 34 | H.metric 0 = L.metric P.curvature E0 hS hSF hB hfull ∧ |
| 35 | HEq (H.connection 0) D ∧ |
| 36 | (∀ t ∈ Ico 0 τ, MetricComplete (H.metric t)) ∧ |
| 37 | ∀ t ∈ Ico 0 τ, ∀ x : StandardCapSpace, |
| 38 | |(H.connection t).curvatureTensorNorm x| ≤ K := by |
| 39 | obtain ⟨A⟩ := L.metricFlowApproximation_exists P E0 hS hSF hB hfull |
| 40 | obtain ⟨H, hinit, hD, hcomplete, hcurv⟩ := A.complete_flow_exists D P.curvature |
| 41 | (L.metric_complete P.curvature E0 hS hSF hB hfull) |
| 42 | exact ⟨A.time, A.curvature_bound 0, A.time_pos, A.bound_pos 0, |
| 43 | H, hinit, hD, hcomplete, hcurv⟩ |
| 44 | |
| 45 | end PoincareMT.M34.PartialFlowTerminalJets |