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.Windows |
| 3 | |
| 4 | /-! |
| 5 | # The original flows on expanding buffered domains |
| 6 | |
| 7 | Time translation retains the original total metric and connection families. |
| 8 | The translated domains eventually contain every compact ancient time window, |
| 9 | and the terminal scalar buffer gives one positive base curvature lower bound. |
| 10 | |
| 11 | Reference: Kleiner--Lott, Corollary 44.1, pp. 2682--2683. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.RicciFlow |
| 23 | |
| 24 | /-- Translate the full original time domain, keeping its total representatives. -/ |
| 25 | def bufferedExpandingFlow {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 27 | {J : Set ℝ} (F : RicciFlow n M J) (δ : ℝ) : |
| 28 | RicciFlow n M ((fun t : ℝ => t - δ) ⁻¹' J) := |
| 29 | F.translate (-δ) (by |
| 30 | rintro _ ⟨t, ht, rfl⟩ |
| 31 | exact ht) |
| 32 | ⟨fun x hx y hy z hz => F.interval.out hx hy ⟨by linarith [hz.1], by linarith [hz.2]⟩⟩ |
| 33 | (by |
| 34 | obtain ⟨x, hx, y, hy, hxy⟩ := F.nontrivial |
| 35 | refine ⟨x + δ, ?_, y + δ, ?_, ?_⟩ |
| 36 | · simpa using hx |
| 37 | · simpa using hy |
| 38 | · exact fun h => hxy (add_right_cancel h)) |
| 39 | |
| 40 | @[simp] theorem bufferedExpandingFlow_metric {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 41 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 42 | {J : Set ℝ} (F : RicciFlow n M J) (δ t : ℝ) : |
| 43 | (F.bufferedExpandingFlow δ).metric t = F.metric (t - δ) := rfl |
| 44 | |
| 45 | @[simp] theorem bufferedExpandingFlow_connection {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 46 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 47 | {J : Set ℝ} (F : RicciFlow n M J) (δ t : ℝ) : |
| 48 | (F.bufferedExpandingFlow δ).connection t = F.connection (t - δ) := rfl |
| 49 | |
| 50 | /-- Every bounded time window below the new terminal time belongs to a tail |
| 51 | of the translated original domains. -/ |
| 52 | theorem eventually_buffered_time_window |
| 53 | (J : ℕ → Set ℝ) (A : ℕ → ℝ) (hA : Tendsto A atTop atTop) |
| 54 | (hJ : ∀ k, Icc (-A k) 0 ⊆ interior (J k)) (δ a b : ℝ) (hb : b < δ) : |
| 55 | ∀ᶠ k in atTop, Icc a b ⊆ (fun t : ℝ => t - δ) ⁻¹' J k := by |
| 56 | filter_upwards [hA.eventually_ge_atTop (δ - a)] with k hk t ht |
| 57 | change t - δ ∈ J k |
| 58 | exact interior_subset (hJ k ⟨by linarith [ht.1], by linarith [ht.2]⟩) |
| 59 | |
| 60 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 61 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 62 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 63 | |
| 64 | /-- One shift supplies a quantitative nonflatness lower bound before any |
| 65 | subsequence or finite time window is selected. -/ |
| 66 | theorem exists_scalar_buffer_of_expanding_cylinders |
| 67 | {m : ℕ} (hC : RicciFlowCurvatureCalculus.{u}) (hm : 0 < m) |
| 68 | (C : ℕ → FlowCarrier.{u} (m + 1)) (J : ℕ → Set ℝ) |
| 69 | (F : ∀ k, RicciFlow (m + 1) (C k).carrier (J k)) |
| 70 | (p : ∀ k, (C k).carrier) (A L : ℕ → ℝ) |
| 71 | (hA : Tendsto A atTop atTop) (hL : Tendsto L atTop atTop) |
| 72 | (hJ : ∀ k, Icc (-A k) 0 ⊆ interior (J k)) |
| 73 | (hcomplete : ∀ k, ∀ t ∈ Icc (-A k) 0, MetricComplete ((F k).metric t)) |
| 74 | (hoperator : ∀ k, ∀ t ∈ Icc (-A k) 0, ∀ x : (C k).carrier, |
| 75 | ((F k).connection t).NonnegativeCurvatureOperator x) |
| 76 | (hscalar : ∀ k, ∀ t ∈ Icc (-A k) 0, |
| 77 | ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 78 | ((F k).connection t).scalarCurvature x ≤ 4) |
| 79 | (hnormalize : ∀ k, ((F k).connection 0).scalarCurvature (p k) = 1) : |
| 80 | ∃ δ : ℝ, 0 < δ ∧ δ < 1 ∧ ∀ᶠ k in atTop, |
| 81 | (1 : ℝ) / 2 ≤ (((F k).bufferedExpandingFlow δ).connection 0).scalarCurvature (p k) := by |
| 82 | obtain ⟨ε, hε, hεone, hbuffer⟩ := exists_terminal_scalar_positive_time_buffer hC hm |
| 83 | refine ⟨ε / 2, by positivity, by linarith, ?_⟩ |
| 84 | filter_upwards [hA.eventually_ge_atTop 2, |
| 85 | hL.eventually_ge_atTop (64 * (((m + 1 : ℕ) : ℝ) + 8))] with k hkA hkL |
| 86 | have hsub : Icc (-2 : ℝ) 0 ⊆ Icc (-A k) 0 := |
| 87 | Icc_subset_Icc (by linarith) le_rfl |
| 88 | change (1 : ℝ) / 2 ≤ ((F k).connection (0 + -(ε / 2))).scalarCurvature (p k) |
| 89 | rw [zero_add] |
| 90 | exact hbuffer (C k).carrier (J k) (F k) (fun _ ht => hJ k (hsub ht)) |
| 91 | (fun t ht => hcomplete k t (hsub ht)) (fun t ht => hoperator k t (hsub ht)) (p k) |
| 92 | (fun t ht x hx => hscalar k t (hsub ht) x |
| 93 | (hx.trans_le (ENNReal.ofReal_le_ofReal hkL))) (hnormalize k) |
| 94 | (-(ε / 2)) ⟨by linarith, by linarith⟩ |
| 95 | |
| 96 | end PoincareMT.RicciFlow |