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.Realization.Conclusion |
| 2 | import PoincareLib.Geometry.Spacetime.Realization.Assembly |
| 3 | import PoincareLib.Geometry.Spacetime.Realization.OrdinaryProduct.Assembly |
| 4 | |
| 5 | /-! |
| 6 | # M11 spacetime realization |
| 7 | |
| 8 | Mapher's current M11 result adds local-diffeomorphism data for the selected |
| 9 | interval system to the earlier Horizon conclusion. The extension below |
| 10 | preserves the old conclusion as a literal projection, so M12 consumers keep |
| 11 | their existing types and selected spacetime witness. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | /-- Current Mapher M11, imported at the stronger source-equivalent interface. |
| 23 | |
| 24 | The construction is ported under the semantic realization namespace. All |
| 25 | downstream interfaces use the checked projection theorem below and retain the |
| 26 | original Horizon definitions. |
| 27 | -/ |
| 28 | theorem generalizedSpacetimeRealization (n : ℕ) : |
| 29 | GeneralizedSpacetimeRealizationTheory.{u} n := by |
| 30 | refine { |
| 31 | realize := ?_, |
| 32 | ordinary_product := ?_, |
| 33 | realize_with_interval := ?_ } |
| 34 | · intro X _ _ _ A |
| 35 | exact ⟨GeneralizedFlowCarrierConclusionWithInterval.toConclusion |
| 36 | (Poincare.Spacetime.Realization.adaptedCarrierConclusion A)⟩ |
| 37 | · intro M _ _ _ _ _ _ g I hg |
| 38 | exact ⟨Poincare.Spacetime.Realization.ordinaryProductConclusion g I hg⟩ |
| 39 | · intro X _ _ _ A |
| 40 | exact ⟨Poincare.Spacetime.Realization.adaptedCarrierConclusion A⟩ |
| 41 | |
| 42 | /-- Projection of the stronger imported result to the frozen M12-facing M11 |
| 43 | interface. -/ |
| 44 | theorem generalizedSpacetimeGeometry (n : ℕ) : |
| 45 | GeneralizedSpacetimeGeometryTheory.{u} n := |
| 46 | (generalizedSpacetimeRealization n).toGeometryTheory |
| 47 | |
| 48 | end PoincareMT |