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.Surgery.Singular.RegularLimit.Spacetime.SliceIdentifications |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.CanonicalNeighborhood |
| 3 | |
| 4 | /-! |
| 5 | # Static canonical certificates on equal linked slice geometries |
| 6 | |
| 7 | The terminal geometry is identified with the regular region by equality of |
| 8 | the full slice geometry. Transport therefore preserves each certificate's |
| 9 | metric, connection, carrier and calibration together. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | namespace PoincareMT.SingularRegularLimit.SliceGeometry |
| 17 | |
| 18 | variable {G K : SliceGeometry.{u}} |
| 19 | |
| 20 | theorem exists_cComponent_of_eq (h : G = K) (x : G.slice.carrier) {C : ℝ} |
| 21 | (hN : ∃ N : SingularCComponent K.metric K.connection C, |
| 22 | homeomorphOfEq h x ∈ N.carrier) : |
| 23 | ∃ N : SingularCComponent G.metric G.connection C, x ∈ N.carrier := by |
| 24 | subst K |
| 25 | exact hN |
| 26 | |
| 27 | theorem exists_roundComponent_of_eq (h : G = K) (x : G.slice.carrier) {ε : ℝ} |
| 28 | (hN : ∃ N : SingularRoundComponent K.metric ε, |
| 29 | homeomorphOfEq h x ∈ N.carrier) : |
| 30 | ∃ N : SingularRoundComponent G.metric ε, x ∈ N.carrier := by |
| 31 | subst K |
| 32 | exact hN |
| 33 | |
| 34 | theorem exists_cap_of_eq (h : G = K) (x : G.slice.carrier) {ε C : ℝ} |
| 35 | (hN : ∃ N : CapCertificate K.metric, N.epsilon = ε ∧ N.cap_constant ≤ C ∧ |
| 36 | N.connection = K.connection ∧ homeomorphOfEq h x ∈ N.core) : |
| 37 | ∃ N : CapCertificate G.metric, N.epsilon = ε ∧ N.cap_constant ≤ C ∧ |
| 38 | N.connection = G.connection ∧ x ∈ N.core := by |
| 39 | subst K |
| 40 | exact hN |
| 41 | |
| 42 | end PoincareMT.SingularRegularLimit.SliceGeometry |