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.Curvature.Operator.Bounds |
| 2 | import PoincareLib.Geometry.Curvature.Operator.CoefficientBounds |
| 3 | import PoincareLib.Geometry.RicciFlow.Curvature.Theory |
| 4 | |
| 5 | /-! |
| 6 | # Comparing operator and full curvature norms |
| 7 | |
| 8 | The operator bound used by M06 is a bound on a finite quadratic form in the |
| 9 | orthonormal frame. Polarization and the curvature symmetries from M04's |
| 10 | tensor-calculus premise bound each four-covariant component. Summing their |
| 11 | squares gives the actual `curvatureTensorNorm` bound with constant `n ^ 2`. |
| 12 | |
| 13 | The final corollary converts exactly M06's per-slice operator-bound premise |
| 14 | to a per-slice full-curvature bound. Source conventions: Morgan-Tian, |
| 15 | Section 1.2, pp. 3-8; the normalization is the frozen ordered-pair sum. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open scoped BigOperators Manifold ContDiff Bundle |
| 21 | |
| 22 | namespace Poincare.Geometry.Curvature.Operator |
| 23 | |
| 24 | variable {I : Type*} [Fintype I] |
| 25 | |
| 26 | theorem sqrt_sum_sq_le_card_mul |
| 27 | (f : I → I → I → I → ℝ) (K : ℝ) |
| 28 | (hK : 0 ≤ K) |
| 29 | (hcomp : ∀ i j k l, |f i j k l| ≤ K) : |
| 30 | Real.sqrt (∑ i, ∑ j, ∑ k, ∑ l, (f i j k l) ^ 2) ≤ |
| 31 | (Fintype.card I : ℝ) ^ 2 * K := by |
| 32 | have hsq : ∀ i j k l, (f i j k l) ^ 2 ≤ K ^ 2 := by |
| 33 | intro i j k l |
| 34 | nlinarith [sq_abs (f i j k l), hcomp i j k l, |
| 35 | abs_nonneg (f i j k l), hK] |
| 36 | have hsum : (∑ i, ∑ j, ∑ k, ∑ l, (f i j k l) ^ 2) ≤ |
| 37 | (Fintype.card I : ℝ) ^ 4 * K ^ 2 := by |
| 38 | calc |
| 39 | (∑ i, ∑ j, ∑ k, ∑ l, (f i j k l) ^ 2) ≤ |
| 40 | ∑ i, ∑ j, ∑ k, ∑ l, K ^ 2 := by |
| 41 | exact Finset.sum_le_sum fun i _ ↦ |
| 42 | Finset.sum_le_sum fun j _ ↦ |
| 43 | Finset.sum_le_sum fun k _ ↦ |
| 44 | Finset.sum_le_sum fun l _ ↦ hsq i j k l |
| 45 | _ = (Fintype.card I : ℝ) ^ 4 * K ^ 2 := by |
| 46 | simp [Finset.card_univ, pow_succ, mul_assoc, mul_left_comm, mul_comm] |
| 47 | have hcard : 0 ≤ (Fintype.card I : ℝ) ^ 2 * K := by positivity |
| 48 | apply (Real.sqrt_le_iff).2 |
| 49 | constructor |
| 50 | · exact hcard |
| 51 | · nlinarith [hsum] |
| 52 | |
| 53 | theorem curvature_tensor_norm_le_of_component_bound |
| 54 | {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 55 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 56 | [IsManifold (𝓡 n) ∞ M] |
| 57 | {g : PoincareMT.RiemannianMetric n M} |
| 58 | (D : PoincareMT.LeviCivitaData g) (x : M) (K : ℝ) |
| 59 | (hK : 0 ≤ K) |
| 60 | (hcomp : ∀ i j k l : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)), |
| 61 | |D.curvatureTensor x (g.orthonormalBasis x i) |
| 62 | (g.orthonormalBasis x j) (g.orthonormalBasis x k) |
| 63 | (g.orthonormalBasis x l)| ≤ K) : |
| 64 | D.curvatureTensorNorm x ≤ |
| 65 | (Fintype.card (Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x))) : ℝ) ^ 2 * K := by |
| 66 | unfold PoincareMT.LeviCivitaData.curvatureTensorNorm |
| 67 | exact sqrt_sum_sq_le_card_mul _ _ hK hcomp |
| 68 | |
| 69 | end Poincare.Geometry.Curvature.Operator |
| 70 | |
| 71 | namespace PoincareMT |
| 72 | |
| 73 | open scoped Manifold ContDiff Bundle BigOperators |
| 74 | |
| 75 | universe u |
| 76 | |
| 77 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 78 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 79 | [IsManifold (𝓡 n) ∞ M] |
| 80 | |
| 81 | namespace LeviCivitaData |
| 82 | |
| 83 | /-- The curvature symmetries turn the frozen operator bound into component bounds. -/ |
| 84 | theorem abs_curvatureTensor_component_le_of_operator_bound |
| 85 | {g : RiemannianMetric n M} (D : LeviCivitaData g) (x : M) (K : ℝ) |
| 86 | (hK : 0 ≤ K) (hoperator : CurvatureOperatorBound D K x) |
| 87 | (hcalculus : D.CurvatureTensorCalculus) |
| 88 | (i j k l : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x))) : |
| 89 | |D.curvatureTensor x (g.orthonormalBasis x i) |
| 90 | (g.orthonormalBasis x j) (g.orthonormalBasis x k) |
| 91 | (g.orthonormalBasis x l)| ≤ K := by |
| 92 | let b := g.orthonormalBasis x |
| 93 | let R := fun i j k l ↦ D.curvatureTensor x (b i) (b j) (b k) (b l) |
| 94 | have hsym := hcalculus.2.2.2.1 |
| 95 | have hlast : ∀ i j k l, R i j k l = -R i j l k := by |
| 96 | intro i j k l |
| 97 | exact (hsym x (b i) (b j) (b k) (b l)).1 |
| 98 | have hpair : ∀ i j k l, R i j k l = R k l i j := by |
| 99 | intro i j k l |
| 100 | exact (hsym x (b i) (b j) (b k) (b l)).2.1 |
| 101 | have hfirst : ∀ i j k l, R i j k l = -R j i k l := by |
| 102 | intro i j k l |
| 103 | rw [hpair i j k l, hlast k l i j, hpair k l j i] |
| 104 | exact Poincare.Geometry.Curvature.Operator.abs_component_le_of_operator_bound |
| 105 | R K hK hfirst hlast hpair hoperator i j k l |
| 106 | |
| 107 | /-- The full curvature norm is bounded by `n ^ 2` times the operator bound. -/ |
| 108 | theorem curvatureTensorNorm_le_of_operator_bound |
| 109 | {g : RiemannianMetric n M} (D : LeviCivitaData g) (x : M) (K : ℝ) |
| 110 | (hK : 0 ≤ K) (hoperator : CurvatureOperatorBound D K x) |
| 111 | (hcalculus : D.CurvatureTensorCalculus) : |
| 112 | D.curvatureTensorNorm x ≤ (n : ℝ) ^ 2 * K := by |
| 113 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) x) = n := |
| 114 | finrank_euclideanSpace_fin |
| 115 | simpa only [Fintype.card_fin, hdim] using |
| 116 | Poincare.Geometry.Curvature.Operator.curvature_tensor_norm_le_of_component_bound |
| 117 | D x K hK (abs_curvatureTensor_component_le_of_operator_bound |
| 118 | D x K hK hoperator hcalculus) |
| 119 | |
| 120 | /-- A spatially uniform operator bound gives a spatially uniform full-curvature bound. -/ |
| 121 | theorem per_slice_curvatureTensorNorm_bound |
| 122 | {J : Set ℝ} (F : RicciFlow n M J) (t : ℝ) (K : ℝ) |
| 123 | (hK : 0 ≤ K) |
| 124 | (hoperator : ∀ x : M, CurvatureOperatorBound (F.connection t) K x) |
| 125 | (hcalculus : (F.connection t).CurvatureTensorCalculus) : |
| 126 | ∀ x : M, (F.connection t).curvatureTensorNorm x ≤ (n : ℝ) ^ 2 * K := by |
| 127 | intro x |
| 128 | exact curvatureTensorNorm_le_of_operator_bound (F.connection t) x K hK |
| 129 | (hoperator x) hcalculus |
| 130 | |
| 131 | /-- M04 converts the frozen M06 per-slice premise into full-curvature bounds. -/ |
| 132 | theorem per_slice_curvatureTensorNorm_bound_of_curvature_theory |
| 133 | (hM04 : RicciFlowCurvatureTheory.{u}) |
| 134 | {J : Set ℝ} (F : RicciFlow n M J) |
| 135 | (hoperator : ∀ t ∈ J, ∃ K : ℝ, 0 ≤ K ∧ |
| 136 | ∀ x : M, CurvatureOperatorBound (F.connection t) K x) : |
| 137 | ∀ t ∈ J, ∃ C : ℝ, 0 ≤ C ∧ |
| 138 | ∀ x : M, (F.connection t).curvatureTensorNorm x ≤ C := by |
| 139 | intro t ht |
| 140 | obtain ⟨K, hK, hbound⟩ := hoperator t ht |
| 141 | refine ⟨(n : ℝ) ^ 2 * K, mul_nonneg (sq_nonneg _) hK, ?_⟩ |
| 142 | exact per_slice_curvatureTensorNorm_bound F t K hK hbound |
| 143 | (hM04.tensor_calculus n M (F.metric t) (F.connection t)) |
| 144 | |
| 145 | end LeviCivitaData |
| 146 | end PoincareMT |