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.Curvature.SectionalBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Basic |
| 3 | |
| 4 | /-! # Vanishing full curvature in dimensions zero and one |
| 5 | |
| 6 | Antisymmetry in the last curvature slots makes every orthonormal-frame |
| 7 | component vanish when the frame has at most one index. The full retained |
| 8 | curvature norm is therefore zero, uniformly in every represented flow time. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff Bundle BigOperators |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 20 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 21 | |
| 22 | /-- The full retained curvature norm vanishes in dimension at most one. -/ |
| 23 | theorem LeviCivitaData.curvatureTensorNorm_eq_zero_of_dimension_le_one |
| 24 | {g : RiemannianMetric n M} (D : LeviCivitaData g) (hn : n ≤ 1) (x : M) : |
| 25 | D.curvatureTensorNorm x = 0 := by |
| 26 | let b := g.orthonormalBasis x |
| 27 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) x) = n := |
| 28 | finrank_euclideanSpace_fin |
| 29 | have hindex (k l : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x))) : k = l := by |
| 30 | apply Fin.ext |
| 31 | have hk := k.isLt |
| 32 | have hl := l.isLt |
| 33 | omega |
| 34 | have hzero (i j k l : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x))) : |
| 35 | D.curvatureTensor x (b i) (b j) (b k) (b l) = 0 := by |
| 36 | rw [hindex l k] |
| 37 | exact D.curvatureTensor_zero_last x (b i) (b j) (b k) |
| 38 | change Real.sqrt (∑ i, ∑ j, ∑ k, ∑ l, |
| 39 | (D.curvatureTensor x (b i) (b j) (b k) (b l)) ^ 2) = 0 |
| 40 | simp only [hzero, ne_eq, OfNat.ofNat_ne_zero, not_false_eq_true, zero_pow, |
| 41 | Finset.sum_const_zero, Real.sqrt_zero] |
| 42 | |
| 43 | /-- Every represented slice of a low-dimensional Ricci flow has zero full |
| 44 | curvature norm, without completeness or sign hypotheses. -/ |
| 45 | theorem RicciFlow.curvatureTensorNorm_eq_zero_of_dimension_le_one |
| 46 | {J : Set ℝ} (F : RicciFlow n M J) (hn : n ≤ 1) (t : ℝ) (x : M) : |
| 47 | (F.connection t).curvatureTensorNorm x = 0 := |
| 48 | (F.connection t).curvatureTensorNorm_eq_zero_of_dimension_le_one hn x |
| 49 | |
| 50 | /-- Zero is a uniform full-curvature bound over all space and time in |
| 51 | dimensions zero and one, and hence on every time slab. -/ |
| 52 | theorem RicciFlow.curvatureTensorNorm_bound_zero_of_dimension_le_one |
| 53 | {J : Set ℝ} (F : RicciFlow n M J) (hn : n ≤ 1) : |
| 54 | ∀ t : ℝ, ∀ x : M, (F.connection t).curvatureTensorNorm x ≤ 0 := by |
| 55 | intro t x |
| 56 | exact le_of_eq (F.curvatureTensorNorm_eq_zero_of_dimension_le_one hn t x) |
| 57 | |
| 58 | end PoincareMT |