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.Inheritance |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Scalar |
| 3 | |
| 4 | /-! |
| 5 | # Scalar monotonicity on the retained raw ancient limit |
| 6 | |
| 7 | Finite windows preserve the same carrier, flow, subsequence and spatial maps. |
| 8 | The existing scalar and curvature-norm convergence theorems therefore apply |
| 9 | at every fixed interior point. The original structural inequalities pass to |
| 10 | the raw limit before any globally bounded ancient-solution package is formed. |
| 11 | |
| 12 | Reference: Morgan--Tian, Theorem 9.64, pp. 225-229; Kleiner--Lott, |
| 13 | Theorem 46.1, pp. 2687-2688. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 25 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 26 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 27 | |
| 28 | namespace AncientPointedGeometricConvergence |
| 29 | |
| 30 | variable {n : ℕ} {C : ℕ → FlowCarrier.{0} n} {J : ℕ → Set ℝ} |
| 31 | (F : ∀ k, RicciFlow n (C k).carrier (J k)) {p : ∀ k, (C k).carrier} {T : ℝ} |
| 32 | (G : AncientPointedGeometricConvergence C (fun k => (F k).metric) p T) |
| 33 | (hT : 0 < T) |
| 34 | (htime : ∀ a b : ℝ, b < T → ∀ᶠ k in atTop, Icc a b ⊆ J k) |
| 35 | |
| 36 | include hT htime |
| 37 | |
| 38 | /-- Scalar curvature converges at every fixed interior point along the |
| 39 | original ancient subsequence and its time-independent spatial maps. -/ |
| 40 | theorem tendsto_scalarCurvature_on_finite_windows |
| 41 | (t : ℝ) (ht : t < T) (x : G.limitCarrier.carrier) : |
| 42 | Tendsto (fun k => ((F (G.subsequence k)).connection t).scalarCurvature |
| 43 | (G.embedding k x)) atTop |
| 44 | (𝓝 ((G.limitFlow.connection t).scalarCurvature x)) := by |
| 45 | obtain ⟨a, b, ha, hb, hbT, htw⟩ := exists_ancient_window_of_isCompact hT |
| 46 | isCompact_singleton (singleton_subset_iff.mpr ht) |
| 47 | obtain ⟨N, hN⟩ := exists_source_window_tail |
| 48 | (G.subsequence_strictMono.tendsto_atTop.eventually (htime a b hbT)) |
| 49 | let W := G.window F (ha.trans hb) hbT.le N hN |
| 50 | apply (tendsto_add_atTop_iff_nat N).mp |
| 51 | exact W.tendsto_scalarCurvature t (htw (mem_singleton t)) x |
| 52 | |
| 53 | /-- Curvature norms converge through the same spatial maps at every fixed |
| 54 | interior point of the one ancient limit. -/ |
| 55 | theorem tendsto_curvatureTensorNorm_on_finite_windows |
| 56 | (t : ℝ) (ht : t < T) (x : G.limitCarrier.carrier) : |
| 57 | Tendsto (fun k => ((F (G.subsequence k)).connection t).curvatureTensorNorm |
| 58 | (G.embedding k x)) atTop |
| 59 | (𝓝 ((G.limitFlow.connection t).curvatureTensorNorm x)) := by |
| 60 | obtain ⟨a, b, ha, hb, hbT, htw⟩ := exists_ancient_window_of_isCompact hT |
| 61 | isCompact_singleton (singleton_subset_iff.mpr ht) |
| 62 | obtain ⟨N, hN⟩ := exists_source_window_tail |
| 63 | (G.subsequence_strictMono.tendsto_atTop.eventually (htime a b hbT)) |
| 64 | let W := G.window F (ha.trans hb) hbT.le N hN |
| 65 | apply (tendsto_add_atTop_iff_nat N).mp |
| 66 | exact W.tendsto_curvatureTensorNorm t (htw (mem_singleton t)) x |
| 67 | |
| 68 | end AncientPointedGeometricConvergence |
| 69 | |
| 70 | namespace NormalizedKappaSolutionSequence |
| 71 | |
| 72 | variable {kappa : ℝ} (S : NormalizedKappaSolutionSequence kappa) |
| 73 | |
| 74 | local instance monotonicitySourceConnected (k : ℕ) : |
| 75 | ConnectedSpace (S.term k).carrier.carrier := (S.term k).connectedSpace |
| 76 | |
| 77 | variable (G : AncientPointedGeometricConvergence (fun k => (S.term k).carrier) |
| 78 | (fun k t => (S.term k).flow.flow.metric (t - 1)) (fun k => (S.term k).base) 1) |
| 79 | |
| 80 | /-- Scalar convergence for the actual shifted normalized source sequence. -/ |
| 81 | theorem interiorLimit_tendsto_scalarCurvature |
| 82 | (t : ℝ) (ht : t < 1) (x : G.limitCarrier.carrier) : |
| 83 | Tendsto (fun k => ((S.term (G.subsequence k)).flow.flow.connection (t - 1)).scalarCurvature |
| 84 | (G.embedding k x)) atTop (𝓝 ((G.limitFlow.connection t).scalarCurvature x)) := by |
| 85 | let F (k : ℕ) : RicciFlow 3 (S.term k).carrier.carrier |
| 86 | ((fun t : ℝ => t - 1) ⁻¹' Iic 0) := |
| 87 | (S.term k).flow.flow.bufferedExpandingFlow 1 |
| 88 | apply G.tendsto_scalarCurvature_on_finite_windows F (by norm_num) ?_ t ht x |
| 89 | intro a b hb |
| 90 | exact Eventually.of_forall fun k s hs => by |
| 91 | change s - 1 ≤ 0 |
| 92 | linarith [hs.2] |
| 93 | |
| 94 | /-- Curvature-norm convergence for the same shifted source sequence. -/ |
| 95 | theorem interiorLimit_tendsto_curvatureTensorNorm |
| 96 | (t : ℝ) (ht : t < 1) (x : G.limitCarrier.carrier) : |
| 97 | Tendsto (fun k => ((S.term (G.subsequence k)).flow.flow.connection (t - 1)).curvatureTensorNorm |
| 98 | (G.embedding k x)) atTop (𝓝 ((G.limitFlow.connection t).curvatureTensorNorm x)) := by |
| 99 | let F (k : ℕ) : RicciFlow 3 (S.term k).carrier.carrier |
| 100 | ((fun t : ℝ => t - 1) ⁻¹' Iic 0) := |
| 101 | (S.term k).flow.flow.bufferedExpandingFlow 1 |
| 102 | apply G.tendsto_curvatureTensorNorm_on_finite_windows F (by norm_num) ?_ t ht x |
| 103 | intro a b hb |
| 104 | exact Eventually.of_forall fun k s hs => by |
| 105 | change s - 1 ≤ 0 |
| 106 | linarith [hs.2] |
| 107 | |
| 108 | /-- Scalar monotonicity passes from M16's actual source solutions to the |
| 109 | same raw limit without a global curvature bound on that limit. -/ |
| 110 | theorem interiorLimit_scalar_monotone |
| 111 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 112 | {s t : ℝ} (hst : s ≤ t) (ht : t < 1) (x : G.limitCarrier.carrier) : |
| 113 | (G.limitFlow.connection s).scalarCurvature x ≤ |
| 114 | (G.limitFlow.connection t).scalarCurvature x := by |
| 115 | apply le_of_tendsto_of_tendsto |
| 116 | (S.interiorLimit_tendsto_scalarCurvature G s (hst.trans_lt ht) x) |
| 117 | (S.interiorLimit_tendsto_scalarCurvature G t ht x) |
| 118 | exact Eventually.of_forall fun k => P.scalar_monotone |
| 119 | (S.term (G.subsequence k)).carrier.carrier (S.term (G.subsequence k)).flow |
| 120 | (s - 1) (t - 1) (by linarith) (by linarith) (G.embedding k x) |
| 121 | |
| 122 | /-- The full-curvature bound by later scalar curvature also passes through |
| 123 | the same maps, before packaging the raw limit as an ancient kappa-solution. -/ |
| 124 | theorem interiorLimit_past_norm_le_scalar |
| 125 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 126 | {s t : ℝ} (hst : s ≤ t) (ht : t < 1) (x : G.limitCarrier.carrier) : |
| 127 | |(G.limitFlow.connection s).curvatureTensorNorm x| ≤ |
| 128 | (G.limitFlow.connection t).scalarCurvature x := by |
| 129 | rw [abs_of_nonneg (show 0 ≤ (G.limitFlow.connection s).curvatureTensorNorm x from |
| 130 | Real.sqrt_nonneg _)] |
| 131 | apply le_of_tendsto_of_tendsto |
| 132 | (S.interiorLimit_tendsto_curvatureTensorNorm G s (hst.trans_lt ht) x) |
| 133 | (S.interiorLimit_tendsto_scalarCurvature G t ht x) |
| 134 | exact Eventually.of_forall fun k => P.past_norm_le_scalar |
| 135 | (S.term (G.subsequence k)).carrier.carrier (S.term (G.subsequence k)).flow |
| 136 | (s - 1) (t - 1) (by linarith) (by linarith) (G.embedding k x) |
| 137 | |
| 138 | end NormalizedKappaSolutionSequence |
| 139 | end PoincareMT |