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.Riemannian.Comparison.Volume.Nonnegative |
| 2 | import PoincareLib.Geometry.RicciFlow.Restriction |
| 3 | import PoincareLib.Geometry.Curvature.Operator.NormBounds |
| 4 | import PoincareLib.Geometry.Curvature.Operator.SectionalBounds |
| 5 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.ScalarIntegral |
| 6 | |
| 7 | /-! |
| 8 | # Initial volume bounds on fixed connected components |
| 9 | |
| 10 | The complete initial slice has a positive unit-ball volume bound on each |
| 11 | fixed connected component when its curvature operator is nonnegative and |
| 12 | bounded. The supplied M04 theory converts the operator bound to a tensor |
| 13 | bound; the geometric volume theorem then applies to the restricted component. |
| 14 | |
| 15 | The short-time corollary additionally uses the scalar-integral parent through |
| 16 | its linear volume-loss estimate. That corollary retains the parent's visible |
| 17 | Petrunin admission. The initial-slice theorem does not use that parent. |
| 18 | |
| 19 | References: Maeder--Baumdicker--Seidel, Theorem 1 and Remark 1.1, p. 4; |
| 20 | Cabezas-Rivas--Wilking, Proposition 4.3 and Corollary 4.4, p. 3161. |
| 21 | -/ |
| 22 | |
| 23 | set_option autoImplicit false |
| 24 | set_option backward.isDefEq.respectTransparency false |
| 25 | |
| 26 | open Set MeasureTheory |
| 27 | open scoped Manifold ContDiff ENNReal |
| 28 | |
| 29 | universe u |
| 30 | |
| 31 | namespace PoincareMT.RicciFlow |
| 32 | |
| 33 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 34 | [MeasurableSpace M] [BorelSpace M] [T3Space M] [SecondCountableTopology M] |
| 35 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 36 | {J : Set ℝ} |
| 37 | |
| 38 | /-- A bounded nonnegative initial curvature operator gives a positive uniform |
| 39 | unit-ball volume bound on a fixed connected component. Only the supplied M04 |
| 40 | tensor-calculus field is used beyond the proved geometric volume theorem. -/ |
| 41 | theorem exists_initial_unit_ball_volume_lower_bound_on_component |
| 42 | (hM04 : RicciFlowCurvatureTheory.{u}) (F : RicciFlow n M J) (hn : 1 ≤ n) |
| 43 | (p : M) (a : ℝ) (hcomplete : MetricComplete (F.metric a)) |
| 44 | (hoperator : ∀ x ∈ connectedComponent p, |
| 45 | (F.connection a).NonnegativeCurvatureOperator x) |
| 46 | (hbound : ∃ K : ℝ, 0 ≤ K ∧ ∀ x ∈ connectedComponent p, |
| 47 | (F.connection a).CurvatureOperatorBound K x) : |
| 48 | ∃ v : ℝ, 0 < v ∧ ∀ x ∈ connectedComponent p, |
| 49 | ENNReal.ofReal v ≤ (F.metric a).volumeMeasure ((F.metric a).ball x 1) := by |
| 50 | obtain ⟨K, hK, hb⟩ := hbound |
| 51 | let G := F.restrictComponent p |
| 52 | have hcurv (x : Poincare.connectedComponentOpens (EuclideanSpace ℝ (Fin n)) p) : |
| 53 | (G.connection a).curvatureTensorNorm x ≤ (n : ℝ) ^ 2 * K := by |
| 54 | rw [F.restrictComponent_curvatureTensorNorm] |
| 55 | exact (F.connection a).curvatureTensorNorm_le_of_operator_bound x K hK |
| 56 | (hb x x.property) (hM04.tensor_calculus n M (F.metric a) (F.connection a)) |
| 57 | obtain ⟨v, hv, hvolume⟩ := (G.metric a).exists_uniform_unit_ball_volume_lower_bound |
| 58 | (G.connection a) hn (F.restrictComponent_metricComplete p a hcomplete) |
| 59 | (mul_nonneg (sq_nonneg (n : ℝ)) hK) (by |
| 60 | intro x u w |
| 61 | refine ⟨(G.connection a).sectionalCurvature_nonneg_of_nonnegative_curvatureOperator |
| 62 | x ((F.restrictComponent_nonnegativeCurvatureOperator_iff p a x).mpr |
| 63 | (hoperator x x.property)) u w, ?_⟩ |
| 64 | exact (le_abs_self _).trans |
| 65 | (((G.connection a).abs_sectionalCurvature_le_curvatureTensorNorm x u w).trans |
| 66 | (hcurv x))) |
| 67 | refine ⟨v, hv, ?_⟩ |
| 68 | intro x hx |
| 69 | have h := hvolume ⟨x, hx⟩ |
| 70 | rwa [F.restrictComponent_volumeMeasure_ball] at h |
| 71 | |
| 72 | /-- The existing scalar-integral volume-loss theorem preserves a positive |
| 73 | componentwise volume bound for a short right interval. This corollary depends |
| 74 | on Petrunin's still-admitted scalar-integral theorem through |
| 75 | `exists_uniform_unitBall_volume_lower_bound`; it is not an independent proof |
| 76 | of that estimate. -/ |
| 77 | theorem exists_right_unit_ball_volume_lower_bound_on_component |
| 78 | (hM04 : RicciFlowCurvatureTheory.{u}) (F : RicciFlow n M J) (hn : 1 ≤ n) |
| 79 | (p : M) {a b : ℝ} (hab : a < b) (hJ : Icc a b ⊆ interior J) |
| 80 | (hcomplete : ∀ t ∈ Icc a b, MetricComplete (F.metric t)) |
| 81 | (hoperator : ∀ t ∈ Icc a b, ∀ x ∈ connectedComponent p, |
| 82 | (F.connection t).NonnegativeCurvatureOperator x) |
| 83 | (hbound : ∃ K : ℝ, 0 ≤ K ∧ ∀ x ∈ connectedComponent p, |
| 84 | (F.connection a).CurvatureOperatorBound K x) : |
| 85 | ∃ d ∈ Ioc a b, ∃ v : ℝ, 0 < v ∧ ∀ t ∈ Icc a d, |
| 86 | ∀ x ∈ connectedComponent p, |
| 87 | ENNReal.ofReal v ≤ (F.metric t).volumeMeasure ((F.metric t).ball x 1) := by |
| 88 | have ha : a ∈ Icc a b := ⟨le_rfl, hab.le⟩ |
| 89 | obtain ⟨v, hv, hvolume⟩ := F.exists_initial_unit_ball_volume_lower_bound_on_component |
| 90 | hM04 hn p a (hcomplete a ha) (hoperator a ha) hbound |
| 91 | obtain ⟨P, hP, hloss⟩ := exists_uniform_unitBall_volume_lower_bound.{u} n |
| 92 | let δ := min (b - a) (v / (2 * P)) |
| 93 | have hδ : 0 < δ := lt_min (sub_pos.mpr hab) (div_pos hv (by positivity)) |
| 94 | have hδb : δ ≤ b - a := min_le_left _ _ |
| 95 | have hδv : P * δ ≤ v / 2 := by |
| 96 | have h := (le_div_iff₀ (by positivity : 0 < 2 * P)).mp (min_le_right (b - a) (v / (2 * P))) |
| 97 | change δ * (2 * P) ≤ v at h |
| 98 | nlinarith |
| 99 | refine ⟨a + δ, ⟨by linarith, by linarith⟩, v / 2, half_pos hv, ?_⟩ |
| 100 | intro t ht x hx |
| 101 | have ht' : t ∈ Icc a b := ⟨ht.1, ht.2.trans (by linarith)⟩ |
| 102 | let G := F.restrictComponent p |
| 103 | let x' : Poincare.connectedComponentOpens (EuclideanSpace ℝ (Fin n)) p := ⟨x, hx⟩ |
| 104 | have hsub : Icc a t ⊆ Icc a b := Icc_subset_Icc_right ht'.2 |
| 105 | have hl := hloss _ J G a t ht.1 (hsub.trans hJ) |
| 106 | (fun s _ => hM04.tensor_calculus n _ (G.metric s) (G.connection s)) |
| 107 | (fun s hs => F.restrictComponent_metricComplete p s (hcomplete s (hsub hs))) |
| 108 | (fun s hs y => (F.restrictComponent_nonnegativeCurvatureOperator_iff p s y).mpr |
| 109 | (hoperator s (hsub hs) y y.property)) x' |
| 110 | simp only [G, F.restrictComponent_volumeMeasure_ball] at hl |
| 111 | have hfinite : (F.metric a).volumeMeasure ((F.metric a).ball x 1) ≠ ⊤ := by |
| 112 | have hsubball : (F.metric a).ball x 1 ⊆ {y | (F.metric a).edist x y ≤ ENNReal.ofReal 1} := |
| 113 | fun y hy => (show (F.metric a).edist x y < ENNReal.ofReal 1 from hy).le |
| 114 | exact (lt_of_le_of_lt (measure_mono hsubball) |
| 115 | ((F.metric a).volumeMeasure_lt_top_of_isCompact |
| 116 | ((F.metric a).isCompact_closedBall_of_metricComplete (hcomplete a ha) x 1))).ne |
| 117 | have hvreal : v ≤ ((F.metric a).volumeMeasure ((F.metric a).ball x 1)).toReal := |
| 118 | (ENNReal.ofReal_le_iff_le_toReal hfinite).mp (hvolume x hx) |
| 119 | have htime : P * (t - a) ≤ v / 2 := |
| 120 | (mul_le_mul_of_nonneg_left (by linarith [ht.2] : t - a ≤ δ) hP.le).trans hδv |
| 121 | apply ENNReal.ofReal_le_of_le_toReal |
| 122 | change v / 2 ≤ ((F.metric t).volumeMeasure ((F.metric t).ball x 1)).toReal |
| 123 | change ((F.metric a).volumeMeasure ((F.metric a).ball x 1)).toReal - P * (t - a) ≤ |
| 124 | ((F.metric t).volumeMeasure ((F.metric t).ball x 1)).toReal at hl |
| 125 | linarith |
| 126 | |
| 127 | end PoincareMT.RicciFlow |