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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.SourceNames |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.Geometry.FixedCoordinateFlowCurvature |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Spacetime.StrongNecks.Geometry.StrongNeckEighthPinching |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Pinching.Geometry.OperatorPositivity |
| 6 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SourceNames.CurvatureCalculus |
| 7 | |
| 8 | /-! |
| 9 | # Curvature and normalized center of the same source-coordinate limit |
| 10 | |
| 11 | Original pinching is transported through the same retained H_i and the |
| 12 | same strict source extraction. Actual source normal charts provide the |
| 13 | local diffeomorphisms needed by the generic curvature readouts. The |
| 14 | terminal center has scalar one and its original orthonormal metric. |
| 15 | Source: Morgan--Tian Proposition 5.14 and Claim 10.11, pp. 90-91, 255; |
| 16 | M28 derivation 142. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option maxSynthPendingDepth 12 |
| 23 | |
| 24 | open Set Filter PoincareMT.ChartDistance PoincareMT.SpacetimeBounds |
| 25 | open scoped Manifold ContDiff Bundle Topology |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace PoincareMT.M28 |
| 30 | |
| 31 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 32 | |
| 33 | variable {epsilon : ℝ} |
| 34 | (F : ℕ → GeneralizedRicciFlowData.{u}) (t : ℕ → ℝ) |
| 35 | (S : ∀ i, GeneralizedStrongNeck (F i) (t i) epsilon) |
| 36 | (H : ∀ i, RescaledRawCylinderData (C := (F i).slice (t i)) |
| 37 | (U := strongNeckOpen (S i)) (J := strongNeckBackwardInterval) |
| 38 | (strongNeckCylinder (S i)) (GeneralizedStrongNeck.physical_interval_subset (S i))) |
| 39 | |
| 40 | set_option synthInstance.maxHeartbeats 200000 in |
| 41 | -- The source family and canonical limit carry distinct dependent metric instances. |
| 42 | set_option maxHeartbeats 2400000 in |
| 43 | -- Retained source clocks and canonical metric pullbacks require dependent conversions. |
| 44 | /-- Vanishing original pinching and actual tensor convergence give the |
| 45 | frozen nonnegative-curvature-operator predicate at every included point. |
| 46 | M28 derivation 142. -/ |
| 47 | theorem strongNeck_fixedCoordinate_limit_nonnegativeCurvatureOperator |
| 48 | (P : RicciFlowCurvatureTheory.{u}) (V : Set E) (hV : IsOpen V) [Nonempty V] |
| 49 | (e : ∀ i, V → strongNeckOpen (S i)) |
| 50 | (L : FixedCoordinateFlowLimit |
| 51 | (fun i => GeneralizedStrongNeck.rescaled_eighth_flow (S i) (H i)) V hV e) |
| 52 | (he : letI := hV.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 53 | ∀ i, IsLocalDiffeomorph (𝓡 3) (𝓡 3) ∞ (e i)) |
| 54 | (hpinch : ∀ i, generalizedWeakHamiltonIveyPinched (F i)) |
| 55 | {K : ℝ} (hK : 0 ≤ K) |
| 56 | (hcurv : ∀ i s, s ∈ Icc (-(1 / 8 : ℝ)) 0 → ∀ x : strongNeckOpen (S i), |
| 57 | ((GeneralizedStrongNeck.rescaled_eighth_flow (S i) (H i)).connection s).curvatureTensorNorm |
| 58 | x ≤ K) |
| 59 | (hQ : Tendsto (fun i => (S i).scale⁻¹ ^ 2) atTop atTop) : |
| 60 | letI := hV.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 61 | letI := hV.isOpenEmbedding_subtypeVal.isManifold_singleton (I := 𝓡 3) (n := ∞) |
| 62 | ∀ s ∈ Icc (-(1 / 8 : ℝ)) 0, ∀ x : V, |
| 63 | (L.flow.connection s).NonnegativeCurvatureOperator x := by |
| 64 | let := hV.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 65 | let := hV.isOpenEmbedding_subtypeVal.isManifold_singleton (I := 𝓡 3) (n := ∞) |
| 66 | intro s hs x |
| 67 | apply (L.flow.connection s).nonnegativeCurvatureOperator_of_plane_nonneg |
| 68 | (L.flow.connection s).normalization_curvatureTensorCalculus x |
| 69 | intro v w |
| 70 | let f (k : ℕ) := chartParametrization (fun _ : Unit => V) (fun _ => hV) |
| 71 | (i := ()) (e (L.subsequence k)) |
| 72 | let g (k : ℕ) := |
| 73 | (GeneralizedStrongNeck.rescaled_eighth_flow |
| 74 | (S (L.subsequence k)) (H (L.subsequence k))).metric s |
| 75 | let vsource (k : ℕ) := mfderiv (𝓡 3) (𝓡 3) (f k) x v |
| 76 | let wsource (k : ℕ) := mfderiv (𝓡 3) (𝓡 3) (f k) x w |
| 77 | have hQsub : Tendsto (fun k => (S (L.subsequence k)).scale⁻¹ ^ 2) atTop atTop := |
| 78 | hQ.comp L.subsequence_strictMono.tendsto_atTop |
| 79 | have herr : Tendsto (fun k => GeneralizedStrongNeck.rescaled_eighth_pinching_error |
| 80 | (S (L.subsequence k)) s hs (f k x)) atTop (𝓝 0) := |
| 81 | strongNeck_eighth_pinching_error_tendsto_zero P |
| 82 | (fun k => F (L.subsequence k)) (fun k => t (L.subsequence k)) |
| 83 | (fun k => S (L.subsequence k)) (fun k => H (L.subsequence k)) |
| 84 | (fun k => hpinch (L.subsequence k)) hK |
| 85 | (fun k a ha y => hcurv (L.subsequence k) a ha y) hQsub |
| 86 | (fun _ => s) (fun _ => hs) (fun k => f k x) |
| 87 | have hcoeff : Tendsto (fun k => (g k).pullbackCoefficients (f k) x) atTop |
| 88 | (𝓝 (L.coefficients (s, x))) := by |
| 89 | simpa only [metricTwoJet] using |
| 90 | (L.spatial_twoJets (by norm_num) he s hs x.property).fst_nhds |
| 91 | have heval (a b : E) : Tendsto (fun k => (g k).pullbackCoefficients (f k) x a b) |
| 92 | atTop (𝓝 (L.coefficients (s, x) a b)) := |
| 93 | ((ContinuousLinearMap.apply ℝ ℝ b).continuous.tendsto _).comp |
| 94 | (((ContinuousLinearMap.apply ℝ (_ →L[ℝ] ℝ) a).continuous.tendsto _).comp hcoeff) |
| 95 | have hgram : Tendsto (fun k => M04.metricGram (g k) (f k x) (vsource k) (wsource k)) |
| 96 | atTop (𝓝 (L.coefficients (s, x) v v * L.coefficients (s, x) w w - |
| 97 | L.coefficients (s, x) v w ^ 2)) := |
| 98 | ((heval v v).mul (heval w w)).sub ((heval v w).pow 2) |
| 99 | have hlower : Tendsto |
| 100 | (fun k => -GeneralizedStrongNeck.rescaled_eighth_pinching_error |
| 101 | (S (L.subsequence k)) s hs (f k x) * |
| 102 | M04.metricGram (g k) (f k x) (vsource k) (wsource k)) atTop (𝓝 0) := by |
| 103 | simpa only [neg_zero, zero_mul] using herr.neg.mul hgram |
| 104 | exact le_of_tendsto_of_tendsto hlower |
| 105 | (L.curvatureTensor_tendsto (by norm_num) he s hs x v w v w) |
| 106 | (Eventually.of_forall fun k => GeneralizedStrongNeck.rescaled_eighth_flow_plane_lower |
| 107 | (S (L.subsequence k)) (H (L.subsequence k)) P s hs (f k x) (vsource k) (wsource k)) |
| 108 | |
| 109 | set_option synthInstance.maxHeartbeats 200000 in |
| 110 | -- Normal-chart center readouts involve dependent source tangent spaces. |
| 111 | set_option maxHeartbeats 2400000 in |
| 112 | -- Identifying all source and limiting center readouts requires a larger elaboration budget. |
| 113 | /-- Actual source partial diffeomorphisms supply the missing map |
| 114 | hypothesis and retain nonnegative curvature, center scalar one, and |
| 115 | the terminal orthonormal bilinear form in the SAME coordinate limit. |
| 116 | M28 derivation 142. -/ |
| 117 | theorem strongNeck_center_limit_readouts |
| 118 | (P : RicciFlowCurvatureTheory.{u}) {R rho : ℝ} (hrho : 0 < rho) (hrhoR : 2 * rho < R) |
| 119 | (Phi : ∀ i, PartialDiffeomorph (𝓡 3) (𝓡 3) E (strongNeckOpen (S i)) ∞) |
| 120 | (hsource : ∀ i, (Phi i).source = Metric.ball 0 R) |
| 121 | (hzero : ∀ i, Phi i 0 = strongNeckSourceCenter (S i)) |
| 122 | (horth : ∀ i v w, ((GeneralizedStrongNeck.rescaled_half_flow |
| 123 | (S i) (H i)).metric 0).pullbackCoefficients |
| 124 | (Phi i) 0 v w = inner ℝ v w) |
| 125 | (hpinch : ∀ i, generalizedWeakHamiltonIveyPinched (F i)) |
| 126 | {K : ℝ} (hK : 0 ≤ K) |
| 127 | (hcurv : ∀ i s, s ∈ Icc (-(1 / 8 : ℝ)) 0 → ∀ x : strongNeckOpen (S i), |
| 128 | ((GeneralizedStrongNeck.rescaled_eighth_flow (S i) (H i)).connection s).curvatureTensorNorm |
| 129 | x ≤ K) |
| 130 | (hQ : Tendsto (fun i => (S i).scale⁻¹ ^ 2) atTop atTop) |
| 131 | (L : letI : Nonempty (Metric.ball (0 : E) rho) := ⟨⟨0, Metric.mem_ball_self hrho⟩⟩ |
| 132 | FixedCoordinateFlowLimit |
| 133 | (fun i => GeneralizedStrongNeck.rescaled_eighth_flow (S i) (H i)) |
| 134 | (Metric.ball 0 rho) Metric.isOpen_ball (fun i x => Phi i x)) : |
| 135 | letI : Nonempty (Metric.ball (0 : E) rho) := ⟨⟨0, Metric.mem_ball_self hrho⟩⟩ |
| 136 | letI := (Metric.isOpen_ball : IsOpen (Metric.ball (0 : E) rho)).isOpenEmbedding_subtypeVal |
| 137 | |>.singletonChartedSpace |
| 138 | letI := (Metric.isOpen_ball : IsOpen (Metric.ball (0 : E) rho)).isOpenEmbedding_subtypeVal |
| 139 | |>.isManifold_singleton (I := 𝓡 3) (n := ∞) |
| 140 | (∀ s ∈ Icc (-(1 / 8 : ℝ)) 0, ∀ x : Metric.ball (0 : E) rho, |
| 141 | (L.flow.connection s).NonnegativeCurvatureOperator x) ∧ |
| 142 | (L.flow.connection 0).scalarCurvature ⟨0, Metric.mem_ball_self hrho⟩ = 1 ∧ |
| 143 | ∀ v w : E, (L.flow.metric 0).inner ⟨0, Metric.mem_ball_self hrho⟩ v w = inner ℝ v w := by |
| 144 | classical |
| 145 | let V : Set E := Metric.ball 0 rho |
| 146 | let hV : IsOpen V := Metric.isOpen_ball |
| 147 | let : Nonempty V := ⟨⟨0, Metric.mem_ball_self hrho⟩⟩ |
| 148 | let := hV.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 149 | let := hV.isOpenEmbedding_subtypeVal.isManifold_singleton (I := 𝓡 3) (n := ∞) |
| 150 | let e : ∀ i, V → strongNeckOpen (S i) := fun i x => Phi i x |
| 151 | let x0 : V := ⟨0, Metric.mem_ball_self hrho⟩ |
| 152 | have hVU : V ⊆ Metric.ball 0 R := Metric.ball_subset_ball (by linarith) |
| 153 | have he : ∀ i, IsLocalDiffeomorph (𝓡 3) (𝓡 3) ∞ (e i) := by |
| 154 | intro i x |
| 155 | exact (Poincare.isLocalDiffeomorph_subtypeVal (𝓡 3) V hV ∞ x).comp |
| 156 | (𝓡 3) (strongNeckOpen (S i)) |
| 157 | ((Phi i).isLocalDiffeomorphAt (𝓡 3) (𝓡 3) ∞ ((hsource i).symm ▸ hVU x.property)) |
| 158 | have htime : (0 : ℝ) ∈ Icc (-(1 / 8 : ℝ)) 0 := by norm_num |
| 159 | refine ⟨strongNeck_fixedCoordinate_limit_nonnegativeCurvatureOperator |
| 160 | F t S H P V hV e L he hpinch hK hcurv hQ, ?_, ?_⟩ |
| 161 | · have hsourceScalar (i : ℕ) : |
| 162 | ((GeneralizedStrongNeck.rescaled_eighth_flow (S i) (H i)).connection 0).scalarCurvature |
| 163 | (Phi i 0) = 1 := by |
| 164 | change ((GeneralizedStrongNeck.rescaled_half_flow (S i) (H i)).connection 0).scalarCurvature |
| 165 | (Phi i 0) = 1 |
| 166 | rw [hzero i] |
| 167 | exact GeneralizedStrongNeck.rescaled_half_scalar_at_center (S i) (H i) |
| 168 | have hconv := L.scalarCurvature_tendsto (by norm_num) he 0 htime x0 |
| 169 | have hconst : Tendsto |
| 170 | (fun k => ((GeneralizedStrongNeck.rescaled_eighth_flow |
| 171 | (S (L.subsequence k)) (H (L.subsequence k))).connection 0).scalarCurvature |
| 172 | (Phi (L.subsequence k) 0)) atTop (𝓝 1) := by |
| 173 | apply tendsto_const_nhds.congr' |
| 174 | exact Eventually.of_forall fun k => (hsourceScalar (L.subsequence k)).symm |
| 175 | exact tendsto_nhds_unique hconv hconst |
| 176 | · intro v w |
| 177 | have hparam (i : ℕ) : |
| 178 | chartParametrization (fun _ : Unit => V) (fun _ => hV) (i := ()) (e i) =ᶠ[𝓝 (0 : E)] |
| 179 | (Phi i) := |
| 180 | Filter.mem_of_superset (hV.mem_nhds (Metric.mem_ball_self hrho)) |
| 181 | (fun y hy => chartParametrization_apply (fun _ : Unit => V) (fun _ => hV) |
| 182 | (e i) ⟨y, hy⟩) |
| 183 | have hsourceInner (i : ℕ) : |
| 184 | ((GeneralizedStrongNeck.rescaled_eighth_flow (S i) (H i)).metric 0).pullbackCoefficients |
| 185 | (chartParametrization (fun _ : Unit => V) (fun _ => hV) (i := ()) (e i)) |
| 186 | 0 v w = inner ℝ v w := by |
| 187 | change ((GeneralizedStrongNeck.rescaled_half_flow (S i) (H i)).metric 0).pullbackCoefficients |
| 188 | _ 0 v w = _ |
| 189 | rw [((GeneralizedStrongNeck.rescaled_half_flow |
| 190 | (S i) (H i)).metric 0).pullbackCoefficients_eq_of_eventuallyEq |
| 191 | (hparam i)] |
| 192 | exact horth i v w |
| 193 | have hconv := L.metric_inner_tendsto (by norm_num) he 0 htime x0 v w |
| 194 | have hconst : Tendsto |
| 195 | (fun k => ((GeneralizedStrongNeck.rescaled_eighth_flow |
| 196 | (S (L.subsequence k)) (H (L.subsequence k))).metric 0).pullbackCoefficients |
| 197 | (chartParametrization (fun _ : Unit => V) (fun _ => hV) |
| 198 | (i := ()) (e (L.subsequence k))) 0 v w) atTop (𝓝 (inner ℝ v w)) := by |
| 199 | apply tendsto_const_nhds.congr' |
| 200 | exact Eventually.of_forall fun k => (hsourceInner (L.subsequence k)).symm |
| 201 | exact tendsto_nhds_unique hconv hconst |
| 202 | |
| 203 | end PoincareMT.M28 |