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.SmallTime.Stability.SmallTimeDifferential |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Stability.BackwardStable |
| 3 | |
| 4 | /-! |
| 5 | # Uniform unique minimizing branches give compact small-time stability |
| 6 | |
| 7 | The concluding compactness step in Morgan-Tian Corollary 6.79, |
| 8 | pp. 144-145. Actual noncriticality and spatial capture are already |
| 9 | uniform on compact initial sets. A common open neighborhood of |
| 10 | unique minimizing branches supplies exactly the remaining clause |
| 11 | of the frozen stable-initial-vector predicate. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M14 |
| 21 | |
| 22 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 23 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 24 | {T : ℝ} {x : G.Point} |
| 25 | |
| 26 | /-- Uniform unique minimality on an open neighborhood of compact |
| 27 | initial data gives full stable records and uniform spatial capture, |
| 28 | Corollary 6.79, pp. 144-145. The stable carrier may be empty. -/ |
| 29 | theorem smallTime_stability_of_open_uniqueMinimizing |
| 30 | (E : M14ExponentialFamily G T x) |
| 31 | {B : Set (G.Horizontal x)} (hB : IsCompact B) {K : Set G.Point} |
| 32 | (hK : ∃ O : Set G.Point, IsOpen O ∧ x ∈ O ∧ O ⊆ K) |
| 33 | {δ : ℝ} (hδ : 0 < δ) (hwindow : Icc (T - δ) T ⊆ I.domain) |
| 34 | {N : Set (G.Horizontal x)} (hN : IsOpen N) (hBN : B ⊆ N) |
| 35 | {η : ℝ} (hη : 0 < η) (hηδ : η ≤ δ) |
| 36 | (hunique : ∀ Z ∈ N, ∀ τ ∈ Ioc 0 η, M14UniqueMinimizingBranch G T τ x E Z) : |
| 37 | ∃ τ₀ : ℝ, 0 < τ₀ ∧ τ₀ ≤ δ ∧ |
| 38 | ∀ τ, 0 < τ → τ < τ₀ → |
| 39 | ∃ H : M14StableSet G T τ x E, B ⊆ H.carrier ∧ |
| 40 | ∀ Z ∈ B, ∀ s ∈ Icc 0 τ, E.gamma Z (Real.sqrt s) ∈ K := by |
| 41 | obtain ⟨τD, hτD, _, hdifferential⟩ := |
| 42 | compact_initial_smallTime_differential_bijective E hB hδ hwindow |
| 43 | obtain ⟨τK, hτK, _, hcapture⟩ := compact_initial_survival_and_capture E hB hK hδ hwindow |
| 44 | let τ₀ := min η (min τD τK) |
| 45 | have hτ₀ : 0 < τ₀ := lt_min hη (lt_min hτD hτK) |
| 46 | have hτ₀δ : τ₀ ≤ δ := (min_le_left _ _).trans hηδ |
| 47 | refine ⟨τ₀, hτ₀, hτ₀δ, ?_⟩ |
| 48 | intro τ hτ hτsmall |
| 49 | have hτη : τ ≤ η := hτsmall.le.trans (min_le_left _ _) |
| 50 | have hτD' : τ ≤ τD := |
| 51 | hτsmall.le.trans ((min_le_right _ _).trans (min_le_left _ _)) |
| 52 | have hτK' : τ ≤ τK := |
| 53 | hτsmall.le.trans ((min_le_right _ _).trans (min_le_right _ _)) |
| 54 | obtain ⟨H⟩ := stableSet_nonempty_of_allowed E hτ |
| 55 | (hwindow ⟨sub_le_sub_left (hτsmall.le.trans hτ₀δ) T, sub_le_self T hτ.le⟩) |
| 56 | refine ⟨H, ?_, ?_⟩ |
| 57 | · intro Z hZ |
| 58 | obtain ⟨hs, hbij⟩ := hdifferential Z hZ τ ⟨hτ, hτD'⟩ |
| 59 | exact (H.carrier_exact Z).mpr |
| 60 | ⟨hs, hbij, N, hN, hBN hZ, fun W hW => hunique W hW τ ⟨hτ, hτη⟩⟩ |
| 61 | · intro Z hZ s hs |
| 62 | exact (hcapture Z hZ s ⟨hs.1, hs.2.trans hτK'⟩).2 |
| 63 | |
| 64 | end PoincareMT.M14 |