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.Transport |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Ancestry.Transport.Event.EventInput |
| 3 | |
| 4 | /-! |
| 5 | # Comparison inputs along the literal selected ancestry path |
| 6 | |
| 7 | For the class transport before Morgan--Tian Proposition 18.18 (pp. 430-431), |
| 8 | assemble every event input on the path from Definition 18.2 (pp. 419-420). |
| 9 | All component and basepoint identifications are literal, and the target |
| 10 | point path uses the exact supplied comparison provider's output. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | /-- The Poincare ancestry supplies all actual local comparison inputs and |
| 20 | basepoint paths needed for the class transport on pp. 430-431. -/ |
| 21 | theorem m57PoincareAncestryInput |
| 22 | (P02 : RepairedClosedTopologyProvider.{u}) (G53 : RepairedSphereSeparationTheory.{u}) |
| 23 | {g₀ : StandardInitialMetric} (D : RepairedSurgeryFlowData.{u} g₀) |
| 24 | (L : RawLocalSurgeryTopologyData D.flow) (P : M56PoincareAncestryData D.flow L) |
| 25 | (K : RepairedComparisonMapData D) (C : RepairedComparisonHomotopyData D K) |
| 26 | (T : ℝ) (hT : T ∈ D.flow.time_domain) (x : (D.flow.slice T).carrier) : |
| 27 | Nonempty (RepairedAncestryTransportInput D P.witness |
| 28 | (P.ancestry.path_for T hT x) K C) := by |
| 29 | let A := P.ancestry.path_for T hT x |
| 30 | let input (S : Set.Icc (0 : ℝ) T) (hS : S.1 ∈ D.flow.surgery_times) |
| 31 | (hpost : Nonempty (D.flow.slice S.1).carrier) := |
| 32 | @m57EventInput P02 G53 g₀ D L P T A S hS hpost |
| 33 | refine ⟨{ |
| 34 | event_input := input |
| 35 | event_parent_path := fun _ _ _ => HEq.rfl |
| 36 | event_child_path := fun _ _ _ => HEq.rfl |
| 37 | event_topology_path := fun S hS hpost => (P.topology_source S.1 hS hpost).symm |
| 38 | event_survivor_region_path := fun S hS hpost => (A.event_survivor S hS hpost).1.symm |
| 39 | event_child_range := fun _ _ _ => rfl |
| 40 | event_parent_basepoint_path := fun _ _ _ => HEq.rfl |
| 41 | event_child_basepoint_path := fun _ _ _ => HEq.rfl |
| 42 | event_target_basepoint_bridge := ?_ |
| 43 | regular_basepoint_bridge := ?_ }⟩ |
| 44 | · intro S hS hpost |
| 45 | let := hpost |
| 46 | intro hdelta hh |
| 47 | let O := Classical.choice (C.transport S.1 hS (input S hS hpost) hdelta hh) |
| 48 | exact ⟨O.val.comparison.target_basepoint, HEq.rfl, |
| 49 | m57ComponentPointPath (A.component S) _ _⟩ |
| 50 | · intro a b hab hdisjoint |
| 51 | exact m57ComponentPointPath (A.component b) _ _ |
| 52 | |
| 53 | end PoincareMT |