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.Persistence.SourceNames.Metric |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Limit.Exponential.ExponentialHigherVariation |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Comparison.Initial.ExactBallCharts |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Comparison.Initial.IntrinsicJetConvergence |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Analysis.Compactness.CompactSmoothPullback |
| 6 | |
| 7 | /-! |
| 8 | # Smooth convergence of the actual exact-ball pullback metrics |
| 9 | |
| 10 | The actual physical exponential chart factors through the original |
| 11 | comparison by the smooth radial adjustment. Its normalized pullback |
| 12 | therefore converges in all finite jets to the standard metric. |
| 13 | Morgan--Tian, Corollary 16.7, p. 372; see derivation 23. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter Metric |
| 20 | open scoped Manifold ContDiff Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M44 |
| 25 | |
| 26 | local notation "E" => StandardCapSpace |
| 27 | local notation "Bilin" => E →L[ℝ] E →L[ℝ] ℝ |
| 28 | |
| 29 | noncomputable local instance adjustedMetricBilinearNormedGroup : NormedAddCommGroup Bilin := |
| 30 | ContinuousLinearMap.toNormedAddCommGroup |
| 31 | |
| 32 | noncomputable local instance adjustedMetricBilinearNormedSpace : NormedSpace ℝ Bilin := |
| 33 | ContinuousLinearMap.toNormedSpace |
| 34 | |
| 35 | namespace NormalizedCapExponential |
| 36 | |
| 37 | variable {g₀ : StandardInitialMetric} {S : GeneralizedSliceCarrier.{u}} |
| 38 | {g : RiemannianMetric 3 S.carrier} {tip : S.carrier} {scale eta R : ℝ} |
| 39 | {Q : SurgeryCapClose g₀ S g tip scale eta} |
| 40 | |
| 41 | /-- The actual exact-ball chart in the original comparison coordinates. |
| 42 | Source: Corollary 16.7, p. 372. -/ |
| 43 | noncomputable def adjustment (D : NormalizedCapExponential Q R) (L : E ≃L[ℝ] E) : E → E := |
| 44 | D.coordinateMap ∘ standardFrameLogarithm g₀ L |
| 45 | |
| 46 | /-- The literal normalized physical metric pulled back by the actual |
| 47 | exponential chart, with its single inverse-square scale factor. |
| 48 | Source: Corollary 16.7, p. 372. -/ |
| 49 | noncomputable def adjustedCoefficients (D : NormalizedCapExponential Q R) |
| 50 | (L : E ≃L[ℝ] E) : E → Bilin := |
| 51 | fun x => scale⁻¹ ^ 2 • g.pullbackCoefficients (D.map ∘ standardFrameLogarithm g₀ L) x |
| 52 | |
| 53 | /-- The actual adjusted physical metric is the bilinear pullback of |
| 54 | the original normalized coefficients. The composition identity holds |
| 55 | on a neighborhood of the point. Source: Corollary 16.7, p. 372. -/ |
| 56 | theorem adjustedCoefficients_eq (D : NormalizedCapExponential Q R) (L : E ≃L[ℝ] E) |
| 57 | {x : E} (hx : standardFrameLogarithm g₀ L x ∈ ball 0 R) : |
| 58 | D.adjustedCoefficients L x = |
| 59 | (Q.normalizedCoefficients (D.adjustment L x)).bilinearComp |
| 60 | (fderiv ℝ (D.adjustment L) x) (fderiv ℝ (D.adjustment L) x) := by |
| 61 | have ha : ContDiffAt ℝ ∞ (D.adjustment L) x := |
| 62 | (D.coordinateMap_smooth.contDiffAt (isOpen_ball.mem_nhds hx)).comp x |
| 63 | (standardFrameLogarithm_contDiff g₀ L).contDiffAt |
| 64 | have hsource : D.adjustment L x ∈ g₀.metric.ball 0 eta⁻¹ := |
| 65 | Q.toPartialDiffeomorph.map_target (D.map_mem _ hx) |
| 66 | have he : MDifferentiableAt (𝓡 3) (𝓡 3) Q.map (D.adjustment L x) := |
| 67 | (Q.map_smooth.contMDiffAt |
| 68 | (Q.toPartialDiffeomorph.open_source.mem_nhds hsource)).mdifferentiableAt (by simp) |
| 69 | have hcomp : Q.map ∘ D.adjustment L =ᶠ[𝓝 x] D.map ∘ standardFrameLogarithm g₀ L := by |
| 70 | have hlog := (standardFrameLogarithm_contDiff g₀ L).continuous.continuousAt (x := x) |
| 71 | filter_upwards [hlog.preimage_mem_nhds (isOpen_ball.mem_nhds hx)] with y hy |
| 72 | exact Q.right_inverse (D.map_mem _ hy) |
| 73 | ext v w |
| 74 | change scale⁻¹ ^ 2 * g.pullbackCoefficients |
| 75 | (D.map ∘ standardFrameLogarithm g₀ L) x v w = |
| 76 | scale⁻¹ ^ 2 * g.pullbackCoefficients Q.map (D.adjustment L x) |
| 77 | (fderiv ℝ (D.adjustment L) x v) (fderiv ℝ (D.adjustment L) x w) |
| 78 | rw [g.pullbackCoefficients_eq_of_comp_germ he (ha.differentiableAt (by simp)) hcomp] |
| 79 | |
| 80 | end NormalizedCapExponential |
| 81 | |
| 82 | variable (g₀ : StandardInitialMetric) (S : ℕ → GeneralizedSliceCarrier.{u}) |
| 83 | (g : (n : ℕ) → RiemannianMetric 3 (S n).carrier) |
| 84 | (tip : (n : ℕ) → (S n).carrier) (scale eta : ℕ → ℝ) {R : ℝ} |
| 85 | (Q : (n : ℕ) → SurgeryCapClose g₀ (S n) (g n) (tip n) (scale n) (eta n)) |
| 86 | (D : (n : ℕ) → NormalizedCapExponential (Q n) R) |
| 87 | |
| 88 | /-- The actual radial coordinate adjustments converge smoothly to the |
| 89 | identity on the fixed standard comparison ball. |
| 90 | Source: Corollary 16.7, p. 372. -/ |
| 91 | theorem compactSmoothConvergenceOn_initial_adjustments |
| 92 | (heta : Tendsto eta atTop (𝓝 0)) (L : E ≃L[ℝ] E) |
| 93 | (hL : Tendsto (fun n => fderiv ℝ (D n).coordinateMap 0) atTop |
| 94 | (𝓝 L.toContinuousLinearMap)) |
| 95 | (hLinner : ∀ v w, g₀.metric.inner 0 (L v) (L w) = inner ℝ v w) : |
| 96 | CompactSmoothConvergenceOn (fun n => (D n).adjustment L) id atTop |
| 97 | (g₀.metric.ball 0 (R / 2)) := by |
| 98 | have hR : 0 < R / 2 := half_pos (D 0).radius_pos |
| 99 | have hU : IsOpen (g₀.metric.ball 0 (R / 2)) := by |
| 100 | rw [M36.standard_ball_eq_euclidean g₀ hR] |
| 101 | exact isOpen_ball |
| 102 | have hlog : CompactSmoothConvergenceOn (fun _ : ℕ => standardFrameLogarithm g₀ L) |
| 103 | (standardFrameLogarithm g₀ L) atTop (g₀.metric.ball 0 (R / 2)) := |
| 104 | CompactSmoothConvergenceOn.constant hU (standardFrameLogarithm_contDiff g₀ L).contDiffOn |
| 105 | have hconv := (compactSmoothConvergenceOn_initial_exponentials |
| 106 | g₀ S g tip scale eta Q D heta L hL).comp hlog |
| 107 | (fun x hx => (standardFrameLogarithm_mem_ball g₀ L hLinner hR x).mpr hx) |
| 108 | have heq : standardFrameExponential g₀ L ∘ standardFrameLogarithm g₀ L = id := |
| 109 | funext (standardFrameExponential_logarithm g₀ L) |
| 110 | simpa only [heq, NormalizedCapExponential.adjustment] using hconv |
| 111 | |
| 112 | /-- Every finite derivative of the literal normalized actual |
| 113 | exact-ball pullback metric converges to the standard initial metric. |
| 114 | Source: Corollary 16.7, p. 372. -/ |
| 115 | theorem compactSmoothConvergenceOn_adjusted_metrics |
| 116 | (heta : Tendsto eta atTop (𝓝 0)) (L : E ≃L[ℝ] E) |
| 117 | (hL : Tendsto (fun n => fderiv ℝ (D n).coordinateMap 0) atTop |
| 118 | (𝓝 L.toContinuousLinearMap)) |
| 119 | (hLinner : ∀ v w, g₀.metric.inner 0 (L v) (L w) = inner ℝ v w) : |
| 120 | CompactSmoothConvergenceOn (fun n => (D n).adjustedCoefficients L) |
| 121 | g₀.metric.euclideanCoefficients atTop (g₀.metric.ball 0 (R / 2)) := by |
| 122 | have hB := compactSmoothConvergenceOn_initial_coefficients g₀ S g tip scale eta Q heta |
| 123 | have ha := compactSmoothConvergenceOn_initial_adjustments g₀ S g tip scale eta Q D |
| 124 | heta L hL hLinner |
| 125 | have hpull := hB.pullback_bilinear ha (fun _ _ => mem_univ _) |
| 126 | apply hpull.congr |
| 127 | · intro n x hx |
| 128 | apply (D n).adjustedCoefficients_eq L |
| 129 | exact (ball_subset_ball (by linarith [(D 0).radius_pos])) |
| 130 | ((standardFrameLogarithm_mem_ball g₀ L hLinner (half_pos (D 0).radius_pos) x).mpr hx) |
| 131 | · intro x _ |
| 132 | ext v w |
| 133 | simp only [id_eq, fderiv_id, ContinuousLinearMap.bilinearComp_apply, |
| 134 | ContinuousLinearMap.id_apply] |
| 135 | |
| 136 | /-- The exact-ball physical charts have arbitrarily small intrinsic |
| 137 | errors of each fixed order on each smaller compact standard ball. |
| 138 | Source: Corollary 16.7, p. 372. -/ |
| 139 | theorem eventually_adjusted_intrinsic_jet_error_bound |
| 140 | (heta : Tendsto eta atTop (𝓝 0)) (L : E ≃L[ℝ] E) |
| 141 | (hL : Tendsto (fun n => fderiv ℝ (D n).coordinateMap 0) atTop |
| 142 | (𝓝 L.toContinuousLinearMap)) |
| 143 | (hLinner : ∀ v w, g₀.metric.inner 0 (L v) (L w) = inner ℝ v w) |
| 144 | {A : ℝ} (hA : 0 < A) (hAR : A < R / 2) (m : ℕ) |
| 145 | {epsilon : ℝ} (hepsilon : 0 < epsilon) : |
| 146 | ∃ bound : ℝ, bound < epsilon ∧ ∀ᶠ n in atTop, ∀ x ∈ g₀.metric.ball 0 A, |
| 147 | singularMetricJetErrorSquared g₀.metric g₀.connection |
| 148 | (fun y v => (D n).adjustedCoefficients L y (v 0) (v 1)) m x ≤ bound := by |
| 149 | have hK : IsCompact (closure (g₀.metric.ball 0 A)) := by |
| 150 | rw [M36.standard_closure_ball g₀ hA] |
| 151 | exact M36.standard_closed_ball_compact g₀ hA.le |
| 152 | have hKU : closure (g₀.metric.ball 0 A) ⊆ g₀.metric.ball 0 (R / 2) := by |
| 153 | rw [M36.standard_closure_ball g₀ hA] |
| 154 | intro x hx |
| 155 | exact hx.trans_lt (ENNReal.ofReal_lt_ofReal_iff (half_pos (D 0).radius_pos) |>.mpr hAR) |
| 156 | obtain ⟨bound, hb, he⟩ := eventually_intrinsic_jet_error_bound g₀.metric g₀.connection |
| 157 | (compactSmoothConvergenceOn_adjusted_metrics g₀ S g tip scale eta Q D heta L hL hLinner) |
| 158 | hK hKU m hepsilon |
| 159 | exact ⟨bound, hb, he.mono fun n hn x hx => hn x (subset_closure hx)⟩ |
| 160 | |
| 161 | end PoincareMT.M44 |