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.EpochExtension.Spacetime.GeneralizedCylinders |
| 2 | import PoincareLib.Geometry.Spacetime.Rescaling.Time |
| 3 | |
| 4 | /-! |
| 5 | # Physical time of a raw generalized-flow cylinder |
| 6 | |
| 7 | The image interval and its clock are exact. Reparameterization changes no |
| 8 | endpoint or point map; a positive scale divides the elapsed physical time. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open Set Function |
| 15 | open scoped Manifold ContDiff Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.EpochExtension.Spacetime |
| 20 | |
| 21 | noncomputable def cylinderPhysicalInterval (a q : ℝ) (hq : 0 < q) |
| 22 | (J : SpacetimeInterval) : SpacetimeInterval where |
| 23 | domain := parabolicTimeInv q a '' J.domain |
| 24 | ordConnected := by |
| 25 | let : J.domain.OrdConnected := J.ordConnected |
| 26 | exact Set.ordConnected_image (parabolicTimeOrderIso q hq a).symm |
| 27 | nontrivial := J.nontrivial.image (parabolicTimeOrderIso q hq a).symm.injective |
| 28 | |
| 29 | theorem cylinderClock_mem (a q : ℝ) (hq : 0 < q) (J : SpacetimeInterval) |
| 30 | (t : (cylinderPhysicalInterval a q hq J).domain) : |
| 31 | parabolicTime q a t.val ∈ J.domain := by |
| 32 | obtain ⟨s, hs, ht⟩ := t.property |
| 33 | rw [← ht, parabolicTime_parabolicTimeInv q hq] |
| 34 | exact hs |
| 35 | |
| 36 | /-- The inverse clock maps physical time back to the supplied raw parameter. -/ |
| 37 | noncomputable def cylinderClockHomeomorph (a q : ℝ) (hq : 0 < q) (J : SpacetimeInterval) : |
| 38 | (cylinderPhysicalInterval a q hq J).domain ≃ₜ J.domain where |
| 39 | toFun t := ⟨parabolicTime q a t.val, cylinderClock_mem a q hq J t⟩ |
| 40 | invFun s := ⟨parabolicTimeInv q a s.val, ⟨s.val, s.property, rfl⟩⟩ |
| 41 | left_inv t := Subtype.ext (parabolicTimeInv_parabolicTime q hq a t.val) |
| 42 | right_inv s := Subtype.ext (parabolicTime_parabolicTimeInv q hq a s.val) |
| 43 | continuous_toFun := by unfold parabolicTime; fun_prop |
| 44 | continuous_invFun := by unfold parabolicTimeInv; fun_prop |
| 45 | |
| 46 | variable {F : GeneralizedRicciFlowData.{u}} |
| 47 | (R : GeneralizedFlowCarrierConclusionWithInterval (flowBoxAtlas F)) |
| 48 | {C : GeneralizedSliceCarrier.{u}} {a q : ℝ} {J : SpacetimeInterval} |
| 49 | {U : TopologicalSpace.Opens C.carrier} |
| 50 | (e : GeneralizedFlowCylinder F C a q J.domain U) |
| 51 | |
| 52 | noncomputable def rawCylinderMap |
| 53 | (p : (R.timeIntervals.interval (cylinderPhysicalInterval a q e.scale_pos J)).Point × U) : |
| 54 | R.spacetime.Point := |
| 55 | e.pointMap (cylinderClockHomeomorph a q e.scale_pos J p.1).val |
| 56 | (cylinderClockHomeomorph a q e.scale_pos J p.1).property p.2.val |
| 57 | |
| 58 | theorem rawCylinderMap_time |
| 59 | (p : (R.timeIntervals.interval (cylinderPhysicalInterval a q e.scale_pos J)).Point × U) : |
| 60 | R.spacetime.timeFunction (rawCylinderMap R e p) = p.1.val := |
| 61 | parabolicTimeInv_parabolicTime q e.scale_pos a p.1.val |
| 62 | |
| 63 | theorem rawCylinderMap_embedding : Topology.IsEmbedding (rawCylinderMap R e) := |
| 64 | e.embedding.comp ((cylinderClockHomeomorph a q e.scale_pos J).isEmbedding.prodMap |
| 65 | Topology.IsEmbedding.id) |
| 66 | |
| 67 | theorem rawCylinderMap_at_parameter (s : J.domain) (x : U) : |
| 68 | rawCylinderMap R e ((cylinderClockHomeomorph a q e.scale_pos J).symm s, x) = |
| 69 | e.pointMap s.val s.property x.val := by |
| 70 | unfold rawCylinderMap |
| 71 | simp only [Homeomorph.apply_symm_apply] |
| 72 | |
| 73 | end PoincareMT.EpochExtension.Spacetime |