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.Surgery.CanonicalInduction.Limit.Finite.LimitFiniteActualRetainedBound |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Limit.Finite.LimitFiniteEndpointScalarCeiling |
| 3 | |
| 4 | /-! |
| 5 | # Scalar ceilings from the actual retained endpoint bound |
| 6 | |
| 7 | One actual endpoint selection supplies its global bound, compact physical |
| 8 | scalar ceilings, and the unchanged retained source rows. The scalar |
| 9 | coefficient is fixed before every compact region or radius. |
| 10 | MT Proposition 17.1, pp. 406-408; retained-scalar-ceiling, RSC1-RSC4. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped ENNReal Manifold ContDiff Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M47 |
| 22 | |
| 23 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 24 | local notation "Bilin" => E →L[ℝ] E →L[ℝ] ℝ |
| 25 | |
| 26 | private noncomputable local instance retainedScalarDualAdd : |
| 27 | NormedAddCommGroup (E →L[ℝ] ℝ) := ContinuousLinearMap.toNormedAddCommGroup |
| 28 | private noncomputable local instance retainedScalarDualSpace : |
| 29 | NormedSpace ℝ (E →L[ℝ] ℝ) := ContinuousLinearMap.toNormedSpace |
| 30 | private noncomputable local instance retainedScalarBilinAdd : |
| 31 | NormedAddCommGroup Bilin := ContinuousLinearMap.toNormedAddCommGroup |
| 32 | private noncomputable local instance retainedScalarBilinSpace : |
| 33 | NormedSpace ℝ Bilin := ContinuousLinearMap.toNormedSpace |
| 34 | |
| 35 | variable (F : ℕ → SurgeryFlowData.{u}) (W : ∀ k, M33RegularHistoryWindow (F k)) |
| 36 | (history : ∀ k, M33RegularHistoryData (W k)) (baseTime : ℕ → ℝ) |
| 37 | (hbaseTime : ∀ k, baseTime k ∈ (history k).generalized.interval) |
| 38 | (basePoint : ∀ k, ((history k).generalized.slice (baseTime k)).carrier) |
| 39 | (hPositive : ∀ k, 0 < ((F k).connection (baseTime k)).scalarCurvature |
| 40 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k))) |
| 41 | (hDiverges : Tendsto (fun k => ((F k).connection (baseTime k)).scalarCurvature |
| 42 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k))) atTop atTop) |
| 43 | |
| 44 | variable {H : ℝ≥0∞} (G : GeneralizedBlowupConvergence |
| 45 | (regularHistoryBlowupSequence F W history baseTime hbaseTime basePoint hPositive hDiverges) |
| 46 | (blowupBackwardInterval H)) |
| 47 | |
| 48 | private local instance retainedScalarTopology : TopologicalSpace G.limit.carrier.carrier := |
| 49 | G.limit.carrier.topologicalSpace |
| 50 | private local instance retainedScalarCharts : ChartedSpace E G.limit.carrier.carrier := |
| 51 | G.limit.carrier.chartedSpace |
| 52 | private local instance retainedScalarManifold : IsManifold (𝓡 3) ∞ G.limit.carrier.carrier := |
| 53 | G.limit.carrier.isManifold |
| 54 | private local instance retainedScalarMeasurable : MeasurableSpace G.limit.carrier.carrier := |
| 55 | G.limit.carrier.measurableSpace |
| 56 | private local instance retainedScalarBorel : BorelSpace G.limit.carrier.carrier := |
| 57 | G.limit.carrier.borelSpace |
| 58 | private local instance retainedScalarT2 : T2Space G.limit.carrier.carrier := G.limit.carrier.t2Space |
| 59 | private local instance retainedScalarT3 : T3Space G.limit.carrier.carrier := G.limit.carrier.t3Space |
| 60 | private local instance retainedScalarSecondCountable : |
| 61 | SecondCountableTopology G.limit.carrier.carrier := G.limit.carrier.secondCountable |
| 62 | private local instance retainedScalarConnected : ConnectedSpace G.limit.carrier.carrier := |
| 63 | G.limit.connectedSpace |
| 64 | |
| 65 | local notation "U" => (fun j : ℕ => TopologicalSpace.Opens.mk |
| 66 | (G.exhaustion.space j) (G.exhaustion.space_open j)) |
| 67 | |
| 68 | /-- The actual endpoint construction supplies compact physical scalar |
| 69 | ceilings beside the same selected maps, jets and retained source rows. |
| 70 | MT Proposition 17.1, pp. 406-408. -/ |
| 71 | theorem limitFinite_actual_retained_scalar_ceiling |
| 72 | (P : M47Predecessors.{u}) (sched : RepairedControlledSchedulesData.{u}) |
| 73 | (r : ℕ → ℝ) |
| 74 | (hfloor : ∀ k, (r k)⁻¹ ^ 2 ≤ |
| 75 | (regularHistoryBlowupSequence F W history baseTime hbaseTime |
| 76 | basePoint hPositive hDiverges).scale k) |
| 77 | (hEpsilon : ∀ k, (F k).parameters.epsilon = sched.setup.epsilon) |
| 78 | (hC : ∀ k, (F k).parameters.C = sched.setup.C) |
| 79 | (hPast : ∀ k, SurgeryCanonicalOn (F k) (Ico 0 (baseTime k)) (r k)) |
| 80 | (hfinite : H ≠ ⊤) (d K : ℕ → ℝ) (hd : ∀ j, 0 < d j) |
| 81 | (hc : ∀ j, -H.toReal + d j / 4 ∈ blowupBackwardInterval H) |
| 82 | (A : ∀ j, ℕ → RicciFlow 3 (U j) (Icc (-(H.toReal + d j / 2)) 0)) |
| 83 | (hactual : |
| 84 | let seq := regularHistoryBlowupSequence F W history baseTime hbaseTime |
| 85 | basePoint hPositive hDiverges |
| 86 | ∀ j, ∀ᶠ k : ℕ in atTop, |
| 87 | ∃ hI : Icc (-H.toReal + d j / 4) 0 ⊆ Icc (-G.exhaustion.time k) 0, |
| 88 | G.exhaustion.space j ⊆ G.exhaustion.space k ∧ |
| 89 | ∃ (b : ℝ) (hb : b < -(H.toReal + d j / 2)), |
| 90 | ∃ e : SurgeryFlowCylinder (F (G.subsequence k)) G.limit.sliceCarrier |
| 91 | (baseTime (G.subsequence k)) (seq.scale (G.subsequence k)) |
| 92 | (Icc b 0) (G.exhaustion.space j), |
| 93 | (∀ s (hs : s ∈ Icc (-H.toReal + d j / 4) 0) (hs' : s ∈ Icc b 0), |
| 94 | ∀ x ∈ G.exhaustion.space j, |
| 95 | e.forward s hs' x = (history (G.subsequence k)).history.forward |
| 96 | (baseTime (G.subsequence k) + s / seq.scale (G.subsequence k)) |
| 97 | (limitNoncollapse_physical_time_mem G k s (hI hs)) |
| 98 | ((G.embedding k).forward s (hI hs) x)) ∧ |
| 99 | (∀ s (hs : s ∈ Icc b 0), ∀ x ∈ G.exhaustion.space j, |
| 100 | |((F (G.subsequence k)).connection (baseTime (G.subsequence k) + |
| 101 | s / seq.scale (G.subsequence k))).curvatureTensorNorm (e.forward s hs x)| ≤ |
| 102 | K j * seq.scale (G.subsequence k)) ∧ |
| 103 | (∀ s ∈ Icc (-(H.toReal + d j / 2)) 0, ∀ x : U j, |
| 104 | |((A j k).connection s).curvatureTensorNorm x| ≤ K j) ∧ |
| 105 | (∀ s (hs : s ∈ Icc (-(H.toReal + d j / 2)) 0) (x : U j), |
| 106 | ∀ v w : TangentSpace (𝓡 3) x, |
| 107 | ((A j k).metric s).inner x v w = e.pullbackInner s |
| 108 | ⟨hb.le.trans hs.1, hs.2⟩ x.val |
| 109 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U j → G.limit.sliceCarrier.carrier) x v) |
| 110 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U j → G.limit.sliceCarrier.carrier) x w)) ∧ |
| 111 | ∀ s (_hs : s ∈ Icc (-(H.toReal + d j / 2)) 0) |
| 112 | (hs' : s ∈ Icc (-G.exhaustion.time k) 0) (x : U j), |
| 113 | ∀ v w : TangentSpace (𝓡 3) x, |
| 114 | ((A j k).metric s).inner x v w = (G.embedding k).pullbackInner s hs' x.val |
| 115 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U j → G.limit.sliceCarrier.carrier) x v) |
| 116 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U j → G.limit.sliceCarrier.carrier) x w)) |
| 117 | (j N : ℕ → ℕ) (hj : ∀ m, closure (G.exhaustion.space m) ⊆ G.exhaustion.space (j m)) |
| 118 | (R ρ : ∀ m, Fin (N m + 1) → ℝ) (hρR : ∀ m i, ρ m i < R m i) |
| 119 | (Φ : ∀ m, Fin (N m + 1) → PartialDiffeomorph (𝓡 3) (𝓡 3) E (U (j m)) ∞) |
| 120 | (hsource : ∀ m i, (Φ m i).source = Metric.ball 0 (R m i)) |
| 121 | (hcover : ∀ m, closure (G.exhaustion.space m) ⊆ |
| 122 | ⋃ i, (fun z : E => (Φ m i z).val) '' Metric.ball 0 (ρ m i)) |
| 123 | (σ : ℕ → ℕ) (hσ : StrictMono σ) |
| 124 | (B : ∀ m, Fin (N m + 1) → ℝ × E → Bilin) |
| 125 | (hB : ∀ m i, ContDiffOn ℝ ∞ (B m i) |
| 126 | (Ioo (-((3 * d (j m) / 4) / 2)) 0 ×ˢ Metric.ball 0 (ρ m i))) |
| 127 | (hjets : ∀ m i order C, IsCompact C → |
| 128 | C ⊆ Ioo (-((3 * d (j m) / 4) / 2)) 0 ×ˢ Metric.ball 0 (ρ m i) → |
| 129 | TendstoUniformlyOn (fun k => iteratedFDeriv ℝ order (fun p : ℝ × E => |
| 130 | ((A (j m) (σ k)).metric (p.1 + (-H.toReal + d (j m) / 4))).pullbackCoefficients |
| 131 | (Φ m i) p.2)) (iteratedFDeriv ℝ order (B m i)) atTop C) |
| 132 | (gE : RiemannianMetric 3 G.limit.sliceCarrier.carrier) (DE : LeviCivitaData gE) |
| 133 | (hcomplete : MetricComplete gE) (hoperator : ∀ x, DE.NonnegativeCurvatureOperator x) |
| 134 | (hinner : ∀ m i, EqOn (fun z => B m i (-d (j m) / 4, z)) |
| 135 | (gE.pullbackCoefficients (fun z : E => (Φ m i z).val)) (Metric.ball 0 (ρ m i))) |
| 136 | (hconnected : ∀ m, ConnectedSpace (U m)) |
| 137 | (L : ∀ m, RicciFlow 3 (U m) (Icc (-(d (j m) / 32)) 0)) |
| 138 | (hmetric : ∀ m (x : U m) (v w : E), ((L m).metric 0).inner x v w = gE.inner x.val v w) |
| 139 | (hlocalOperator : ∀ m t, t ∈ Icc (-(d (j m) / 32)) 0 → ∀ x, |
| 140 | ((L m).connection t).NonnegativeCurvatureOperator x) |
| 141 | (htriple : ∀ x y z : G.limit.sliceCarrier.carrier, ∃ m, |
| 142 | x ∈ U m ∧ y ∈ U m ∧ z ∈ U m) : |
| 143 | let seq := regularHistoryBlowupSequence F W history baseTime hbaseTime |
| 144 | basePoint hPositive hDiverges |
| 145 | let Z : ∀ k, G.limit.sliceCarrier.carrier → |
| 146 | ((F (G.subsequence k)).slice |
| 147 | (baseTime (G.subsequence k) + 0 / seq.scale (G.subsequence k))).carrier := |
| 148 | fun k x => (history (G.subsequence k)).history.forward |
| 149 | (baseTime (G.subsequence k) + 0 / seq.scale (G.subsequence k)) |
| 150 | (limitNoncollapse_physical_time_mem G k 0 |
| 151 | ⟨neg_nonpos.mpr (G.exhaustion.time_pos k).le, le_rfl⟩) |
| 152 | ((G.embedding k).forward 0 |
| 153 | ⟨neg_nonpos.mpr (G.exhaustion.time_pos k).le, le_rfl⟩ x) |
| 154 | ∃ η : ℕ → ℕ, StrictMono η ∧ StrictMono (fun k => G.subsequence (σ (η k))) ∧ |
| 155 | ∃ ψ : ∀ k, PartialDiffeomorph (𝓡 3) (𝓡 3) G.limit.sliceCarrier.carrier |
| 156 | ((F (G.subsequence (σ (η k)))).slice |
| 157 | (baseTime (G.subsequence (σ (η k))) + |
| 158 | -H.toReal / seq.scale (G.subsequence (σ (η k))))).carrier ∞, |
| 159 | (∀ k, (ψ k).source = G.exhaustion.space k) ∧ |
| 160 | (∀ k, 0 < seq.scale (G.subsequence (σ (η k))) ∧ |
| 161 | baseTime (G.subsequence (σ (η k))) + -H.toReal / seq.scale (G.subsequence (σ (η k))) ∈ |
| 162 | (F (G.subsequence (σ (η k)))).time_domain ∧ |
| 163 | baseTime (G.subsequence (σ (η k))) + -H.toReal / seq.scale (G.subsequence (σ (η k))) ∈ |
| 164 | Ico 0 (baseTime (G.subsequence (σ (η k))))) ∧ |
| 165 | (∀ k, ∃ b, ∃ _hb : b ≤ -(H.toReal + d (j k) / 2), |
| 166 | ∃ e : SurgeryFlowCylinder (F (G.subsequence (σ (η k)))) G.limit.sliceCarrier |
| 167 | (baseTime (G.subsequence (σ (η k)))) (seq.scale (G.subsequence (σ (η k)))) |
| 168 | (Icc b 0) (G.exhaustion.space (j k)), |
| 169 | ∀ ht : -H.toReal ∈ Icc b 0, |
| 170 | ((ψ k : G.limit.sliceCarrier.carrier → _) = e.forward (-H.toReal) ht) ∧ |
| 171 | (((ψ k).symm : _ → G.limit.sliceCarrier.carrier) = e.inverse (-H.toReal) ht)) ∧ |
| 172 | ∃ c : (Σ m, Fin (N m + 1)) → |
| 173 | PartialDiffeomorph (𝓡 3) (𝓡 3) G.limit.sliceCarrier.carrier E ∞, |
| 174 | (∀ p, ((c p).symm : E → G.limit.sliceCarrier.carrier) = |
| 175 | fun z => (Φ p.1 p.2 z).val) ∧ |
| 176 | (∀ p, (c p).source = |
| 177 | (fun z : E => (Φ p.1 p.2 z).val) '' Metric.ball 0 (ρ p.1 p.2) ∧ |
| 178 | (c p).target = Metric.ball 0 (ρ p.1 p.2)) ∧ |
| 179 | (∀ x, ∃ p, x ∈ (c p).source) ∧ |
| 180 | (∀ p order C, IsCompact C → C ⊆ (c p).target → TendstoUniformlyOn |
| 181 | (fun k => iteratedFDeriv ℝ order |
| 182 | ((rescaledMetric ((F (G.subsequence (σ (η k)))).metric |
| 183 | (baseTime (G.subsequence (σ (η k))) + |
| 184 | -H.toReal / seq.scale (G.subsequence (σ (η k))))) |
| 185 | (seq.scale (G.subsequence (σ (η k)))) |
| 186 | (seq.base_scalar_pos (G.subsequence (σ (η k))))).pullbackCoefficients |
| 187 | (ψ k ∘ (c p).symm))) |
| 188 | (iteratedFDeriv ℝ order (gE.pullbackCoefficients (c p).symm)) atTop C) ∧ |
| 189 | ∃ Bglobal : ℝ, 0 < Bglobal ∧ (∀ x, DE.curvatureTensorNorm x ≤ Bglobal) ∧ |
| 190 | let Kscalar := max 1 (3 * Bglobal) |
| 191 | 1 ≤ Kscalar ∧ |
| 192 | (∀ V : Set G.limit.sliceCarrier.carrier, IsCompact V → ∀ᶠ k in atTop, |
| 193 | V ⊆ (ψ k).source ∧ ∀ x ∈ V, |
| 194 | ((F (G.subsequence (σ (η k)))).connection |
| 195 | (baseTime (G.subsequence (σ (η k))) + |
| 196 | -H.toReal / seq.scale (G.subsequence (σ (η k))))).scalarCurvature (ψ k x) ≤ |
| 197 | (2 * Kscalar) * seq.scale (G.subsequence (σ (η k)))) ∧ |
| 198 | ∀ m, ∀ᶠ k : ℕ in atTop, |
| 199 | ∃ b, ∃ _hb : b ≤ -(H.toReal + d (j m) / 2), |
| 200 | ∃ ht : -H.toReal ∈ Icc b 0, |
| 201 | ∃ e : SurgeryFlowCylinder (F (G.subsequence (σ (η k)))) G.limit.sliceCarrier |
| 202 | (baseTime (G.subsequence (σ (η k)))) |
| 203 | (seq.scale (G.subsequence (σ (η k)))) |
| 204 | (Icc b 0) (U (j m)), |
| 205 | EqOn (ψ k) (e.forward (-H.toReal) ht) (U (j m)) ∧ |
| 206 | (∀ s (hs : s ∈ Icc b 0), ∀ x ∈ U (j m), |
| 207 | |((F (G.subsequence (σ (η k)))).connection |
| 208 | (baseTime (G.subsequence (σ (η k))) + |
| 209 | s / seq.scale (G.subsequence (σ (η k))))).curvatureTensorNorm |
| 210 | (e.forward s hs x)| ≤ K (j m) * seq.scale (G.subsequence (σ (η k)))) ∧ |
| 211 | (∀ s (_hs : s ∈ Icc (-(H.toReal + d (j m) / 2)) 0) |
| 212 | (hs' : s ∈ Icc b 0) (x : U (j m)) (v w : E), |
| 213 | ((A (j m) (σ (η k))).metric s).inner x v w = e.pullbackInner s hs' x.val |
| 214 | (mfderiv (𝓡 3) (𝓡 3) |
| 215 | (Subtype.val : U (j m) → G.limit.sliceCarrier.carrier) x v) |
| 216 | (mfderiv (𝓡 3) (𝓡 3) |
| 217 | (Subtype.val : U (j m) → G.limit.sliceCarrier.carrier) x w)) ∧ |
| 218 | (∀ hzero : 0 ∈ Icc b 0, ∀ x ∈ U (j m), |
| 219 | e.forward 0 hzero x = Z (σ (η k)) x) := by |
| 220 | dsimp only |
| 221 | obtain ⟨η, hη, hn, ψ, hψsource, htimes, hinverse, c, hcinverse, hcchart, hcoverC, |
| 222 | hjet, Bglobal, hBglobal, hbound, hrow⟩ := |
| 223 | limitFinite_actual_endpoint_retained_bound F W history baseTime hbaseTime basePoint |
| 224 | hPositive hDiverges G P sched r hfloor hEpsilon hC hPast hfinite d K hd hc A hactual |
| 225 | j N hj R ρ hρR Φ hsource hcover σ hσ B hB hjets gE DE hcomplete hoperator hinner |
| 226 | hconnected L hmetric hlocalOperator htriple |
| 227 | have hceiling := limitFinite_endpoint_scalar_ceiling F W history baseTime hbaseTime |
| 228 | basePoint hPositive hDiverges G σ η gE DE hbound ψ hψsource c hcoverC |
| 229 | (fun i m _hm C hCcompact hCtarget => hjet i m C hCcompact hCtarget) |
| 230 | exact ⟨η, hη, hn, ψ, hψsource, htimes, hinverse, c, hcinverse, hcchart, hcoverC, |
| 231 | hjet, Bglobal, hBglobal, hbound, hceiling.1, hceiling.2, hrow⟩ |
| 232 | |
| 233 | end PoincareMT.M47 |