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.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 | # A common interior limit of a normalized ancient sequence |
| 10 | |
| 11 | One diagonal atlas at source time -1 is retained on every finite past window. |
| 12 | The dimension-three metric-jet bounds construct one spatial limit carrier and |
| 13 | one subsequence. Completeness here is at the reference time, before the |
| 14 | separate terminal extension and bounded-curvature arguments. |
| 15 | |
| 16 | Reference: Morgan--Tian Theorem 9.64, pp. 225-229; Kleiner--Lott, |
| 17 | Appendix E, Theorem E.1 and Corollary E.2, pp. 2848-2849. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option synthInstance.maxHeartbeats 100000 |
| 23 | set_option maxSynthPendingDepth 12 |
| 24 | set_option maxHeartbeats 1000000 |
| 25 | |
| 26 | open Set Filter |
| 27 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 28 | |
| 29 | namespace PoincareMT.NormalizedKappaSolutionSequence |
| 30 | |
| 31 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 32 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 33 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 34 | |
| 35 | variable {kappa : ℝ} (S : NormalizedKappaSolutionSequence kappa) |
| 36 | |
| 37 | local instance interiorSourceConnected (k : ℕ) : ConnectedSpace (S.term k).carrier.carrier := |
| 38 | (S.term k).connectedSpace |
| 39 | |
| 40 | theorem exists_complete_interior_geometric_limit |
| 41 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 42 | (hcontrol : M23AllTimeCurvatureControl S) : |
| 43 | ∃ G : AncientPointedGeometricConvergence (fun k ↦ (S.term k).carrier) |
| 44 | (fun k t ↦ (S.term k).flow.flow.metric (t - 1)) (fun k ↦ (S.term k).base) 1, |
| 45 | G.limitCarrier.metricComplete (G.limitFlow.metric 0) := by |
| 46 | classical |
| 47 | let H := S.compactnessHypotheses P hcontrol |
| 48 | (by norm_num : (-1 : ℝ) < 0) (by norm_num : (0 : ℝ) < 1) le_rfl |
| 49 | obtain ⟨σ, hσ, R, ρ, a, b, N, hparams, hcovers⟩ := |
| 50 | H.exists_diagonal_normalChartCovers (by norm_num) |
| 51 | let seq := H.sequence.subsequence σ |
| 52 | let selected : NormalizedKappaSolutionSequence kappa := |
| 53 | ⟨S.kappa_pos, fun k ↦ S.term (σ k)⟩ |
| 54 | have hselected : M23AllTimeCurvatureControl selected := by |
| 55 | intro r hr |
| 56 | obtain ⟨C, hC, hbound⟩ := hcontrol r hr |
| 57 | exact ⟨C, hC, fun k ↦ hbound (σ k)⟩ |
| 58 | let cover : ∀ k j, j ≤ k → NormalChartCover (seq.flow k).flow.metric |
| 59 | (seq.flow k).base (-1) 1 ((j : ℝ) + 1) (R j) (ρ j) (a j) (b j) (N j) := |
| 60 | fun k j hjk ↦ (hcovers k j hjk).choose |
| 61 | have hraw := RicciFlow.diagonal_referenceCharts_analytic_bounds_of_estimates |
| 62 | (δ := 1) seq hparams cover (by |
| 63 | intro j I hIcompact hI |
| 64 | obtain ⟨l, hl⟩ := hIcompact.bddBelow |
| 65 | let s := min (-1) (l - 1) |
| 66 | have hs : s < 0 := lt_of_le_of_lt (min_le_left _ _) (by norm_num) |
| 67 | have htime : I ⊆ Ioo s 1 := by |
| 68 | intro t ht |
| 69 | exact ⟨lt_of_le_of_lt (min_le_right _ _) (by linarith [hl ht]), hI ht⟩ |
| 70 | let W := selected.compactnessHypotheses P hselected hs (by norm_num : (0 : ℝ) < 1) le_rfl |
| 71 | have hA : 0 < (j : ℝ) + 1 := by positivity |
| 72 | obtain ⟨a', b', ha', hb', helliptic⟩ := |
| 73 | W.eventually_referenceNormalChartCover_ellipticity H.time_bounds (N := N j) |
| 74 | hA (hparams j).1 (hparams j).2.1 (hparams j).2.2.1 (hparams j).2.2.2 |
| 75 | refine ⟨s, a', htime, ha', ?_, ?_⟩ |
| 76 | · filter_upwards [helliptic] with k hk |
| 77 | intro hjk i |
| 78 | let cov : NormalChartCover (W.sequence.flow k).metricAt |
| 79 | (W.sequence.flow k).base (-1) 1 ((j : ℝ) + 1) (R j) (ρ j) (a j) (b j) (N j) := |
| 80 | cover k j hjk |
| 81 | constructor |
| 82 | · simpa only [cov, BasedFlow.metricAt, W, seq, H, selected, |
| 83 | compactnessHypotheses, windowSequence, PointedFlowSequence.subsequence, |
| 84 | BasedKappaSolution.basedWindow, BasedKappaSolution.shiftedWindowFlow, |
| 85 | RicciFlow.translate] using W.referenceNormalChartCover_contDiffOn k cov i |
| 86 | · intro t ht x hx v |
| 87 | simpa only [cov, BasedFlow.metricAt, W, seq, H, selected, |
| 88 | compactnessHypotheses, windowSequence, PointedFlowSequence.subsequence, |
| 89 | BasedKappaSolution.basedWindow, BasedKappaSolution.shiftedWindowFlow, |
| 90 | RicciFlow.translate] using (hk cov i t ht x hx v).1 |
| 91 | · intro d |
| 92 | obtain ⟨B, _, hbound⟩ := |
| 93 | W.eventually_referenceNormalChartCover_spacetime_jet_bound_of_m23_predecessors |
| 94 | P H.time_bounds hIcompact htime (N := N j) |
| 95 | hA (hparams j).1 (hparams j).2.1 (hparams j).2.2.1 (hparams j).2.2.2 d |
| 96 | exact ⟨B, hbound.mono fun k hk hjk ↦ hk (cover k j hjk)⟩) |
| 97 | let Fseq (k : ℕ) : RicciFlow 3 (seq.carrier k).carrier |
| 98 | ((fun t : ℝ ↦ t - 1) ⁻¹' Iic 0) := |
| 99 | (S.term (σ k)).flow.flow.bufferedExpandingFlow 1 |
| 100 | have htime : ∀ s t : ℝ, t < 1 → ∀ᶠ k : ℕ in atTop, |
| 101 | Icc s t ⊆ (fun u : ℝ ↦ u - 1) ⁻¹' Iic 0 := by |
| 102 | intro s t ht |
| 103 | exact Eventually.of_forall fun k u hu ↦ by |
| 104 | change u - 1 ≤ 0 |
| 105 | linarith [hu.2] |
| 106 | obtain ⟨G, hG⟩ := NormalChartCover.exists_complete_ancient_geometric_limit |
| 107 | Fseq (fun _ ↦ rfl) (by norm_num : (0 : ℝ) < 1) htime cover |
| 108 | (fun j ↦ (hparams j).1) (fun j ↦ by linarith [(hparams j).1, (hparams j).2.1]) |
| 109 | (fun j ↦ (hparams j).2.2.1) hraw |
| 110 | exact ⟨G.ofSubsequence hσ, hG⟩ |
| 111 | |
| 112 | end PoincareMT.NormalizedKappaSolutionSequence |