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.PathCongruence |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential |
| 3 | |
| 4 | /-! |
| 5 | # Comparing actual minimizing actions with a local survivor branch |
| 6 | |
| 7 | The local inverse branch is an admissible competitor even before its |
| 8 | minimality is known. Its actual clock identifies the endpoint time. |
| 9 | All comparisons use genuine path actions, not a totalized infimum. |
| 10 | Morgan-Tian Proposition 6.59, pp. 134-137. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M14 |
| 20 | |
| 21 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 22 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 23 | {T b : ℝ} {x y : G.Point} |
| 24 | |
| 25 | /-- A minimizing actual action is bounded by any surviving exponential |
| 26 | competitor with the same actual endpoint, Proposition 6.59, pp. 134-137. -/ |
| 27 | theorem minimizing_action_le_exponentialAction (E : M14ExponentialFamily G T x) |
| 28 | (p : M14BackwardPath G T 0 b x y) (hp : M14IsMinimizing p) |
| 29 | {Z : G.Horizontal x} {s : ℝ} (hD : (Z, s) ∈ E.domain) (hs : 0 < s) |
| 30 | (hpoint : E.gamma Z s = y) : M14BackwardLAction G p ≤ E.action Z s := by |
| 31 | subst y |
| 32 | have hb : b = s ^ 2 := by linarith [p.endpoint_time, E.clock Z s hD] |
| 33 | subst b |
| 34 | rw [E.action_eq Z s hD hs] |
| 35 | exact hp (E.path Z s hD hs) |
| 36 | |
| 37 | /-- Agreement of actual backward curves with a surviving branch |
| 38 | identifies their actions, including their exact endpoint times, |
| 39 | equation (6.2) and Proposition 6.59, pp. 106, 134-137. -/ |
| 40 | theorem action_eq_exponentialAction_of_curve_eqOn (E : M14ExponentialFamily G T x) |
| 41 | (p : M14BackwardPath G T 0 b x y) |
| 42 | {Z : G.Horizontal x} {s : ℝ} (hD : (Z, s) ∈ E.domain) (hs : 0 < s) |
| 43 | (hpoint : E.gamma Z s = y) |
| 44 | (hcurve : EqOn p.curve (fun t => E.gamma Z (Real.sqrt t)) (Icc 0 b)) : |
| 45 | M14BackwardLAction G p = E.action Z s := by |
| 46 | subst y |
| 47 | have hb : b = s ^ 2 := by linarith [p.endpoint_time, E.clock Z s hD] |
| 48 | subst b |
| 49 | rw [E.action_eq Z s hD hs] |
| 50 | apply action_eq_of_curve_eqOn p (E.path Z s hD hs) |
| 51 | intro t ht |
| 52 | exact (hcurve (Ioo_subset_Icc_self ht)).trans (E.path_coherent Z s hD hs t |
| 53 | (Ioo_subset_Icc_self ht)).symm |
| 54 | |
| 55 | /-- A minimizing supplied branch identifies the raw spacetime reduced |
| 56 | length with its normalized action, Definition 6.45, p. 129. -/ |
| 57 | theorem reducedLengthAt_exponential_of_minimizing (E : M14ExponentialFamily G T x) |
| 58 | {Z : G.Horizontal x} {s : ℝ} (hD : (Z, s) ∈ E.domain) (hs : 0 < s) |
| 59 | (hp : M14IsMinimizing (E.path Z s hD hs)) : |
| 60 | M14ReducedLengthAt G T 0 x (E.gamma Z s) = E.action Z s / (2 * s) := by |
| 61 | unfold M14ReducedLengthAt |
| 62 | rw [E.clock Z s hD, sub_sub_cancel, ← E.reduced_length_global_eq Z s hD hs hp, |
| 63 | E.reduced_length_eq Z s hD hs] |
| 64 | |
| 65 | end PoincareMT.M14 |