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.Extinction.Width.FinitePiece.Data |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Path.Theory |
| 3 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Profile.Theory |
| 4 | |
| 5 | /-! |
| 6 | # M69 finite-piece width propagation |
| 7 | |
| 8 | Natural-language theorem statement: apply the actual M67 changing-carrier |
| 9 | width conclusion and the M68 scalar-clock profile on one M56 ancestry path |
| 10 | carrying one M57/M59 class ledger and a finite ordered surgery interval. The |
| 11 | strict delta and height bounds hold at every surgery in the path's [0,T], and |
| 12 | the absolute scalar bound holds on its actual flow slices. The full M61, |
| 13 | M58, M65 and M66 services are passed to M67 at their exact indices. The |
| 14 | M67 service retains the supplied initial metric/class, coherent M59 system, |
| 15 | and explicit path-aware basepoint service when selecting the path and its |
| 16 | conclusion; the M68 service selects the |
| 17 | profile used by the returned witness. The witness records the initial raw M61 |
| 18 | width anchor and preservation of the single transported nonzero class. The |
| 19 | node has no extinction, empty-slice, connected-sum, or Poincare endpoint |
| 20 | premise. |
| 21 | |
| 22 | Source: Morgan--Tian Claims 18.19--18.20 and the finite-piece application of |
| 23 | Proposition 18.18 in the proof of Theorem 18.1, |
| 24 | `references/derived/MT2007.txt:21104-21162` and `21124-21140`. |
| 25 | -/ |
| 26 | |
| 27 | set_option autoImplicit false |
| 28 | |
| 29 | universe u |
| 30 | |
| 31 | namespace PoincareMT |
| 32 | |
| 33 | def M69FinitePieceStatement : Prop := |
| 34 | ∀ {g₀ : StandardInitialMetric} |
| 35 | {D : RepairedSurgeryFlowData.{u} g₀} |
| 36 | {W : RepairedEventChildWitness D.flow} |
| 37 | {T : ℝ} {P : RepairedComponentPath D.flow T W} |
| 38 | (hcomparison : M67EventComparisonBounds D.flow (Set.Icc 0 T)) |
| 39 | (hscalar : M67ScalarLowerBound D.flow (Set.Icc 0 T)) |
| 40 | {K : RepairedComparisonMapData D} |
| 41 | {C : RepairedComparisonHomotopyData D K} |
| 42 | {H : RepairedAncestryTransportInput D W P K C} |
| 43 | {B : M59HigherBasepointTransportService} |
| 44 | {A : RepairedAncestryTransportData D W P K C H B} |
| 45 | (S : M59IdentificationSystem.{u}) |
| 46 | (initial : M67InitialClassData S (P.component (m67InitialTime P)) (D.flow.metric 0)) |
| 47 | {hM61 : M61WidthTheory.{u} S.quotient} |
| 48 | {hM64 : M64ComparisonTheory.{u}} |
| 49 | {hM65 : M65DeformationTheory hM61.toM61RawWidthCore hM64} |
| 50 | (hM58 : RepairedShortLoopTrivialityTheory.{u}) |
| 51 | (hM66 : M66SmoothTimeTheory hM61.toM61RawWidthCore hM58 hM65) |
| 52 | (hM67 : M67SurgeryWidthTheory.{u}) |
| 53 | (hM68 : M68ScalarClockStatement.{u}), |
| 54 | let selected := m69M67Choice W P hcomparison hscalar K C H B A S initial |
| 55 | hM61 hM65 hM58 hM66 hM67 |
| 56 | let X := selected.1 |
| 57 | let HX := selected.2.estimate |
| 58 | ∀ (L : M69ClassLedger P B X) |
| 59 | (I : M69FinitePieceInput X L), |
| 60 | Nonempty {C : M69FinitePieceConclusion L I HX // |
| 61 | C.profile = Classical.choice (hM68 X HX (M69FinitePieceInput.profile L I HX))} |
| 62 | |
| 63 | end PoincareMT |