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 Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Minimum.Variational.Extension.Pasting |
| 3 | |
| 4 | /-! Reuse the dimension-independent variational declarations adapted from Mapher |
| 5 | `PoincareMT/Proofs/M08/SmoothEndpointPasting.lean`. -/ |
| 6 | |
| 7 | namespace PoincareMT.LGeometry |
| 8 | |
| 9 | export PoincareMT.ReducedLengthMinimum.Variational |
| 10 | (contDiff_of_derivative_tower |
| 11 | pasteEndpointDerivatives |
| 12 | pasteEndpointDerivatives_eq_left |
| 13 | pasteEndpointDerivatives_eq_middle |
| 14 | pasteEndpointDerivatives_eq_right |
| 15 | pasteEndpointDerivatives_hasDerivAt |
| 16 | smooth_pasting_of_matching_endpoint_jets) |
| 17 | |
| 18 | end PoincareMT.LGeometry |