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.SmallCompactness |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.SmallProperties |
| 4 | |
| 5 | /-! |
| 6 | # Nonflat ancient cylinder limits in arbitrary source universes |
| 7 | |
| 8 | Actual smooth shrinking and the transported local Shi estimate produce one |
| 9 | complete, bounded, nonnegative, nonflat ancient limit from the original |
| 10 | expanding cylinders, using only M04 in their source universe. |
| 11 | |
| 12 | Reference: Kleiner--Lott, Corollary 44.1, pp. 2682--2683; Appendix E, |
| 13 | Theorem E.1 and Corollary E.2, pp. 2848--2849. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.RicciFlow |
| 25 | |
| 26 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 27 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 28 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 29 | attribute [local instance] smallCarrier smallChartedSpace smallIsManifold |
| 30 | |
| 31 | /-- Expanding normalized cylinders have a complete bounded nonflat ancient |
| 32 | limit of their actual small models, with M04 supplied only in the source universe. -/ |
| 33 | theorem exists_nonflat_ancient_limit_of_small_expanding_cylinders |
| 34 | {m : ℕ} (hC : RicciFlowCurvatureCalculus.{u}) (hm : 0 < m) |
| 35 | (C : ℕ → FlowCarrier.{u} (m + 1)) (J : ℕ → Set ℝ) |
| 36 | (F : ∀ k, RicciFlow (m + 1) (C k).carrier (J k)) |
| 37 | (p : ∀ k, (C k).carrier) (A L : ℕ → ℝ) |
| 38 | (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 : (C k).carrier, |
| 42 | ((F k).connection t).NonnegativeCurvatureOperator x) |
| 43 | (hscalar : ∀ k, ∀ t ∈ Icc (-A k) 0, |
| 44 | ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 45 | ((F k).connection t).scalarCurvature x ≤ 4) |
| 46 | (hnormalize : ∀ k, ((F k).connection 0).scalarCurvature (p k) = 1) |
| 47 | {ν : ℝ} (hν : 0 < ν) |
| 48 | (hvolume : ∀ᶠ k in atTop, ENNReal.ofReal ν ≤ |
| 49 | ((F k).metric 0).volumeMeasure (((F k).metric 0).ball (p k) 1)) : |
| 50 | ∃ δ : ℝ, 0 < δ ∧ δ < 1 ∧ |
| 51 | ∃ G : AncientPointedGeometricConvergence (fun k => (C k).shrink) |
| 52 | (fun k t => (F k).shrink.metric (t - δ)) |
| 53 | (fun k => equivShrink (C k).carrier (p k)) δ, |
| 54 | (∀ t ∈ Iio δ, G.limitCarrier.metricComplete (G.limitFlow.metric t)) ∧ |
| 55 | (0 < (G.limitFlow.connection 0).curvatureTensorNorm G.base ∧ |
| 56 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 57 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ |
| 58 | ((m + 1 : ℕ) : ℝ) ^ 2 * 4) ∧ |
| 59 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 60 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x)) := by |
| 61 | obtain ⟨δ, hδ, hδone, hbuffer⟩ := exists_scalar_buffer_of_expanding_cylinders |
| 62 | hC hm C J F p A L hA hL hJ hcomplete hoperator hscalar hnormalize |
| 63 | obtain ⟨G, hzero⟩ := exists_complete_ancient_limit_of_small_expanding_cylinders |
| 64 | hC hm C J F p A L hA hL hJ hcomplete hoperator hscalar hν hvolume hδ hδone |
| 65 | obtain ⟨hGcomplete, hGnorm, hGoperator⟩ := |
| 66 | ancient_limit_properties_of_small_expanding_cylinders |
| 67 | hC C J F p A L hA hL hJ hoperator hscalar hδ G hzero |
| 68 | have hsmallbuffer : ∀ᶠ k in atTop, |
| 69 | (1 : ℝ) / 2 ≤ (((F k).shrink.bufferedExpandingFlow δ).connection 0).scalarCurvature |
| 70 | (equivShrink (C k).carrier (p k)) := by |
| 71 | filter_upwards [hbuffer] with k hk |
| 72 | simpa only [bufferedExpandingFlow_connection, shrink_scalarCurvature, |
| 73 | Equiv.symm_apply_apply] using hk |
| 74 | have hquant := AncientPointedGeometricConvergence.scalar_lower_bound_le_mul_base_curvatureTensorNorm |
| 75 | (C := fun k => (C k).shrink) |
| 76 | (fun k => (F k).shrink.bufferedExpandingFlow δ) G hδ |
| 77 | (eventually_buffered_time_window J A hA hJ δ) hsmallbuffer |
| 78 | refine ⟨δ, hδ, hδone, G, hGcomplete, ?_, hGnorm, hGoperator⟩ |
| 79 | by_contra h |
| 80 | have hnonpos := mul_nonpos_of_nonneg_of_nonpos |
| 81 | (sq_nonneg (((m + 1 : ℕ) : ℝ))) (le_of_not_gt h) |
| 82 | linarith |
| 83 | |
| 84 | end PoincareMT.RicciFlow |