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 | # A surviving branch extends past an interior physical time |
| 5 | |
| 6 | Morgan--Tian Lemma 6.18, pp. 113-114, used for the endpoint-recovery |
| 7 | argument in Corollary 6.67. Relative survival openness yields a strict |
| 8 | extension only when the selected physical endpoint is interior to the |
| 9 | actual history interval. This is the seed-time hypothesis used below. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.Proofs.M46 |
| 20 | |
| 21 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 22 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 23 | {T : ℝ} {x : G.Point} |
| 24 | |
| 25 | /-- An actual survivor at positive square time and interior physical |
| 26 | time has a strictly longer surviving trace, Lemma 6.18, pp. 113-114. -/ |
| 27 | theorem exists_surviving_extension_at_interior |
| 28 | (E : M14ExponentialFamily G T x) {Z : G.Horizontal x} {s : ℝ} |
| 29 | (hs : 0 < s) (hZ : (Z, s) ∈ E.domain) |
| 30 | (htime : T - s ^ 2 ∈ interior I.domain) : |
| 31 | ∃ b : ℝ, s < b ∧ (Z, b) ∈ E.domain := by |
| 32 | obtain ⟨U, hU, hZU, hUD⟩ := E.domain_relative_open (Z, s) hZ |
| 33 | have hUtime : {r : ℝ | (Z, r) ∈ U} ∈ 𝓝 s := |
| 34 | (continuous_const.prodMk continuous_id).continuousAt.preimage_mem_nhds (hU.mem_nhds hZU) |
| 35 | have hphysical : {r : ℝ | T - r ^ 2 ∈ interior I.domain} ∈ 𝓝 s := |
| 36 | (continuous_const.sub (continuous_id.pow 2)).continuousAt.preimage_mem_nhds |
| 37 | (isOpen_interior.mem_nhds htime) |
| 38 | have hsurvive : {r : ℝ | (Z, r) ∈ E.domain} ∈ 𝓝 s := by |
| 39 | filter_upwards [hUtime, Ioi_mem_nhds hs, hphysical] with r hrU hrpos hrtime |
| 40 | exact hUD ⟨hrU, hrpos.le, interior_subset hrtime⟩ |
| 41 | obtain ⟨r, hr, hball⟩ := Metric.mem_nhds_iff.mp hsurvive |
| 42 | refine ⟨s + r / 2, by linarith, hball ?_⟩ |
| 43 | rw [Metric.mem_ball, Real.dist_eq, add_sub_cancel_left, abs_of_pos (half_pos hr)] |
| 44 | linarith |
| 45 | |
| 46 | end PoincareMT.Proofs.M46 |