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.AncientVolume.Splitting.SmallRescaledLimit |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Volume.RescaledLimit |
| 4 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Volume.AsymptoticRatio |
| 5 | import PoincareLib.Geometry.RicciFlow.Lift |
| 6 | |
| 7 | /-! |
| 8 | # Positive volume in a small selected ancient limit |
| 9 | |
| 10 | Original ancient volume monotonicity supplies uniform all-radius volume |
| 11 | bounds at the buffered rescaling times. Exact shrinking preserves these |
| 12 | volumes, and they pass to the same actual small ancient limit. Curvature |
| 13 | theory in the original universe suffices: the limit Ricci inequality is |
| 14 | obtained by lifting its actual flow and descending through the diffeomorphism. |
| 15 | |
| 16 | Reference: Kleiner--Lott (corrected 2013), Proposition 41.13, p. 2678. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | open Set Filter |
| 24 | open scoped Manifold ContDiff Topology |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | namespace PoincareMT.RicciFlow |
| 29 | |
| 30 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 31 | FlowCarrier.isManifold FlowCarrier.measurableSpace FlowCarrier.borelSpace |
| 32 | FlowCarrier.t3Space FlowCarrier.secondCountable |
| 33 | attribute [local instance] smallCarrier smallChartedSpace smallIsManifold |
| 34 | smallT3Space smallMeasurableSpace smallBorelSpace |
| 35 | |
| 36 | private theorem ricci_nonneg_small |
| 37 | {n : ℕ} {M : Type} [TopologicalSpace M] [T2Space M] |
| 38 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 39 | (hC : RicciFlowCurvatureCalculus.{u}) {J : Set ℝ} (F : RicciFlow n M J) |
| 40 | (t : ℝ) (hoperator : ∀ x, (F.connection t).NonnegativeCurvatureOperator x) : |
| 41 | ∀ x : M, ∀ v : TangentSpace (𝓡 n) x, 0 ≤ (F.connection t).ricci x v v := by |
| 42 | let : ChartedSpace (EuclideanSpace ℝ (Fin n)) (ULift.{u} M) := |
| 43 | Poincare.Manifold.uliftChartedSpace _ M |
| 44 | let : IsManifold (𝓡 n) ∞ (ULift.{u} M) := |
| 45 | Poincare.Manifold.uliftIsManifold (𝓡 n) M |
| 46 | let H : RicciFlow n (ULift.{u} M) J := F.ulift |
| 47 | let e := Poincare.Manifold.uliftDiffeomorph (𝓡 n) M |
| 48 | intro x v |
| 49 | let z : ULift.{u} M := ULift.up x |
| 50 | obtain ⟨w, hw⟩ := (e.mfderivToContinuousLinearEquiv (by simp) z).surjective v |
| 51 | change mfderiv (𝓡 n) (𝓡 n) e z w = v at hw |
| 52 | have hnonneg := ((H.connection t).ricci_bounds_of_nonnegative_curvatureOperator |
| 53 | (hC.tensor_calculus n (ULift.{u} M) (H.metric t) (H.connection t)) z |
| 54 | ((F.ulift_nonnegativeCurvatureOperator_iff t z).mpr (hoperator x)) w).1 |
| 55 | change 0 ≤ ((F.pullbackDiffeomorph e).connection t).ricci z w w at hnonneg |
| 56 | rw [F.pullbackDiffeomorph_ricci, hw] at hnonneg |
| 57 | exact hnonneg |
| 58 | |
| 59 | /-- Positive original asymptotic volume persists in the same buffered ancient |
| 60 | limit of actual shrunk rescalings. Only source-universe curvature theory is |
| 61 | assumed; no extra volume convergence or limit Ricci premise is required. -/ |
| 62 | theorem asymptoticVolumeRatio_pos_of_small_buffered_ancient_rescalings |
| 63 | {m : ℕ} (hm : 0 < m) {M : Type u} |
| 64 | [TopologicalSpace M] [T3Space M] [SecondCountableTopology M] |
| 65 | [ConnectedSpace M] [MeasurableSpace M] [BorelSpace M] |
| 66 | [ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) M] [IsManifold (𝓡 (m + 1)) ∞ M] |
| 67 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow (m + 1) M (Iic 0)) |
| 68 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 69 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 70 | {K : ℝ} (hK : 0 ≤ K) |
| 71 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 72 | {t₀ t₁ : ℝ} (ht₀ : t₀ < 0) (ht₁ : t₁ ≤ 0) (htimeOrder : t₀ ≤ t₁) |
| 73 | (p : M) (hvolume : 0 < (F.metric t₁).asymptoticVolumeRatio p) |
| 74 | (q : ℕ → M) (Q : ℕ → ℝ) (hQ : ∀ k, 0 < Q k) |
| 75 | {δ : ℝ} (hδ : 0 < δ) |
| 76 | (G : AncientPointedGeometricConvergence |
| 77 | (fun _ => (FlowCarrier.ofConnectedManifold (m + 1) M).shrink) |
| 78 | (fun k t => (F.interiorAncientRescaleAt (Q k) (hQ k) t₀).shrink.metric (t - δ)) |
| 79 | (fun k => equivShrink M (q k)) δ) |
| 80 | (hlimitComplete : G.limitCarrier.metricComplete (G.limitFlow.metric 0)) : |
| 81 | 0 < (G.limitFlow.metric 0).asymptoticVolumeRatio G.base := by |
| 82 | let H := fun k => F.interiorAncientRescaleAt (Q k) (hQ k) t₀ |
| 83 | let Fseq := fun k => (H k).shrink.bufferedExpandingFlow δ |
| 84 | have htime : ∀ a b : ℝ, b < δ → ∀ᶠ k in atTop, |
| 85 | Icc a b ⊆ (fun t : ℝ => t - δ) ⁻¹' Iio (-t₀ * Q k) := by |
| 86 | intro a b hb |
| 87 | exact Eventually.of_forall (fun k t ht => |
| 88 | (sub_neg.mpr (ht.2.trans_lt hb)).trans |
| 89 | (mul_pos (neg_pos.mpr ht₀) (hQ k))) |
| 90 | have hsourceTime (k : ℕ) {t : ℝ} (ht : t < δ) : |
| 91 | t₀ + (t - δ) / Q k ≤ 0 := by |
| 92 | have hdiv := div_nonpos_of_nonpos_of_nonneg (sub_nonpos.mpr ht.le) (hQ k).le |
| 93 | linarith |
| 94 | have hlimitOperator : ∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 95 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x := by |
| 96 | apply AncientPointedGeometricConvergence.nonnegativeCurvatureOperator_of_eventually |
| 97 | (C := fun _ => (FlowCarrier.ofConnectedManifold (m + 1) M).shrink) Fseq G hδ htime |
| 98 | intro t ht |
| 99 | apply Eventually.of_forall |
| 100 | intro k x |
| 101 | change ((H k).shrink.connection (t - δ)).NonnegativeCurvatureOperator x |
| 102 | rw [shrink_nonnegativeCurvatureOperator_iff] |
| 103 | apply F.parabolicRescale_nonnegativeCurvatureOperator |
| 104 | exact hoperator _ (hsourceTime k ht) _ |
| 105 | have hRic : ∀ x : G.limitCarrier.carrier, ∀ w : TangentSpace (𝓡 (m + 1)) x, |
| 106 | 0 ≤ (G.limitFlow.connection 0).ricci x w w := |
| 107 | ricci_nonneg_small hC G.limitFlow 0 (hlimitOperator 0 hδ) |
| 108 | let v := (F.metric t₁).asymptoticVolumeRatio p / 2 ^ (m + 1) |
| 109 | have hv : 0 < v := div_pos hvolume (by positivity) |
| 110 | apply AncientPointedGeometricConvergence.asymptoticVolumeRatio_pos_of_source_ball_volume_lower_bound |
| 111 | (C := fun _ => (FlowCarrier.ofConnectedManifold (m + 1) M).shrink) Fseq G |
| 112 | (by omega) hδ htime hlimitComplete hRic hv |
| 113 | intro r hr |
| 114 | apply Eventually.of_forall |
| 115 | intro k |
| 116 | let τ := t₀ + (0 - δ) / Q k |
| 117 | have hτ₀ : τ ≤ 0 := hsourceTime k hδ |
| 118 | have hτ₁ : τ ≤ t₁ := by |
| 119 | have hdiv := div_nonpos_of_nonpos_of_nonneg |
| 120 | (show 0 - δ ≤ 0 by linarith) (hQ k).le |
| 121 | dsimp [τ] |
| 122 | linarith |
| 123 | have hratio : (F.metric t₁).asymptoticVolumeRatio p ≤ |
| 124 | (F.metric τ).asymptoticVolumeRatio p := |
| 125 | F.antitoneOn_asymptoticVolumeRatio_of_bounded_ancient hC hm |
| 126 | hcomplete hoperator hK hbound p hτ₀ ht₁ hτ₁ |
| 127 | have hscaled := (F.metric τ).rescaled_ball_volume_lower_bound_of_asymptoticVolumeRatio |
| 128 | (F.connection τ) (by omega) (hcomplete τ hτ₀) |
| 129 | (fun x w => ((F.connection τ).ricci_bounds_of_nonnegative_curvatureOperator |
| 130 | (hC.tensor_calculus (m + 1) M (F.metric τ) (F.connection τ)) |
| 131 | x (hoperator τ hτ₀ x) w).1) |
| 132 | p (q k) ((F.metric τ).edist_ne_top p (q k)) (hvolume.trans_le hratio) |
| 133 | (Q k) (hQ k) hr |
| 134 | change ENNReal.ofReal (v * r ^ (m + 1)) ≤ |
| 135 | ((H k).shrink.metric (0 - δ)).volumeMeasure |
| 136 | (((H k).shrink.metric (0 - δ)).ball (equivShrink M (q k)) r) |
| 137 | rw [shrink_volumeMeasure_ball, Equiv.symm_apply_apply] |
| 138 | exact (ENNReal.ofReal_le_ofReal (mul_le_mul_of_nonneg_right |
| 139 | (div_le_div_of_nonneg_right hratio (by positivity : (0 : ℝ) ≤ 2 ^ (m + 1))) |
| 140 | (pow_nonneg hr.le (m + 1)))).trans hscaled |
| 141 | |
| 142 | end PoincareMT.RicciFlow |