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.Compactness.Ancient.Restriction |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Curvature |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.CurvatureLimit |
| 4 | |
| 5 | /-! |
| 6 | # Curvature properties of the actual ancient pointed limit |
| 7 | |
| 8 | Finite-window restrictions keep the ancient metric and connection unchanged. |
| 9 | The checked curvature convergence therefore transfers uniform norm bounds, |
| 10 | nonnegative curvature operator and quantitative basepoint nonflatness to that |
| 11 | same ancient flow. |
| 12 | |
| 13 | Reference: Kleiner--Lott, Corollary 44.1, pp. 2682--2683. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Topology |
| 21 | |
| 22 | namespace PoincareMT.AncientPointedGeometricConvergence |
| 23 | |
| 24 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 25 | FlowCarrier.isManifold |
| 26 | |
| 27 | variable {n : ℕ} {C : ℕ → FlowCarrier.{0} n} {J : ℕ → Set ℝ} |
| 28 | (F : ∀ k, RicciFlow n (C k).carrier (J k)) {p : ∀ k, (C k).carrier} {T : ℝ} |
| 29 | (G : AncientPointedGeometricConvergence C (fun k => (F k).metric) p T) |
| 30 | (hT : 0 < T) |
| 31 | (htime : ∀ a b : ℝ, b < T → ∀ᶠ k in atTop, Icc a b ⊆ J k) |
| 32 | |
| 33 | include hT htime |
| 34 | |
| 35 | /-- Uniform source curvature bounds on all finite windows and all fixed-radius |
| 36 | balls bound the actual ancient limit everywhere. -/ |
| 37 | theorem curvatureTensorNorm_le_of_uniform_ball_bound {K : ℝ} |
| 38 | (hbound : ∀ a b : ℝ, b < T → ∀ R : ℝ, 0 < R → ∀ᶠ k in atTop, |
| 39 | ∀ t ∈ Ioo a b, ∀ x ∈ ((F k).metric t).ball (p k) R, |
| 40 | ((F k).connection t).curvatureTensorNorm x ≤ K) : |
| 41 | ∀ t ∈ Iio T, ∀ x : G.limitCarrier.carrier, |
| 42 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ K := by |
| 43 | intro t ht x |
| 44 | obtain ⟨a, b, ha, hb, hbT, htw⟩ := exists_ancient_window_of_isCompact hT |
| 45 | isCompact_singleton (singleton_subset_iff.mpr ht) |
| 46 | obtain ⟨N, hN⟩ := exists_source_window_tail |
| 47 | (G.subsequence_strictMono.tendsto_atTop.eventually (htime a b hbT)) |
| 48 | let W := G.window F (ha.trans hb) hbT.le N hN |
| 49 | apply W.curvatureTensorNorm_le_of_uniform_ball_bound ⟨ha, hb⟩ ?_ t |
| 50 | (htw (mem_singleton t)) x |
| 51 | intro R hR |
| 52 | exact (G.subsequence_strictMono.tendsto_atTop.comp (tendsto_add_atTop_nat N)).eventually |
| 53 | (hbound a b hbT R hR) |
| 54 | |
| 55 | /-- Eventual nonnegative curvature on each fixed source slice passes to each |
| 56 | slice of the one ancient limit. -/ |
| 57 | theorem nonnegativeCurvatureOperator_of_eventually |
| 58 | (hoperator : ∀ t ∈ Iio T, ∀ᶠ k in atTop, ∀ x : (C k).carrier, |
| 59 | ((F k).connection t).NonnegativeCurvatureOperator x) : |
| 60 | ∀ t ∈ Iio T, ∀ x : G.limitCarrier.carrier, |
| 61 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x := by |
| 62 | intro t ht |
| 63 | obtain ⟨a, b, ha, hb, hbT, htw⟩ := exists_ancient_window_of_isCompact hT |
| 64 | isCompact_singleton (singleton_subset_iff.mpr ht) |
| 65 | obtain ⟨N, hN⟩ := exists_source_window_tail |
| 66 | (G.subsequence_strictMono.tendsto_atTop.eventually (htime a b hbT)) |
| 67 | let W := G.window F (ha.trans hb) hbT.le N hN |
| 68 | apply W.nonnegativeCurvatureOperator_of_eventually t (htw (mem_singleton t)) |
| 69 | exact (G.subsequence_strictMono.tendsto_atTop.comp (tendsto_add_atTop_nat N)).eventually |
| 70 | (hoperator t ht) |
| 71 | |
| 72 | /-- A positive scalar buffer gives a quantitative norm lower bound at the |
| 73 | basepoint of the actual ancient flow. -/ |
| 74 | theorem scalar_lower_bound_le_mul_base_curvatureTensorNorm {c : ℝ} |
| 75 | (hscalar : ∀ᶠ k in atTop, c ≤ ((F k).connection 0).scalarCurvature (p k)) : |
| 76 | c ≤ (n : ℝ) ^ 2 * (G.limitFlow.connection 0).curvatureTensorNorm G.base := by |
| 77 | obtain ⟨a, b, ha, hb, hbT, _⟩ := exists_ancient_window_of_isCompact hT |
| 78 | isCompact_singleton (singleton_subset_iff.mpr hT) |
| 79 | obtain ⟨N, hN⟩ := exists_source_window_tail |
| 80 | (G.subsequence_strictMono.tendsto_atTop.eventually (htime a b hbT)) |
| 81 | let W := G.window F (ha.trans hb) hbT.le N hN |
| 82 | apply W.scalar_lower_bound_le_mul_base_curvatureTensorNorm ⟨ha, hb⟩ |
| 83 | exact (G.subsequence_strictMono.tendsto_atTop.comp (tendsto_add_atTop_nat N)).eventually |
| 84 | hscalar |
| 85 | |
| 86 | end PoincareMT.AncientPointedGeometricConvergence |