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.Ancestry.Finite.GroupInduction |
| 2 | |
| 3 | /-! |
| 4 | # The literal M38, M54 and M55 event witness |
| 5 | |
| 6 | First propagate all based groups using the fixed raw topology and selected |
| 7 | M54 factors. Then select M55's child data with those proved parent premises. |
| 8 | This follows MT Proposition 15.3 and Corollary 15.4, printed pp. 357--359. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set |
| 14 | open scoped Manifold ContDiff Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | /-- The literal raw M38 conclusion at a nonempty event, for MT Proposition |
| 21 | 15.3, pp. 357--358. -/ |
| 22 | noncomputable def m56RawTopology {F : SurgeryFlowData.{u}} |
| 23 | (L : RawLocalSurgeryTopologyData F) (T : ℝ) (hT : T ∈ F.surgery_times) |
| 24 | (hpost : Nonempty (F.slice T).carrier) : |
| 25 | letI := hpost |
| 26 | SurgeryTopologyConclusion (F.slice (F.event T hT).tMinus) (F.slice T) := by |
| 27 | let := hpost |
| 28 | exact (Classical.choice (L.nonempty_reconstruction T hT)).conclusion |
| 29 | |
| 30 | /-- Fixed M38 conclusions and the literal M54 factors propagate all based |
| 31 | groups through MT Corollary 15.4's finite history, pp. 358--359. -/ |
| 32 | theorem m56RawPointGroups (G54 : RepairedGroupEffectsTheory.{u}) |
| 33 | {F : SurgeryFlowData.{u}} (L : RawLocalSurgeryTopologyData F) |
| 34 | (hzero : M56PointGroups (F.slice 0)) |
| 35 | (T : ℝ) (hT : T ∈ F.time_domain) : M56PointGroups (F.slice T) := by |
| 36 | apply m56PointGroups_induction F hzero _ T hT |
| 37 | intro s hs hpost hpre |
| 38 | apply m56PointGroups_of_survivors (m56RawTopology L s hs hpost) |
| 39 | intro i hi x |
| 40 | let E := Classical.choice (G54.effects (m56RawTopology L s hs hpost)) |
| 41 | let := hpre (E.parent_basepoint i hi x) |
| 42 | exact (E.piece_effect i hi x).target_subsingleton |
| 43 | |
| 44 | /-- A single event witness with the actual selected provider data, constructed |
| 45 | from the initial invariant (MT Proposition 15.3, pp. 357--358). -/ |
| 46 | noncomputable def m56PoincareWitness (G54 : RepairedGroupEffectsTheory.{u}) |
| 47 | (G55 : RepairedChildComponentsTheory.{u}) |
| 48 | {F : SurgeryFlowData.{u}} (L : RawLocalSurgeryTopologyData F) |
| 49 | (hzero : M56PointGroups (F.slice 0)) : RepairedEventChildWitness F := by |
| 50 | let C := m56RawTopology L |
| 51 | let E := fun T hT hpost => Classical.choice (G54.effects (C T hT hpost)) |
| 52 | have parent : ∀ (T : ℝ) (hT : T ∈ F.surgery_times) |
| 53 | (hpost : Nonempty (F.slice T).carrier), letI := hpost |
| 54 | ∀ i : Fin (C T hT hpost).piece_count, |
| 55 | ∀ hi : (C T hT hpost).kind i = .survivor, |
| 56 | ∀ x : ((C T hT hpost).piece i).carrier, |
| 57 | Subsingleton (FundamentalGroup (F.slice (F.event T hT).tMinus).carrier |
| 58 | ((E T hT hpost).parent_basepoint i hi x)) := by |
| 59 | intro T hT hpost i hi x |
| 60 | let := hpost |
| 61 | exact m56RawPointGroups G54 L hzero _ |
| 62 | (F.time_domain_interval.out F.zero_mem (F.surgery_times_subset hT) |
| 63 | ⟨(F.event T hT).tMinus_nonnegative, (F.event T hT).tMinus_lt.le⟩) _ |
| 64 | exact { |
| 65 | topology := C |
| 66 | effects := E |
| 67 | parent_groups_subsingleton := parent |
| 68 | children := fun T hT hpost => Classical.choice |
| 69 | (G55.components G54 (C T hT hpost) (E T hT hpost) rfl (parent T hT hpost)) } |
| 70 | |
| 71 | end PoincareMT |