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.RadialFieldSystem |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Neck.Jets.PointIsometryJets |
| 4 | |
| 5 | /-! |
| 6 | # Actual radial field jets from retained metric jets |
| 7 | |
| 8 | Each metric realization is needed only as a germ at its retained point. |
| 9 | The actual scalar-normalized source supplies the oriented field, and the |
| 10 | closed radial system converts converging metric jets to field jet bounds. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter VectorField |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.M35 |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | open Uniqueness |
| 24 | |
| 25 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 26 | local notation "B" => V →L[ℝ] V →L[ℝ] ℝ |
| 27 | local notation "GammaB" => V →L[ℝ] V →L[ℝ] V |
| 28 | local notation "RadialC" => B × (GammaB × B) |
| 29 | |
| 30 | local instance retainedRadialMetricNormedGroup : NormedAddCommGroup B := inferInstance |
| 31 | local instance retainedRadialMetricNormedSpace : NormedSpace ℝ B := inferInstance |
| 32 | local instance retainedRadialGammaNormedGroup : NormedAddCommGroup GammaB := inferInstance |
| 33 | local instance retainedRadialGammaNormedSpace : NormedSpace ℝ GammaB := inferInstance |
| 34 | local instance retainedRadialCoefficientNormedGroup : NormedAddCommGroup RadialC := inferInstance |
| 35 | local instance retainedRadialCoefficientNormedSpace : NormedSpace ℝ RadialC := inferInstance |
| 36 | |
| 37 | /-- The actual unit field has bounded ordinary size in any retained |
| 38 | uniformly elliptic realization; no bound on the coordinate map is assumed. -/ |
| 39 | theorem radial_pullback_norm_le |
| 40 | {g G : RiemannianMetric 3 V} |
| 41 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 42 | ∀ x u v : V, |
| 43 | G.inner (standardRotation A x) |
| 44 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 45 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = G.inner x u v) |
| 46 | {f : V → V} {x : V} (hinv : (mfderiv (𝓡 3) (𝓡 3) f x).IsInvertible) |
| 47 | (hmetric : ∀ u v : V, g.inner x u v = G.inner (f x) |
| 48 | (mfderiv (𝓡 3) (𝓡 3) f x u) (mfderiv (𝓡 3) (𝓡 3) f x v)) |
| 49 | (hzero : f x ≠ 0) {a : ℝ} (ha : 0 < a) |
| 50 | (hell : ∀ v : V, a * ‖v‖ ^ 2 ≤ g.inner x v v) : |
| 51 | ‖pullback ℝ f (radialUnitField G) x‖ ≤ a⁻¹ + 1 := by |
| 52 | let Y := mpullback (𝓡 3) (𝓡 3) f (radialUnitField G) |
| 53 | have hu : g.inner x (Y x) (Y x) = 1 := by |
| 54 | rw [hmetric] |
| 55 | simp only [Y, mpullback, hinv.self_apply_inverse] |
| 56 | exact radialUnitField_unit G hrotation hzero |
| 57 | have huE : g.inner x (pullback ℝ f (radialUnitField G) x) |
| 58 | (pullback ℝ f (radialUnitField G) x) = 1 := by |
| 59 | simpa only [Y, mpullback_eq_pullback] using! hu |
| 60 | have h := hell (pullback ℝ f (radialUnitField G) x) |
| 61 | have hle : a * ‖pullback ℝ f (radialUnitField G) x‖ ^ 2 ≤ 1 := |
| 62 | h.trans huE.le |
| 63 | have hs : ‖pullback ℝ f (radialUnitField G) x‖ ^ 2 ≤ 1 / a := by |
| 64 | apply (le_div_iff₀ ha).mpr |
| 65 | simpa only [mul_comm] using hle |
| 66 | simp only [one_div] at hs |
| 67 | nlinarith only [hs, inv_pos.mpr ha, |
| 68 | sq_nonneg (‖pullback ℝ f (radialUnitField G) x‖ - 1 / 2)] |
| 69 | |
| 70 | /-- Moving-point convergence of actual metric jets bounds the actual |
| 71 | pulled-back radial field and shape jets. The only value bounds are uniform |
| 72 | ellipticity and the already geometric radial shape bound. -/ |
| 73 | theorem retained_radial_field_shape_jets |
| 74 | {gseq Gseq : ℕ → RiemannianMetric 3 V} {g : RiemannianMetric 3 V} |
| 75 | (Dseq : ∀ k, LeviCivitaData (gseq k)) (DGseq : ∀ k, LeviCivitaData (Gseq k)) |
| 76 | (D : LeviCivitaData g) (f : ℕ → V → V) (pseq : ℕ → V) (p : V) (n : ℕ) |
| 77 | (hrotation : ∀ k, ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 78 | ∀ x u v : V, |
| 79 | (Gseq k).inner (standardRotation A x) |
| 80 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 81 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = (Gseq k).inner x u v) |
| 82 | (hf : ∀ k, ∀ᶠ y in 𝓝 (pseq k), ContMDiffAt (𝓡 3) (𝓡 3) ∞ (f k) y) |
| 83 | (hinv : ∀ k, ∀ᶠ y in 𝓝 (pseq k), (mfderiv (𝓡 3) (𝓡 3) (f k) y).IsInvertible) |
| 84 | (hmetric : ∀ k, ∀ᶠ y in 𝓝 (pseq k), ∀ u v : V, |
| 85 | (gseq k).inner y u v = (Gseq k).inner (f k y) |
| 86 | (mfderiv (𝓡 3) (𝓡 3) (f k) y u) (mfderiv (𝓡 3) (𝓡 3) (f k) y v)) |
| 87 | (hzero : ∀ k, f k (pseq k) ≠ 0) |
| 88 | {a : ℝ} (ha : 0 < a) |
| 89 | (hell : ∀ k (v : V), a * ‖v‖ ^ 2 ≤ (gseq k).inner (pseq k) v v) |
| 90 | (hshape : ∃ C : ℝ, ∀ k, |
| 91 | |axisWarpingSlope (Gseq k) ‖f k (pseq k)‖ / |
| 92 | axisWarpingRadius (Gseq k) ‖f k (pseq k)‖| ≤ C) |
| 93 | (hjet : ∀ m ≤ n + 2, Tendsto |
| 94 | (fun k => iteratedFDeriv ℝ m (gseq k).euclideanCoefficients (pseq k)) atTop |
| 95 | (𝓝 (iteratedFDeriv ℝ m g.euclideanCoefficients p))) : |
| 96 | HasUniformJetBoundsAt (n + 1) |
| 97 | (fun k y => (pullback ℝ (f k) (radialUnitField (Gseq k)) y, |
| 98 | axisWarpingSlope (Gseq k) ‖f k y‖ / axisWarpingRadius (Gseq k) ‖f k y‖)) pseq := by |
| 99 | let Z k := pullback ℝ (f k) (radialUnitField (Gseq k)) |
| 100 | let s k y := axisWarpingSlope (Gseq k) ‖f k y‖ / axisWarpingRadius (Gseq k) ‖f k y‖ |
| 101 | have hfs k := contMDiffAt_iff_contDiffAt.mp (hf k).self_of_nhds |
| 102 | have hi k : (fderiv ℝ (f k) (pseq k)).IsInvertible := by |
| 103 | simpa only [mfderiv_eq_fderiv] using (hinv k).self_of_nhds |
| 104 | have hZ k : ContDiffAt ℝ ∞ (Z k) (pseq k) := |
| 105 | euclidean_radial_pullback_contDiffAt (Gseq k) (hfs k) (hi k) (hzero k) |
| 106 | have hs k : ContDiffAt ℝ ∞ (s k) (pseq k) := |
| 107 | (radial_shape_contDiffAt (Gseq k) (hzero k)).comp (pseq k) (hfs k) |
| 108 | have hB k := (gseq k).contDiffAt_euclideanCoefficients (pseq k) |
| 109 | have hBj : HasUniformJetBoundsAt (n + 1) |
| 110 | (fun k => (gseq k).euclideanCoefficients) pseq := by |
| 111 | intro m hm |
| 112 | obtain ⟨C, hC⟩ := (Metric.isBounded_range_of_tendsto _ (hjet m (by omega))).exists_norm_le |
| 113 | exact ⟨C, fun k => hC _ (mem_range_self k)⟩ |
| 114 | have hGamma := finite_christoffel_jets_at hB hBj ha hell |
| 115 | have hsGamma k : ContDiffAt ℝ ∞ |
| 116 | (CoordinateExponential.christoffelBilinear (gseq k).euclideanCoefficients) (pseq k) := |
| 117 | CoordinateExponential.contDiffAt_christoffelBilinear (hB k) |
| 118 | (CoordinateTransition.isInvertible_of_uniformEllipticity ha (hell k)) |
| 119 | have hRicci : HasUniformJetBoundsAt n |
| 120 | (fun k => radialRicciCoefficients (Dseq k)) pseq := by |
| 121 | intro m hm |
| 122 | have h := radialRicciCoefficients_jets_tendsto Dseq D pseq p m |
| 123 | (fun r hr => hjet r (by omega)) |
| 124 | obtain ⟨C, hC⟩ := (Metric.isBounded_range_of_tendsto _ h).exists_norm_le |
| 125 | exact ⟨C, fun k => hC _ (mem_range_self k)⟩ |
| 126 | have hsRicci k := radialRicciCoefficients_contDiffAt (Dseq k) (pseq k) |
| 127 | have hC := (hBj.mono_order (Nat.le_succ n)).prodMk |
| 128 | (hGamma.prodMk hRicci hsGamma hsRicci) hB |
| 129 | (fun k => (hsGamma k).prodMk (hsRicci k)) |
| 130 | obtain ⟨C, hCshape⟩ := hshape |
| 131 | refine radial_field_shape_jets_at |
| 132 | (fun k => (hB k).prodMk ((hsGamma k).prodMk (hsRicci k))) |
| 133 | (fun k => (hZ k).prodMk (hs k)) hC |
| 134 | ⟨max (a⁻¹ + 1) C, fun k => ?_⟩ ?_ |
| 135 | · rw [Prod.norm_def] |
| 136 | exact max_le_max (radial_pullback_norm_le (hrotation k) (hinv k).self_of_nhds |
| 137 | (hmetric k).self_of_nhds (hzero k) ha (hell k)) (hCshape k) |
| 138 | · intro k |
| 139 | have hn : ∀ᶠ y in 𝓝 (pseq k), f k y ≠ 0 := |
| 140 | (hfs k).continuousAt.preimage_mem_nhds (isOpen_compl_singleton.mem_nhds (hzero k)) |
| 141 | filter_upwards [hf k, (hinv k).eventually_nhds, (hmetric k).eventually_nhds, hn] |
| 142 | with y hfy hiy hmy hny |
| 143 | exact (radial_field_shape_hasFDerivAt (Dseq k) (DGseq k) (hrotation k) |
| 144 | hfy hiy hmy hny).fderiv |
| 145 | |
| 146 | end |
| 147 | |
| 148 | end PoincareMT.M35 |