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.Spacetime.Atlas |
| 2 | import Mathlib.Geometry.Manifold.Instances.Icc |
| 3 | import Mathlib.Geometry.Manifold.IsManifold.InteriorBoundary |
| 4 | |
| 5 | /-! Ported from Mapher06/Poincare-MorganTian, `PoincareMT/Definitions/M11TimeInterval.lean`, |
| 6 | revision `b2c3c64781fee22edfd683a224d4f8d280e2e9ce`. Declaration bodies are unchanged; |
| 7 | only imports and module placement differ. See |
| 8 | `references/ricci-flow/mapher/spacetime-port.json`. -/ |
| 9 | |
| 10 | /-! |
| 11 | # Smooth time intervals |
| 12 | |
| 13 | These are construction outputs of M11 on the exact interval subtype. The |
| 14 | positive time tangent is defined by the actual differential of its inclusion |
| 15 | in the real line; at a right boundary it is not the positive chart coordinate. |
| 16 | No interval atlas or inverse differential is constructed by an admission here. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | open scoped Manifold ContDiff Bundle Topology |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | /-- Smooth interval data with the standard inclusion and exact endpoint boundary. -/ |
| 26 | structure SmoothSpacetimeInterval (I : SpacetimeInterval) where |
| 27 | chartedSpace : ChartedSpace (EuclideanHalfSpace 1) I.domain |
| 28 | isManifold : IsManifold (𝓡∂ 1) ∞ I.domain |
| 29 | inclusion_smooth : ContMDiff (𝓡∂ 1) 𝓘(ℝ) ∞ (Subtype.val : I.domain → ℝ) |
| 30 | boundary_eq : (𝓡∂ 1).boundary I.domain = |
| 31 | {t : I.domain | (t : ℝ) ∈ frontier I.domain} |
| 32 | inclusionDerivative : ∀ t : I.domain, TangentSpace (𝓡∂ 1) t ≃L[ℝ] ℝ |
| 33 | inclusionDerivative_eq : ∀ t, |
| 34 | (inclusionDerivative t).toContinuousLinearMap = |
| 35 | mfderiv (𝓡∂ 1) 𝓘(ℝ) (Subtype.val : I.domain → ℝ) t |
| 36 | positive_tangent_smooth : ContMDiff (𝓡∂ 1) |
| 37 | ((𝓡∂ 1).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin 1))) ∞ |
| 38 | (fun t : I.domain ↦ Bundle.TotalSpace.mk' |
| 39 | (EuclideanSpace ℝ (Fin 1)) |
| 40 | (E := (TangentSpace (𝓡∂ 1) : I.domain → Type _)) |
| 41 | t ((inclusionDerivative t).symm 1)) |
| 42 | |
| 43 | namespace SmoothSpacetimeInterval |
| 44 | |
| 45 | variable {I : SpacetimeInterval} |
| 46 | |
| 47 | /-- The exact interval subtype, with this realization's chart instances. -/ |
| 48 | abbrev Point (_D : SmoothSpacetimeInterval I) := I.domain |
| 49 | |
| 50 | instance (D : SmoothSpacetimeInterval I) : |
| 51 | ChartedSpace (EuclideanHalfSpace 1) D.Point := D.chartedSpace |
| 52 | |
| 53 | instance (D : SmoothSpacetimeInterval I) : IsManifold (𝓡∂ 1) ∞ D.Point := |
| 54 | D.isManifold |
| 55 | |
| 56 | /-- The tangent normalized by the actual time inclusion. -/ |
| 57 | noncomputable def positiveTangent (D : SmoothSpacetimeInterval I) (t : D.Point) : |
| 58 | TangentSpace (𝓡∂ 1) t := (D.inclusionDerivative t).symm 1 |
| 59 | |
| 60 | end SmoothSpacetimeInterval |
| 61 | |
| 62 | /-- The actual inclusion between two interval subtypes, with their selected charts. -/ |
| 63 | def spacetimeIntervalInclusion {I J : SpacetimeInterval} |
| 64 | (D : SmoothSpacetimeInterval I) (E : SmoothSpacetimeInterval J) |
| 65 | (h : I.domain ⊆ J.domain) : D.Point → E.Point := |
| 66 | fun t ↦ ⟨t.val, h t.property⟩ |
| 67 | |
| 68 | /-- Coherent interval realizations and actual restriction differentials. |
| 69 | This whole family is an M11 construction output, not raw atlas input. -/ |
| 70 | structure SpacetimeIntervalSystem where |
| 71 | interval : ∀ I : SpacetimeInterval, SmoothSpacetimeInterval I |
| 72 | inclusion_smooth : ∀ I J (h : I.domain ⊆ J.domain), |
| 73 | ContMDiff (𝓡∂ 1) (𝓡∂ 1) ∞ (spacetimeIntervalInclusion (interval I) (interval J) h) |
| 74 | inclusion_derivative : ∀ I J (h : I.domain ⊆ J.domain) (t : (interval I).Point), |
| 75 | mfderiv (𝓡∂ 1) (𝓡∂ 1) (spacetimeIntervalInclusion (interval I) (interval J) h) t |
| 76 | ((interval I).positiveTangent t) = |
| 77 | (interval J).positiveTangent (spacetimeIntervalInclusion (interval I) (interval J) h t) |
| 78 | |
| 79 | end PoincareMT |