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.Windows |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Coordinates.Bounds |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.GeometricLimit.NormalCharts |
| 4 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Restriction |
| 5 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.DiagonalBounds |
| 6 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.Source |
| 7 | |
| 8 | /-! |
| 9 | # Interior limits without scalar normalization |
| 10 | |
| 11 | Uniform whole-past curvature control on terminal balls constructs one ancient |
| 12 | pointed geometric limit, with one retained atlas and subsequence. Completeness |
| 13 | is obtained at the reference slice corresponding to source time -1. |
| 14 | |
| 15 | Reference: Morgan--Tian, Theorem 9.64 and Lemma 9.65, pp. 225-229; |
| 16 | Kleiner--Lott, Appendix E, Theorem E.1 and Corollary E.2, pp. 2848-2849. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | set_option synthInstance.maxHeartbeats 100000 |
| 22 | set_option maxSynthPendingDepth 12 |
| 23 | set_option maxHeartbeats 1000000 |
| 24 | |
| 25 | open Set Filter |
| 26 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 27 | |
| 28 | namespace PoincareMT.AncientKappaSequence |
| 29 | |
| 30 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 31 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 32 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 33 | |
| 34 | local instance interiorCarrierConnected (D : FlowCarrier 3) : ConnectedSpace D.carrier := |
| 35 | connectedSpace_iff_univ.mpr D.connected |
| 36 | |
| 37 | variable (C : ℕ → FlowCarrier.{0} 3) |
| 38 | (K : ∀ k, AncientKappaSolution 3 (C k).carrier) (p : ∀ k, (C k).carrier) |
| 39 | |
| 40 | /-- A varying-carrier sequence with one positive noncollapse constant and |
| 41 | direct uniform terminal-ball bounds has a complete reference-slice limit. |
| 42 | No scalar normalization or basepoint scalar lower bound is assumed. -/ |
| 43 | theorem exists_complete_interior_geometric_limit |
| 44 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 45 | {κ : ℝ} (hκ : 0 < κ) (hkappa : ∀ k, (K k).kappa = κ) |
| 46 | (hcontrol : ∀ r : ℝ, 0 < r → ∃ B : ℝ, 0 ≤ B ∧ |
| 47 | ∀ k t, t ≤ 0 → ∀ x ∈ ((K k).flow.metric 0).ball (p k) r, |
| 48 | |((K k).flow.connection t).curvatureTensorNorm x| ≤ B) : |
| 49 | ∃ G : AncientPointedGeometricConvergence C |
| 50 | (fun k t => (K k).flow.metric (t - 1)) p 1, |
| 51 | G.limitCarrier.metricComplete (G.limitFlow.metric 0) := by |
| 52 | classical |
| 53 | let H := compactnessHypotheses C K p P hκ hkappa hcontrol |
| 54 | (by norm_num : (-1 : ℝ) < 0) (by norm_num : (0 : ℝ) < 1) le_rfl |
| 55 | obtain ⟨σ, hσ, R, ρ, a, b, N, hparams, hcovers⟩ := |
| 56 | H.exists_diagonal_normalChartCovers (by norm_num) |
| 57 | let seq := H.sequence.subsequence σ |
| 58 | have hselected : ∀ r : ℝ, 0 < r → ∃ B : ℝ, 0 ≤ B ∧ |
| 59 | ∀ k t, t ≤ 0 → ∀ x ∈ ((K (σ k)).flow.metric 0).ball (p (σ k)) r, |
| 60 | |((K (σ k)).flow.connection t).curvatureTensorNorm x| ≤ B := by |
| 61 | intro r hr |
| 62 | obtain ⟨B, hB, hbound⟩ := hcontrol r hr |
| 63 | exact ⟨B, hB, fun k => hbound (σ k)⟩ |
| 64 | let cover : ∀ k j, j ≤ k → NormalChartCover (seq.flow k).flow.metric |
| 65 | (seq.flow k).base (-1) 1 ((j : ℝ) + 1) (R j) (ρ j) (a j) (b j) (N j) := |
| 66 | fun k j hjk => (hcovers k j hjk).choose |
| 67 | have hraw := RicciFlow.diagonal_referenceCharts_analytic_bounds_of_estimates |
| 68 | (δ := 1) seq hparams cover (by |
| 69 | intro j I hIcompact hI |
| 70 | obtain ⟨l, hl⟩ := hIcompact.bddBelow |
| 71 | let s := min (-1) (l - 1) |
| 72 | have hs : s < 0 := lt_of_le_of_lt (min_le_left _ _) (by norm_num) |
| 73 | have htime : I ⊆ Ioo s 1 := by |
| 74 | intro t ht |
| 75 | exact ⟨lt_of_le_of_lt (min_le_right _ _) (by linarith [hl ht]), hI ht⟩ |
| 76 | let W := compactnessHypotheses (fun k => C (σ k)) (fun k => K (σ k)) |
| 77 | (fun k => p (σ k)) P hκ (fun k => hkappa (σ k)) hselected |
| 78 | hs (by norm_num : (0 : ℝ) < 1) le_rfl |
| 79 | have hA : 0 < (j : ℝ) + 1 := by positivity |
| 80 | obtain ⟨a', b', ha', hb', helliptic⟩ := |
| 81 | W.eventually_referenceNormalChartCover_ellipticity H.time_bounds (N := N j) |
| 82 | hA (hparams j).1 (hparams j).2.1 (hparams j).2.2.1 (hparams j).2.2.2 |
| 83 | refine ⟨s, a', htime, ha', ?_, ?_⟩ |
| 84 | · filter_upwards [helliptic] with k hk |
| 85 | intro hjk i |
| 86 | let cov : NormalChartCover (W.sequence.flow k).metricAt |
| 87 | (W.sequence.flow k).base (-1) 1 ((j : ℝ) + 1) (R j) (ρ j) (a j) (b j) (N j) := |
| 88 | cover k j hjk |
| 89 | constructor |
| 90 | · simpa only [cov, BasedFlow.metricAt, W, seq, H, |
| 91 | compactnessHypotheses, windowSequence, PointedFlowSequence.subsequence, |
| 92 | basedWindow, shiftedWindowFlow, RicciFlow.translate] using |
| 93 | W.referenceNormalChartCover_contDiffOn k cov i |
| 94 | · intro t ht x hx v |
| 95 | simpa only [cov, BasedFlow.metricAt, W, seq, H, |
| 96 | compactnessHypotheses, windowSequence, PointedFlowSequence.subsequence, |
| 97 | basedWindow, shiftedWindowFlow, RicciFlow.translate] using (hk cov i t ht x hx v).1 |
| 98 | · intro d |
| 99 | obtain ⟨B, _, hbound⟩ := |
| 100 | W.eventually_referenceNormalChartCover_spacetime_jet_bound_of_m23_predecessors |
| 101 | P H.time_bounds hIcompact htime (N := N j) |
| 102 | hA (hparams j).1 (hparams j).2.1 (hparams j).2.2.1 (hparams j).2.2.2 d |
| 103 | exact ⟨B, hbound.mono fun k hk hjk => hk (cover k j hjk)⟩) |
| 104 | let Fseq (k : ℕ) : RicciFlow 3 (seq.carrier k).carrier |
| 105 | ((fun t : ℝ => t - 1) ⁻¹' Iic 0) := |
| 106 | (K (σ k)).flow.bufferedExpandingFlow 1 |
| 107 | have htime : ∀ s t : ℝ, t < 1 → ∀ᶠ k : ℕ in atTop, |
| 108 | Icc s t ⊆ (fun u : ℝ => u - 1) ⁻¹' Iic 0 := by |
| 109 | intro s t ht |
| 110 | exact Eventually.of_forall fun k u hu => by |
| 111 | change u - 1 ≤ 0 |
| 112 | linarith [hu.2] |
| 113 | obtain ⟨G, hG⟩ := NormalChartCover.exists_complete_ancient_geometric_limit |
| 114 | Fseq (fun _ => rfl) (by norm_num : (0 : ℝ) < 1) htime cover |
| 115 | (fun j => (hparams j).1) (fun j => by linarith [(hparams j).1, (hparams j).2.1]) |
| 116 | (fun j => (hparams j).2.2.1) hraw |
| 117 | exact ⟨G.ofSubsequence hσ, hG⟩ |
| 118 | |
| 119 | end PoincareMT.AncientKappaSequence |