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.Surgery.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.ParallelFieldCurvature |
| 3 | import PoincareLib.Geometry.Riemannian.Curvature.SectionalBounds |
| 4 | |
| 5 | /-! |
| 6 | # A positive-curvature surface has no nonzero parallel direction |
| 7 | |
| 8 | Two vectors in the actual metric's orthonormal basis detect both components |
| 9 | of a curvature-kernel vector. This is the horizontal obstruction in the |
| 10 | actual round-sphere product, without a preferred round parametrization. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology BigOperators |
| 18 | |
| 19 | namespace PoincareMT.M35 |
| 20 | |
| 21 | local notation "E2" => EuclideanSpace ℝ (Fin 2) |
| 22 | |
| 23 | /-- Positive actual sectional curvature in dimension two has trivial |
| 24 | common kernel in the final curvature-tensor slot. -/ |
| 25 | theorem positive_surface_curvature_kernel |
| 26 | {M : Type*} [TopologicalSpace M] [ChartedSpace E2 M] |
| 27 | [IsManifold (𝓡 2) ∞ M] {g : RiemannianMetric 2 M} |
| 28 | (D : LeviCivitaData g) (x : M) (z : TangentSpace (𝓡 2) x) |
| 29 | (hpos : ∀ u v : TangentSpace (𝓡 2) x, |
| 30 | g.inner x u u = 1 → g.inner x v v = 1 → g.inner x u v = 0 → |
| 31 | 0 < D.sectionalCurvature x u v) |
| 32 | (hnull : ∀ u v w : TangentSpace (𝓡 2) x, D.curvatureTensor x u v w z = 0) : |
| 33 | z = 0 := by |
| 34 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 2) : M → Type _) := |
| 35 | ⟨g.toRiemannianMetric⟩ |
| 36 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 2) x) = 2 := finrank_euclideanSpace_fin |
| 37 | let b := (g.orthonormalBasis x).reindex (finCongr hdim) |
| 38 | have hinner (i j : Fin 2) : g.inner x (b i) (b j) = if i = j then 1 else 0 := |
| 39 | b.inner_eq_ite i j |
| 40 | have h00 : g.inner x (b 0) (b 0) = 1 := by simp only [hinner, ite_true] |
| 41 | have h11 : g.inner x (b 1) (b 1) = 1 := by simp only [hinner, ite_true] |
| 42 | have h01 : g.inner x (b 0) (b 1) = 0 := by simp only [hinner, Fin.zero_ne_one, ite_false] |
| 43 | have hK : 0 < D.curvatureTensor x (b 0) (b 1) (b 0) (b 1) := by |
| 44 | have hp := hpos (b 0) (b 1) h00 h11 h01 |
| 45 | simpa only [LeviCivitaData.sectionalCurvature, h00, h11, h01, |
| 46 | mul_one, zero_pow (by norm_num : (2 : ℕ) ≠ 0), sub_zero, div_one] using hp |
| 47 | have hrepr : (b.repr z) 0 • b 0 + (b.repr z) 1 • b 1 = z := by |
| 48 | simpa only [Fin.sum_univ_two] using b.sum_repr z |
| 49 | have hz0 := hnull (b 0) (b 1) (b 0) |
| 50 | have hz1 := hnull (b 0) (b 1) (b 1) |
| 51 | rw [← hrepr, D.curvatureTensor_add_last, D.curvatureTensor_smul_last, |
| 52 | D.curvatureTensor_smul_last, D.curvatureTensor_zero_last, mul_zero, zero_add] at hz0 |
| 53 | rw [← hrepr, D.curvatureTensor_add_last, D.curvatureTensor_smul_last, |
| 54 | D.curvatureTensor_smul_last, D.curvatureTensor_zero_last, mul_zero, add_zero] at hz1 |
| 55 | have hswap := D.curvatureTensor_swap_last x (b 0) (b 1) (b 1) (b 0) |
| 56 | have ha : (b.repr z) 0 = 0 := by |
| 57 | rw [hswap] at hz1 |
| 58 | exact (mul_eq_zero.mp hz1).resolve_right (neg_ne_zero.mpr hK.ne') |
| 59 | have hb : (b.repr z) 1 = 0 := (mul_eq_zero.mp hz0).resolve_right hK.ne' |
| 60 | rw [ha, hb, zero_smul, zero_smul, zero_add] at hrepr |
| 61 | exact hrepr.symm |
| 62 | |
| 63 | /-- A genuine parallel germ on a positive-curvature surface vanishes. -/ |
| 64 | theorem positive_surface_parallel_germ |
| 65 | {g : RiemannianMetric 2 E2} (D : LeviCivitaData g) |
| 66 | {Z : E2 → E2} {x : E2} (hZ : ContDiffAt ℝ ∞ Z x) |
| 67 | (hparallel : ∀ᶠ y in 𝓝 x, ∀ v : E2, D.connection Z y v = 0) |
| 68 | (hpos : ∀ u v : E2, |
| 69 | g.inner x u u = 1 → g.inner x v v = 1 → g.inner x u v = 0 → |
| 70 | 0 < D.sectionalCurvature x u v) : Z x = 0 := |
| 71 | positive_surface_curvature_kernel D x (Z x) hpos |
| 72 | (curvatureTensor_parallel_field_germ D hZ hparallel) |
| 73 | |
| 74 | end PoincareMT.M35 |