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 Mathlib.MeasureTheory.Integral.DominatedConvergence |
| 2 | |
| 3 | /-! Uniform circle convergence passes bounded continuous flux weights. |
| 4 | |
| 5 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 6 | 447-449. |
| 7 | -/ |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | |
| 11 | open Set Filter MeasureTheory |
| 12 | open scoped Topology |
| 13 | |
| 14 | namespace PoincareMT |
| 15 | |
| 16 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 17 | |
| 18 | omit [CompleteSpace E] in |
| 19 | /-- A fixed bounded scalar multiplier preserves actual uniform convergence. Proof expansion |
| 20 | for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 21 | theorem m64TendstoUniformlyOn_smul_bounded |
| 22 | {X : Type*} {S : Set X} {f : ℕ → X → E} {u : X → E} |
| 23 | (hlim : TendstoUniformlyOn f u atTop S) (b : X → ℝ) |
| 24 | {C : ℝ} (hC : 0 ≤ C) (hb : ∀ x ∈ S, ‖b x‖ ≤ C) : |
| 25 | TendstoUniformlyOn (fun j x => b x • f j x) (fun x => b x • u x) atTop S := by |
| 26 | rw [Metric.tendstoUniformlyOn_iff] |
| 27 | intro epsilon hepsilon |
| 28 | have hCp : 0 < C + 1 := by linarith |
| 29 | filter_upwards [Metric.tendstoUniformlyOn_iff.mp hlim |
| 30 | (epsilon / (C + 1)) (div_pos hepsilon hCp)] with j hj |
| 31 | intro x hx |
| 32 | rw [dist_eq_norm, ← smul_sub, norm_smul] |
| 33 | have hn := hj x hx |
| 34 | rw [dist_eq_norm] at hn |
| 35 | calc |
| 36 | _ ≤ (C + 1) * ‖u x - f j x‖ := |
| 37 | mul_le_mul_of_nonneg_right ((hb x hx).trans (by linarith)) (norm_nonneg _) |
| 38 | _ < (C + 1) * (epsilon / (C + 1)) := mul_lt_mul_of_pos_left hn hCp |
| 39 | _ = epsilon := mul_div_cancel₀ _ hCp.ne' |
| 40 | |
| 41 | omit [CompleteSpace E] in |
| 42 | /-- Actual uniform circle convergence passes integrals against bounded continuous scalar |
| 43 | weights. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 44 | theorem m64UniformCircle_weighted_integral_tendsto |
| 45 | {f : ℕ → ℝ → E} {u : ℝ → E} {a b : ℝ} (hab : a ≤ b) |
| 46 | (hf : ∀ j, ContinuousOn (f j) (Icc a b)) |
| 47 | (hlim : TendstoUniformlyOn f u atTop (Icc a b)) |
| 48 | (w : ℝ → ℝ) (hw : ContinuousOn w (Icc a b)) : |
| 49 | Tendsto (fun j => ∫ x in Icc a b, w x • f j x) atTop |
| 50 | (𝓝 (∫ x in Icc a b, w x • u x)) := by |
| 51 | obtain ⟨C, hC⟩ := isCompact_Icc.exists_bound_of_continuousOn hw |
| 52 | have huni := m64TendstoUniformlyOn_smul_bounded hlim w |
| 53 | (le_max_left 0 C) (fun x hx => (hC x hx).trans (le_max_right 0 C)) |
| 54 | have hconv := TendstoUniformlyOn.tendsto_intervalIntegral_of_continuousOn |
| 55 | (μ := volume) (a := a) (b := b) |
| 56 | (Eventually.of_forall (fun j => by simpa only [uIcc_of_le hab] using hw.smul (hf j))) |
| 57 | (by simpa +instances only [uIcc_of_le hab, Pi.smul_apply] using! huni) |
| 58 | simpa +instances only [intervalIntegral.integral_of_le hab, |
| 59 | ← integral_Icc_eq_integral_Ioc, Pi.smul_apply] using! hconv |
| 60 | |
| 61 | end PoincareMT |