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.AncientKappa.Compactness.Coordinates.TerminalConvergence |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Coordinates.JetSlices |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Coordinates.PartialCharts |
| 4 | import PoincareLib.Geometry.RicciFlow.Compactness.Convergence.Curvature.MovingJets |
| 5 | |
| 6 | /-! |
| 7 | # Curvature convergence through the included terminal slice |
| 8 | |
| 9 | The closed coefficient jets on the retained reference atlas restrict to |
| 10 | ordinary spatial jets, including at time zero. Local Euclidean realizations |
| 11 | and the existing second-jet curvature theorem then give convergence of the |
| 12 | actual source curvature norms along the same maps and subsequence. |
| 13 | |
| 14 | Reference: Morgan--Tian, Theorem 9.64, pp. 225-229. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option synthInstance.maxHeartbeats 1000000 |
| 20 | set_option maxSynthPendingDepth 32 |
| 21 | set_option maxHeartbeats 1000000 |
| 22 | |
| 23 | open Set Filter |
| 24 | open scoped Manifold ContDiff Bundle Topology |
| 25 | |
| 26 | namespace PoincareMT.NormalizedKappaSolutionSequence |
| 27 | |
| 28 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 29 | FlowCarrier.isManifold FlowCarrier.measurableSpace FlowCarrier.borelSpace |
| 30 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 31 | |
| 32 | local instance terminalCurvatureCarrierConnected (C : FlowCarrier.{0} 3) : |
| 33 | ConnectedSpace C.carrier := connectedSpace_iff_univ.mpr C.connected |
| 34 | |
| 35 | variable {κ : ℝ} (S : NormalizedKappaSolutionSequence κ) |
| 36 | (G : AncientPointedGeometricConvergence (fun k => (S.term k).carrier) |
| 37 | (fun k t => (S.term k).flow.flow.metric (t - 1)) (fun k => (S.term k).base) 1) |
| 38 | (F : RicciFlow 3 G.limitCarrier.carrier (Iic 0)) |
| 39 | (hF : ∀ t : ℝ, t < 0 → F.metric t = G.limitFlow.metric (t + 1)) |
| 40 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 41 | (hcontrol : M23AllTimeCurvatureControl S) |
| 42 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metric 0)) |
| 43 | |
| 44 | include hF P hcontrol hcomplete |
| 45 | |
| 46 | /-- Closed spacetime convergence gives the ordinary spatial scalar jets |
| 47 | at every fixed reference-chart point, including on the terminal slice. -/ |
| 48 | theorem tendsto_terminal_spatial_pullbackJet |
| 49 | (q : G.limitCarrier.carrier) {p : EuclideanSpace ℝ (Fin 3)} |
| 50 | (hp : p ∈ (extChartAt (𝓡 3) q).target) {t : ℝ} (ht : t ≤ 0) |
| 51 | (r : ℕ) (a b : Fin 3) : |
| 52 | Tendsto (fun k => iteratedFDeriv ℝ r (fun x => |
| 53 | ((S.term (G.subsequence k)).flow.flow.metric t).pullbackCoefficients |
| 54 | (G.embedding k ∘ (extChartAt (𝓡 3) q).symm) x |
| 55 | (EuclideanSpace.basisFun (Fin 3) ℝ a) (EuclideanSpace.basisFun (Fin 3) ℝ b)) p) |
| 56 | atTop (𝓝 (iteratedFDeriv ℝ r (fun x => |
| 57 | (F.metric t).pullbackCoefficients (extChartAt (𝓡 3) q).symm x |
| 58 | (EuclideanSpace.basisFun (Fin 3) ℝ a) (EuclideanSpace.basisFun (Fin 3) ℝ b)) p)) := by |
| 59 | let E := EuclideanSpace ℝ (Fin 3) |
| 60 | let f := fun k (z : ℝ × E) => |
| 61 | ((S.term (G.subsequence k)).flow.flow.metric z.1).pullbackCoefficients |
| 62 | (G.embedding k ∘ (extChartAt (𝓡 3) q).symm) z.2 |
| 63 | let g := fun z : ℝ × E => |
| 64 | (F.metric z.1).pullbackCoefficients (extChartAt (𝓡 3) q).symm z.2 |
| 65 | obtain ⟨ε, hε, hεc⟩ := Metric.mem_nhds_iff.mp |
| 66 | ((isOpen_extChartAt_target (I := 𝓡 3) q).mem_nhds hp) |
| 67 | let ρ := ε / 2 |
| 68 | have hρ : 0 < ρ := by dsimp only [ρ]; positivity |
| 69 | have hchart : Metric.closedBall p ρ ⊆ (extChartAt (𝓡 3) q).target := |
| 70 | (Metric.closedBall_subset_ball (by dsimp only [ρ]; linarith)).trans hεc |
| 71 | have hpball : p ∈ Metric.ball p ρ := Metric.mem_ball_self hρ |
| 72 | have hg : ContDiffOn ℝ ∞ g (Iic 0 ×ˢ Metric.closedBall p ρ) := |
| 73 | (F.contDiffOn_pullbackCoefficients_within (isOpen_extChartAt_target q) |
| 74 | (contMDiffOn_extChartAt_symm (n := ∞) q)).mono (prod_mono subset_rfl hchart) |
| 75 | have hf := S.eventually_embedding_contDiffOn_terminal G q hchart |
| 76 | have hjet := S.tendstoUniformlyOn_terminal_bilinearJet_on_closedBall G F hF P |
| 77 | hcontrol hcomplete q hρ hchart r (K := {(t, p)}) isCompact_singleton |
| 78 | (singleton_subset_iff.mpr ⟨show t ∈ Iic 0 from ht, Metric.mem_closedBall_self hρ.le⟩) |
| 79 | let R := ContinuousMultilinearMap.compContinuousLinearMapL |
| 80 | (𝕜 := ℝ) (F := EuclideanSpace ℝ (Fin 3) →L[ℝ] EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) |
| 81 | (fun _ : Fin r => ContinuousLinearMap.inr ℝ ℝ (EuclideanSpace ℝ (Fin 3))) |
| 82 | have hrestricted := R.continuous.continuousAt.tendsto.comp |
| 83 | (hjet.tendsto_at (mem_singleton (t, p))) |
| 84 | have hspatial : Tendsto (fun k => iteratedFDeriv ℝ r (fun x => f k (t, x)) p) |
| 85 | atTop (𝓝 (iteratedFDeriv ℝ r (fun x => g (t, x)) p)) := by |
| 86 | have htarget := AncientCompactness.iteratedFDeriv_spatial_slice_of_centered_halfCylinder |
| 87 | hρ g hg ht hpball r |
| 88 | change iteratedFDeriv ℝ r (fun x => g (t, x)) p = |
| 89 | R (iteratedFDerivWithin ℝ r g (Iic 0 ×ˢ Metric.closedBall p ρ) (t, p)) at htarget |
| 90 | rw [← htarget] at hrestricted |
| 91 | apply hrestricted.congr' |
| 92 | filter_upwards [hf] with k hk |
| 93 | exact (AncientCompactness.iteratedFDeriv_spatial_slice_of_centered_halfCylinder |
| 94 | hρ (f k) hk ht hpball r).symm |
| 95 | have hsmoothg : ContDiffAt ℝ ∞ (fun x => g (t, x)) p := by |
| 96 | have hslice : ContDiffOn ℝ ∞ (fun x => g (t, x)) (Metric.closedBall p ρ) := |
| 97 | hg.comp (contDiff_const.prodMk contDiff_id).contDiffOn (fun x hx => ⟨ht, hx⟩) |
| 98 | exact hslice.contDiffAt |
| 99 | (mem_of_superset (Metric.isOpen_ball.mem_nhds hpball) Metric.ball_subset_closedBall) |
| 100 | have hr : (r : ℕ∞ω) ≤ ∞ := WithTop.coe_le_coe.mpr (le_top : (r : ℕ∞) ≤ ⊤) |
| 101 | have hscalar := (coefficientEval a b).continuous_postcomp_continuousMultilinearMap |
| 102 | |>.continuousAt.tendsto.comp hspatial |
| 103 | rw [← (coefficientEval a b).iteratedFDeriv_comp_left hsmoothg hr] at hscalar |
| 104 | apply hscalar.congr' |
| 105 | filter_upwards [hf] with k hk |
| 106 | have hslice : ContDiffOn ℝ ∞ (fun x => f k (t, x)) (Metric.closedBall p ρ) := |
| 107 | hk.comp (contDiff_const.prodMk contDiff_id).contDiffOn (fun x hx => ⟨ht, hx⟩) |
| 108 | have hsmoothf := hslice.contDiffAt |
| 109 | (mem_of_superset (Metric.isOpen_ball.mem_nhds hpball) Metric.ball_subset_closedBall) |
| 110 | exact ((coefficientEval a b).iteratedFDeriv_comp_left hsmoothf hr).symm |
| 111 | |
| 112 | /-- The full curvature norms of the actual source flows converge through |
| 113 | zero along the original retained spatial maps. -/ |
| 114 | theorem tendsto_terminal_curvatureTensorNorm |
| 115 | (t : ℝ) (ht : t ≤ 0) (x : G.limitCarrier.carrier) : |
| 116 | Tendsto (fun k => ((S.term (G.subsequence k)).flow.flow.connection t).curvatureTensorNorm |
| 117 | (G.embedding k x)) atTop (𝓝 ((F.connection t).curvatureTensorNorm x)) := by |
| 118 | classical |
| 119 | let c := extChartAt (𝓡 3) x |
| 120 | let p := c x |
| 121 | have hp : p ∈ c.target := mem_extChartAt_target x |
| 122 | have hcx : c.symm p = x := c.left_inv (mem_extChartAt_source x) |
| 123 | obtain ⟨g, D, V, hVo, hpV, _, heq⟩ := G.limitCarrier.exists_local_coordinate_realization |
| 124 | (F.metric t) x t p hp |
| 125 | have hg : ∀ᶠ y in 𝓝 p, ∀ a b : Fin 3, |
| 126 | g.euclideanCoefficients y (EuclideanSpace.basisFun (Fin 3) ℝ a) |
| 127 | (EuclideanSpace.basisFun (Fin 3) ℝ b) = |
| 128 | G.limitCarrier.coordinateCoefficient x |
| 129 | (fun _ y v w => G.limitCarrier.metricInner (F.metric t) y v w) a b (t, y) := |
| 130 | Filter.Eventually.mono (hVo.mem_nhds hpV) heq |
| 131 | obtain ⟨ρ, hρ, hρc⟩ := G.exists_pos_referenceChartBall_radius x |
| 132 | have hφ : ∀ᶠ k : ℕ in atTop, ∀ᶠ y in 𝓝 p, |
| 133 | ContMDiffAt (𝓡 3) (𝓡 3) ∞ (G.embedding k ∘ c.symm) y ∧ |
| 134 | Function.Injective (mfderiv (𝓡 3) (𝓡 3) (G.embedding k ∘ c.symm) y) := by |
| 135 | filter_upwards [S.eventually_embedding_chart_isLocalDiffeomorphAt G x |
| 136 | (isCompact_closedBall _ _) hρc] with k hk |
| 137 | filter_upwards [Metric.ball_mem_nhds p (by positivity : 0 < 2 * ρ)] with y hy |
| 138 | have hd := hk y (Metric.ball_subset_closedBall hy) |
| 139 | exact ⟨hd.contMDiffAt, (hd.mfderivToContinuousLinearEquiv (by simp)).injective⟩ |
| 140 | have hnorm := LeviCivitaData.tendsto_curvatureTensorNorm_of_moving_scalar_pullback_jets |
| 141 | (fun k => (S.term (G.subsequence k)).flow.flow.connection t) |
| 142 | (fun k => G.embedding k ∘ c.symm) D (fun _ : ℕ => p) p hφ (by |
| 143 | intro r _ a b |
| 144 | rw [G.limitCarrier.iteratedFDeriv_coordinateCoefficient_eq_of_eventuallyEq |
| 145 | x _ t p g hg r a b] |
| 146 | exact S.tendsto_terminal_spatial_pullbackJet G F hF P hcontrol hcomplete x hp ht r a b) |
| 147 | have hlim : D.curvatureTensorNorm p = (F.connection t).curvatureTensorNorm x := by |
| 148 | have heqnorm := G.limitCarrier.curvatureTensorNorm_eq_of_coordinate_germ |
| 149 | (F.metric t) (F.connection t) x t p hp g D hg |
| 150 | change D.curvatureTensorNorm p = (F.connection t).curvatureTensorNorm (c.symm p) at heqnorm |
| 151 | rw [hcx] at heqnorm |
| 152 | exact heqnorm |
| 153 | rw [hlim] at hnorm |
| 154 | simpa only [Function.comp_apply, hcx] using hnorm |
| 155 | |
| 156 | end PoincareMT.NormalizedKappaSolutionSequence |