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.Soliton.Models.Refined |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.Models.Involution.Formula |
| 3 | import PoincareLib.Geometry.RicciFlow.Soliton.Models.Involution.ProjectivePlane |
| 4 | import PoincareLib.Geometry.RicciFlow.Soliton.Models.Involution.Twisted |
| 5 | |
| 6 | /-! |
| 7 | # Normal forms of free shrinking-cylinder quotients |
| 8 | |
| 9 | Every supplied quotient receives the literal normal form and commuting |
| 10 | coordinates on its own carrier required by the frozen M24 definitions. |
| 11 | Morgan--Tian, Theorem 9.42 and (9.19), pp. 206-208; Proposition 9.58, |
| 12 | pp. 220-221. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT |
| 22 | |
| 23 | variable {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 25 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 26 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 27 | |
| 28 | theorem exists_quotientNormalForm |
| 29 | {S : GradientShrinkingSolitonData 3 M} {G : ShrinkingSolitonFlow S} |
| 30 | (q : QuotientSphereLineCertificate G) : |
| 31 | Nonempty (M24QuotientNormalForm q) := by |
| 32 | let := q.cover_topology |
| 33 | let := q.cover_charted |
| 34 | let := q.cover_manifold |
| 35 | let := q.product.surface_topology |
| 36 | let := q.product.surface_charted |
| 37 | let := q.product.surface_manifold |
| 38 | rcases q.involution_eq_antipodal_identity_or_reflection with h | ⟨c, h⟩ |
| 39 | · obtain ⟨e, he⟩ := q.exists_projectivePlaneCoordinates realProjectiveTwoSetoid |
| 40 | (fun _ _ => Iff.rfl) h |
| 41 | exact ⟨.projectivePlaneLine ⟨h, e, he⟩⟩ |
| 42 | · obtain ⟨e, cover, he⟩ := q.exists_twistedProjectiveSmoothModel c h |
| 43 | exact ⟨.twistedSphereLine ⟨c, h, twistedProjectivePuncture, e, cover, he⟩⟩ |
| 44 | |
| 45 | /-- Use the constructed normal form in the actual M24 quotient branch, |
| 46 | retaining the supplied quotient and its independently constructed transports. -/ |
| 47 | theorem exists_refinedQuotientCertificate |
| 48 | {S : GradientShrinkingSolitonData 3 M} {G : ShrinkingSolitonFlow S} |
| 49 | (q : QuotientSphereLineCertificate G) (transport : M24QuotientFlowTransport q) : |
| 50 | ∃ c : RepairedKappaModelCertificate G, |
| 51 | M24CertificateMatches (.quotientSphereLine q) c := by |
| 52 | obtain ⟨normal⟩ := exists_quotientNormalForm q |
| 53 | exact ⟨.quotientSphereLine q transport normal, rfl⟩ |
| 54 | |
| 55 | end PoincareMT |