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.Induction.Noncollapse.Compat.GeneralizedEquation |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.LGeometry.CapEntry.DisappearingTop |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Spacetime.GeneralizedCylinderClock |
| 4 | |
| 5 | /-! |
| 6 | # Excluding the top of the lifted disappearing cap image |
| 7 | |
| 8 | Proposition 16.13 and Lemma 16.15, pp. 377-381. The literal map |
| 9 | equality supplied by M33 identifies every point of the lifted cylinder |
| 10 | with the original physical cap trace. The closure exclusion therefore |
| 11 | applies to the same raw image used by the last-entry argument. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Function |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.Proofs.M12 |
| 23 | end PoincareMT.Proofs.M12 |
| 24 | open PoincareMT.EpochExtension.Spacetime |
| 25 | local notation "GeneralizedFlowCarrierConclusion" => PoincareMT.GeneralizedFlowCarrierConclusionWithInterval |
| 26 | |
| 27 | namespace PoincareMT.Proofs.M46 |
| 28 | |
| 29 | open PoincareMT.Proofs.M12 |
| 30 | |
| 31 | /-- Every point of the actual lifted raw cylinder is in the original |
| 32 | physical cap trace, using exactly the M33 forward-map equality. Source: |
| 33 | Proposition 14.12 and Lemma 16.15, pp. 350 and 379-381. -/ |
| 34 | theorem rawCylinder_range_subset_history_capTrace |
| 35 | {F : SurgeryFlowData.{u}} {G : GeneralizedRicciFlowData.{u}} |
| 36 | (R : GeneralizedFlowCarrierConclusion (flowBoxAtlas G)) |
| 37 | (H : M33RegularHistoryRealization G F) |
| 38 | {origin scale : ℝ} {I : Set ℝ} {J : SpacetimeInterval} |
| 39 | {U : TopologicalSpace.Opens (F.slice origin).carrier} |
| 40 | (e : SurgeryFlowCylinder F (F.slice origin) origin scale I U) |
| 41 | (d : GeneralizedFlowCylinder G (F.slice origin) origin scale J.domain U) |
| 42 | (hJI : J.domain ⊆ I) |
| 43 | (htime : ∀ s ∈ J.domain, origin + s / scale ∈ G.interval) |
| 44 | (hforward : ∀ s hs x, x ∈ U → |
| 45 | H.forward (origin + s / scale) (htime s hs) (d.forward s hs x) = |
| 46 | e.forward s (hJI hs) x) : |
| 47 | range (rawCylinderMap R d) ⊆ {z : R.spacetime.Point | |
| 48 | ∃ (s : ℝ) (hs : s ∈ I) (x : (F.slice origin).carrier), x ∈ U ∧ |
| 49 | (⟨origin + s / scale, e.forward s hs x⟩ : Σ t, (F.slice t).carrier) = |
| 50 | historyPhysicalPoint H z} := by |
| 51 | rintro z ⟨w, rfl⟩ |
| 52 | let s := cylinderClockHomeomorph origin scale d.scale_pos J w.1 |
| 53 | refine ⟨s.val, hJI s.property, w.2.val, w.2.property, ?_⟩ |
| 54 | change (⟨origin + s.val / scale, e.forward s.val (hJI s.property) w.2.val⟩ : |
| 55 | Σ t, (F.slice t).carrier) = |
| 56 | ⟨origin + s.val / scale, |
| 57 | H.forward (origin + s.val / scale) _ (d.forward s.val s.property w.2.val)⟩ |
| 58 | exact congrArg (fun x => (⟨origin + s.val / scale, x⟩ : Σ t, (F.slice t).carrier)) |
| 59 | (hforward s.val s.property w.2.val w.2.property).symm |
| 60 | |
| 61 | /-- The last-entry point cannot lie at the top of a disappearing |
| 62 | lifted cylinder, even when the raw image is approached only in closure. |
| 63 | Source: Proposition 16.13 and Lemma 16.15, pp. 377-381. -/ |
| 64 | theorem rawCylinder_closure_excludes_disappearing_top |
| 65 | {F : SurgeryFlowData.{u}} {G : GeneralizedRicciFlowData.{u}} |
| 66 | (R : GeneralizedFlowCarrierConclusion (flowBoxAtlas G)) |
| 67 | (H : M33RegularHistoryRealization G F) |
| 68 | {origin scale top : ℝ} {I : Set ℝ} {J : SpacetimeInterval} |
| 69 | {U : TopologicalSpace.Opens (F.slice origin).carrier} |
| 70 | (e : SurgeryFlowCylinder F (F.slice origin) origin scale I U) |
| 71 | (d : GeneralizedFlowCylinder G (F.slice origin) origin scale J.domain U) |
| 72 | (hJI : J.domain ⊆ I) |
| 73 | (htime : ∀ s ∈ J.domain, origin + s / scale ∈ G.interval) |
| 74 | (hforward : ∀ s hs x, x ∈ U → |
| 75 | H.forward (origin + s / scale) (htime s hs) (d.forward s hs x) = |
| 76 | e.forward s (hJI hs) x) |
| 77 | (hdisappears : SurgeryBallDisappearsAt F e top) |
| 78 | (hbefore : ∀ s ∈ I, origin + s / scale < top) |
| 79 | (z : R.spacetime.Point) (hz : R.spacetime.timeFunction z = top) : |
| 80 | z ∉ closure (range (rawCylinderMap R d)) := by |
| 81 | intro hclosure |
| 82 | apply disappearingCap_trace_closure_excludes_top R H e hdisappears hbefore z hz |
| 83 | exact closure_mono (rawCylinder_range_subset_history_capTrace R H e d hJI |
| 84 | htime hforward) hclosure |
| 85 | |
| 86 | end PoincareMT.Proofs.M46 |