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.Harnack.Noncompact.CurvatureControl.BallVolume |
| 2 | import PoincareLib.Geometry.Curvature.Integral.Scalar |
| 3 | import PoincareLib.Geometry.Curvature.Operator.SectionalBounds |
| 4 | |
| 5 | /-! |
| 6 | # Applying the scalar integral estimate to moving unit balls |
| 7 | |
| 8 | These applications use the proved static scalar-integral bound in every |
| 9 | dimension. The other inputs are those of `BallVolume`. |
| 10 | Reference: Cabezas-Rivas--Wilking, Theorem 4.2, p. 3160, and |
| 11 | Proposition 4.3, equations (4.2)--(4.3), p. 3161. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set MeasureTheory |
| 17 | open scoped Manifold ContDiff Bundle ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.RicciFlow |
| 22 | |
| 23 | /-- The same dimensional scalar-integral constant controls all evolving |
| 24 | unit-ball volumes. -/ |
| 25 | theorem exists_uniform_unitBall_volume_lower_bound (n : ℕ) : |
| 26 | ∃ C : ℝ, 0 < C ∧ |
| 27 | ∀ (M : Type u) [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 28 | [T3Space M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 29 | [IsManifold (𝓡 n) ∞ M] |
| 30 | (J : Set ℝ) (F : RicciFlow n M J) (a b : ℝ), |
| 31 | a ≤ b → Icc a b ⊆ interior J → |
| 32 | (∀ t ∈ Icc a b, (F.connection t).CurvatureTensorCalculus) → |
| 33 | (∀ t ∈ Icc a b, MetricComplete (F.metric t)) → |
| 34 | (∀ t ∈ Icc a b, ∀ x : M, (F.connection t).NonnegativeCurvatureOperator x) → |
| 35 | ∀ p : M, |
| 36 | ((F.metric a).volumeMeasure ((F.metric a).ball p 1)).toReal - C * (b - a) ≤ |
| 37 | ((F.metric b).volumeMeasure ((F.metric b).ball p 1)).toReal := by |
| 38 | obtain ⟨C, hC, hbound⟩ := exists_uniform_unitBall_scalar_integral_bound.{u} n |
| 39 | refine ⟨C, hC, ?_⟩ |
| 40 | intro M _ _ _ _ _ _ J F a b hab hJ hD hcomplete hoperator p |
| 41 | apply F.ball_volume_lower_bound_of_nonnegative_curvatureOperator |
| 42 | hab hJ hD hcomplete hoperator p 1 |
| 43 | intro t ht |
| 44 | have ht' : t ∈ Icc a b := Ioo_subset_Icc_self ht |
| 45 | apply hbound M (F.metric t) (F.connection t) (hcomplete t ht') |
| 46 | intro x v w |
| 47 | exact (by norm_num : (-1 : ℝ) ≤ 0).trans |
| 48 | ((F.connection t).sectionalCurvature_nonneg_of_nonnegative_curvatureOperator |
| 49 | x (hoperator t ht' x) v w) |
| 50 | |
| 51 | /-- The three-dimensional scalar bound controls the evolving unit-ball volumes. -/ |
| 52 | theorem exists_uniform_unitBall_volume_lower_bound_three : |
| 53 | ∃ C : ℝ, 0 < C ∧ |
| 54 | ∀ (M : Type u) [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 55 | [T3Space M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 56 | [IsManifold (𝓡 3) ∞ M] |
| 57 | (J : Set ℝ) (F : RicciFlow 3 M J) (a b : ℝ), |
| 58 | a ≤ b → Icc a b ⊆ interior J → |
| 59 | (∀ t ∈ Icc a b, (F.connection t).CurvatureTensorCalculus) → |
| 60 | (∀ t ∈ Icc a b, MetricComplete (F.metric t)) → |
| 61 | (∀ t ∈ Icc a b, ∀ x : M, (F.connection t).NonnegativeCurvatureOperator x) → |
| 62 | ∀ p : M, |
| 63 | ((F.metric a).volumeMeasure ((F.metric a).ball p 1)).toReal - C * (b - a) ≤ |
| 64 | ((F.metric b).volumeMeasure ((F.metric b).ball p 1)).toReal := by |
| 65 | obtain ⟨C, hC, hbound⟩ := exists_uniform_unitBall_scalar_integral_bound_three.{u} |
| 66 | refine ⟨C, hC, ?_⟩ |
| 67 | intro M _ _ _ _ _ _ J F a b hab hJ hD hcomplete hoperator p |
| 68 | apply F.ball_volume_lower_bound_of_nonnegative_curvatureOperator |
| 69 | hab hJ hD hcomplete hoperator p 1 |
| 70 | intro t ht |
| 71 | have ht' : t ∈ Icc a b := Ioo_subset_Icc_self ht |
| 72 | apply hbound M (F.metric t) (F.connection t) (hcomplete t ht') |
| 73 | intro x v w |
| 74 | exact (by norm_num : (-1 : ℝ) ≤ 0).trans |
| 75 | ((F.connection t).sectionalCurvature_nonneg_of_nonnegative_curvatureOperator |
| 76 | x (hoperator t ht' x) v w) |
| 77 | |
| 78 | end PoincareMT.RicciFlow |