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.Calculus |
| 2 | import Mathlib.Geometry.Manifold.VectorBundle.Hom |
| 3 | |
| 4 | /-! Ported from Mapher06/Poincare-MorganTian, `PoincareMT/Statements/M12MetricPredecessors.lean`, |
| 5 | revision `b2c3c64781fee22edfd683a224d4f8d280e2e9ce`. Declaration bodies are unchanged; |
| 6 | only imports and module placement differ. See |
| 7 | `references/ricci-flow/mapher/spacetime-port.json`. -/ |
| 8 | |
| 9 | /-! |
| 10 | # Narrow metric inputs for M12 |
| 11 | |
| 12 | Morgan-Tian Theorem 1.2, formula (1.1), and Definition 1.4, pp. 3-7. |
| 13 | These are the actual M03 connection and M04 tensor-calculus interfaces used |
| 14 | by the generalized equation construction. Compact Ricci-flow existence or |
| 15 | the full curvature-estimate package is not a substitute for these inputs. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open scoped Manifold ContDiff Bundle |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | /-- Connection existence, local regularity and tensor calculus on the |
| 27 | specified carrier universe. M12 consumes this at both `u` and `0`. -/ |
| 28 | structure M12MetricPredecessors (n : ℕ) : Prop where |
| 29 | connection_exists : ∀ (M : Type u) [TopologicalSpace M] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 31 | [T2Space M] [SecondCountableTopology M] (g : RiemannianMetric n M), |
| 32 | Nonempty (LeviCivitaData g) |
| 33 | connection_regular : ∀ (M : Type u) [TopologicalSpace M] |
| 34 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 35 | (g : RiemannianMetric n M) (D : LeviCivitaData g) |
| 36 | (U : Set M), IsOpen U → |
| 37 | ∀ (Y : (x : M) → TangentSpace (𝓡 n) x), |
| 38 | ContMDiffOn (𝓡 n) ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% Y) U → |
| 39 | ContMDiffOn (𝓡 n) |
| 40 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n))) ∞ |
| 41 | (fun x ↦ Bundle.TotalSpace.mk' |
| 42 | (EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n)) |
| 43 | x (D.connection Y x)) U |
| 44 | curvature_calculus : ∀ (M : Type u) [TopologicalSpace M] |
| 45 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 46 | (g : RiemannianMetric n M) (D : LeviCivitaData g), D.CurvatureTensorCalculus |
| 47 | |
| 48 | end PoincareMT |