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.Theory |
| 2 | |
| 3 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Thm8_10_StableSurvival.lean` at |
| 4 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 5 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 6 | |
| 7 | /-! |
| 8 | # Stable-set existence from an attained minimum |
| 9 | |
| 10 | Morgan-Tian Lemma 6.8, p. 108, Definition 6.25, p. 116, and |
| 11 | Proposition 6.28, p. 117, as used in Theorem 8.10, p. 177. |
| 12 | Regularization constructs the actual survivor required by M14's |
| 13 | stable-set theorem; nonemptiness of the stable carrier is not asserted. |
| 14 | See `references/ricci-flow/mapher/noncollapse/derivations/2026-09-21-product-stable-paths.md`. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.Generalized.Noncollapse |
| 25 | |
| 26 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 27 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 28 | |
| 29 | /-- A minimizing path supplies an actual surviving initial vector, |
| 30 | hence a stable-set record. Source: Lemma 6.8, p. 108, Definition 6.25, |
| 31 | p. 116, used in Theorem 8.10, p. 177. -/ |
| 32 | theorem exists_stableSet_of_minimizing |
| 33 | (H : GeneralizedLGeometryConclusion G) |
| 34 | {T tau : ℝ} {x y : G.Point} |
| 35 | (E : M14ExponentialFamily G T x) |
| 36 | (p : M14BackwardPath G T 0 tau x y) (hp : M14IsMinimizing p) : |
| 37 | Nonempty (M14StableSet G T tau x E) := by |
| 38 | obtain ⟨E0, hE0⟩ := H.path_calculus.minimizer_euler T 0 tau x y p hp |
| 39 | obtain ⟨R, ER, hER⟩ := H.path_calculus.square_root_regularization T 0 tau x y p E0 hE0 |
| 40 | have hzero : R.curve 0 = x := by |
| 41 | have hz : (0 : ℝ) ∈ M14SqrtParameterInterval 0 tau := by |
| 42 | simp only [M14SqrtParameterInterval, Real.sqrt_zero, mem_Icc, le_refl, |
| 43 | Real.sqrt_nonneg, and_self] |
| 44 | simpa only [zero_pow (by norm_num : 2 ≠ 0), p.curve_start] using R.agrees 0 hz |
| 45 | let A : G.Horizontal x := hzero ▸ R.horizontal_velocity 0 |
| 46 | let Z : G.Horizontal x := (1 / 2 : ℝ) • A |
| 47 | have hIVP : Nonempty (M14SquareRootInitialValuePath G T tau x y Z) := by |
| 48 | refine ⟨{ |
| 49 | path := p |
| 50 | square_path := R |
| 51 | extension := ER |
| 52 | euler := hER |
| 53 | initial_velocity := ⟨hzero, ?_⟩ |
| 54 | }⟩ |
| 55 | change A = (2 : ℝ) • ((1 / 2 : ℝ) • A) |
| 56 | simp only [smul_smul, mul_one_div_cancel (by norm_num : (2 : ℝ) ≠ 0), one_smul] |
| 57 | have hroot : 0 < Real.sqrt tau := Real.sqrt_pos.mpr p.tau_lt |
| 58 | have hsurvive : (Z, Real.sqrt tau) ∈ E.domain := by |
| 59 | apply (E.positive_survival_iff Z (Real.sqrt tau) hroot).mpr |
| 60 | refine ⟨y, ?_⟩ |
| 61 | simpa only [Real.sq_sqrt p.tau_lt.le] using hIVP |
| 62 | exact H.exponential.stable T tau x E.base_time p.tau_lt E ⟨Z, hsurvive⟩ |
| 63 | |
| 64 | end PoincareMT.Generalized.Noncollapse |