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.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Geometry.CriticalRadius |
| 3 | |
| 4 | /-! |
| 5 | # Cofinality of the retained critical witnesses |
| 6 | |
| 7 | The critical-radius construction supplies witnesses on a strict, varying |
| 8 | subsequence. They are cofinal from below along that subsequence; this does |
| 9 | not turn them into points of one fixed source tube. The distinction is kept |
| 10 | explicit for the later radial-spine producer. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | |
| 17 | namespace PoincareMT.M28.tube |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | theorem critical_witnesses_cofinal_below |
| 22 | {X : ℕ → Type u} {d q : ∀ k, X k → ℝ} {A : ℝ} |
| 23 | (hinterior : ∀ r < A, eventuallyRadiusBound d q r) |
| 24 | {φ : ℕ → ℕ} (hφ : StrictMono φ) (x : ∀ j, X (φ j)) |
| 25 | (hx : ∀ j, d (φ j) (x j) < A + 1 / ((j : ℝ) + 1) ∧ |
| 26 | (j : ℝ) < q (φ j) (x j)) : |
| 27 | ∀ n : ℕ, ∃ j : ℕ, |
| 28 | A - 1 / ((n : ℝ) + 1) < d (φ j) (x j) := by |
| 29 | intro n |
| 30 | by_contra hnot |
| 31 | push Not at hnot |
| 32 | let r : ℝ := A - 1 / (2 * ((n : ℝ) + 1)) |
| 33 | have hn : 0 < (n : ℝ) + 1 := by positivity |
| 34 | have hr : r < A := by |
| 35 | dsimp [r] |
| 36 | have : 0 < 1 / (2 * ((n : ℝ) + 1)) := by positivity |
| 37 | linarith |
| 38 | obtain ⟨K, hK⟩ := hinterior r hr |
| 39 | have hKφ : ∀ᶠ j : ℕ in atTop, |
| 40 | ∀ y : X (φ j), d (φ j) y < r → q (φ j) y ≤ K := |
| 41 | hφ.tendsto_atTop.eventually hK |
| 42 | have hJ : ∀ᶠ j : ℕ in atTop, K < (j : ℝ) := |
| 43 | tendsto_natCast_atTop_atTop.eventually (eventually_gt_atTop K) |
| 44 | obtain ⟨j, hjK, hj⟩ := (hKφ.and hJ).exists |
| 45 | have hdle : d (φ j) (x j) ≤ A - 1 / ((n : ℝ) + 1) := hnot j |
| 46 | have hdr : d (φ j) (x j) < r := by |
| 47 | dsimp [r] |
| 48 | have hden : (n : ℝ) + 1 < 2 * ((n : ℝ) + 1) := by linarith |
| 49 | have hhalf : 1 / (2 * ((n : ℝ) + 1)) < 1 / ((n : ℝ) + 1) := |
| 50 | one_div_lt_one_div_of_lt hn hden |
| 51 | linarith |
| 52 | have hq := hjK (x j) hdr |
| 53 | exact (not_lt_of_ge hq) (hj.trans (hx j).2) |
| 54 | |
| 55 | end PoincareMT.M28.tube |