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.InitialValueContinuation |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.InitialValue.InitialDomain |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Domain.MaximalCoherence |
| 4 | |
| 5 | /-! |
| 6 | # Relative time openness and smoothness on actual survival slices |
| 7 | |
| 8 | Morgan-Tian Definition 6.17 and Lemma 6.18, pp. 113-114. |
| 9 | Actual continuation and prefix restriction give relative physical |
| 10 | openness for each fixed initial vector. Coherence with actual square |
| 11 | paths gives time smoothness, including every closed physical endpoint. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M14 |
| 22 | |
| 23 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 24 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 25 | {T : ℝ} {x : G.Point} |
| 26 | |
| 27 | /-- The survival times of each fixed initial vector contain a |
| 28 | relative physical neighborhood of every surviving time, including |
| 29 | zero and physical endpoints, Lemma 6.18, pp. 113-114. -/ |
| 30 | theorem initialValueDomain_time_mem_nhdsWithin |
| 31 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 32 | (hbase : G.spacetime.timeFunction x = T) {Z : G.Horizontal x} {s : ℝ} |
| 33 | (hs : (Z, s) ∈ initialValueDomain G T x) : |
| 34 | {t | (Z, t) ∈ initialValueDomain G T x} ∈ |
| 35 | 𝓝[{t | 0 ≤ t ∧ T - t ^ 2 ∈ I.domain}] s := by |
| 36 | rcases eq_or_lt_of_le (initialValueDomain_nonneg hs) with hs₀ | hs₀ |
| 37 | · subst s |
| 38 | obtain ⟨U, hU, hZU, hsub⟩ := initialValueDomain_zero_relative_open hM04 hM12 hbase Z |
| 39 | have hnear : {r : ℝ | (Z, r) ∈ U} ∈ 𝓝 0 := |
| 40 | (hU.preimage (continuous_const.prodMk continuous_id)).mem_nhds hZU |
| 41 | filter_upwards [mem_nhdsWithin_of_mem_nhds hnear, self_mem_nhdsWithin] with r hr htime |
| 42 | exact hsub ⟨hr, htime⟩ |
| 43 | · obtain ⟨y, ⟨P⟩⟩ := (initialValueDomain_positive_iff hs₀).mp hs |
| 44 | obtain ⟨r, hsr, hnear, z, Q, _⟩ := |
| 45 | exists_initialValuePath_extension_neighborhood hM04 hM12 P |
| 46 | rw [Real.sqrt_sq hs₀.le] at hsr hnear |
| 47 | filter_upwards [hnear] with t ht |
| 48 | exact initialValueDomain_prefix (Or.inr ⟨hs₀.trans_le hsr, z, ⟨Q⟩⟩) ht.1 ht.2 |
| 49 | |
| 50 | /-- The actual selected curve is smooth in square time within its |
| 51 | entire survival slice. This is time regularity only; joint initial |
| 52 | vector regularity is a separate part of Lemma 6.18, pp. 113-114. -/ |
| 53 | theorem initialValueCurve_time_contMDiffOn |
| 54 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 55 | (hbase : G.spacetime.timeFunction x = T) (Z : G.Horizontal x) : |
| 56 | ContMDiffOn (𝓘(ℝ, ℝ)) (spacetimeModel n) ∞ (initialValueCurve G T x Z) |
| 57 | {s | (Z, s) ∈ initialValueDomain G T x} := by |
| 58 | have hreal {r : ℝ} (hr : 0 < r) {y : G.Point} |
| 59 | (P : M14SquareRootInitialValuePath G T (r ^ 2) x y Z) : |
| 60 | ContMDiffOn (𝓘(ℝ, ℝ)) (spacetimeModel n) ∞ (initialValueCurve G T x Z) (Icc 0 r) := by |
| 61 | have hC : M14SqrtParameterInterval 0 (r ^ 2) = Icc 0 r := by |
| 62 | rw [M14SqrtParameterInterval, Real.sqrt_zero, Real.sqrt_sq hr.le] |
| 63 | have h := (P.square_path.smooth.mono P.square_path.interval_subset).congr |
| 64 | (initialValueCurve_eqOn_square hM04 hM12 P) |
| 65 | rwa [hC] at h |
| 66 | intro s hs |
| 67 | rcases eq_or_lt_of_le (initialValueDomain_nonneg hs) with hs₀ | hs₀ |
| 68 | · subst s |
| 69 | by_cases hpos : ∃ r : ℝ, 0 < r ∧ (Z, r) ∈ initialValueDomain G T x |
| 70 | · obtain ⟨r, hr, hsurv⟩ := hpos |
| 71 | obtain ⟨y, ⟨P⟩⟩ := (initialValueDomain_positive_iff hr).mp hsurv |
| 72 | have hnear : Icc 0 r ∈ 𝓝[{t | (Z, t) ∈ initialValueDomain G T x}] 0 := by |
| 73 | filter_upwards [self_mem_nhdsWithin, |
| 74 | mem_nhdsWithin_of_mem_nhds (Iio_mem_nhds hr)] with t ht htr |
| 75 | exact ⟨initialValueDomain_nonneg ht, htr.le⟩ |
| 76 | exact ((hreal hr P) 0 ⟨le_rfl, hr.le⟩).mono_of_mem_nhdsWithin hnear |
| 77 | · have heq : EqOn (initialValueCurve G T x Z) (fun _ => x) |
| 78 | {t | (Z, t) ∈ initialValueDomain G T x} := by |
| 79 | intro t ht |
| 80 | have ht₀ : t = 0 := le_antisymm |
| 81 | (le_of_not_gt (fun h => hpos ⟨t, h, ht⟩)) (initialValueDomain_nonneg ht) |
| 82 | rw [ht₀, initialValueCurve_zero] |
| 83 | exact (contMDiffOn_const (c := x)).congr heq 0 hs |
| 84 | · obtain ⟨y, ⟨P⟩⟩ := (initialValueDomain_positive_iff hs₀).mp hs |
| 85 | obtain ⟨r, hsr, hnear, _, Q, _⟩ := |
| 86 | exists_initialValuePath_extension_neighborhood hM04 hM12 P |
| 87 | rw [Real.sqrt_sq hs₀.le] at hsr hnear |
| 88 | have hwithin : Icc 0 r ∈ 𝓝[{t | (Z, t) ∈ initialValueDomain G T x}] s := |
| 89 | nhdsWithin_mono s (fun _ ht => initialValueDomain_admissible hbase ht) hnear |
| 90 | exact ((hreal (hs₀.trans_le hsr) Q) s ⟨hs₀.le, hsr⟩).mono_of_mem_nhdsWithin hwithin |
| 91 | |
| 92 | end PoincareMT.M14 |