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.Splitting.CurvatureNullity |
| 2 | import PoincareLib.Geometry.Curvature.Operator.RicciBounds |
| 3 | |
| 4 | /-! # A null sectional plane when Ricci is not strictly positive -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | set_option autoImplicit false |
| 8 | set_option backward.isDefEq.respectTransparency false |
| 9 | |
| 10 | open Set |
| 11 | open scoped Manifold ContDiff Bundle |
| 12 | |
| 13 | namespace PoincareMT.LeviCivitaData |
| 14 | |
| 15 | variable {M : Type*} [TopologicalSpace M] [T2Space M] |
| 16 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 17 | {g : RiemannianMetric 3 M} |
| 18 | |
| 19 | /-- Under nonnegative curvature, failure of strict Ricci positivity yields |
| 20 | an orthonormal plane with zero sectional numerator. -/ |
| 21 | theorem exists_null_plane_of_not_ricci_positive |
| 22 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 23 | (hoperator : ∀ x, D.NonnegativeCurvatureOperator x) |
| 24 | (hnot : ¬ ∀ x : M, ∀ v : TangentSpace (𝓡 3) x, v ≠ 0 → |
| 25 | 0 < D.ricci x v v) : |
| 26 | ∃ (x : M) (v w : TangentSpace (𝓡 3) x), |
| 27 | g.inner x v v = 1 ∧ g.inner x w w = 1 ∧ g.inner x v w = 0 ∧ |
| 28 | D.curvatureTensor x v w v w = 0 := by |
| 29 | push Not at hnot |
| 30 | obtain ⟨x, v, hv, hRic⟩ := hnot |
| 31 | have hzero : D.ricci x v v = 0 := |
| 32 | le_antisymm hRic (D.ricci_bounds_of_nonnegative_curvatureOperator hD x |
| 33 | (hoperator x) v).1 |
| 34 | have hcurv := RicciFlow.Splitting.curvatureTensor_eq_zero_of_ricci_self_eq_zero |
| 35 | D hD x (fun u w => D.curvatureTensor_self_nonneg_of_nonnegative_curvatureOperator |
| 36 | x (hoperator x) u w) hzero |
| 37 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 38 | ⟨g.toRiemannianMetric⟩ |
| 39 | let : FiniteDimensional ℝ (TangentSpace (𝓡 3) x) := by |
| 40 | unfold TangentSpace |
| 41 | infer_instance |
| 42 | let u := (‖v‖⁻¹ : ℝ) • v |
| 43 | have hu : inner ℝ u u = 1 := by |
| 44 | rw [real_inner_self_eq_norm_sq] |
| 45 | have hn : ‖u‖ = 1 := norm_smul_inv_norm (𝕜 := ℝ) hv |
| 46 | rw [hn, one_pow] |
| 47 | have hframe : Orthonormal ℝ (({0} : Set (Fin 3)).domRestrict (fun _ => u)) := by |
| 48 | apply orthonormal_iff_ite.mpr |
| 49 | rintro ⟨i, hi⟩ ⟨j, hj⟩ |
| 50 | have hi' : i = 0 := hi |
| 51 | have hj' : j = 0 := hj |
| 52 | subst i |
| 53 | subst j |
| 54 | simpa using hu |
| 55 | obtain ⟨b, hb⟩ := hframe.exists_orthonormalBasis_extension_of_card_eq |
| 56 | (show Module.finrank ℝ (TangentSpace (𝓡 3) x) = Fintype.card (Fin 3) from |
| 57 | finrank_euclideanSpace_fin) |
| 58 | have hb0 : b 0 = u := hb 0 (by simp) |
| 59 | refine ⟨x, b 0, b 1, ?_, ?_, ?_, ?_⟩ |
| 60 | · exact b.inner_eq_ite 0 0 |
| 61 | · exact b.inner_eq_ite 1 1 |
| 62 | · exact b.inner_eq_ite 0 1 |
| 63 | · rw [hb0] |
| 64 | simp only [u, D.curvatureTensor_smul_first, hcurv, mul_zero] |
| 65 | |
| 66 | end PoincareMT.LeviCivitaData |