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.Sequence |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.Cylinder |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Basic |
| 4 | import PoincareLib.Geometry.RicciFlow.Pinching.Definitions |
| 5 | |
| 6 | /-! |
| 7 | Adapted from Mapher `PoincareMT/Definitions/Ch11/BlowupLimits.lean` at |
| 8 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 9 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle ENNReal Topology BigOperators intervalIntegral |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | noncomputable def GeneralizedRicciFlowData.curvatureNorm |
| 21 | (F : GeneralizedRicciFlowData) (p : F.point) : ℝ := |
| 22 | (F.connection p.1).curvatureTensorNorm p.2 |
| 23 | |
| 24 | |
| 25 | def blowupBackwardInterval (T : ℝ≥0∞) : Set ℝ := |
| 26 | {t | t ≤ 0 ∧ ENNReal.ofReal (-t) < T} |
| 27 | |
| 28 | /-- A normalized complete limit with curvature bounded uniformly in space on |
| 29 | each compact time interval. In particular, the final slice is complete and |
| 30 | has globally bounded nonnegative curvature. -/ |
| 31 | structure BlowupLimitFlow (J : Set ℝ) where |
| 32 | carrier : FlowCarrier.{u} 3 |
| 33 | connectedSpace : @ConnectedSpace carrier.carrier carrier.topologicalSpace |
| 34 | base : carrier.carrier |
| 35 | flow : @RicciFlow 3 carrier.carrier carrier.topologicalSpace carrier.chartedSpace |
| 36 | carrier.isManifold J |
| 37 | zero_mem : 0 ∈ J |
| 38 | scalar_normalized : |
| 39 | letI : TopologicalSpace carrier.carrier := carrier.topologicalSpace |
| 40 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) carrier.carrier := carrier.chartedSpace |
| 41 | letI : IsManifold (𝓡 3) ∞ carrier.carrier := carrier.isManifold |
| 42 | (flow.connection 0).scalarCurvature base = 1 |
| 43 | complete : |
| 44 | letI : TopologicalSpace carrier.carrier := carrier.topologicalSpace |
| 45 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) carrier.carrier := carrier.chartedSpace |
| 46 | letI : IsManifold (𝓡 3) ∞ carrier.carrier := carrier.isManifold |
| 47 | ∀ t ∈ J, carrier.metricComplete (flow.metric t) |
| 48 | nonnegative_curvature_operator : |
| 49 | letI : TopologicalSpace carrier.carrier := carrier.topologicalSpace |
| 50 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) carrier.carrier := carrier.chartedSpace |
| 51 | letI : IsManifold (𝓡 3) ∞ carrier.carrier := carrier.isManifold |
| 52 | ∀ t ∈ J, ∀ x : carrier.carrier, |
| 53 | LeviCivitaData.NonnegativeCurvatureOperator (flow.connection t) x |
| 54 | curvature_locally_bounded_in_time : |
| 55 | letI : TopologicalSpace carrier.carrier := carrier.topologicalSpace |
| 56 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) carrier.carrier := carrier.chartedSpace |
| 57 | letI : IsManifold (𝓡 3) ∞ carrier.carrier := carrier.isManifold |
| 58 | ∀ I : Set ℝ, IsCompact I → I ⊆ J → ∃ B : ℝ, 0 ≤ B ∧ |
| 59 | ∀ t ∈ I, ∀ x : carrier.carrier, |
| 60 | |(flow.connection t).curvatureTensorNorm x| ≤ B |
| 61 | |
| 62 | /-- The coordinate domain used for metric jets. Derivatives are taken within |
| 63 | this domain, so a total metric representative outside the flow interval does |
| 64 | not determine the endpoint derivatives. -/ |
| 65 | def blowupMetricChartDomain {J : Set ℝ} (L : BlowupLimitFlow J) |
| 66 | (q : L.carrier.carrier) : Set (ℝ × EuclideanSpace ℝ (Fin 3)) := |
| 67 | letI : TopologicalSpace L.carrier.carrier := L.carrier.topologicalSpace |
| 68 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.carrier.carrier := |
| 69 | L.carrier.chartedSpace |
| 70 | J ×ˢ (extChartAt (𝓡 3) q).target |
| 71 | |
| 72 | /-- All-scales noncollapsing of the actual limiting flow. The hypothesis |
| 73 | includes existence of the whole backward parabolic cylinder in its time |
| 74 | domain, and the volume uses the selected metric at its top time. -/ |
| 75 | def BlowupLimitNoncollapsed {J : Set ℝ} (L : BlowupLimitFlow J) (κ : ℝ) : Prop := |
| 76 | let C := L.carrier |
| 77 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 78 | letI : MeasurableSpace C.carrier := C.measurableSpace |
| 79 | letI : BorelSpace C.carrier := C.borelSpace |
| 80 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) C.carrier := C.chartedSpace |
| 81 | letI : IsManifold (𝓡 3) ∞ C.carrier := C.isManifold |
| 82 | letI : T3Space C.carrier := C.t3Space |
| 83 | ∀ t ∈ J, ∀ p : C.carrier, ∀ r : ℝ, 0 < r → |
| 84 | Set.Ioc (t - r ^ 2) t ⊆ J → |
| 85 | (∀ s ∈ Set.Ioc (t - r ^ 2) t, ∀ q ∈ (L.flow.metric t).ball p r, |
| 86 | |(L.flow.connection s).curvatureTensorNorm q| ≤ r⁻¹ ^ 2) → |
| 87 | ENNReal.ofReal (κ * r ^ 3) ≤ |
| 88 | calibratedMetricVolume (L.flow.metric t) ((L.flow.metric t).ball p r) |
| 89 | |
| 90 | /-- The carrier of a limit, viewed without a connectedness requirement. -/ |
| 91 | def BlowupLimitFlow.sliceCarrier {J : Set ℝ} (L : BlowupLimitFlow.{u} J) : |
| 92 | GeneralizedSliceCarrier.{u} where |
| 93 | carrier := L.carrier.carrier |
| 94 | topologicalSpace := L.carrier.topologicalSpace |
| 95 | measurableSpace := L.carrier.measurableSpace |
| 96 | borelSpace := L.carrier.borelSpace |
| 97 | chartedSpace := L.carrier.chartedSpace |
| 98 | isManifold := L.carrier.isManifold |
| 99 | t2Space := L.carrier.t2Space |
| 100 | t3Space := L.carrier.t3Space |
| 101 | secondCountable := L.carrier.secondCountable |
| 102 | |
| 103 | /-- Parabolic noncollapsing at one spacetime point. This is a genuine volume |
| 104 | lower bound whenever the backward cylinder exists and has the indicated |
| 105 | curvature bound; positive curvature is not a substitute for this condition. -/ |
| 106 | def GeneralizedKappaNoncollapsedAt (F : GeneralizedRicciFlowData.{u}) |
| 107 | (p : F.point) (κ r₀ : ℝ) : Prop := |
| 108 | ∀ r : ℝ, 0 < r → r ≤ r₀ → |
| 109 | Set.Ioc (p.1 - r ^ 2) p.1 ⊆ F.interval → |
| 110 | ∀ e : GeneralizedFlowCylinder F (F.slice p.1) p.1 1 |
| 111 | (Set.Ioc (-r ^ 2) 0) ((F.metric p.1).ball p.2 r), |
| 112 | (∀ h₀, ∀ x ∈ (F.metric p.1).ball p.2 r, |
| 113 | e.pointMap 0 h₀ x = (⟨p.1, x⟩ : F.point)) → |
| 114 | (∀ s hs, ∀ x ∈ (F.metric p.1).ball p.2 r, |
| 115 | |F.curvatureNorm (e.pointMap s hs x)| ≤ r⁻¹ ^ 2) → |
| 116 | ENNReal.ofReal (κ * r ^ 3) ≤ |
| 117 | calibratedMetricVolume (F.metric p.1) ((F.metric p.1).ball p.2 r) |
| 118 | |
| 119 | def BlowupBaseBallsCompact (S : GeneralizedBlowupSequence) : Prop := |
| 120 | ∀ A : ℝ, 0 < A → ∀ᶠ k : ℕ in Filter.atTop, |
| 121 | IsCompact (closure (S.baseBall k A)) |
| 122 | |
| 123 | structure ControlledBlowupCylinder (S : GeneralizedBlowupSequence.{u}) |
| 124 | (k : ℕ) (A T B η : ℝ) where |
| 125 | embedding : GeneralizedFlowCylinder (S.flow k) ((S.flow k).slice (S.base k).1) |
| 126 | (S.base k).1 (S.scale k) (Set.Icc (-T) 0) (S.baseBall k A) |
| 127 | zero_identity : ∀ h₀, ∀ x ∈ S.baseBall k A, |
| 128 | embedding.pointMap 0 h₀ x = (⟨(S.base k).1, x⟩ : (S.flow k).point) |
| 129 | curvature_bound : ∀ s hs, ∀ x ∈ S.baseBall k A, |
| 130 | |(S.flow k).curvatureNorm (embedding.pointMap s hs x)| ≤ B * S.scale k |
| 131 | negative_curvature_bound : ∀ s hs, ∀ x ∈ S.baseBall k A, |
| 132 | let p := embedding.pointMap s hs x |
| 133 | ((S.flow k).connection p.1).negativeCurvaturePart p.2 ≤ η * S.scale k |
| 134 | |
| 135 | /-- Short-time analytic controls after the bounded-distance and canonical |
| 136 | neighborhood arguments. The same `T,B` work on every fixed normalized ball; |
| 137 | the index beyond which they work may depend on its radius and error. -/ |
| 138 | structure ShortControlledBlowupHypotheses (S : GeneralizedBlowupSequence.{u}) |
| 139 | (κ r₀ : ℝ) where |
| 140 | kappa_pos : 0 < κ |
| 141 | radius_pos : 0 < r₀ |
| 142 | balls_compact : BlowupBaseBallsCompact S |
| 143 | backward_time : ℝ |
| 144 | backward_time_pos : 0 < backward_time |
| 145 | curvature_bound : ℝ |
| 146 | curvature_bound_nonneg : 0 ≤ curvature_bound |
| 147 | cylinders : ∀ A : ℝ, 0 < A → ∀ η : ℝ, 0 < η → |
| 148 | ∀ᶠ k : ℕ in Filter.atTop, |
| 149 | Nonempty (ControlledBlowupCylinder S k A backward_time curvature_bound η) |
| 150 | noncollapsed_at_zero : ∀ A : ℝ, 0 < A → ∀ᶠ k : ℕ in Filter.atTop, |
| 151 | ∀ x ∈ S.baseBall k A, |
| 152 | GeneralizedKappaNoncollapsedAt (S.flow k) ⟨(S.base k).1, x⟩ κ r₀ |
| 153 | |
| 154 | /-- Controls on every finite backward slab below the prescribed horizon. |
| 155 | Every point of each displayed cylinder satisfies the actual volume condition. -/ |
| 156 | structure LongControlledBlowupHypotheses (S : GeneralizedBlowupSequence.{u}) |
| 157 | (κ r₀ : ℝ) (T₀ : ℝ≥0∞) where |
| 158 | kappa_pos : 0 < κ |
| 159 | radius_pos : 0 < r₀ |
| 160 | horizon_pos : 0 < T₀ |
| 161 | balls_compact : BlowupBaseBallsCompact S |
| 162 | cylinders : ∀ T : ℝ, 0 < T → ENNReal.ofReal T < T₀ → |
| 163 | ∃ B : ℝ, 0 ≤ B ∧ ∀ A : ℝ, 0 < A → ∀ η : ℝ, 0 < η → |
| 164 | ∀ᶠ k : ℕ in Filter.atTop, |
| 165 | ∃ e : ControlledBlowupCylinder S k A T B η, |
| 166 | ∀ s hs, ∀ x ∈ S.baseBall k A, |
| 167 | GeneralizedKappaNoncollapsedAt (S.flow k) (e.embedding.pointMap s hs x) κ r₀ |
| 168 | |
| 169 | /-- An exhaustion of the limiting space and of its backward time interval. -/ |
| 170 | structure BlowupExhaustion {J : Set ℝ} (L : BlowupLimitFlow.{u} J) where |
| 171 | space : ℕ → Set L.sliceCarrier.carrier |
| 172 | space_open : ∀ k, IsOpen (space k) |
| 173 | space_connected : ∀ k, IsConnected (space k) |
| 174 | space_compactClosure : ∀ k, IsCompact (closure (space k)) |
| 175 | space_increasing : Monotone space |
| 176 | space_covers : ⋃ k, space k = Set.univ |
| 177 | base_mem : ∀ k, L.base ∈ space k |
| 178 | time : ℕ → ℝ |
| 179 | time_pos : ∀ k, 0 < time k |
| 180 | time_increasing : Monotone time |
| 181 | time_subset : ∀ k, Set.Icc (-time k) 0 ⊆ J |
| 182 | time_cofinal : ∀ I : Set ℝ, IsCompact I → I ⊆ J → |
| 183 | ∀ᶠ k : ℕ in Filter.atTop, I ⊆ Set.Icc (-time k) 0 |
| 184 | |
| 185 | /-- A local-coordinate coefficient of a rescaled source metric. The zero |
| 186 | extension is ignored by the within-domain derivatives in the convergence |
| 187 | definition. -/ |
| 188 | noncomputable def blowupPullbackCoefficient {J : Set ℝ} |
| 189 | {L : BlowupLimitFlow.{u} J} {F : GeneralizedRicciFlowData.{u}} |
| 190 | {origin scale : ℝ} {I : Set ℝ} {U : Set L.sliceCarrier.carrier} |
| 191 | (e : GeneralizedFlowCylinder F L.sliceCarrier origin scale I U) |
| 192 | (q : L.sliceCarrier.carrier) (a b : Fin 3) |
| 193 | (p : ℝ × EuclideanSpace ℝ (Fin 3)) : ℝ := |
| 194 | letI : Decidable (p.1 ∈ I) := Classical.propDecidable _ |
| 195 | if ht : p.1 ∈ I then |
| 196 | let c := extChartAt (𝓡 3) q |
| 197 | let D := mfderiv (𝓡 3) (𝓡 3) c.symm p.2 |
| 198 | e.pullbackInner p.1 ht (c.symm p.2) |
| 199 | (D (EuclideanSpace.basisFun (Fin 3) ℝ a)) |
| 200 | (D (EuclideanSpace.basisFun (Fin 3) ℝ b)) |
| 201 | else 0 |
| 202 | |
| 203 | /-- Pointed smooth convergence of the rescaled generalized flows, with |
| 204 | expanding source images and actual pullback metric jets. -/ |
| 205 | structure GeneralizedBlowupConvergence (S : GeneralizedBlowupSequence.{u}) |
| 206 | (J : Set ℝ) where |
| 207 | limit : BlowupLimitFlow.{u} J |
| 208 | subsequence : ℕ → ℕ |
| 209 | subsequence_strictMono : StrictMono subsequence |
| 210 | exhaustion : BlowupExhaustion limit |
| 211 | embedding : ∀ k, |
| 212 | GeneralizedFlowCylinder (S.flow (subsequence k)) limit.sliceCarrier |
| 213 | (S.base (subsequence k)).1 (S.scale (subsequence k)) |
| 214 | (Set.Icc (-exhaustion.time k) 0) (exhaustion.space k) |
| 215 | base_preserving : ∀ k h₀, |
| 216 | (embedding k).pointMap 0 h₀ limit.base = S.base (subsequence k) |
| 217 | source_balls_in_image : ∀ A : ℝ, 0 < A → ∀ᶠ k : ℕ in Filter.atTop, |
| 218 | ∀ x ∈ S.baseBall (subsequence k) A, ∃ y ∈ exhaustion.space k, |
| 219 | ∃ h₀, (embedding k).pointMap 0 h₀ y = |
| 220 | (⟨(S.base (subsequence k)).1, x⟩ : (S.flow (subsequence k)).point) |
| 221 | pullback_metric_CInfinity : |
| 222 | let C := limit.sliceCarrier |
| 223 | letI : TopologicalSpace limit.carrier.carrier := limit.carrier.topologicalSpace |
| 224 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) limit.carrier.carrier := |
| 225 | limit.carrier.chartedSpace |
| 226 | letI : IsManifold (𝓡 3) ∞ limit.carrier.carrier := limit.carrier.isManifold |
| 227 | ∀ q : C.carrier, ∀ j r : ℕ, |
| 228 | ∀ K : Set (ℝ × EuclideanSpace ℝ (Fin 3)), IsCompact K → |
| 229 | K ⊆ {p | p ∈ blowupMetricChartDomain limit q ∧ |
| 230 | (extChartAt (𝓡 3) q).symm p.2 ∈ exhaustion.space j} → |
| 231 | ∀ ε : ℝ, 0 < ε → ∃ N : ℕ, j ≤ N ∧ ∀ k ≥ N, |
| 232 | K ⊆ Set.Icc (-exhaustion.time k) 0 ×ˢ (extChartAt (𝓡 3) q).target ∧ |
| 233 | ∀ a b : Fin 3, ∀ p ∈ K, |
| 234 | ‖iteratedFDerivWithin ℝ r |
| 235 | (blowupPullbackCoefficient (embedding k) q a b) |
| 236 | (Set.Icc (-exhaustion.time k) 0 ×ˢ (extChartAt (𝓡 3) q).target) p - |
| 237 | iteratedFDerivWithin ℝ r |
| 238 | (FlowCarrier.coordinateCoefficient limit.carrier q |
| 239 | (fun t x v w ↦ (limit.flow.metric t).inner x v w) a b) |
| 240 | (blowupMetricChartDomain limit q) p‖ < ε |
| 241 | |
| 242 | /-- Identification of an infinite-horizon limit with an actual ancient |
| 243 | kappa-solution on the same carrier and the same metric at every ancient time. -/ |
| 244 | structure BlowupAncientKappaIdentification |
| 245 | (L : BlowupLimitFlow (blowupBackwardInterval ⊤)) (κ : ℝ) where |
| 246 | solution : |
| 247 | let C := L.carrier |
| 248 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 249 | letI : MeasurableSpace C.carrier := C.measurableSpace |
| 250 | letI : BorelSpace C.carrier := C.borelSpace |
| 251 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) C.carrier := C.chartedSpace |
| 252 | letI : IsManifold (𝓡 3) ∞ C.carrier := C.isManifold |
| 253 | letI : T2Space C.carrier := C.t2Space |
| 254 | letI : T3Space C.carrier := C.t3Space |
| 255 | letI : SecondCountableTopology C.carrier := C.secondCountable |
| 256 | letI : ConnectedSpace C.carrier := L.connectedSpace |
| 257 | AncientKappaSolution 3 C.carrier |
| 258 | kappa_eq : |
| 259 | let C := L.carrier |
| 260 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 261 | letI : MeasurableSpace C.carrier := C.measurableSpace |
| 262 | letI : BorelSpace C.carrier := C.borelSpace |
| 263 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) C.carrier := C.chartedSpace |
| 264 | letI : IsManifold (𝓡 3) ∞ C.carrier := C.isManifold |
| 265 | letI : T2Space C.carrier := C.t2Space |
| 266 | letI : T3Space C.carrier := C.t3Space |
| 267 | letI : SecondCountableTopology C.carrier := C.secondCountable |
| 268 | letI : ConnectedSpace C.carrier := L.connectedSpace |
| 269 | solution.kappa = κ |
| 270 | metric_eq : |
| 271 | let C := L.carrier |
| 272 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 273 | letI : MeasurableSpace C.carrier := C.measurableSpace |
| 274 | letI : BorelSpace C.carrier := C.borelSpace |
| 275 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) C.carrier := C.chartedSpace |
| 276 | letI : IsManifold (𝓡 3) ∞ C.carrier := C.isManifold |
| 277 | letI : T2Space C.carrier := C.t2Space |
| 278 | letI : T3Space C.carrier := C.t3Space |
| 279 | letI : SecondCountableTopology C.carrier := C.secondCountable |
| 280 | letI : ConnectedSpace C.carrier := L.connectedSpace |
| 281 | ∀ t : ℝ, t ≤ 0 → solution.flow.metric t = L.flow.metric t |
| 282 | |
| 283 | |
| 284 | end PoincareMT |