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.Regularity.Lipschitz.LocalLipschitzAction |
| 2 | |
| 3 | /-! |
| 4 | # Local time and action bounds from an actual survivor inverse |
| 5 | |
| 6 | The local branch supplies a continuous actual competitor action before |
| 7 | its minimality is known. Shrinking once gives uniform positive time |
| 8 | bounds and an upper bound for every minimizing action. Morgan-Tian |
| 9 | Proposition 6.59, pp. 134-137. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Topology |
| 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 : ℝ} {x q0 : G.Point} |
| 24 | |
| 25 | /-- A continuous positive survivor inverse supplies one neighborhood |
| 26 | with uniform positive square times and a uniform upper bound for all |
| 27 | actual minimizing actions, Proposition 6.59, pp. 134-137. -/ |
| 28 | theorem exists_survivor_action_neighborhood (E : M14ExponentialFamily G T x) |
| 29 | {N O : Set G.Point} (hN : IsOpen N) (hqN : q0 ∈ N) |
| 30 | (hO : IsOpen O) (hqO : q0 ∈ O) (hqtime : 0 < T - G.spacetime.timeFunction q0) |
| 31 | {inv : G.Point → G.Horizontal x × ℝ} |
| 32 | (ha : ContinuousOn (fun q => E.action (inv q).1 (inv q).2) O) |
| 33 | (hmap : ∀ q ∈ O, inv q ∈ E.domain ∧ 0 < (inv q).2) |
| 34 | (hright : ∀ q ∈ O, E.gamma (inv q).1 (inv q).2 = q) : |
| 35 | ∃ U : Set G.Point, IsOpen U ∧ q0 ∈ U ∧ U ⊆ N ∧ U ⊆ O ∧ |
| 36 | ∃ δ H D : ℝ, 0 < δ ∧ 0 ≤ D ∧ |
| 37 | (∀ q ∈ U, δ ≤ Real.sqrt (T - G.spacetime.timeFunction q) ∧ |
| 38 | Real.sqrt (T - G.spacetime.timeFunction q) ≤ H) ∧ |
| 39 | ∀ q ∈ U, ∀ p : M14BackwardPath G T 0 (T - G.spacetime.timeFunction q) x q, |
| 40 | M14IsMinimizing p → M14BackwardLAction G p ≤ D := by |
| 41 | let s0 := Real.sqrt (T - G.spacetime.timeFunction q0) |
| 42 | let D := |E.action (inv q0).1 (inv q0).2| + 1 |
| 43 | have hs0 : 0 < s0 := Real.sqrt_pos.mpr hqtime |
| 44 | have hD : 0 ≤ D := by dsimp only [D]; positivity |
| 45 | have ht : ContMDiff (spacetimeModel n) 𝓘(ℝ) ∞ G.spacetime.timeFunction := |
| 46 | G.spacetime.time_smooth |
| 47 | have hc : Continuous (fun q : G.Point => Real.sqrt (T - G.spacetime.timeFunction q)) := |
| 48 | Real.continuous_sqrt.comp (continuous_const.sub ht.continuous) |
| 49 | let B := (N ∩ O) ∩ {q | s0 / 2 < Real.sqrt (T - G.spacetime.timeFunction q) ∧ |
| 50 | Real.sqrt (T - G.spacetime.timeFunction q) < s0 + 1} |
| 51 | have hB : IsOpen B := (hN.inter hO).inter |
| 52 | ((isOpen_lt continuous_const hc).inter (isOpen_lt hc continuous_const)) |
| 53 | have hqB : q0 ∈ B := ⟨⟨hqN, hqO⟩, by |
| 54 | change s0 / 2 < s0 ∧ s0 < s0 + 1 |
| 55 | constructor <;> linarith⟩ |
| 56 | let U := B ∩ (fun q => E.action (inv q).1 (inv q).2) ⁻¹' Iio D |
| 57 | have hU : IsOpen U := (ha.mono (fun _ hq => hq.1.2)).isOpen_inter_preimage hB isOpen_Iio |
| 58 | have hqU : q0 ∈ U := by |
| 59 | refine ⟨hqB, ?_⟩ |
| 60 | change E.action (inv q0).1 (inv q0).2 < |E.action (inv q0).1 (inv q0).2| + 1 |
| 61 | linarith [le_abs_self (E.action (inv q0).1 (inv q0).2)] |
| 62 | refine ⟨U, hU, hqU, fun _ hq => hq.1.1.1, fun _ hq => hq.1.1.2, |
| 63 | s0 / 2, s0 + 1, D, half_pos hs0, hD, fun _ hq => ⟨hq.1.2.1.le, hq.1.2.2.le⟩, ?_⟩ |
| 64 | intro q hq p hp |
| 65 | exact (minimizing_action_le_exponentialAction E p hp (hmap q hq.1.1.2).1 |
| 66 | (hmap q hq.1.1.2).2 (hright q hq.1.1.2)).trans hq.2.le |
| 67 | |
| 68 | end PoincareMT.M14 |