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.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.DiagonalBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.ChartBounds |
| 3 | |
| 4 | /-! |
| 5 | # Ancient-window estimates for the diagonal reference atlas |
| 6 | |
| 7 | The reference atlas supplies stage `j` only at indices at least `j`. The |
| 8 | minimum-stage convention makes its coefficients a total sequence. Every |
| 9 | fixed chart eventually uses its own stage, so the actual expanding-cylinder |
| 10 | estimates give smoothness and jet bounds on the whole ancient domain. |
| 11 | |
| 12 | Reference: Kleiner--Lott, Corollary 44.1, pp. 2682--2683, and Appendix E, |
| 13 | pp. 2848--2849. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option synthInstance.maxHeartbeats 100000 |
| 19 | set_option maxSynthPendingDepth 12 |
| 20 | set_option maxHeartbeats 1000000 |
| 21 | |
| 22 | open Set Filter Poincare.Analysis.Calculus |
| 23 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 24 | |
| 25 | namespace PoincareMT.RicciFlow |
| 26 | |
| 27 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 28 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 29 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 30 | |
| 31 | /-- A diagonal atlas chosen on one reference window satisfies the ancient |
| 32 | coordinate-extraction hypotheses, as a consequence of the original cylinder |
| 33 | estimates on its actual shifted metric family. -/ |
| 34 | theorem diagonal_referenceCharts_analytic_bounds_of_expanding_cylinders |
| 35 | {m : ℕ} (hC : RicciFlowCurvatureTheory.{0}) (hm : 0 < m) |
| 36 | {T' T : ℝ} (S : PointedFlowSequence (m + 1) T' T) (hT : T' < 0 ∧ 0 < T) |
| 37 | (J : ℕ → Set ℝ) (F : ∀ k, RicciFlow (m + 1) (S.carrier k).carrier (J k)) |
| 38 | (A L : ℕ → ℝ) (hA : Tendsto A atTop atTop) (hL : Tendsto L atTop atTop) |
| 39 | (hJ : ∀ k, Icc (-A k) 0 ⊆ interior (J k)) |
| 40 | (hcomplete : ∀ k, ∀ t ∈ Icc (-A k) 0, MetricComplete ((F k).metric t)) |
| 41 | (hoperator : ∀ k, ∀ t ∈ Icc (-A k) 0, ∀ x : (S.carrier k).carrier, |
| 42 | ((F k).connection t).NonnegativeCurvatureOperator x) |
| 43 | (hscalar : ∀ k, ∀ t ∈ Icc (-A k) 0, |
| 44 | ∀ x ∈ ((F k).metric 0).ball (S.flow k).base (L k), |
| 45 | ((F k).connection t).scalarCurvature x ≤ 4) |
| 46 | {ν : ℝ} (hν : 0 < ν) |
| 47 | (hvolume : ∀ᶠ k in atTop, ENNReal.ofReal ν ≤ ((F k).metric 0).volumeMeasure |
| 48 | (((F k).metric 0).ball (S.flow k).base 1)) |
| 49 | {δ : ℝ} (hδ : 0 < δ) (hδone : δ < 1) |
| 50 | (hmetric : ∀ k t, (S.flow k).flow.metric t = (F k).metric (t - δ)) |
| 51 | {R ρ a b : ℕ → ℝ} {N : ℕ → ℕ} |
| 52 | (hparams : ∀ j, 0 < ρ j ∧ 2 * ρ j < R j ∧ 0 < a j ∧ 0 < b j) |
| 53 | (cover : ∀ k j, j ≤ k → NormalChartCover (S.flow k).flow.metric |
| 54 | (S.flow k).base T' T ((j : ℝ) + 1) (R j) (ρ j) (a j) (b j) (N j)) : |
| 55 | ∀ i : ℕ, |
| 56 | let raw := fun k (z : ℝ × EuclideanSpace ℝ (Fin (m + 1))) => |
| 57 | ((S.flow k).flow.metric z.1).pullbackCoefficients |
| 58 | ((cover k (min (Nat.unpair i).1 k) (min_le_right _ _)).chart |
| 59 | ⟨(Nat.unpair i).2 % (N (min (Nat.unpair i).1 k) + 1), |
| 60 | Nat.mod_lt _ (Nat.succ_pos _)⟩) z.2 |
| 61 | LocallyEventuallyContDiff (Iio δ ×ˢ Metric.ball 0 (ρ (Nat.unpair i).1)) raw ∧ |
| 62 | (∀ K : Set (ℝ × EuclideanSpace ℝ (Fin (m + 1))), IsCompact K → |
| 63 | K ⊆ Iio δ ×ˢ Metric.ball 0 (ρ (Nat.unpair i).1) → ∀ d : ℕ, ∃ B : ℝ, |
| 64 | ∀ᶠ k in atTop, ∀ z ∈ K, ‖iteratedFDeriv ℝ d (raw k) z‖ ≤ B) ∧ |
| 65 | (∀ t ∈ Iio δ, ∃ c : ℝ, 0 < c ∧ ∀ᶠ k in atTop, |
| 66 | ∀ x ∈ Metric.ball 0 (ρ (Nat.unpair i).1), ∀ v, |
| 67 | c * ‖v‖ ^ 2 ≤ raw k (t, x) v v) := by |
| 68 | apply diagonal_referenceCharts_analytic_bounds_of_estimates S hparams cover |
| 69 | intro j I hIcompact hI |
| 70 | obtain ⟨s, a', b', hs, htime, ha', hb', hsmooth, hjets⟩ := |
| 71 | eventually_referenceChart_estimates_of_expanding_cylinders hC hm S.carrier J F |
| 72 | (fun k => (S.flow k).base) A L hA hL hJ hcomplete hoperator hscalar hν hvolume |
| 73 | hδ hδone hT (by positivity : 0 < (j : ℝ) + 1) (hparams j).1 |
| 74 | (hparams j).2.1 (hparams j).2.2.1 (hparams j).2.2.2 (N := N j) hIcompact hI |
| 75 | have hmetricFun (k : ℕ) : (fun t => (F k).metric (t - δ)) = |
| 76 | (S.flow k).flow.metric := (funext (hmetric k)).symm |
| 77 | refine ⟨s, a', htime, ha', ?_, ?_⟩ |
| 78 | · filter_upwards [hsmooth] with k hk |
| 79 | rw [hmetricFun k] at hk |
| 80 | simp_rw [← hmetric k] at hk |
| 81 | intro hjk i |
| 82 | exact ⟨(hk (cover k j hjk) i).1, |
| 83 | fun t ht x hx v => ((hk (cover k j hjk) i).2 t ht x hx v).1⟩ |
| 84 | · intro d |
| 85 | obtain ⟨B, _, hbound⟩ := hjets d |
| 86 | refine ⟨B, ?_⟩ |
| 87 | filter_upwards [hbound] with k hk |
| 88 | rw [hmetricFun k] at hk |
| 89 | simp_rw [← hmetric k] at hk |
| 90 | exact fun hjk => hk (cover k j hjk) |
| 91 | |
| 92 | end PoincareMT.RicciFlow |