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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.IntrinsicGeometry.IntrinsicOpenMetric |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Cone.Geometry.OperatorRicci |
| 4 | |
| 5 | /-! |
| 6 | # Curvature positivity on the literal intrinsic open metric |
| 7 | |
| 8 | The actual inclusion is a local isometry of inner products. Curvature |
| 9 | positivity therefore transfers to every compatible connection on the |
| 10 | restricted metric, without identifying ambient and intrinsic distances. |
| 11 | Source: Morgan--Tian Claim 10.11, p. 255; M28 derivation 161b. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle |
| 19 | |
| 20 | namespace PoincareMT.M28 |
| 21 | |
| 22 | variable {M : Type*} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 24 | |
| 25 | /-- The inclusion preserves the exact curvature-operator predicate for |
| 26 | any compatible connections on the ambient and literal restricted metric. |
| 27 | Source: MT Claim 10.11, p. 255; derivation 161b. -/ |
| 28 | theorem intrinsicOpenMetric_nonnegativeCurvatureOperator_iff |
| 29 | (g : RiemannianMetric 3 M) (U : TopologicalSpace.Opens M) |
| 30 | (D : LeviCivitaData g) (DU : LeviCivitaData (intrinsicOpenMetric g U)) |
| 31 | (x : U) : |
| 32 | DU.NonnegativeCurvatureOperator x ↔ D.NonnegativeCurvatureOperator (x : M) := by |
| 33 | exact DU.nonnegativeCurvatureOperator_iff_of_local_isometry D |
| 34 | (f := (Subtype.val : U → M)) isOpen_univ |
| 35 | (contMDiff_subtype_val (I := 𝓡 3) (U := U)).contMDiffOn |
| 36 | (fun _ _ _ _ => rfl) (mem_univ x) |
| 37 | |
| 38 | /-- Ambient operator nonnegativity on an open region gives sectional |
| 39 | nonnegativity for every compatible connection on its literal intrinsic |
| 40 | metric. Source: MT Claim 10.11, p. 255; derivation 161b. -/ |
| 41 | theorem intrinsicOpenMetric_nonnegativeSectionalCurvature_of_operator |
| 42 | (g : RiemannianMetric 3 M) (U : TopologicalSpace.Opens M) |
| 43 | (D : LeviCivitaData g) (DU : LeviCivitaData (intrinsicOpenMetric g U)) |
| 44 | (hD : ∀ x : U, D.NonnegativeCurvatureOperator (x : M)) : |
| 45 | DU.NonnegativeSectionalCurvature := by |
| 46 | intro x v w |
| 47 | exact DU.sectional_nonneg_of_nonnegative_operator_m28 x |
| 48 | ((intrinsicOpenMetric_nonnegativeCurvatureOperator_iff g U D DU x).mpr (hD x)) v w |
| 49 | |
| 50 | end PoincareMT.M28 |