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.CompactSurvival |
| 2 | import Mathlib.Analysis.Normed.Group.Bounded |
| 3 | import Mathlib.Analysis.Normed.Module.FiniteDimension |
| 4 | |
| 5 | /-! |
| 6 | # Nested compact initial sets with actual short survival |
| 7 | |
| 8 | An open initial neighborhood and its compact closure lie inside a |
| 9 | larger uniform survival neighborhood. The cutoff is physical time. |
| 10 | Morgan-Tian Lemma 6.22 and Corollary 6.79, pp. 115-116, 144-145. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff 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 | /-- Compact initial vectors have nested open and compact neighborhoods |
| 27 | with one actual physical survival and capture cutoff, Corollary 6.79, |
| 28 | pp. 144-145. No minimizing property is asserted. -/ |
| 29 | theorem exists_smallTimeCandidate_tube (E : M14ExponentialFamily G T x) |
| 30 | {B : Set (G.Horizontal x)} (hB : IsCompact B) {O : Set G.Point} |
| 31 | (hO : IsOpen O) (hxO : x ∈ O) {δ : ℝ} (hδ : 0 < δ) |
| 32 | (hwindow : Icc (T - δ) T ⊆ I.domain) : |
| 33 | ∃ N K U : Set (G.Horizontal x), IsOpen N ∧ B ⊆ N ∧ N ⊆ K ∧ |
| 34 | IsCompact K ∧ K ⊆ U ∧ IsOpen U ∧ |
| 35 | ∃ η : ℝ, 0 < η ∧ η ≤ δ ∧ |
| 36 | ∀ W ∈ U, ∀ σ ∈ Icc 0 η, |
| 37 | (W, Real.sqrt σ) ∈ E.domain ∧ E.gamma W (Real.sqrt σ) ∈ O := by |
| 38 | let metric := G.spacetime.horizontalMetric.toRiemannianMetric |
| 39 | let : NormedAddCommGroup (G.Horizontal x) := |
| 40 | (metric.toCore x).toNormedAddCommGroupOfTopology |
| 41 | (metric.continuousAt x) (metric.isVonNBounded x) |
| 42 | let : InnerProductSpace ℝ (G.Horizontal x) := |
| 43 | .ofCoreOfTopology (metric.toCore x) (metric.continuousAt x) (metric.isVonNBounded x) |
| 44 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := ⟨metric⟩ |
| 45 | let : FiniteDimensional ℝ (G.Horizontal x) := |
| 46 | VectorBundle.finiteDimensional ℝ (EuclideanSpace ℝ (Fin n)) G.Horizontal x |
| 47 | obtain ⟨R, _hR, hBR⟩ := hB.isBounded.exists_pos_norm_le |
| 48 | let N := Metric.ball (0 : G.Horizontal x) (R + 1) |
| 49 | let K := Metric.closedBall (0 : G.Horizontal x) (R + 1) |
| 50 | let U := Metric.ball (0 : G.Horizontal x) (R + 2) |
| 51 | let L := Metric.closedBall (0 : G.Horizontal x) (R + 2) |
| 52 | have hBN : B ⊆ N := by |
| 53 | intro W hW |
| 54 | change dist W 0 < R + 1 |
| 55 | rw [dist_zero_right] |
| 56 | exact (hBR W hW).trans_lt (lt_add_one R) |
| 57 | have hKU : K ⊆ U := by |
| 58 | intro W hW |
| 59 | change dist W 0 ≤ R + 1 at hW |
| 60 | change dist W 0 < R + 2 |
| 61 | linarith |
| 62 | obtain ⟨η, hη, hηδ, hsurv⟩ := compact_initial_survival_and_capture E |
| 63 | (B := L) (isCompact_closedBall _ _) ⟨O, hO, hxO, Subset.rfl⟩ hδ hwindow |
| 64 | exact ⟨N, K, U, Metric.isOpen_ball, hBN, Metric.ball_subset_closedBall, |
| 65 | isCompact_closedBall _ _, hKU, Metric.isOpen_ball, η, hη, hηδ, |
| 66 | fun W hW => hsurv W (Metric.ball_subset_closedBall hW)⟩ |
| 67 | |
| 68 | end PoincareMT.M14 |