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.AncientKappa.Compactness.LocalBounds.Sequence |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.LocalBounds.BackwardVolume |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Interior |
| 4 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Inheritance |
| 5 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Preservation |
| 6 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Completeness |
| 7 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.VolumeBounds |
| 8 | |
| 9 | /-! |
| 10 | # The bounded auxiliary limit in local curvature control |
| 11 | |
| 12 | Uniform bounds on expanding terminal balls pass to the same raw interior |
| 13 | limit at every point and time. The resulting global bound transfers |
| 14 | completeness from its reference slice to all interior slices. No ancient |
| 15 | kappa-solution structure is assumed on the limit. |
| 16 | |
| 17 | Reference: Morgan--Tian Corollary 9.62 and Lemma 9.65, pp. 223-227; |
| 18 | Kleiner--Lott Appendix E, Corollary E.2, pp. 2848-2849. |
| 19 | -/ |
| 20 | |
| 21 | set_option autoImplicit false |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | |
| 24 | open Set Filter |
| 25 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 26 | |
| 27 | namespace PoincareMT.NormalizedKappaSolutionSequence |
| 28 | |
| 29 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 30 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 31 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 32 | |
| 33 | local instance localBoundsLimitCarrierConnected (C : FlowCarrier 3) : ConnectedSpace C.carrier := |
| 34 | connectedSpace_iff_univ.mpr C.connected |
| 35 | |
| 36 | variable {kappa : ℝ} (S : NormalizedKappaSolutionSequence kappa) |
| 37 | |
| 38 | /-- A scalar buffer at any fixed negative source time survives on the same |
| 39 | interior limit, using the retained time-independent spatial embeddings. -/ |
| 40 | theorem interiorLimit_base_curvatureTensorNorm_pos_of_scalar_buffer |
| 41 | (G : AncientPointedGeometricConvergence (fun k ↦ (S.term k).carrier) |
| 42 | (fun k t ↦ (S.term k).flow.flow.metric (t - 1)) (fun k ↦ (S.term k).base) 1) |
| 43 | {s c : ℝ} (hs : s < 1) (hc : 0 < c) |
| 44 | (hscalar : ∀ᶠ k in atTop, |
| 45 | c ≤ ((S.term k).flow.flow.connection (s - 1)).scalarCurvature (S.term k).base) : |
| 46 | 0 < (G.limitFlow.connection s).curvatureTensorNorm G.base := by |
| 47 | obtain ⟨a, b, ha, hb, hb1, hsw⟩ := exists_ancient_window_of_isCompact |
| 48 | (by norm_num : (0 : ℝ) < 1) isCompact_singleton (singleton_subset_iff.mpr hs) |
| 49 | let Fseq (k : ℕ) : RicciFlow 3 (S.term k).carrier.carrier |
| 50 | ((fun t : ℝ ↦ t - 1) ⁻¹' Iic 0) := |
| 51 | (S.term k).flow.flow.bufferedExpandingFlow 1 |
| 52 | have hsub (k : ℕ) : Ioo a b ⊆ (fun t : ℝ ↦ t - 1) ⁻¹' Iic 0 := by |
| 53 | intro t ht |
| 54 | change t - 1 ≤ 0 |
| 55 | linarith [ht.2] |
| 56 | let W := G.window Fseq (ha.trans hb) hb1.le 0 (fun k ↦ hsub (G.subsequence (k + 0))) |
| 57 | have hconv := W.tendsto_curvatureTensorNorm s (hsw (mem_singleton s)) G.base |
| 58 | change Tendsto (fun k ↦ ((S.term (G.subsequence (k + 0))).flow.flow.connection (s - 1)).curvatureTensorNorm |
| 59 | (G.embedding (k + 0) G.base)) atTop |
| 60 | (𝓝 ((G.limitFlow.connection s).curvatureTensorNorm G.base)) at hconv |
| 61 | simp only [Nat.add_zero, G.base_preserving] at hconv |
| 62 | have htrace : c ≤ 9 * (G.limitFlow.connection s).curvatureTensorNorm G.base := by |
| 63 | apply ge_of_tendsto (tendsto_const_nhds.mul hconv (a := (9 : ℝ))) |
| 64 | filter_upwards [G.subsequence_strictMono.tendsto_atTop.eventually hscalar] with k hk |
| 65 | exact hk.trans ((le_abs_self _).trans (by |
| 66 | simpa only [Nat.cast_ofNat, show (3 : ℝ) ^ 2 = 9 by norm_num] using ((S.term (G.subsequence k)).flow.flow.connection (s - 1)).abs_scalarCurvature_le_curvatureTensorNorm |
| 67 | (S.term (G.subsequence k)).base)) |
| 68 | linarith |
| 69 | |
| 70 | /-- Construct one complete bounded raw ancient limit directly from eventual |
| 71 | uniform terminal-ball bounds on the actual normalized source solutions. -/ |
| 72 | theorem exists_complete_bounded_interior_geometric_limit |
| 73 | (P : M23NormalizedKappaCompactnessPredecessors) {B : ℝ} (hB : 0 ≤ B) |
| 74 | (hbound : ∀ r : ℝ, 0 < r → ∀ᶠ k in atTop, |
| 75 | ∀ t : ℝ, t ≤ 0 → ∀ x ∈ ((S.term k).flow.flow.metric 0).ball (S.term k).base r, |
| 76 | |((S.term k).flow.flow.connection t).curvatureTensorNorm x| ≤ B) : |
| 77 | ∃ G : AncientPointedGeometricConvergence (fun k ↦ (S.term k).carrier) |
| 78 | (fun k t ↦ (S.term k).flow.flow.metric (t - 1)) (fun k ↦ (S.term k).base) 1, |
| 79 | (∀ t ∈ Iio 1, G.limitCarrier.metricComplete (G.limitFlow.metric t)) ∧ |
| 80 | (∀ t ∈ Iio 1, ∀ x : G.limitCarrier.carrier, |
| 81 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ B) ∧ |
| 82 | ∀ t ∈ Iio 1, ∀ x : G.limitCarrier.carrier, |
| 83 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x := by |
| 84 | have hcontrol := S.allTimeCurvatureControl_of_eventually P (fun r hr ↦ ⟨B, hB, hbound r hr⟩) |
| 85 | obtain ⟨G, hcomplete⟩ := S.exists_complete_interior_geometric_limit P hcontrol |
| 86 | let Fseq (k : ℕ) : RicciFlow 3 (S.term k).carrier.carrier |
| 87 | ((fun t : ℝ ↦ t - 1) ⁻¹' Iic 0) := |
| 88 | (S.term k).flow.flow.bufferedExpandingFlow 1 |
| 89 | have htime : ∀ a b : ℝ, b < 1 → ∀ᶠ k : ℕ in atTop, |
| 90 | Icc a b ⊆ (fun t : ℝ ↦ t - 1) ⁻¹' Iic 0 := by |
| 91 | intro a b hb |
| 92 | exact Eventually.of_forall fun k t ht ↦ by |
| 93 | change t - 1 ≤ 0 |
| 94 | linarith [ht.2] |
| 95 | have hnorm : ∀ t ∈ Iio 1, ∀ x : G.limitCarrier.carrier, |
| 96 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ B := by |
| 97 | apply G.curvatureTensorNorm_le_of_uniform_ball_bound Fseq (by norm_num) htime |
| 98 | intro a b hb r hr |
| 99 | filter_upwards [hbound r hr] with k hk t ht x hx |
| 100 | have ht0 : t - 1 ≤ 0 := by linarith [ht.2] |
| 101 | have hx0 := P.ball_monotone (S.term k).carrier.carrier (S.term k).flow |
| 102 | (t - 1) 0 ht0 le_rfl (S.term k).base r hx |
| 103 | exact (le_abs_self _).trans (hk (t - 1) ht0 x hx0) |
| 104 | refine ⟨G, ?_, hnorm, ?_⟩ |
| 105 | · exact S.interiorLimit_complete G P hcontrol hcomplete |
| 106 | · exact S.interiorLimit_nonnegativeCurvatureOperator G |
| 107 | |
| 108 | /-- The auxiliary raw limit retains positive volume ratios at the complete |
| 109 | reference slice. Terminal volume transfer and convergence use the same |
| 110 | source sequence and the same chosen interior limit. -/ |
| 111 | theorem exists_complete_bounded_positive_volume_interior_limit |
| 112 | (P : M23NormalizedKappaCompactnessPredecessors) {B ν : ℝ} (hB : 0 ≤ B) |
| 113 | (hbound : ∀ r : ℝ, 0 < r → ∀ᶠ k in atTop, |
| 114 | ∀ t : ℝ, t ≤ 0 → ∀ x ∈ ((S.term k).flow.flow.metric 0).ball (S.term k).base r, |
| 115 | |((S.term k).flow.flow.connection t).curvatureTensorNorm x| ≤ B) |
| 116 | (hvolume : ∀ r : ℝ, 0 < r → ∀ᶠ k in atTop, |
| 117 | ENNReal.ofReal (ν * r ^ 3) ≤ calibratedMetricVolume ((S.term k).flow.flow.metric 0) |
| 118 | (((S.term k).flow.flow.metric 0).ball (S.term k).base r)) : |
| 119 | ∃ G : AncientPointedGeometricConvergence (fun k ↦ (S.term k).carrier) |
| 120 | (fun k t ↦ (S.term k).flow.flow.metric (t - 1)) (fun k ↦ (S.term k).base) 1, |
| 121 | (∀ t ∈ Iio 1, G.limitCarrier.metricComplete (G.limitFlow.metric t)) ∧ |
| 122 | (∀ t ∈ Iio 1, ∀ x : G.limitCarrier.carrier, |
| 123 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ B) ∧ |
| 124 | (∀ t ∈ Iio 1, ∀ x : G.limitCarrier.carrier, |
| 125 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x) ∧ |
| 126 | ∀ r : ℝ, 0 < r → ENNReal.ofReal ((ν / Real.exp (27 * B) ^ 6) * r ^ 3) ≤ |
| 127 | calibratedMetricVolume (G.limitFlow.metric 0) ((G.limitFlow.metric 0).ball G.base r) := by |
| 128 | obtain ⟨G, hcomplete, hnorm, hoperator⟩ := |
| 129 | S.exists_complete_bounded_interior_geometric_limit P hB hbound |
| 130 | refine ⟨G, hcomplete, hnorm, hoperator, ?_⟩ |
| 131 | let Fseq (k : ℕ) : RicciFlow 3 (S.term k).carrier.carrier |
| 132 | ((fun t : ℝ ↦ t - 1) ⁻¹' Iic 0) := |
| 133 | (S.term k).flow.flow.bufferedExpandingFlow 1 |
| 134 | have htime : ∀ a b : ℝ, b < 1 → ∀ᶠ k : ℕ in atTop, |
| 135 | Icc a b ⊆ (fun t : ℝ ↦ t - 1) ⁻¹' Iic 0 := by |
| 136 | intro a b hb |
| 137 | exact Eventually.of_forall fun k t ht ↦ by |
| 138 | change t - 1 ≤ 0 |
| 139 | linarith [ht.2] |
| 140 | have hvol := G.ball_volume_lower_bound_of_metricComplete_zero Fseq (by norm_num) |
| 141 | htime (hcomplete 0 (by norm_num)) (ν / Real.exp (27 * B) ^ 6) (by |
| 142 | intro r hr |
| 143 | have hv := S.eventually_earlier_ball_volume_lower_bound |
| 144 | (by norm_num : (0 : ℝ) ≤ 1) hbound hvolume r hr |
| 145 | filter_upwards [hv] with k hk |
| 146 | simpa only [Fseq, RicciFlow.bufferedExpandingFlow_metric, zero_sub, mul_one, |
| 147 | calibratedMetricVolume_eq_volumeMeasure] using hk) |
| 148 | intro r hr |
| 149 | rw [calibratedMetricVolume_eq_volumeMeasure] |
| 150 | exact hvol r hr |
| 151 | |
| 152 | end PoincareMT.NormalizedKappaSolutionSequence |