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.CanonicalNeighborhood.RoundCylinder |
| 2 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Analysis.TensorContraction |
| 3 | |
| 4 | /-! |
| 5 | Adapted from Mapher `PoincareMT/Proofs/M49/NeckJetNonnegative.lean` at |
| 6 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. |
| 7 | |
| 8 | # Extracting the actual zeroth round-cylinder jet term |
| 9 | |
| 10 | Morgan-Tian Definition 2.16, p. 30, and Definition 2.18, p. 31, |
| 11 | use the inverse-Gram contraction on every covariant slot. The explicit |
| 12 | matrix positivity hypothesis below will be supplied by the literal |
| 13 | scalar-curvature-one cylinder geometry. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open scoped Manifold ContDiff BigOperators |
| 19 | |
| 20 | namespace PoincareMT.SurgeryVolume |
| 21 | |
| 22 | /-- Each raw cylinder contraction is nonnegative when its actual inverse |
| 23 | Gram matrix is positive semidefinite (MT Definition 2.16, p. 30). -/ |
| 24 | theorem roundCylinderTensorNormSquared_nonneg (u : ℝ) |
| 25 | (c : OpenPartialHomeomorph UnitTwoSphere (EuclideanSpace ℝ (Fin 2))) |
| 26 | (p : RoundCylinderCoordinates) (hG : ((roundCylinderGram u c p)⁻¹).PosSemidef) |
| 27 | {r : ℕ} (T : (Fin r → Fin 3) → ℝ) : |
| 28 | 0 ≤ roundCylinderTensorNormSquared u c p T := by |
| 29 | simpa only [roundCylinderTensorNormSquared] using! |
| 30 | Matrix.tensor_contraction_nonneg hG T |
| 31 | |
| 32 | /-- The actual zeroth metric-error term is bounded by the full jet sum |
| 33 | under its inverse-Gram sign condition (MT Definition 2.16, p. 30). -/ |
| 34 | theorem roundCylinder_zeroth_le_jetErrorSquared (u : ℝ) |
| 35 | (B : RoundCylinderTwoTensor) (k : ℕ) (z : RoundCylinderSpace) |
| 36 | (hG : ((roundCylinderGram u (chartAt (EuclideanSpace ℝ (Fin 2)) z.1) |
| 37 | ((chartAt (EuclideanSpace ℝ (Fin 2)) z.1) z.1, z.2))⁻¹).PosSemidef) : |
| 38 | roundCylinderTensorNormSquared u (chartAt (EuclideanSpace ℝ (Fin 2)) z.1) |
| 39 | ((chartAt (EuclideanSpace ℝ (Fin 2)) z.1) z.1, z.2) |
| 40 | (roundCylinderIteratedDerivative u (chartAt (EuclideanSpace ℝ (Fin 2)) z.1) |
| 41 | B 0 ((chartAt (EuclideanSpace ℝ (Fin 2)) z.1) z.1, z.2)) ≤ |
| 42 | roundCylinderJetErrorSquared u B k z := by |
| 43 | unfold roundCylinderJetErrorSquared |
| 44 | exact Finset.single_le_sum |
| 45 | (f := fun j => roundCylinderTensorNormSquared u |
| 46 | (chartAt (EuclideanSpace ℝ (Fin 2)) z.1) |
| 47 | ((chartAt (EuclideanSpace ℝ (Fin 2)) z.1) z.1, z.2) |
| 48 | (roundCylinderIteratedDerivative u (chartAt (EuclideanSpace ℝ (Fin 2)) z.1) |
| 49 | B j ((chartAt (EuclideanSpace ℝ (Fin 2)) z.1) z.1, z.2))) |
| 50 | (fun j _ => roundCylinderTensorNormSquared_nonneg _ _ _ hG _) |
| 51 | (Finset.mem_range.mpr (Nat.zero_lt_succ k)) |
| 52 | |
| 53 | end PoincareMT.SurgeryVolume |