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.Rescaling |
| 2 | |
| 3 | /-! |
| 4 | # Uniform bounds from expanding controlled balls |
| 5 | |
| 6 | Every individual ancient solution has a finite whole-past curvature bound. |
| 7 | This handles the finite exceptional prefix when point selection supplies |
| 8 | uniform control only eventually on each fixed terminal ball. |
| 9 | |
| 10 | Reference: Morgan--Tian Corollary 9.62 and Lemma 9.65, pp. 223-227. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | namespace BasedKappaSolution |
| 21 | |
| 22 | variable {kappa : ℝ} (B : BasedKappaSolution kappa) |
| 23 | |
| 24 | local instance sequenceTermTopologicalSpace : TopologicalSpace B.carrier.carrier := B.carrier.topologicalSpace |
| 25 | local instance sequenceTermMeasurableSpace : MeasurableSpace B.carrier.carrier := B.carrier.measurableSpace |
| 26 | local instance sequenceTermBorelSpace : BorelSpace B.carrier.carrier := B.carrier.borelSpace |
| 27 | local instance sequenceTermChartedSpace : ChartedSpace (EuclideanSpace ℝ (Fin 3)) B.carrier.carrier := |
| 28 | B.carrier.chartedSpace |
| 29 | local instance sequenceTermIsManifold : IsManifold (𝓡 3) ∞ B.carrier.carrier := B.carrier.isManifold |
| 30 | local instance sequenceTermT2Space : T2Space B.carrier.carrier := B.carrier.t2Space |
| 31 | local instance sequenceTermT3Space : T3Space B.carrier.carrier := B.carrier.t3Space |
| 32 | local instance sequenceTermSecondCountable : SecondCountableTopology B.carrier.carrier := B.carrier.secondCountable |
| 33 | local instance sequenceTermConnectedSpace : ConnectedSpace B.carrier.carrier := B.connectedSpace |
| 34 | |
| 35 | /-- Terminal boundedness and M16 give one full-curvature bound on the whole |
| 36 | past of each individual sequence term. -/ |
| 37 | theorem exists_whole_past_curvature_bound |
| 38 | (P : M23NormalizedKappaCompactnessPredecessors) : |
| 39 | ∃ C : ℝ, 0 ≤ C ∧ ∀ t : ℝ, t ≤ 0 → ∀ x : B.carrier.carrier, |
| 40 | |(B.flow.flow.connection t).curvatureTensorNorm x| ≤ C := by |
| 41 | obtain ⟨C, hC, hbound⟩ := B.flow.bounded_curvature 0 le_rfl |
| 42 | refine ⟨3 * C, by positivity, ?_⟩ |
| 43 | intro t ht x |
| 44 | rw [abs_of_nonneg (show 0 ≤ (B.flow.flow.connection t).curvatureTensorNorm x from |
| 45 | Real.sqrt_nonneg _)] |
| 46 | exact (P.past_norm_le_scalar B.carrier.carrier B.flow t 0 ht le_rfl x).trans |
| 47 | (((B.flow.flow.connection 0).scalarCurvature_le_curvatureTensorNorm_sharp x).trans |
| 48 | (mul_le_mul_of_nonneg_left ((le_abs_self _).trans (hbound x)) (by norm_num))) |
| 49 | |
| 50 | end BasedKappaSolution |
| 51 | |
| 52 | namespace NormalizedKappaSolutionSequence |
| 53 | |
| 54 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 55 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 56 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 57 | |
| 58 | local instance sequenceCarrierConnected (C : FlowCarrier 3) : ConnectedSpace C.carrier := |
| 59 | connectedSpace_iff_univ.mpr C.connected |
| 60 | |
| 61 | variable {kappa : ℝ} (S : NormalizedKappaSolutionSequence kappa) |
| 62 | |
| 63 | /-- Finite exceptional prefixes can be absorbed into fixed-radius constants |
| 64 | without discarding any term of the original varying-carrier sequence. -/ |
| 65 | theorem allTimeCurvatureControl_of_eventually |
| 66 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 67 | (heventual : ∀ r : ℝ, 0 < r → ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ k in atTop, |
| 68 | ∀ t : ℝ, t ≤ 0 → ∀ x : (S.term k).carrier.carrier, |
| 69 | x ∈ ((S.term k).flow.flow.metric 0).ball (S.term k).base r → |
| 70 | |((S.term k).flow.flow.connection t).curvatureTensorNorm x| ≤ C) : |
| 71 | M23AllTimeCurvatureControl S := by |
| 72 | classical |
| 73 | choose B hB hbound using fun k ↦ (S.term k).exists_whole_past_curvature_bound P |
| 74 | intro r hr |
| 75 | obtain ⟨C, hC, heventual⟩ := heventual r hr |
| 76 | obtain ⟨N, hN⟩ := eventually_atTop.mp heventual |
| 77 | refine ⟨C + ∑ j ∈ Finset.range N, B j, add_nonneg hC |
| 78 | (Finset.sum_nonneg fun j _ ↦ hB j), ?_⟩ |
| 79 | intro k |
| 80 | change ∀ t : ℝ, t ≤ 0 → ∀ x : (S.term k).carrier.carrier, |
| 81 | x ∈ ((S.term k).flow.flow.metric 0).ball (S.term k).base r → |
| 82 | |((S.term k).flow.flow.connection t).curvatureTensorNorm x| ≤ _ |
| 83 | intro t ht x hx |
| 84 | by_cases hk : N ≤ k |
| 85 | · exact (hN k hk t ht x hx).trans |
| 86 | (le_add_of_nonneg_right (Finset.sum_nonneg fun j _ ↦ hB j)) |
| 87 | · have hkN : k ∈ Finset.range N := Finset.mem_range.mpr (lt_of_not_ge hk) |
| 88 | exact (hbound k t ht x).trans |
| 89 | ((Finset.single_le_sum (fun j _ ↦ hB j) hkN).trans (le_add_of_nonneg_left hC)) |
| 90 | |
| 91 | /-- A uniform bound on terminal balls with radii tending to infinity supplies |
| 92 | the exact all-index local control needed for the common interior limit. -/ |
| 93 | theorem allTimeCurvatureControl_of_expanding_balls |
| 94 | (P : M23NormalizedKappaCompactnessPredecessors) (L : ℕ → ℝ) |
| 95 | (hL : Tendsto L atTop atTop) {C : ℝ} (hC : 0 ≤ C) |
| 96 | (hbound : ∀ k : ℕ, ∀ t : ℝ, t ≤ 0 → ∀ x : (S.term k).carrier.carrier, |
| 97 | x ∈ ((S.term k).flow.flow.metric 0).ball (S.term k).base (L k) → |
| 98 | |((S.term k).flow.flow.connection t).curvatureTensorNorm x| ≤ C) : |
| 99 | M23AllTimeCurvatureControl S := by |
| 100 | apply S.allTimeCurvatureControl_of_eventually P |
| 101 | intro r _ |
| 102 | refine ⟨C, hC, ?_⟩ |
| 103 | filter_upwards [hL.eventually_ge_atTop r] with k hk t ht x hx |
| 104 | exact hbound k t ht x (lt_of_lt_of_le hx (ENNReal.ofReal_le_ofReal hk)) |
| 105 | |
| 106 | end NormalizedKappaSolutionSequence |
| 107 | |
| 108 | section VaryingCarriers |
| 109 | |
| 110 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 111 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 112 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 113 | |
| 114 | local instance varyingSequenceCarrierConnected (C : FlowCarrier 3) : ConnectedSpace C.carrier := |
| 115 | connectedSpace_iff_univ.mpr C.connected |
| 116 | |
| 117 | /-- High curvature on balls with a fixed positive volume ratio constructs |
| 118 | the normalized varying-carrier sequence used in the volume-curvature |
| 119 | contradiction. Its uniform local bounds and eventual positive volume ratios |
| 120 | hold on the same terminal balls, with the original kappa retained. -/ |
| 121 | theorem m23_exists_controlled_sequence_of_unbounded_curvature_scale |
| 122 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 123 | (C : ℕ → FlowCarrier 3) (K : ∀ k, AncientKappaSolution 3 (C k).carrier) |
| 124 | {κ ν : ℝ} (hκ : 0 < κ) (hν : 0 ≤ ν) (hkappa : ∀ k, (K k).kappa = κ) |
| 125 | (p x : ∀ k, (C k).carrier) (r : ℕ → ℝ) (hr : ∀ k, 0 < r k) |
| 126 | (hx : ∀ k, x k ∈ ((K k).flow.metric 0).ball (p k) (r k)) |
| 127 | (hvolume : ∀ k, ENNReal.ofReal (ν * r k ^ 3) ≤ |
| 128 | calibratedMetricVolume ((K k).flow.metric 0) (((K k).flow.metric 0).ball (p k) (r k))) |
| 129 | (hscale : Tendsto (fun k ↦ r k ^ 2 * ((K k).flow.connection 0).scalarCurvature (x k)) |
| 130 | atTop atTop) : |
| 131 | ∃ S : NormalizedKappaSolutionSequence κ, |
| 132 | (∀ k, (S.term k).carrier = C k) ∧ M23AllTimeCurvatureControl S ∧ |
| 133 | (∀ a : ℝ, 0 < a → ∀ᶠ k in atTop, |
| 134 | ∀ t : ℝ, t ≤ 0 → ∀ y ∈ ((S.term k).flow.flow.metric 0).ball (S.term k).base a, |
| 135 | |((S.term k).flow.flow.connection t).curvatureTensorNorm y| ≤ 4) ∧ |
| 136 | ∀ a : ℝ, 0 < a → ∀ᶠ k in atTop, |
| 137 | ENNReal.ofReal ((ν / 27) * a ^ 3) ≤ |
| 138 | calibratedMetricVolume ((S.term k).flow.flow.metric 0) |
| 139 | (((S.term k).flow.flow.metric 0).ball (S.term k).base a) := by |
| 140 | classical |
| 141 | choose G q L hGk hLpos hLeq hnorm hbound hvol using fun k ↦ |
| 142 | m23_exists_normalized_controlled_rescaling P (K k) (p k) (x k) |
| 143 | (hr k) hν (hx k) (hvolume k) |
| 144 | let S : NormalizedKappaSolutionSequence κ := { |
| 145 | kappa_pos := hκ |
| 146 | term := fun k ↦ { |
| 147 | carrier := C k |
| 148 | connectedSpace := connectedSpace_iff_univ.mpr (C k).connected |
| 149 | flow := G k |
| 150 | base := q k |
| 151 | kappa_eq := (hGk k).trans (hkappa k) |
| 152 | scalar_normalized := hnorm k |
| 153 | } |
| 154 | } |
| 155 | have hL : Tendsto L atTop atTop := by |
| 156 | have h := (Real.tendsto_sqrt_atTop.comp hscale).atTop_div_const (by norm_num : (0 : ℝ) < 2) |
| 157 | convert h using 1 |
| 158 | ext k |
| 159 | rw [hLeq k, Function.comp_apply, Real.sqrt_mul (sq_nonneg (r k)), |
| 160 | Real.sqrt_sq (hr k).le] |
| 161 | refine ⟨S, fun _ ↦ rfl, ?_, ?_, ?_⟩ |
| 162 | · exact S.allTimeCurvatureControl_of_expanding_balls P L hL (by norm_num) hbound |
| 163 | · intro a _ |
| 164 | filter_upwards [hL.eventually_ge_atTop a] with k hk t ht y hy |
| 165 | exact hbound k t ht y (lt_of_lt_of_le hy (ENNReal.ofReal_le_ofReal hk)) |
| 166 | · intro a ha |
| 167 | filter_upwards [hL.eventually_ge_atTop a] with k hk |
| 168 | exact hvol k a ha hk |
| 169 | |
| 170 | end VaryingCarriers |
| 171 | |
| 172 | end PoincareMT |