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.Generalized.ReducedGeometry.Exponential.InitialValue.InitialExistence |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Domain.MaximalDomain |
| 3 | |
| 4 | /-! |
| 5 | # Initial neighborhoods in the actual survival domain |
| 6 | |
| 7 | Morgan-Tian Definition 6.17 and Lemma 6.18, pp. 113-114. |
| 8 | An available backward clock interval in a compatible cylinder gives |
| 9 | a common positive survival interval for nearby initial vectors. Prefix |
| 10 | restriction turns it into relative openness at the zero-time pair. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M14 |
| 21 | |
| 22 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 23 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 24 | |
| 25 | /-- An earlier time in the actual gauge interval supplies a closed |
| 26 | positive square-time clock interval, Definition 3.38 and Lemma 6.18, |
| 27 | pp. 61, 113-114. -/ |
| 28 | theorem exists_gauge_squareClock_interval (b : G.gaugeCover.index) |
| 29 | (t₀ : (G.timeIntervals.interval (G.gaugeCover.interval b)).Point) |
| 30 | (hprev : ∃ a ∈ (G.gaugeCover.interval b).domain, a < t₀.val) : |
| 31 | ∃ smax : ℝ, 0 < smax ∧ |
| 32 | ∀ s ∈ Icc 0 smax, t₀.val - s ^ 2 ∈ (G.gaugeCover.interval b).domain := by |
| 33 | obtain ⟨a, ha, hat⟩ := hprev |
| 34 | refine ⟨Real.sqrt (t₀.val - a), Real.sqrt_pos.mpr (sub_pos.mpr hat), ?_⟩ |
| 35 | intro s hs |
| 36 | apply (G.gaugeCover.interval b).ordConnected.out ha t₀.property |
| 37 | have hsq := (sq_le_sq₀ hs.1 (Real.sqrt_nonneg (t₀.val - a))).mpr hs.2 |
| 38 | rw [Real.sq_sqrt (sub_nonneg.mpr hat.le)] at hsq |
| 39 | exact ⟨by linarith, sub_le_self _ (sq_nonneg s)⟩ |
| 40 | |
| 41 | /-- A compatible backward clock interval gives a whole initial-vector |
| 42 | neighborhood times a closed square-time interval in the actual |
| 43 | survival domain, Lemma 6.18, pp. 113-114. -/ |
| 44 | theorem initialValueDomain_initial_tube_in_gauge |
| 45 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 46 | (b : G.gaugeCover.index) |
| 47 | (t₀ : (G.timeIntervals.interval (G.gaugeCover.interval b)).Point) |
| 48 | (x₀ : G.gaugeCover.spatial b) |
| 49 | (Z : G.Horizontal ((G.gaugeCover.cylinder b).toSpacetime (t₀, x₀))) |
| 50 | {smax : ℝ} (hsmax : 0 < smax) |
| 51 | (htime : ∀ s ∈ Icc 0 smax, t₀.val - s ^ 2 ∈ (G.gaugeCover.interval b).domain) : |
| 52 | ∃ c : ℝ, 0 < c ∧ c ≤ smax ∧ |
| 53 | ∃ U : Set (G.Horizontal ((G.gaugeCover.cylinder b).toSpacetime (t₀, x₀))), |
| 54 | IsOpen U ∧ Z ∈ U ∧ U ×ˢ Icc 0 c ⊆ |
| 55 | initialValueDomain G t₀.val ((G.gaugeCover.cylinder b).toSpacetime (t₀, x₀)) := by |
| 56 | have hCoordinates := hM12.coordinate_gauges X time I G.spacetime G.slices |
| 57 | G.timeIntervals G.gaugeCover G.leafwise |
| 58 | obtain ⟨W⟩ := ordinaryGaugeWitness_nonempty b hCoordinates |
| 59 | obtain ⟨c, hc, hcmax, U, hU, hZU, hpath⟩ := |
| 60 | exists_localInitialValuePath_neighborhood_in_gauge hM04 hM12 b W t₀ x₀ Z hsmax htime |
| 61 | refine ⟨c, hc, hcmax, U, hU, hZU, ?_⟩ |
| 62 | intro z hz |
| 63 | exact initialValueDomain_prefix |
| 64 | ((initialValueDomain_positive_iff hc).mpr (hpath z.1 hz.1)) hz.2.1 hz.2.2 |
| 65 | |
| 66 | /-- An actual available backward clock interval gives the relative |
| 67 | openness condition at the zero-time pair, Lemma 6.18, pp. 113-114. -/ |
| 68 | theorem initialValueDomain_zero_relative_open_in_gauge |
| 69 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 70 | (b : G.gaugeCover.index) |
| 71 | (t₀ : (G.timeIntervals.interval (G.gaugeCover.interval b)).Point) |
| 72 | (x₀ : G.gaugeCover.spatial b) |
| 73 | (Z : G.Horizontal ((G.gaugeCover.cylinder b).toSpacetime (t₀, x₀))) |
| 74 | (hprev : ∃ a ∈ (G.gaugeCover.interval b).domain, a < t₀.val) : |
| 75 | ∃ U : Set (G.Horizontal ((G.gaugeCover.cylinder b).toSpacetime (t₀, x₀)) × ℝ), |
| 76 | IsOpen U ∧ (Z, 0) ∈ U ∧ |
| 77 | U ∩ M14AdmissibleParameter G t₀.val |
| 78 | ((G.gaugeCover.cylinder b).toSpacetime (t₀, x₀)) ⊆ |
| 79 | initialValueDomain G t₀.val ((G.gaugeCover.cylinder b).toSpacetime (t₀, x₀)) := by |
| 80 | obtain ⟨smax, hsmax, htime⟩ := exists_gauge_squareClock_interval b t₀ hprev |
| 81 | obtain ⟨c, hc, _, U, hU, hZU, htube⟩ := |
| 82 | initialValueDomain_initial_tube_in_gauge hM04 hM12 b t₀ x₀ Z hsmax htime |
| 83 | refine ⟨U ×ˢ Iio c, hU.prod isOpen_Iio, ⟨hZU, hc⟩, ?_⟩ |
| 84 | intro z hz |
| 85 | exact htube ⟨hz.1.1, hz.2.1, hz.1.2.le⟩ |
| 86 | |
| 87 | end PoincareMT.M14 |