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.Analysis.Calculus.BumpFunction.Convolution |
| 2 | import Mathlib.Analysis.SpecificLimits.Basic |
| 3 | |
| 4 | /-! |
| 5 | # A fixed sequence of normalized smooth kernels |
| 6 | |
| 7 | The outer radii are r/(j+1), with positive half-sized inner radii. |
| 8 | They stay within the chart margin and tend to zero. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Filter |
| 14 | open scoped Topology |
| 15 | |
| 16 | namespace PoincareMT.ReducedVolume |
| 17 | |
| 18 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 19 | |
| 20 | /-- A shrinking bump with a fixed positive spatial margin. -/ |
| 21 | noncomputable def shrinkingBump (r : ℝ) (hr : 0 < r) (j : ℕ) : ContDiffBump (0 : E) where |
| 22 | rIn := r / ((j : ℝ) + 1) / 2 |
| 23 | rOut := r / ((j : ℝ) + 1) |
| 24 | rIn_pos := half_pos (div_pos hr (by positivity)) |
| 25 | rIn_lt_rOut := half_lt_self (div_pos hr (by positivity)) |
| 26 | |
| 27 | omit [NormedSpace ℝ E] in |
| 28 | /-- Each kernel remains within the original positive margin. -/ |
| 29 | theorem shrinkingBump_rOut_le (r : ℝ) (hr : 0 < r) (j : ℕ) : |
| 30 | (shrinkingBump (E := E) r hr j).rOut ≤ r := |
| 31 | div_le_self hr.le (le_add_of_nonneg_left (Nat.cast_nonneg j)) |
| 32 | |
| 33 | omit [NormedSpace ℝ E] in |
| 34 | /-- The explicitly chosen radii tend to zero. -/ |
| 35 | theorem shrinkingBump_rOut_tendsto (r : ℝ) (hr : 0 < r) : |
| 36 | Tendsto (fun j ↦ (shrinkingBump (E := E) r hr j).rOut) atTop (𝓝 0) := by |
| 37 | simpa only [shrinkingBump, one_div, div_eq_mul_inv, mul_zero, one_mul] using |
| 38 | (tendsto_const_nhds (x := r)).mul |
| 39 | (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)) |
| 40 | |
| 41 | end PoincareMT.ReducedVolume |