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.Blowup.Construction.PartialLimits.PointedCompactnessInput |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.PartialLimits.FiniteSourcePullback |
| 3 | import PoincareLib.Geometry.RicciFlow.TimeTranslation |
| 4 | import Mathlib.Topology.Instances.ENNReal.Lemmas |
| 5 | |
| 6 | /-! |
| 7 | # Expanding source flows on one reference sequence |
| 8 | |
| 9 | A short common restriction constructs the frozen pointed hypotheses and |
| 10 | based diffeomorphisms. Pulling back the original wide flows and translating |
| 11 | their clocks retains the same total reference metrics without reindexing. |
| 12 | Every fixed closed window has one earlier-window curvature bound. |
| 13 | This supplies the source inputs in Morgan--Tian Definition 5.12, |
| 14 | Proposition 5.14 and Theorem 5.15, pp. 90-92, and Theorem 11.8, p. 272. |
| 15 | See the independently reviewed expanding-reference-source-family derivation. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set Filter |
| 22 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.M30 |
| 27 | |
| 28 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 29 | FlowCarrier.isManifold |
| 30 | |
| 31 | /-- One actual expanding source family gives a common pointed reference, |
| 32 | literal translated pullbacks, and fixed-window global curvature bounds |
| 33 | (Morgan--Tian Definition 5.12, Proposition 5.14 and Theorem 5.15, |
| 34 | pp. 90-92, and Theorem 11.8, p. 272). -/ |
| 35 | theorem exists_expanding_reference_source_family |
| 36 | {T0 : ℝ≥0∞} (T B : ℕ → ℝ) |
| 37 | (hT : ∀ k, 0 < T k ∧ ENNReal.ofReal (T k) < T0) |
| 38 | (hTmono : Monotone T) |
| 39 | (hcofinal : ∀ s : ℝ, ENNReal.ofReal s < T0 → |
| 40 | ∀ᶠ k in atTop, s < T k) |
| 41 | {rho v : ℝ} (hrho : 0 < rho) (hv : 0 < v) |
| 42 | (N : ℕ → Type u) |
| 43 | [∀ k, TopologicalSpace (N k)] |
| 44 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin 3)) (N k)] |
| 45 | [∀ k, IsManifold (𝓡 3) ∞ (N k)] |
| 46 | [∀ k, T3Space (N k)] [∀ k, SecondCountableTopology (N k)] |
| 47 | [∀ k, ConnectedSpace (N k)] |
| 48 | [∀ k, MeasurableSpace (N k)] [∀ k, BorelSpace (N k)] |
| 49 | (O : ∀ k, RicciFlow 3 (N k) (Icc (-(T k)) 0)) |
| 50 | (p : ∀ k, N k) |
| 51 | (hcurv : ∀ j k, j ≤ k → ∀ s ∈ Icc (-(T j)) 0, ∀ x : N k, |
| 52 | ((O k).connection s).curvatureTensorNorm x ≤ B j) |
| 53 | (hvolume : ∀ᶠ k in atTop, ENNReal.ofReal v ≤ |
| 54 | ((O k).metric 0).volumeMeasure (((O k).metric 0).ball (p k) rho)) |
| 55 | (hcompact : ∀ A : ℝ, 0 < A → ∀ᶠ k in atTop, |
| 56 | IsCompact (closure (((O k).metric 0).ball (p k) A))) : |
| 57 | let theta : ℝ := min 1 (T 0 / 2) |
| 58 | let r : ℝ := theta / 2 |
| 59 | let J : ℕ → Set ℝ := fun k => Icc (r - T k) r |
| 60 | let W : Set ℝ := {t | t < r ∧ ENNReal.ofReal (r - t) < T0} |
| 61 | (0 < theta ∧ theta ≤ 1 ∧ theta < T 0) ∧ |
| 62 | IsOpen W ∧ W.OrdConnected ∧ Ioo (-theta / 2) (theta / 2) ⊆ W ∧ |
| 63 | ∃ Href : PointedRicciFlowCompactnessHypotheses 3 (-theta / 2) (theta / 2), |
| 64 | ∃ e : ∀ k, (Href.sequence.carrier k).carrier ≃ₘ⟮𝓡 3, 𝓡 3⟯ N k, |
| 65 | (∀ k, e k (Href.sequence.flow k).base = p k) ∧ |
| 66 | let Fseq : ∀ k, |
| 67 | RicciFlow 3 (Href.sequence.carrier k).carrier (J k) := fun k => |
| 68 | ((O k).pullbackDiffeomorph (e k)).translate (-r) |
| 69 | (by |
| 70 | rintro _ ⟨t, ht, rfl⟩ |
| 71 | exact ⟨by linarith [ht.1], by linarith [ht.2]⟩) |
| 72 | ordConnected_Icc |
| 73 | (by |
| 74 | refine ⟨r - T k, ⟨le_rfl, ?_⟩, r, ⟨?_, le_rfl⟩, ?_⟩ |
| 75 | all_goals linarith [(hT k).1]) |
| 76 | (∀ k, (Fseq k).metric = (Href.sequence.flow k).flow.metric) ∧ |
| 77 | ∀ a b : ℝ, Icc a b ⊆ W → |
| 78 | ∃ j : ℕ, 0 ≤ B j ∧ ∀ k, j ≤ k → |
| 79 | Icc a b ⊆ J k ∧ |
| 80 | ∀ t ∈ Icc a b, ∀ x : (Href.sequence.carrier k).carrier, |
| 81 | ((Fseq k).connection t).curvatureTensorNorm x ≤ B j := by |
| 82 | classical |
| 83 | dsimp only |
| 84 | let theta : ℝ := min 1 (T 0 / 2) |
| 85 | let r : ℝ := theta / 2 |
| 86 | let W : Set ℝ := {t | t < r ∧ ENNReal.ofReal (r - t) < T0} |
| 87 | have htheta : 0 < theta := lt_min zero_lt_one (half_pos (hT 0).1) |
| 88 | have htheta1 : theta ≤ 1 := min_le_left _ _ |
| 89 | have hthetaT : theta < T 0 := |
| 90 | (min_le_right _ _).trans_lt (half_lt_self (hT 0).1) |
| 91 | have hthetak (k : ℕ) : theta ≤ T k := |
| 92 | hthetaT.le.trans (hTmono (Nat.zero_le k)) |
| 93 | have hshort (k : ℕ) : Icc (-theta) 0 ⊆ Icc (-(T k)) 0 := by |
| 94 | intro t ht |
| 95 | exact ⟨(neg_le_neg (hthetak k)).trans ht.1, ht.2⟩ |
| 96 | have hshortne : (Icc (-theta) 0).Nontrivial := by |
| 97 | refine ⟨-theta, ⟨le_rfl, by linarith⟩, 0, ⟨by linarith, le_rfl⟩, ?_⟩ |
| 98 | linarith |
| 99 | let Oshort (k : ℕ) : RicciFlow 3 (N k) (Icc (-theta) 0) := |
| 100 | Poincare.Geometry.RicciFlow.Harnack.restrictFlow |
| 101 | (O k) (hshort k) ordConnected_Icc hshortne |
| 102 | have hcurvShort (k : ℕ) (t : ℝ) (ht : t ∈ Icc (-theta) 0) (x : N k) : |
| 103 | ((Oshort k).connection t).curvatureTensorNorm x ≤ B 0 := |
| 104 | hcurv 0 k (Nat.zero_le k) t |
| 105 | ⟨(neg_le_neg hthetaT.le).trans ht.1, ht.2⟩ x |
| 106 | obtain ⟨Href, hHref⟩ := |
| 107 | exists_pointedCompactnessHypotheses_of_finite_source_family |
| 108 | htheta hrho hv N Oshort p hcurvShort hvolume hcompact |
| 109 | choose e heBase heMetric using hHref |
| 110 | have hmetricPull (k : ℕ) (t : ℝ) : |
| 111 | ((O k).pullbackDiffeomorph (e k)).metric t = |
| 112 | (Href.sequence.flow k).flow.metric (t + theta / 2) := |
| 113 | pullback_source_metric_eq_shifted_pointed_metric Href.sequence Oshort e heMetric k t |
| 114 | have hWopen : IsOpen W := by |
| 115 | change IsOpen (Iio r ∩ (fun t : ℝ => ENNReal.ofReal (r - t)) ⁻¹' Iio T0) |
| 116 | exact isOpen_Iio.inter (isOpen_Iio.preimage |
| 117 | (ENNReal.continuous_ofReal.comp (continuous_const.sub continuous_id))) |
| 118 | have hWord : W.OrdConnected := by |
| 119 | refine ⟨?_⟩ |
| 120 | intro x hx y hy z hz |
| 121 | exact ⟨hz.2.trans_lt hy.1, |
| 122 | (ENNReal.ofReal_le_ofReal (sub_le_sub_left hz.1 r)).trans_lt hx.2⟩ |
| 123 | have hwindow : Ioo (-theta / 2) (theta / 2) ⊆ W := by |
| 124 | intro t ht |
| 125 | refine ⟨ht.2, ?_⟩ |
| 126 | have hrt : r - t ≤ T 0 := by dsimp [r]; linarith [ht.1] |
| 127 | exact (ENNReal.ofReal_le_ofReal hrt).trans_lt (hT 0).2 |
| 128 | have hB (j : ℕ) : 0 ≤ B j := by |
| 129 | have hnonneg : 0 ≤ ((O j).connection 0).curvatureTensorNorm (p j) := |
| 130 | Real.sqrt_nonneg _ |
| 131 | exact hnonneg.trans (hcurv j j le_rfl 0 ⟨by linarith [(hT j).1], le_rfl⟩ (p j)) |
| 132 | refine ⟨⟨htheta, htheta1, hthetaT⟩, hWopen, hWord, hwindow, Href, e, heBase, ?_, ?_⟩ |
| 133 | · intro k |
| 134 | funext t |
| 135 | change ((O k).pullbackDiffeomorph (e k)).metric (t + -r) = |
| 136 | (Href.sequence.flow k).flow.metric t |
| 137 | rw [hmetricPull] |
| 138 | congr 1 |
| 139 | dsimp [r] |
| 140 | ring |
| 141 | · intro a b hab |
| 142 | by_cases hab' : a ≤ b |
| 143 | · have ha : a ∈ W := hab ⟨le_rfl, hab'⟩ |
| 144 | have hb : b < r := (hab ⟨hab', le_rfl⟩).1 |
| 145 | obtain ⟨j, hj⟩ := (hcofinal (r - a) ha.2).exists |
| 146 | refine ⟨j, hB j, ?_⟩ |
| 147 | intro k hjk |
| 148 | constructor |
| 149 | · intro t ht |
| 150 | change t ∈ Icc (r - T k) r |
| 151 | exact ⟨by linarith [hTmono hjk, ht.1], ht.2.trans hb.le⟩ |
| 152 | · intro t ht x |
| 153 | change (((O k).pullbackDiffeomorph (e k)).connection |
| 154 | (t + -r)).curvatureTensorNorm x ≤ B j |
| 155 | rw [RicciFlow.pullbackDiffeomorph_curvatureTensorNorm] |
| 156 | exact hcurv j k hjk (t + -r) |
| 157 | ⟨by linarith [ht.1], by linarith [ht.2]⟩ (e k x) |
| 158 | · refine ⟨0, hB 0, fun k _ => ⟨?_, ?_⟩⟩ |
| 159 | · intro t ht |
| 160 | exact (hab' (ht.1.trans ht.2)).elim |
| 161 | · intro t ht x |
| 162 | exact (hab' (ht.1.trans ht.2)).elim |
| 163 | |
| 164 | end PoincareMT.M30 |