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 | |
| 3 | /-! |
| 4 | # Checked class-ledger and full-interval inputs |
| 5 | |
| 6 | M67 constructs coherence of the selected classes. Copying those exact classes |
| 7 | and maps gives the M69 ledger. The interval is literally [0,T], with chronology |
| 8 | from the same selected path and both based-width properties from the full M61 |
| 9 | service. Neither construction assumes an M69 estimate or a negative profile. |
| 10 | |
| 11 | Source: Morgan--Tian's class transport preceding Proposition 18.18 and its |
| 12 | finite-interval application, printed pp. 430--432. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | variable {g₀ : StandardInitialMetric} |
| 22 | {D : RepairedSurgeryFlowData.{u} g₀} |
| 23 | {W : RepairedEventChildWitness D.flow} |
| 24 | {T : ℝ} {P : RepairedComponentPath D.flow T W} |
| 25 | {K : RepairedComparisonMapData D} |
| 26 | {C : RepairedComparisonHomotopyData D K} |
| 27 | {H : RepairedAncestryTransportInput D W P K C} |
| 28 | {B : M59HigherBasepointTransportService} |
| 29 | {A : RepairedAncestryTransportData D W P K C H B} |
| 30 | {q : M59SphereQuotient} |
| 31 | {hM61 : M61RawWidthCore.{u}} |
| 32 | {hM64 : M64ComparisonTheory.{u}} |
| 33 | {hM65 : M65DeformationTheory hM61 hM64} |
| 34 | |
| 35 | def m69ClassLedgerFromCoherence |
| 36 | (X : M67ChangingWidthPath D W P K C H B A q hM61 hM65) |
| 37 | (coherent : M67ClassCoherence X) : M69ClassLedger P B X where |
| 38 | alpha := fun s => (X.slice s).alpha |
| 39 | alpha_eq_slice := fun _ => rfl |
| 40 | initial_nonzero := (X.slice (m67InitialTime P)).class_nonzero |
| 41 | regular_transport := coherent.regular_transport |
| 42 | event_transport := coherent.event_transport |
| 43 | |
| 44 | def m69ClassLedgerFromM67 |
| 45 | {S : M59IdentificationSystem.{u}} |
| 46 | {initial : M67InitialClassData S |
| 47 | (P.component (m67InitialTime P)) (D.flow.metric 0)} |
| 48 | (X : M67ChangingWidthPath D W P K C H B A S.quotient hM61 hM65) |
| 49 | (anchored : M67AnchoredConclusion S initial X) : M69ClassLedger P B X := |
| 50 | m69ClassLedgerFromCoherence X anchored.class_coherence |
| 51 | |
| 52 | def m69FullIntervalInput |
| 53 | (hWidth : M61WidthTheory.{u} q) |
| 54 | (X : M67ChangingWidthPath D W P K C H B A q hM61 hM65) |
| 55 | (L : M69ClassLedger P B X) : M69FinitePieceInput X L where |
| 56 | T₁ := 0 |
| 57 | T₂ := T |
| 58 | ordered := ⟨le_rfl, X.terminal_nonnegative, le_rfl⟩ |
| 59 | chronology := X.chronology |
| 60 | start_width_properties := hWidth.based_class |
| 61 | (X.slice (m67InitialTime P)).metric |
| 62 | (P.component (m67InitialTime P)).compact |
| 63 | (P.component (m67InitialTime P)).connected |
| 64 | (P.component (m67InitialTime P)).basepoint |
| 65 | (X.slice (m67InitialTime P)).pi_two_trivial |
| 66 | (X.slice (m67InitialTime P)).alpha |
| 67 | initial_width_properties := hWidth.based_class |
| 68 | (X.slice (m67InitialTime P)).metric |
| 69 | (P.component (m67InitialTime P)).compact |
| 70 | (P.component (m67InitialTime P)).connected |
| 71 | (P.component (m67InitialTime P)).basepoint |
| 72 | (X.slice (m67InitialTime P)).pi_two_trivial |
| 73 | (X.slice (m67InitialTime P)).alpha |
| 74 | |
| 75 | @[simp] theorem m69FullIntervalInput_start |
| 76 | (hWidth : M61WidthTheory.{u} q) |
| 77 | (X : M67ChangingWidthPath D W P K C H B A q hM61 hM65) |
| 78 | (L : M69ClassLedger P B X) : (m69FullIntervalInput hWidth X L).T₁ = 0 := rfl |
| 79 | |
| 80 | @[simp] theorem m69FullIntervalInput_end |
| 81 | (hWidth : M61WidthTheory.{u} q) |
| 82 | (X : M67ChangingWidthPath D W P K C H B A q hM61 hM65) |
| 83 | (L : M69ClassLedger P B X) : (m69FullIntervalInput hWidth X L).T₂ = T := rfl |
| 84 | |
| 85 | end PoincareMT |