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.Curvature.Calculus |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.ChartBounds |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.SmallCarrier |
| 4 | |
| 5 | /-! |
| 6 | # Ancient-window estimates on small smooth carriers |
| 7 | |
| 8 | The original-universe terminal-cylinder estimates give M07 hypotheses on each |
| 9 | finite window of the shrunk flows. The transported local Shi estimate then |
| 10 | bounds all spacetime jets in the same reference normal charts. |
| 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 |
| 23 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.RicciFlow |
| 28 | |
| 29 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 30 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 31 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 32 | |
| 33 | attribute [local instance] smallCarrier smallChartedSpace smallIsManifold |
| 34 | |
| 35 | /-- The actual expanding-cylinder hypotheses provide all analytic estimates |
| 36 | in any fixed reference normal charts, simultaneously on every compact ancient |
| 37 | time set. None of the reference chart maps depends on the selected time set. -/ |
| 38 | theorem eventually_referenceChart_estimates_of_small_expanding_cylinders |
| 39 | {m : ℕ} (hC : RicciFlowCurvatureCalculus.{u}) (hm : 0 < m) |
| 40 | (C : ℕ → FlowCarrier.{u} (m + 1)) (J : ℕ → Set ℝ) |
| 41 | (F : ∀ k, RicciFlow (m + 1) (C k).carrier (J k)) |
| 42 | (p : ∀ k, (C k).carrier) (A L : ℕ → ℝ) |
| 43 | (hA : Tendsto A atTop atTop) (hL : Tendsto L atTop atTop) |
| 44 | (hJ : ∀ k, Icc (-A k) 0 ⊆ interior (J k)) |
| 45 | (hcomplete : ∀ k, ∀ t ∈ Icc (-A k) 0, MetricComplete ((F k).metric t)) |
| 46 | (hoperator : ∀ k, ∀ t ∈ Icc (-A k) 0, ∀ x : (C k).carrier, |
| 47 | ((F k).connection t).NonnegativeCurvatureOperator x) |
| 48 | (hscalar : ∀ k, ∀ t ∈ Icc (-A k) 0, |
| 49 | ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 50 | ((F k).connection t).scalarCurvature x ≤ 4) |
| 51 | {ν : ℝ} (hν : 0 < ν) |
| 52 | (hvolume : ∀ᶠ k in atTop, ENNReal.ofReal ν ≤ |
| 53 | ((F k).metric 0).volumeMeasure (((F k).metric 0).ball (p k) 1)) |
| 54 | {δ S' S r R ρ a b : ℝ} {N : ℕ} (hδ : 0 < δ) (hδone : δ < 1) |
| 55 | (hS : S' < 0 ∧ 0 < S) (hr : 0 < r) (hρ : 0 < ρ) |
| 56 | (hρR : 2 * ρ < R) (ha : 0 < a) (hb : 0 < b) |
| 57 | {I : Set ℝ} (hIcompact : IsCompact I) (hI : I ⊆ Iio δ) : |
| 58 | ∃ T' a' b' : ℝ, T' < 0 ∧ I ⊆ Ioo T' δ ∧ 0 < a' ∧ 0 < b' ∧ |
| 59 | (∀ᶠ k in atTop, |
| 60 | ∀ cover : NormalChartCover (fun t => (F k).shrink.metric (t - δ)) |
| 61 | (equivShrink (C k).carrier (p k)) S' S r R ρ a b N, |
| 62 | ∀ i, |
| 63 | ContDiffOn ℝ ∞ (fun z : ℝ × EuclideanSpace ℝ (Fin (m + 1)) => |
| 64 | ((F k).shrink.metric (z.1 - δ)).pullbackCoefficients (cover.chart i) z.2) |
| 65 | (Ioo T' δ ×ˢ Metric.ball 0 R) ∧ |
| 66 | ∀ t ∈ Ioo T' δ, ∀ x ∈ Metric.closedBall 0 (2 * ρ), ∀ v, |
| 67 | a' * ‖v‖ ^ 2 ≤ ((F k).shrink.metric (t - δ)).pullbackCoefficients |
| 68 | (cover.chart i) x v v ∧ |
| 69 | ((F k).shrink.metric (t - δ)).pullbackCoefficients (cover.chart i) x v v ≤ |
| 70 | b' * ‖v‖ ^ 2) ∧ |
| 71 | ∀ d : ℕ, ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in atTop, |
| 72 | ∀ cover : NormalChartCover (fun t => (F k).shrink.metric (t - δ)) |
| 73 | (equivShrink (C k).carrier (p k)) S' S r R ρ a b N, |
| 74 | ∀ i, ∀ t ∈ I, ∀ x ∈ Metric.closedBall 0 ρ, |
| 75 | ‖iteratedFDeriv ℝ d (fun z : ℝ × EuclideanSpace ℝ (Fin (m + 1)) => |
| 76 | ((F k).shrink.metric (z.1 - δ)).pullbackCoefficients (cover.chart i) z.2) |
| 77 | (t, x)‖ ≤ B := by |
| 78 | obtain ⟨l, hl⟩ := hIcompact.bddBelow |
| 79 | let q := min (-2) (l - δ - 1) |
| 80 | have hq : q ≤ -2 := min_le_left _ _ |
| 81 | have hqI : I ⊆ Ioo (q + δ) δ := by |
| 82 | intro t ht |
| 83 | refine ⟨?_, hI ht⟩ |
| 84 | have hqt : q ≤ l - δ - 1 := min_le_right _ _ |
| 85 | linarith [hl ht] |
| 86 | obtain ⟨j, hj⟩ := eventually_atTop.mp (hA.eventually_ge_atTop (-q)) |
| 87 | have hsub (k : ℕ) : Icc q 0 ⊆ Icc (-A (k + j)) 0 := |
| 88 | Icc_subset_Icc (by linarith [hj (k + j) (Nat.le_add_left j k)]) le_rfl |
| 89 | have hJj : ∀ k, Icc q 0 ⊆ interior (J (k + j)) := |
| 90 | fun k _ ht => hJ (k + j) (hsub k ht) |
| 91 | have htail : Tendsto (fun k : ℕ => k + j) atTop atTop := tendsto_add_atTop_nat j |
| 92 | obtain ⟨H, hHS⟩ := exists_pointedCompactnessHypotheses_of_small_terminal_cylinders |
| 93 | hC hm (fun k => C (k + j)) (fun k => J (k + j)) |
| 94 | (fun k => F (k + j)) (fun k => p (k + j)) (by linarith : q ≤ -1) |
| 95 | hδ hδone.le (by linarith) hJj |
| 96 | (fun k t ht => hcomplete (k + j) t (hsub k ht)) |
| 97 | (fun k t ht x => hoperator (k + j) t (hsub k ht) x) |
| 98 | (fun k => L (k + j)) (hL.comp htail) |
| 99 | (fun k t ht x hx => hscalar (k + j) t (hsub k ht) x hx) |
| 100 | hν (htail.eventually hvolume) |
| 101 | obtain ⟨a', b', ha', hb', helliptic⟩ := |
| 102 | H.eventually_referenceNormalChartCover_ellipticity hS (N := N) hr hρ hρR ha hb |
| 103 | have hsmooth := H.referenceNormalChartCover_contDiffOn (S' := S') (S := S) |
| 104 | (A := r) (R := R) (ρ := ρ) (a := a) (b := b) (N := N) |
| 105 | have hjets (d : ℕ) := H.eventually_referenceNormalChartCover_spacetime_jet_bound |
| 106 | (RicciFlowCurvatureTheory.local_derivative_estimates_small hC) |
| 107 | hS hIcompact hqI (N := N) hr hρ hρR ha hb d |
| 108 | rcases H with ⟨hT, seq, hvol, hcompact, hspace, hall, hnoncollapse⟩ |
| 109 | dsimp only at hHS |
| 110 | subst seq |
| 111 | refine ⟨q + δ, a', b', by linarith, hqI, ha', hb', ?_, ?_⟩ |
| 112 | · rw [← map_add_atTop_eq_nat j] |
| 113 | apply eventually_map.mpr |
| 114 | filter_upwards [helliptic] with k hk |
| 115 | intro cover i |
| 116 | exact ⟨hsmooth k cover i, hk cover i⟩ |
| 117 | · intro d |
| 118 | obtain ⟨B, hB, hbound⟩ := hjets d |
| 119 | refine ⟨B, hB, ?_⟩ |
| 120 | rw [← map_add_atTop_eq_nat j] |
| 121 | exact eventually_map.mpr hbound |
| 122 | |
| 123 | end PoincareMT.RicciFlow |