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.Surgery.Induction.Noncollapse.StableSet.RegularImage.SurvivalSlice |
| 2 | |
| 3 | /-! |
| 4 | # Compact initial vectors give a stable neighborhood |
| 5 | |
| 6 | Morgan--Tian Claim 6.69 and Corollary 6.67, pp. 139-140. A compact set |
| 7 | of surviving initial vectors captures every minimizing path near the |
| 8 | endpoint. If the central fiber has one such vector, compactness excludes |
| 9 | all other initial vectors from a smaller target neighborhood. The actual |
| 10 | local inverse then supplies the neighborhood of unique minimizers required |
| 11 | by Definition 6.25. The compact capture and inverse are explicit inputs. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.Proofs.M46 |
| 22 | |
| 23 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 24 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 25 | {T tau : ℝ} {x : G.Point} |
| 26 | |
| 27 | /-- A compact family has no additional nearby inverse branches outside |
| 28 | the selected source neighborhood, Claim 6.69, p. 140. -/ |
| 29 | theorem survival_compact_fiber_neighborhood |
| 30 | (E : M14ExponentialFamily G T x) (htau : 0 ≤ tau) |
| 31 | (q0 : (G.slices (T - tau)).Point) |
| 32 | {B U : Set (G.Horizontal x)} (hB : IsCompact B) |
| 33 | (hBD : ∀ Z ∈ B, (Z, Real.sqrt tau) ∈ E.domain) |
| 34 | (hU : IsOpen U) {Z0 : G.Horizontal x} (hZU : Z0 ∈ U) |
| 35 | (hfiber : ∀ Z ∈ B, |
| 36 | survivalSliceMap E tau htau q0 Z = survivalSliceMap E tau htau q0 Z0 → Z = Z0) : |
| 37 | ∃ V : Set (G.slices (T - tau)).Point, IsOpen V ∧ |
| 38 | survivalSliceMap E tau htau q0 Z0 ∈ V ∧ |
| 39 | ∀ Z ∈ B, survivalSliceMap E tau htau q0 Z ∈ V → Z ∈ U := by |
| 40 | let metric := G.spacetime.horizontalMetric.toRiemannianMetric |
| 41 | let : NormedAddCommGroup (G.Horizontal x) := |
| 42 | (metric.toCore x).toNormedAddCommGroupOfTopology |
| 43 | (metric.continuousAt x) (metric.isVonNBounded x) |
| 44 | let : InnerProductSpace ℝ (G.Horizontal x) := |
| 45 | .ofCoreOfTopology (metric.toCore x) (metric.continuousAt x) (metric.isVonNBounded x) |
| 46 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 47 | ⟨metric⟩ |
| 48 | let f := survivalSliceMap E tau htau q0 |
| 49 | have hf : ContinuousOn f B := fun Z hZ => |
| 50 | (survivalSliceMap_smooth E htau q0 (hBD Z hZ)).continuousAt.continuousWithinAt |
| 51 | have hclosed : IsClosed (f '' (B \ U)) := |
| 52 | ((hB.diff hU).image_of_continuousOn (hf.mono sdiff_subset)).isClosed |
| 53 | refine ⟨(f '' (B \ U))ᶜ, hclosed.isOpen_compl, ?_, ?_⟩ |
| 54 | · rintro ⟨Z, hZ, heq⟩ |
| 55 | exact hZ.2 (hfiber Z hZ.1 heq ▸ hZU) |
| 56 | · intro Z hZ hV |
| 57 | by_contra hnot |
| 58 | exact hV ⟨Z, ⟨hZ, hnot⟩, rfl⟩ |
| 59 | |
| 60 | /-- Compact capture of every minimizer and an actual local inverse turn |
| 61 | central uniqueness into the full stable-vector predicate. The hypotheses |
| 62 | do not presume stable endpoints, Claim 6.69 and Definition 6.25. -/ |
| 63 | theorem stableInitialVector_of_compact_capture |
| 64 | (E : M14ExponentialFamily G T x) (htau : 0 < tau) |
| 65 | (q0 : (G.slices (T - tau)).Point) |
| 66 | {A : Set (G.slices (T - tau)).Point} (hA : IsOpen A) |
| 67 | {B : Set (G.Horizontal x)} (hB : IsCompact B) |
| 68 | (hBD : ∀ Z ∈ B, (Z, Real.sqrt tau) ∈ E.domain) |
| 69 | (hmin : ∀ q ∈ A, ∃ p : M14BackwardPath G T 0 tau x q.val, |
| 70 | M14IsMinimizing p) |
| 71 | (hcapture : ∀ q ∈ A, ∀ p : M14BackwardPath G T 0 tau x q.val, |
| 72 | M14IsMinimizing p → ∃ Z ∈ B, |
| 73 | EqOn p.curve (fun s => E.gamma Z (Real.sqrt s)) (Icc 0 tau) ∧ |
| 74 | survivalSliceMap E tau htau.le q0 Z = q) |
| 75 | {Z0 : G.Horizontal x} (hZ0 : (Z0, Real.sqrt tau) ∈ E.domain) |
| 76 | (hcenter : survivalSliceMap E tau htau.le q0 Z0 ∈ A) |
| 77 | (hfiber : ∀ Z ∈ B, |
| 78 | survivalSliceMap E tau htau.le q0 Z = survivalSliceMap E tau htau.le q0 Z0 → |
| 79 | Z = Z0) |
| 80 | (hbij : Function.Bijective (E.differential Z0 (Real.sqrt tau) hZ0)) |
| 81 | (e : OpenPartialHomeomorph (G.Horizontal x) (G.slices (T - tau)).Point) |
| 82 | (hZe : Z0 ∈ e.source) |
| 83 | (heD : ∀ Z ∈ e.source, (Z, Real.sqrt tau) ∈ E.domain) |
| 84 | (hef : EqOn e (survivalSliceMap E tau htau.le q0) e.source) : |
| 85 | M14StableInitialVector G T tau x E Z0 := by |
| 86 | let metric := G.spacetime.horizontalMetric.toRiemannianMetric |
| 87 | let : NormedAddCommGroup (G.Horizontal x) := |
| 88 | (metric.toCore x).toNormedAddCommGroupOfTopology |
| 89 | (metric.continuousAt x) (metric.isVonNBounded x) |
| 90 | let : InnerProductSpace ℝ (G.Horizontal x) := |
| 91 | .ofCoreOfTopology (metric.toCore x) (metric.continuousAt x) (metric.isVonNBounded x) |
| 92 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 93 | ⟨metric⟩ |
| 94 | let f := survivalSliceMap E tau htau.le q0 |
| 95 | obtain ⟨V, hV, hZV, hlocal⟩ := survival_compact_fiber_neighborhood |
| 96 | E htau.le q0 hB hBD e.open_source hZe hfiber |
| 97 | let U := e.source ∩ f ⁻¹' (A ∩ V) |
| 98 | have hf : ContinuousOn f e.source := fun Z hZ => |
| 99 | (survivalSliceMap_smooth E htau.le q0 (heD Z hZ)).continuousAt.continuousWithinAt |
| 100 | have hU : IsOpen U := hf.isOpen_inter_preimage e.open_source (hA.inter hV) |
| 101 | refine ⟨hZ0, hbij, U, hU, ⟨hZe, hcenter, hZV⟩, ?_⟩ |
| 102 | intro W hW |
| 103 | have hWD : (W, Real.sqrt tau) ∈ E.domain := heD W hW.1 |
| 104 | have hunique_vector (p : M14BackwardPath G T 0 tau x (f W).val) |
| 105 | (hp : M14IsMinimizing p) : |
| 106 | EqOn p.curve (fun s => E.gamma W (Real.sqrt s)) (Icc 0 tau) := by |
| 107 | obtain ⟨Z, hZB, htrace, hendpoint⟩ := hcapture (f W) hW.2.1 p hp |
| 108 | have hZe' : Z ∈ e.source := hlocal Z hZB (hendpoint ▸ hW.2.2) |
| 109 | have hZW : Z = W := e.injOn hZe' hW.1 |
| 110 | ((hef hZe').trans (hendpoint.trans (hef hW.1).symm)) |
| 111 | simpa only [hZW] using htrace |
| 112 | obtain ⟨p, hp⟩ := hmin (f W) hW.2.1 |
| 113 | have hpath : ∃ p : M14BackwardPath G T 0 tau x (f W).val, |
| 114 | EqOn p.curve (fun s => E.gamma W (Real.sqrt s)) (Icc 0 tau) ∧ |
| 115 | M14IsMinimizing p ∧ |
| 116 | ∀ q : M14BackwardPath G T 0 tau x (f W).val, |
| 117 | M14IsMinimizing q → EqOn q.curve p.curve (Icc 0 tau) := by |
| 118 | refine ⟨p, hunique_vector p hp, hp, ?_⟩ |
| 119 | intro q hq s hs |
| 120 | exact (hunique_vector q hq hs).trans (hunique_vector p hp hs).symm |
| 121 | refine ⟨hWD, ?_⟩ |
| 122 | rw [← survivalSliceMap_val E htau.le q0 hWD] |
| 123 | exact hpath |
| 124 | |
| 125 | end PoincareMT.Proofs.M46 |