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.Exponential.Domain.JointNeighborhood |
| 2 | |
| 3 | /-! |
| 4 | # Actual survivor tubes without future minimizing stability |
| 5 | |
| 6 | Relative openness of the supplied exponential domain gives a closed |
| 7 | time tube inside a compatible gauge. This requires survival and positive |
| 8 | time only; no membership in the joint stable domain is assumed. |
| 9 | Morgan-Tian Proposition 6.28, p. 117, used in the local argument for |
| 10 | Proposition 6.56, p. 133. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter Metric |
| 16 | open scoped Manifold ContDiff Topology Bundle |
| 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 | /-- A positive survivor has a convex spatial, closed-time tube in the |
| 27 | actual survivor domain and one smooth gauge inverse. The tube remains |
| 28 | a relative neighborhood at a physical endpoint, Proposition 6.28, |
| 29 | p. 117. -/ |
| 30 | theorem exists_survivor_gauge_tube (E : M14ExponentialFamily G T x) |
| 31 | {Z : G.Horizontal x} {s : ℝ} (hsurv : (Z, s) ∈ E.domain) (hs : 0 < s) : |
| 32 | ∃ (b : G.gaugeCover.index) (N : Set G.Point) |
| 33 | (lift : G.Point → (G.timeIntervals.interval (G.gaugeCover.interval b)).Point × |
| 34 | G.gaugeCover.spatial b), |
| 35 | IsOpen N ∧ E.gamma Z s ∈ N ∧ |
| 36 | ContMDiffOn (spacetimeModel n) (spacetimeModel n) ∞ lift N ∧ |
| 37 | (∀ q ∈ N, (G.gaugeCover.cylinder b).toSpacetime (lift q) = q) ∧ |
| 38 | (∀ q ∈ N, (lift q).1.val = G.spacetime.timeFunction q) ∧ |
| 39 | ∃ V : Set (G.Horizontal x), IsOpen V ∧ Convex ℝ V ∧ Z ∈ V ∧ |
| 40 | ∃ a c : ℝ, 0 < a ∧ a < s ∧ s ≤ c ∧ |
| 41 | V ×ˢ Icc a c ⊆ E.domain ∧ |
| 42 | (∀ z ∈ V ×ˢ Icc a c, E.gamma z.1 z.2 ∈ N) ∧ |
| 43 | V ×ˢ Icc a c ∈ 𝓝[M14AdmissibleParameter G T x] (Z, s) := by |
| 44 | let metric := G.spacetime.horizontalMetric.toRiemannianMetric |
| 45 | let : NormedAddCommGroup (G.Horizontal x) := |
| 46 | (metric.toCore x).toNormedAddCommGroupOfTopology |
| 47 | (metric.continuousAt x) (metric.isVonNBounded x) |
| 48 | let : InnerProductSpace ℝ (G.Horizontal x) := |
| 49 | .ofCoreOfTopology (metric.toCore x) (metric.continuousAt x) (metric.isVonNBounded x) |
| 50 | have hAdm := E.domain_admissible hsurv |
| 51 | have hT : T ∈ I.domain := by |
| 52 | rw [← G.spacetime.time_range] |
| 53 | exact ⟨x, E.base_time⟩ |
| 54 | obtain ⟨d, hsd, hclock, hnear⟩ := exists_squareClock_prefix_neighborhood hT hs hAdm.2 |
| 55 | let A := M14AdmissibleParameter G T x |
| 56 | let B := (univ : Set (G.Horizontal x)) ×ˢ Icc 0 d |
| 57 | have hBA : B ⊆ A := fun z hz => ⟨hz.2.1, hclock z.2 hz.2⟩ |
| 58 | have hDn : E.domain ∈ 𝓝[A] (Z, s) := by |
| 59 | obtain ⟨U, hU, hzU, hsub⟩ := E.domain_relative_open (Z, s) hsurv |
| 60 | exact mem_nhdsWithin.mpr ⟨U, hU, hzU, hsub⟩ |
| 61 | obtain ⟨b, N, lift, hN, hpN, hlift, hrec, htime⟩ := exists_smooth_gauge_lift G (E.gamma Z s) |
| 62 | have hpre : {z : G.Horizontal x × ℝ | E.gamma z.1 z.2 ∈ N} ∈ 𝓝[A] (Z, s) := |
| 63 | nhdsWithin_le_of_mem hDn |
| 64 | ((E.joint_continuous (Z, s) hsurv).preimage_mem_nhdsWithin (hN.mem_nhds hpN)) |
| 65 | have hsmall : E.domain ∩ {z | E.gamma z.1 z.2 ∈ N} ∈ 𝓝[B] (Z, s) := |
| 66 | nhdsWithin_mono (Z, s) hBA (inter_mem hDn hpre) |
| 67 | obtain ⟨U, hU, hZU, _, a, c, ha, has, hsc, _, hsub, hCn⟩ := |
| 68 | exists_open_closed_family_neighborhood isOpen_univ (mem_univ Z) hs hsd hsmall |
| 69 | obtain ⟨ε, hε, hεU⟩ := Metric.mem_nhds_iff.mp (hU.mem_nhds hZU) |
| 70 | let V := ball Z ε |
| 71 | have hVU : V ⊆ U := hεU |
| 72 | have hVZ : Z ∈ V := mem_ball_self hε |
| 73 | refine ⟨b, N, lift, hN, hpN, hlift, hrec, htime, V, isOpen_ball, convex_ball Z ε, |
| 74 | hVZ, a, c, ha, has, hsc, ?_, ?_, ?_⟩ |
| 75 | · exact fun z hz => (hsub ⟨hVU hz.1, hz.2⟩).1 |
| 76 | · exact fun z hz => (hsub ⟨hVU hz.1, hz.2⟩).2 |
| 77 | · have hprod : A = (univ : Set (G.Horizontal x)) ×ˢ |
| 78 | {r | 0 ≤ r ∧ T - r ^ 2 ∈ I.domain} := by |
| 79 | ext z |
| 80 | simp only [A, M14AdmissibleParameter, mem_ofPred_eq, mem_prod, mem_univ, true_and] |
| 81 | change V ×ˢ Icc a c ∈ 𝓝[A] (Z, s) |
| 82 | rw [hprod, nhdsWithin_prod_eq, nhdsWithin_univ] |
| 83 | exact prod_mem_prod (isOpen_ball.mem_nhds hVZ) (nhdsWithin_le_of_mem hnear hCn) |
| 84 | |
| 85 | end PoincareMT.M14 |