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.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.ActualFarTipRadialCurvature |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.CylinderRadialPlane |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.NullSectionalPlane |
| 5 | |
| 6 | /-! |
| 7 | # An actual null plane at a far-tip blowup basepoint |
| 8 | |
| 9 | The actual radial planes are pulled through the selected cylinders and |
| 10 | retained in one fixed basepoint chart. The limiting plane is orthonormal |
| 11 | for the actual limit metric, with zero actual curvature-tensor value. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 19 | |
| 20 | namespace PoincareMT.M35.OrdinaryRealization |
| 21 | |
| 22 | open Uniqueness |
| 23 | |
| 24 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 25 | |
| 26 | @[instance_reducible] private noncomputable def nullPlaneCovectorNormedGroup : |
| 27 | NormedAddCommGroup (V →L[ℝ] ℝ) := inferInstance |
| 28 | attribute [local instance] nullPlaneCovectorNormedGroup |
| 29 | |
| 30 | @[instance_reducible] private noncomputable def nullPlaneBilinearNormedGroup : |
| 31 | NormedAddCommGroup (V →L[ℝ] V →L[ℝ] ℝ) := inferInstance |
| 32 | attribute [local instance] nullPlaneBilinearNormedGroup |
| 33 | |
| 34 | /-- Theorem 12.32: an actual scalar blowup centered at points whose |
| 35 | normalized distance from the tip diverges retains a null orthonormal plane |
| 36 | at its actual limiting basepoint. -/ |
| 37 | theorem blowupSequence_far_tip_exists_null_plane |
| 38 | (P : M35StandardCapPredecessors) |
| 39 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 40 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 41 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 42 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 43 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 44 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 45 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 46 | (blowupBackwardInterval ⊤)) : |
| 47 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 48 | letI : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 49 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 50 | ∃ u v : TangentSpace (𝓡 3) L.limit.base, |
| 51 | (L.limit.flow.metric 0).inner L.limit.base u u = 1 ∧ |
| 52 | (L.limit.flow.metric 0).inner L.limit.base v v = 1 ∧ |
| 53 | (L.limit.flow.metric 0).inner L.limit.base u v = 0 ∧ |
| 54 | (L.limit.flow.connection 0).curvatureTensor L.limit.base u v u v = 0 := by |
| 55 | classical |
| 56 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 57 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 58 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 59 | have : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 60 | let q := L.limit.base |
| 61 | let c := extChartAt (𝓡 3) (show L.limit.carrier.carrier from q) |
| 62 | let p := c q |
| 63 | have hp : p ∈ c.target := mem_extChartAt_target (show L.limit.carrier.carrier from q) |
| 64 | have hcp : c.symm p = q := |
| 65 | c.left_inv (mem_extChartAt_source (show L.limit.carrier.carrier from q)) |
| 66 | have hKU : ({p} : Set V) ⊆ {z | z ∈ c.target ∧ c.symm z ∈ L.exhaustion.space 0} := by |
| 67 | rintro z rfl |
| 68 | refine ⟨hp, ?_⟩ |
| 69 | rw [hcp] |
| 70 | exact L.exhaustion.base_mem 0 |
| 71 | have hc (z : V) (hz : z ∈ c.target) : ContMDiffAt (𝓡 3) (𝓡 3) ∞ c.symm z := |
| 72 | (contMDiffOn_extChartAt_symm (n := ∞) |
| 73 | (show L.limit.carrier.carrier from q)).contMDiffAt |
| 74 | ((isOpen_extChartAt_target (I := 𝓡 3) |
| 75 | (show L.limit.carrier.carrier from q)).mem_nhds hz) |
| 76 | have hci (z : V) (hz : z ∈ c.target) : |
| 77 | (mfderiv (𝓡 3) (𝓡 3) c.symm z).IsInvertible := by |
| 78 | simpa only [ModelWithCorners.range_eq_univ, mfderivWithin_univ] using |
| 79 | isInvertible_mfderivWithin_extChartAt_symm |
| 80 | (I := 𝓡 3) (x := (show L.limit.carrier.carrier from q)) hz |
| 81 | obtain ⟨g, D, hcoeff, _hnorm⟩ := exists_local_curvature_derivative_realization |
| 82 | (L.limit.flow.metric 0) (L.limit.flow.connection 0) c.symm |
| 83 | (isOpen_extChartAt_target (show L.limit.carrier.carrier from q)) hp hc hci |
| 84 | let Q k := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 85 | let hQ k := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 86 | let G k := M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence k))) (Q k) (hQ k) |
| 87 | let B (k : ℕ) (a b : Fin 3) (z : V) := |
| 88 | fixedCylinderMetricCoefficient E.flow.base.flow L.limit.sliceCarrier |
| 89 | (t (L.subsequence k)) (Q k) |
| 90 | (fun w => ((L.embedding k).forward 0 |
| 91 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ w).val) q a b (0, z) |
| 92 | let H (a b : Fin 3) (z : V) := |
| 93 | (L.limit.flow.metric 0).pullbackCoefficients c.symm z |
| 94 | (EuclideanSpace.basisFun (Fin 3) ℝ a) (EuclideanSpace.basisFun (Fin 3) ℝ b) |
| 95 | have hxne : ∀ᶠ k in atTop, x (L.subsequence k) ≠ 0 := by |
| 96 | filter_upwards [(hd.comp L.subsequence_strictMono.tendsto_atTop).eventually |
| 97 | (eventually_gt_atTop 0)] with k hk |
| 98 | intro heq |
| 99 | have hzero : (E.flow.metric (t (L.subsequence k))).edist 0 (x (L.subsequence k)) = 0 := by |
| 100 | rw [heq] |
| 101 | exact @edist_self StandardCapSpace |
| 102 | (E.flow.metric (t (L.subsequence k))).toEMetricSpace.toPseudoEMetricSpace 0 |
| 103 | have hfalse := hk |
| 104 | simp only [Function.comp_apply, hzero, ENNReal.toReal_zero, zero_mul, |
| 105 | lt_self_iff_false] at hfalse |
| 106 | have hreal : ∀ᶠ k : ℕ in atTop, |
| 107 | ∃ gd : Σ g' : RiemannianMetric 3 V, LeviCivitaData g' × V × V, |
| 108 | (∀ᶠ z in 𝓝 p, ∀ a b : Fin 3, |
| 109 | gd.1.euclideanCoefficients z (EuclideanSpace.basisFun (Fin 3) ℝ a) |
| 110 | (EuclideanSpace.basisFun (Fin 3) ℝ b) = B k a b z) ∧ |
| 111 | gd.1.inner p gd.2.2.1 gd.2.2.1 = 1 ∧ gd.1.inner p gd.2.2.2 gd.2.2.2 = 1 ∧ |
| 112 | gd.1.inner p gd.2.2.1 gd.2.2.2 = 0 ∧ |
| 113 | gd.2.1.curvatureTensor p gd.2.2.1 gd.2.2.2 gd.2.2.1 gd.2.2.2 = |
| 114 | radialMixedCurvatureFactor (G k) ‖x (L.subsequence k)‖ / |
| 115 | axisRadialCoefficient (G k) ‖x (L.subsequence k)‖ := by |
| 116 | filter_upwards [hxne] with k hk |
| 117 | have hzero : (0 : ℝ) ∈ Icc (-L.exhaustion.time k) 0 := |
| 118 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ |
| 119 | have hpU : c.symm p ∈ L.exhaustion.space k := by |
| 120 | rw [hcp] |
| 121 | exact L.exhaustion.base_mem k |
| 122 | have hbase : ((L.embedding k).forward 0 hzero (c.symm p)).val = x (L.subsequence k) := by |
| 123 | rw [hcp] |
| 124 | exact congrArg (fun z : (generalizedFlow E.flow.base.flow).point => z.2.val) |
| 125 | (L.base_preserving k _) |
| 126 | obtain ⟨gk, Dk, uk, vk, hco, hunitu, hunitv, horth, hvalue⟩ := |
| 127 | exists_cylinder_radial_plane_realization E.flow.base.flow (L.embedding k) |
| 128 | (L.exhaustion.space_open k) hzero ((L.embedding k).forward 0 hzero q).property |
| 129 | (E.rotation_invariant (t (L.subsequence k)) (ht (L.subsequence k))) q hp hpU |
| 130 | (by change ((L.embedding k).forward 0 hzero (c.symm p)).val ≠ 0; rwa [hbase]) |
| 131 | refine ⟨⟨gk, Dk, uk, vk⟩, hco, hunitu, hunitv, horth, ?_⟩ |
| 132 | change Dk.curvatureTensor p uk vk uk vk = |
| 133 | radialMixedCurvatureFactor (G k) ‖((L.embedding k).forward 0 hzero (c.symm p)).val‖ / |
| 134 | axisRadialCoefficient (G k) ‖((L.embedding k).forward 0 hzero (c.symm p)).val‖ at hvalue |
| 135 | rwa [hbase] at hvalue |
| 136 | obtain ⟨gd, hgd⟩ := hreal.choice |
| 137 | have hlimcoeff (a b : Fin 3) : |
| 138 | (fun z => g.inner z (EuclideanSpace.basisFun (Fin 3) ℝ a) |
| 139 | (EuclideanSpace.basisFun (Fin 3) ℝ b)) =ᶠ[𝓝 p] H a b := by |
| 140 | filter_upwards [hcoeff] with z hz |
| 141 | exact congrArg (fun A : V →L[ℝ] V →L[ℝ] ℝ => |
| 142 | A (EuclideanSpace.basisFun (Fin 3) ℝ a) (EuclideanSpace.basisFun (Fin 3) ℝ b)) hz |
| 143 | have hjets (r : ℕ) : Tendsto |
| 144 | (fun k => iteratedFDeriv ℝ r (gd k).1.euclideanCoefficients p) atTop |
| 145 | (𝓝 (iteratedFDeriv ℝ r g.euclideanCoefficients p)) := by |
| 146 | apply metric_jet_tendsto_of_scalar_jets |
| 147 | intro a b |
| 148 | rw [(hlimcoeff a b).iteratedFDeriv ℝ r |>.self_of_nhds] |
| 149 | have herr : Tendsto (fun k => iteratedFDeriv ℝ r (B k a b) p - |
| 150 | iteratedFDeriv ℝ r (H a b) p) atTop (𝓝 0) := by |
| 151 | apply Metric.tendsto_nhds.mpr |
| 152 | intro eta heta |
| 153 | obtain ⟨N, _, hN⟩ := blowupSequence_terminal_spatial_CInfinity P E t x ht hR L q |
| 154 | 0 r {p} isCompact_singleton hKU eta heta |
| 155 | filter_upwards [eventually_ge_atTop N] with k hk |
| 156 | have hnk := hN k hk a b p (mem_singleton _) |
| 157 | change ‖iteratedFDeriv ℝ r (B k a b) p - iteratedFDeriv ℝ r (H a b) p‖ < eta at hnk |
| 158 | simpa only [dist_zero_right] using hnk |
| 159 | have hjet : Tendsto (fun k => iteratedFDeriv ℝ r (B k a b) p) atTop |
| 160 | (𝓝 (iteratedFDeriv ℝ r (H a b) p)) := by |
| 161 | simpa only [sub_add_cancel, zero_add] using herr.add_const (iteratedFDeriv ℝ r (H a b) p) |
| 162 | apply hjet.congr' |
| 163 | filter_upwards [hgd] with k hk |
| 164 | have heq : (fun z => (gd k).1.inner z (EuclideanSpace.basisFun (Fin 3) ℝ a) |
| 165 | (EuclideanSpace.basisFun (Fin 3) ℝ b)) =ᶠ[𝓝 p] B k a b := |
| 166 | hk.1.mono (fun z hz => hz a b) |
| 167 | exact ((heq.iteratedFDeriv ℝ r).self_of_nhds).symm |
| 168 | have hcurv : Tendsto (fun k => (gd k).2.1.curvatureTensor p |
| 169 | (gd k).2.2.1 (gd k).2.2.2 (gd k).2.2.1 (gd k).2.2.2) atTop (𝓝 0) := by |
| 170 | apply (blowupSequence_far_tip_radial_sectional_tendsto_zero P E t x ht hR hd L).congr' |
| 171 | exact hgd.mono (fun _ hk => hk.2.2.2.2.symm) |
| 172 | obtain ⟨u, v, hu, hv, huv, hzero⟩ := exists_null_sectional_plane_of_metric_jets |
| 173 | (fun k => (gd k).2.1) D (fun _ => p) p (fun r _ => hjets r) |
| 174 | (fun k => (gd k).2.2.1) (fun k => (gd k).2.2.2) |
| 175 | (hgd.mono (fun _ hk => ⟨hk.2.1, hk.2.2.1, hk.2.2.2.1⟩)) hcurv |
| 176 | have hm : ∀ᶠ z in 𝓝 p, ∀ a b : V, g.inner z a b = |
| 177 | (L.limit.flow.metric 0).inner (c.symm z) |
| 178 | (mfderiv (𝓡 3) (𝓡 3) c.symm z a) (mfderiv (𝓡 3) (𝓡 3) c.symm z b) := by |
| 179 | filter_upwards [hcoeff] with z hz a b |
| 180 | exact congrArg (fun B : V →L[ℝ] V →L[ℝ] ℝ => B a b) hz |
| 181 | have hi : ∀ᶠ z in 𝓝 p, (mfderiv (𝓡 3) (𝓡 3) c.symm z).IsInvertible := |
| 182 | Filter.mem_of_superset |
| 183 | ((isOpen_extChartAt_target (show L.limit.carrier.carrier from q)).mem_nhds hp) hci |
| 184 | refine ⟨mfderiv (𝓡 3) (𝓡 3) c.symm p u, mfderiv (𝓡 3) (𝓡 3) c.symm p v, ?_, ?_, ?_, ?_⟩ |
| 185 | · have h := (hm.self_of_nhds u u).symm.trans hu |
| 186 | rwa [hcp] at h |
| 187 | · have h := (hm.self_of_nhds v v).symm.trans hv |
| 188 | rwa [hcp] at h |
| 189 | · have h := (hm.self_of_nhds u v).symm.trans huv |
| 190 | rwa [hcp] at h |
| 191 | · have h := (D.curvatureTensor_eq_pullback_euclidean |
| 192 | (L.limit.flow.connection 0) (hc p hp) hi hm u v u v).symm.trans hzero |
| 193 | rwa [hcp] at h |
| 194 | |
| 195 | end PoincareMT.M35.OrdinaryRealization |