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.Unnormalized.Inheritance |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.Convergence.Curvature |
| 3 | import PoincareLib.Geometry.Curvature.Operator.SectionalBounds |
| 4 | |
| 5 | /-! |
| 6 | # Flat limits from vanishing base scalar curvature |
| 7 | |
| 8 | The past-curvature estimate transfers a vanishing terminal base scalar to |
| 9 | every interior basepoint of the same geometric limit. Scalar-zero rigidity |
| 10 | then makes each entire interior slice flat. |
| 11 | |
| 12 | Reference: Morgan--Tian, Lemma 9.65 and Claim 9.66, pp. 225-227; |
| 13 | the rigidity input is Theorem 4.18, p. 71. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option maxHeartbeats 500000 |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 22 | |
| 23 | namespace PoincareMT.AncientKappaSequence |
| 24 | |
| 25 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 26 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 27 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 28 | |
| 29 | local instance flatnessCarrierConnected (D : FlowCarrier 3) : ConnectedSpace D.carrier := |
| 30 | connectedSpace_iff_univ.mpr D.connected |
| 31 | |
| 32 | variable (C : ℕ → FlowCarrier.{0} 3) |
| 33 | (K : ∀ k, AncientKappaSolution 3 (C k).carrier) (p : ∀ k, (C k).carrier) |
| 34 | (G : AncientPointedGeometricConvergence C (fun k t => (K k).flow.metric (t - 1)) p 1) |
| 35 | |
| 36 | /-- Vanishing terminal base scalar curvature forces zero curvature norm at |
| 37 | the retained basepoint at every interior time. -/ |
| 38 | theorem interiorLimit_base_curvatureTensorNorm_eq_zero |
| 39 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 40 | (hscalar : Tendsto (fun k => ((K k).flow.connection 0).scalarCurvature (p k)) |
| 41 | atTop (𝓝 0)) (s : ℝ) (hs : s < 1) : |
| 42 | (G.limitFlow.connection s).curvatureTensorNorm G.base = 0 := by |
| 43 | obtain ⟨a, b, ha, hb, hb1, hsw⟩ := exists_ancient_window_of_isCompact |
| 44 | (by norm_num : (0 : ℝ) < 1) isCompact_singleton (singleton_subset_iff.mpr hs) |
| 45 | let Fseq (k : ℕ) : RicciFlow 3 (C k).carrier |
| 46 | ((fun t : ℝ => t - 1) ⁻¹' Iic 0) := |
| 47 | (K k).flow.bufferedExpandingFlow 1 |
| 48 | have hsub (k : ℕ) : Ioo a b ⊆ (fun t : ℝ => t - 1) ⁻¹' Iic 0 := by |
| 49 | intro t ht |
| 50 | change t - 1 ≤ 0 |
| 51 | linarith [ht.2] |
| 52 | let W := G.window Fseq (ha.trans hb) hb1.le 0 (fun k => hsub (G.subsequence (k + 0))) |
| 53 | have hconv := W.tendsto_curvatureTensorNorm s (hsw (mem_singleton s)) G.base |
| 54 | change Tendsto (fun k => ((K (G.subsequence (k + 0))).flow.connection (s - 1)).curvatureTensorNorm |
| 55 | (G.embedding (k + 0) G.base)) atTop |
| 56 | (𝓝 ((G.limitFlow.connection s).curvatureTensorNorm G.base)) at hconv |
| 57 | simp only [Nat.add_zero, G.base_preserving] at hconv |
| 58 | apply le_antisymm ?_ (Real.sqrt_nonneg _) |
| 59 | apply le_of_tendsto_of_tendsto hconv (hscalar.comp G.subsequence_strictMono.tendsto_atTop) |
| 60 | exact Eventually.of_forall fun k => P.past_norm_le_scalar (C (G.subsequence k)).carrier |
| 61 | (K (G.subsequence k)) (s - 1) 0 (by linarith) le_rfl (p (G.subsequence k)) |
| 62 | |
| 63 | /-- The same raw ancient limit is flat everywhere when the source terminal |
| 64 | base scalar curvatures tend to zero. No global limit curvature bound is assumed. -/ |
| 65 | theorem interiorLimit_flat_of_base_scalar_tendsto_zero |
| 66 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 67 | (hscalar : Tendsto (fun k => ((K k).flow.connection 0).scalarCurvature (p k)) |
| 68 | atTop (𝓝 0)) : |
| 69 | ∀ t : ℝ, t < 1 → ∀ x : G.limitCarrier.carrier, |
| 70 | (G.limitFlow.connection t).curvatureTensorNorm x = 0 := by |
| 71 | have hop := interiorLimit_nonnegativeCurvatureOperator C K p G |
| 72 | have hbase (t : ℝ) (ht : t < 1) : |
| 73 | (G.limitFlow.connection t).scalarCurvature G.base = 0 := by |
| 74 | have hnorm := interiorLimit_base_curvatureTensorNorm_eq_zero C K p G P hscalar t ht |
| 75 | have hbound := (G.limitFlow.connection t).abs_scalarCurvature_le_curvatureTensorNorm G.base |
| 76 | rw [hnorm, mul_zero] at hbound |
| 77 | exact abs_eq_zero.mp (le_antisymm hbound (abs_nonneg _)) |
| 78 | intro t ht x |
| 79 | have hshift : (fun s : ℝ => s + (t - 1)) '' Icc 0 1 ⊆ Iio 1 := by |
| 80 | rintro _ ⟨s, hs, rfl⟩ |
| 81 | change s + (t - 1) < 1 |
| 82 | linarith [hs.2] |
| 83 | have hne : (Icc (0 : ℝ) 1).Nontrivial := |
| 84 | ⟨0, by norm_num, 1, by norm_num, by norm_num⟩ |
| 85 | let F := G.limitFlow.translate (t - 1) hshift ordConnected_Icc hne |
| 86 | have htime : (1 : ℝ) + (t - 1) = t := by ring |
| 87 | have hsec : ∀ s ∈ Icc 0 1, (F.connection s).NonnegativeSectionalCurvature := by |
| 88 | intro s hs y v w |
| 89 | exact (G.limitFlow.connection (s + (t - 1))).curvatureTensor_self_nonneg_of_nonnegative_curvatureOperator |
| 90 | y (hop _ (by linarith [hs.2]) y) v w |
| 91 | have hzero : (F.connection 1).scalarCurvature G.base = 0 := by |
| 92 | change (G.limitFlow.connection (1 + (t - 1))).scalarCurvature G.base = 0 |
| 93 | rw [htime] |
| 94 | exact hbase t ht |
| 95 | have h := P.scalar_zero_rigidity G.limitCarrier.carrier 1 (by norm_num) |
| 96 | F hsec G.base hzero 1 (by norm_num) x |
| 97 | change (G.limitFlow.connection (1 + (t - 1))).curvatureTensorNorm x = 0 at h |
| 98 | rwa [htime] at h |
| 99 | |
| 100 | end PoincareMT.AncientKappaSequence |