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.PointGroups |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.RegularHistory |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Assembly.FiniteEventInduction |
| 4 | |
| 5 | /-! |
| 6 | # Finite-history induction for based fundamental groups |
| 7 | |
| 8 | Ordinary slabs and the eventwise survivor step propagate triviality at every |
| 9 | basepoint. This is MT Corollary 15.4's finite-history argument, pp. 358--359, |
| 10 | without any classification conclusion. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | /-- Propagate the all-point invariant through the finite surgery history |
| 23 | of MT Corollary 15.4, pp. 358--359. -/ |
| 24 | theorem m56PointGroups_induction (F : SurgeryFlowData.{u}) |
| 25 | (hzero : M56PointGroups (F.slice 0)) |
| 26 | (hevent : ∀ (s : ℝ) (hs : s ∈ F.surgery_times) |
| 27 | (hpost : Nonempty (F.slice s).carrier), letI := hpost |
| 28 | M56PointGroups (F.slice (F.event s hs).tMinus) → M56PointGroups (F.slice s)) |
| 29 | (T : ℝ) (hT : T ∈ F.time_domain) : M56PointGroups (F.slice T) := by |
| 30 | have hJ : Icc 0 T ⊆ F.time_domain := F.time_domain_interval.out F.zero_mem hT |
| 31 | have hfinite : (F.surgery_times ∩ Ioc 0 T).Finite := |
| 32 | (F.surgery_times_finite_on_compact isCompact_Icc hJ).subset |
| 33 | (inter_subset_inter_right _ Ioc_subset_Icc_self) |
| 34 | apply Proofs.M46.finite_event_forward_induction (F.time_domain_nonnegative hT) |
| 35 | hfinite (fun t => M56PointGroups (F.slice t)) hzero |
| 36 | · intro a ha b hb hab hfree hA |
| 37 | rcases hab.eq_or_lt with rfl | hab |
| 38 | · exact hA |
| 39 | · let B := F.regular_slabs a b hab |
| 40 | (fun t ht => hJ ⟨ha.1.trans ht.1, ht.2.trans hb.2⟩) hfree |
| 41 | exact m56PointGroups_transport (B.identify ⟨b, hab.le, le_rfl⟩) hA |
| 42 | · intro s hs ih x |
| 43 | let hpost : Nonempty (F.slice s).carrier := ⟨x⟩ |
| 44 | let := hpost |
| 45 | exact hevent s hs.1 hpost |
| 46 | (ih (F.event s hs.1).tMinus |
| 47 | ⟨(F.event s hs.1).tMinus_nonnegative, (F.event s hs.1).tMinus_lt⟩) x |
| 48 | |
| 49 | /-- The supplied simply connected children suffice for the conditional |
| 50 | ancestry branch's invariant (MT Proposition 15.3, pp. 357--358). -/ |
| 51 | theorem m56PointGroups_of_witness (F : SurgeryFlowData.{u}) |
| 52 | (W : RepairedEventChildWitness F) (hzero : M56PointGroups (F.slice 0)) |
| 53 | (T : ℝ) (hT : T ∈ F.time_domain) : M56PointGroups (F.slice T) := by |
| 54 | apply m56PointGroups_induction F hzero _ T hT |
| 55 | intro s hs hpost _ |
| 56 | exact m56PointGroups_of_survivors (W.topology s hs hpost) |
| 57 | (W.children s hs hpost).survivor_group_subsingleton |
| 58 | |
| 59 | end PoincareMT |