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.CanonicalInduction.Terminal.Source.TerminalSourceCountableClosedLimit |
| 2 | |
| 3 | /-! |
| 4 | # Included slice convergence of the actual countable coefficients |
| 5 | |
| 6 | The negative bottom is inside the original extraction interval. Zero |
| 7 | retains the original terminal coefficients. Both give local uniform |
| 8 | convergence on the entire unchanged chart, without endpoint jet claims. |
| 9 | MT Proposition 5.14; terminal-source-countable-finite-germs.md, A. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter TopologicalSpace |
| 16 | open scoped Manifold ContDiff Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M47 |
| 21 | |
| 22 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 23 | local notation "V" => E →L[ℝ] E →L[ℝ] ℝ |
| 24 | |
| 25 | /-- Every included slice keeps the original locally uniform coefficient |
| 26 | limit, using the larger negative extraction interval at the bottom. -/ |
| 27 | theorem terminalSourceCountable_slice_convergence |
| 28 | {tau : ℝ} (htau : 0 < tau) {U : Set E} (hU : IsOpen U) |
| 29 | (f : ℕ → ℝ × E → V) (B0 : E → V) (Bminus : ℝ × E → V) |
| 30 | (hzero : TendstoLocallyUniformlyOn (fun k x => f k (0, x)) B0 atTop U) |
| 31 | (hminus : ∀ K, IsCompact K → K ⊆ Ioo (-(tau / 2)) 0 ×ˢ U → |
| 32 | TendstoUniformlyOn (fun k => iteratedFDeriv ℝ 0 (f k)) |
| 33 | (iteratedFDeriv ℝ 0 Bminus) atTop K) |
| 34 | {t : ℝ} (ht : t ∈ Icc (-(tau / 4)) 0) : |
| 35 | TendstoLocallyUniformlyOn (fun k x => f k (t, x)) |
| 36 | (fun x => if t < 0 then Bminus (t, x) else B0 x) atTop U := by |
| 37 | by_cases ht0 : t < 0 |
| 38 | · simp only [if_pos ht0] |
| 39 | apply (tendstoLocallyUniformlyOn_iff_forall_isCompact hU).mpr |
| 40 | intro K hKU hK |
| 41 | have hprod : ({t} : Set ℝ) ×ˢ K ⊆ Ioo (-(tau / 2)) 0 ×ˢ U := by |
| 42 | rintro ⟨s, x⟩ ⟨hs, hx⟩ |
| 43 | have hst : s = t := mem_singleton_iff.mp hs |
| 44 | subst s |
| 45 | exact ⟨⟨by linarith only [htau, ht.1], ht0⟩, hKU hx⟩ |
| 46 | have heval := (ContinuousMultilinearMap.uniformContinuous_eval_const |
| 47 | (𝕜 := ℝ) (0 : Fin 0 → ℝ × E)).comp_tendstoUniformlyOn |
| 48 | (hminus _ (isCompact_singleton.prod hK) hprod) |
| 49 | have hvalue : TendstoUniformlyOn (fun k => f k) Bminus atTop ({t} ×ˢ K) := by |
| 50 | simpa only [Function.comp_def, iteratedFDeriv_zero_apply] using heval |
| 51 | simpa only [Function.comp_def] using |
| 52 | (hvalue.comp (fun x : E => (t, x))).mono (fun _ hx => ⟨rfl, hx⟩) |
| 53 | · have htzero : t = 0 := le_antisymm ht.2 (le_of_not_gt ht0) |
| 54 | subst t |
| 55 | simpa only [lt_self_iff_false, if_false] using hzero |
| 56 | |
| 57 | /-- The actual Negative family has the same locally uniform limit on |
| 58 | every included slice of its selected chart flow. -/ |
| 59 | theorem terminalSourceCountable_negative_slice_convergence |
| 60 | (j : ℕ) (M : {k : ℕ // j ≤ k} → Type u) |
| 61 | [∀ a, TopologicalSpace (M a)] [∀ a, ChartedSpace E (M a)] |
| 62 | [∀ a, IsManifold (𝓡 3) ∞ (M a)] |
| 63 | {tau R : ℝ} (htau : 0 < tau) |
| 64 | (F : ∀ a, RicciFlow 3 (M a) (Icc (-tau) 0)) |
| 65 | (C : ∀ a, TerminalSourceChart ((F a).metric 0) R) |
| 66 | (U : Opens E) (f0 : ℕ → E → V) |
| 67 | (hread : ∀ a, EqOn (f0 a.val) |
| 68 | (((F a).metric 0).pullbackCoefficients (C a).chart) U) |
| 69 | (sigma : ℕ → ℕ) (B0 : E → V) (Bminus : ℝ × E → V) |
| 70 | (hzero : ∀ K, IsCompact K → K ⊆ U → |
| 71 | TendstoUniformlyOn (fun k => iteratedFDeriv ℝ 0 (f0 (sigma k))) |
| 72 | (iteratedFDeriv ℝ 0 B0) atTop K) |
| 73 | (hminus : ∀ K, IsCompact K → K ⊆ Ioo (-(tau / 2)) 0 ×ˢ (U : Set E) → |
| 74 | TendstoUniformlyOn (fun k => iteratedFDeriv ℝ 0 |
| 75 | (terminalSourceCountableNegative j M F C f0 (sigma k))) |
| 76 | (iteratedFDeriv ℝ 0 Bminus) atTop K) |
| 77 | {t : ℝ} (ht : t ∈ Icc (-(tau / 4)) 0) : |
| 78 | TendstoLocallyUniformlyOn |
| 79 | (fun k x => terminalSourceCountableNegative j M F C f0 (sigma k) (t, x)) |
| 80 | (fun x => if t < 0 then Bminus (t, x) else B0 x) atTop U := by |
| 81 | apply terminalSourceCountable_slice_convergence htau U.isOpen |
| 82 | (fun k => terminalSourceCountableNegative j M F C f0 (sigma k)) B0 Bminus |
| 83 | ?_ hminus ht |
| 84 | have hterminal : TendstoLocallyUniformlyOn (fun k => f0 (sigma k)) B0 atTop U := by |
| 85 | apply (tendstoLocallyUniformlyOn_iff_forall_isCompact U.isOpen).mpr |
| 86 | intro K hKU hK |
| 87 | have heval := (ContinuousMultilinearMap.uniformContinuous_eval_const |
| 88 | (𝕜 := ℝ) (0 : Fin 0 → E)).comp_tendstoUniformlyOn (hzero K hK hKU) |
| 89 | simpa only [Function.comp_def, iteratedFDeriv_zero_apply] using heval |
| 90 | apply hterminal.congr |
| 91 | exact fun k x hx => |
| 92 | (terminalSourceCountableNegative_zero j M F C U f0 hread (sigma k) hx).symm |
| 93 | |
| 94 | end PoincareMT.M47 |