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.Generalized.ReducedGeometry.Paths.Action.PathRestriction |
| 2 | |
| 3 | /-! |
| 4 | # Restriction retaining the prescribed initial endpoint |
| 5 | |
| 6 | The prefix used in Morgan-Tian Proposition 6.30, pp. 118-119, |
| 7 | retains the actual curve, velocity and prescribed initial endpoint. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | namespace PoincareMT.M14 |
| 15 | |
| 16 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 17 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 18 | {T τ₁ τ₂ : ℝ} {x y : G.Point} |
| 19 | |
| 20 | /-- Restrict an actual path to a prefix while retaining its prescribed |
| 21 | initial endpoint, Definition 6.2 and Proposition 6.30, pp. 106, 118-119. -/ |
| 22 | def prefixPath (p : M14BackwardPath G T τ₁ τ₂ x y) (b : ℝ) |
| 23 | (hab : τ₁ < b) (hb : b ≤ τ₂) : M14BackwardPath G T τ₁ b x (p.curve b) := |
| 24 | { restrictPath p τ₁ b le_rfl hab hb with |
| 25 | base_time := p.base_time |
| 26 | curve_start := p.curve_start } |
| 27 | |
| 28 | end PoincareMT.M14 |