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.Boundedness.Interior |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Boundedness.ScalarBuffer |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Boundedness.Monotonicity |
| 4 | |
| 5 | /-! |
| 6 | # A bounded nonflat limit of selected raw ancient flows |
| 7 | |
| 8 | The scalar buffer and one varying-carrier diagonal construction produce a |
| 9 | single complete nonnegative limit with global curvature at most four and a |
| 10 | positive scalar value at its reference basepoint. Sources need only satisfy |
| 11 | the expanding-ball bound, and are not assumed globally bounded. |
| 12 | |
| 13 | Reference: Kleiner--Lott, Theorem 46.1, pp. 2687-2688, and Appendix E, |
| 14 | pp. 2848-2849. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 22 | |
| 23 | namespace PoincareMT.RawAncientSequence |
| 24 | |
| 25 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 26 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 27 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 28 | |
| 29 | variable (C : ℕ → FlowCarrier.{0} 3) |
| 30 | (F : ∀ k, RicciFlow 3 (C k).carrier (Iic 0)) (p : ∀ k, (C k).carrier) |
| 31 | |
| 32 | /-- A prescribed positive upper cap on the buffer time still allows one |
| 33 | complete bounded nonflat limit of the actual expanding-ball source sequence. -/ |
| 34 | theorem exists_complete_bounded_nonflat_interior_geometric_limit_of_time_cap |
| 35 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 36 | {κ : ℝ} (hκ : 0 < κ) |
| 37 | (hc : ∀ k t, t ≤ 0 → MetricComplete ((F k).metric t)) |
| 38 | (hop : ∀ k t, t ≤ 0 → ∀ x, ((F k).connection t).NonnegativeCurvatureOperator x) |
| 39 | (hnc : ∀ k, AncientKappaNoncollapsed (F k) κ) |
| 40 | (L : ℕ → ℝ) (hL : Tendsto L atTop atTop) |
| 41 | (hbound : ∀ k t, t ≤ 0 → ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 42 | |((F k).connection t).curvatureTensorNorm x| ≤ 4) |
| 43 | (hnormalized : ∀ k, ((F k).connection 0).scalarCurvature (p k) = 1) |
| 44 | (hbase : ∀ k t, t ≤ 0 → ((F k).connection t).scalarCurvature (p k) ≤ 1) |
| 45 | (η : ℝ) (hη : 0 < η) : |
| 46 | ∃ δ : ℝ, 0 < δ ∧ δ < 1 ∧ δ ≤ η ∧ |
| 47 | ∃ G : AncientPointedGeometricConvergence C |
| 48 | (fun k t => (F k).metric (t - δ)) p δ, |
| 49 | (∀ t ∈ Iio δ, G.limitCarrier.metricComplete (G.limitFlow.metric t)) ∧ |
| 50 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 51 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ 4) ∧ |
| 52 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 53 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x) ∧ |
| 54 | (1 : ℝ) / 2 ≤ (G.limitFlow.connection 0).scalarCurvature G.base := by |
| 55 | obtain ⟨δ₀, hδ₀, hδ₀one, hbuffer⟩ := exists_base_scalar_positive_time_buffer C F p |
| 56 | P hc hop L hL hbound hnormalized hbase |
| 57 | let δ := min δ₀ η |
| 58 | have hδ : 0 < δ := lt_min hδ₀ hη |
| 59 | have hδsmall : δ ≤ δ₀ := min_le_left _ _ |
| 60 | have hδone : δ < 1 := hδsmall.trans_lt hδ₀one |
| 61 | obtain ⟨G, hcomplete, hnorm, hoperator⟩ := |
| 62 | exists_complete_bounded_interior_geometric_limit C F p P hκ hc hop hnc L hL hbound hδ |
| 63 | refine ⟨δ, hδ, hδone, min_le_right _ _, G, hcomplete, hnorm, hoperator, ?_⟩ |
| 64 | let Fseq (k : ℕ) := (F k).bufferedExpandingFlow δ |
| 65 | have htime : ∀ a b : ℝ, b < δ → ∀ᶠ k : ℕ in atTop, |
| 66 | Icc a b ⊆ (fun t : ℝ => t - δ) ⁻¹' Iic 0 := by |
| 67 | intro a b hb |
| 68 | exact Eventually.of_forall fun k t ht => by |
| 69 | change t - δ ≤ 0 |
| 70 | linarith [ht.2] |
| 71 | apply ge_of_tendsto |
| 72 | (G.tendsto_scalarCurvature_on_finite_windows Fseq hδ htime 0 hδ G.base) |
| 73 | filter_upwards [G.subsequence_strictMono.tendsto_atTop.eventually hbuffer] with k hk |
| 74 | change (1 : ℝ) / 2 ≤ ((F (G.subsequence k)).connection (0 + -δ)).scalarCurvature |
| 75 | (G.embedding k G.base) |
| 76 | rw [zero_add, G.base_preserving] |
| 77 | exact hk (-δ) ⟨by linarith, by linarith⟩ |
| 78 | |
| 79 | /-- A normalized raw sequence controlled on expanding balls has one complete |
| 80 | bounded ancient geometric limit with scalar at least one half at its base. -/ |
| 81 | theorem exists_complete_bounded_nonflat_interior_geometric_limit |
| 82 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 83 | {κ : ℝ} (hκ : 0 < κ) |
| 84 | (hc : ∀ k t, t ≤ 0 → MetricComplete ((F k).metric t)) |
| 85 | (hop : ∀ k t, t ≤ 0 → ∀ x, ((F k).connection t).NonnegativeCurvatureOperator x) |
| 86 | (hnc : ∀ k, AncientKappaNoncollapsed (F k) κ) |
| 87 | (L : ℕ → ℝ) (hL : Tendsto L atTop atTop) |
| 88 | (hbound : ∀ k t, t ≤ 0 → ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 89 | |((F k).connection t).curvatureTensorNorm x| ≤ 4) |
| 90 | (hnormalized : ∀ k, ((F k).connection 0).scalarCurvature (p k) = 1) |
| 91 | (hbase : ∀ k t, t ≤ 0 → ((F k).connection t).scalarCurvature (p k) ≤ 1) : |
| 92 | ∃ δ : ℝ, 0 < δ ∧ δ < 1 ∧ |
| 93 | ∃ G : AncientPointedGeometricConvergence C |
| 94 | (fun k t => (F k).metric (t - δ)) p δ, |
| 95 | (∀ t ∈ Iio δ, G.limitCarrier.metricComplete (G.limitFlow.metric t)) ∧ |
| 96 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 97 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ 4) ∧ |
| 98 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 99 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x) ∧ |
| 100 | (1 : ℝ) / 2 ≤ (G.limitFlow.connection 0).scalarCurvature G.base := by |
| 101 | obtain ⟨δ, hδ, hδone, _, G, hG⟩ := |
| 102 | exists_complete_bounded_nonflat_interior_geometric_limit_of_time_cap C F p P hκ |
| 103 | hc hop hnc L hL hbound hnormalized hbase 1 (by norm_num) |
| 104 | exact ⟨δ, hδ, hδone, G, hG⟩ |
| 105 | |
| 106 | end PoincareMT.RawAncientSequence |