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.CurveShortening.Comparison.Analysis.Endpoint.Cutoff |
| 2 | import Mathlib.MeasureTheory.Integral.DominatedConvergence |
| 3 | |
| 4 | /-! |
| 5 | # Endpoint cutoff limits in L1 pairings |
| 6 | |
| 7 | This is the dominated convergence step in M64's second-stress-cutoff |
| 8 | derivation for Lemaire 1982, Lemma 5.1, p. 99. The field is only L1; |
| 9 | no boundary trace or derivative of that field is used. |
| 10 | |
| 11 | Morgan--Tian context: Lemma 19.15, printed pp. 447-449. This project analytic helper |
| 12 | supports the actual annular minimizer and boundary regularity construction. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option warningAsError true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | open Set Filter MeasureTheory |
| 22 | open scoped Topology ContDiff |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | /-- Endpoint cutoff values and first derivatives converge in every L1 pairing. Source: M64's |
| 27 | second-stress-cutoff derivation. Source/construction: |
| 28 | proof-work/tasks/M64/derivations/2026-09-26-second-stress-cutoff.md, endpoint cutoff |
| 29 | construction. -/ |
| 30 | theorem m64EndpointCutoff_integral_tendsto |
| 31 | {X E : Type*} [MeasurableSpace X] [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 32 | [CompleteSpace E] {mu : Measure X} {q : X → ℝ} {a b : ℝ} |
| 33 | (hq : Measurable q) (hI : ∀ᵐ x ∂mu, q x ∈ Ioo a b) |
| 34 | {F : X → E} (hF : Integrable F mu) {f : ℝ → ℝ} |
| 35 | (hf : ContDiff ℝ ∞ f) (ha : f a = 0) (hb : f b = 0) : |
| 36 | Tendsto (fun j => ∫ x, m64EndpointCutoff a b f j (q x) • F x ∂mu) atTop |
| 37 | (𝓝 (∫ x, f (q x) • F x ∂mu)) ∧ |
| 38 | Tendsto (fun j => ∫ x, deriv (m64EndpointCutoff a b f j) (q x) • F x ∂mu) atTop |
| 39 | (𝓝 (∫ x, deriv f (q x) • F x ∂mu)) := by |
| 40 | obtain ⟨C, -, hC⟩ := m64EndpointCutoff_uniform_bound hf ha hb |
| 41 | constructor |
| 42 | · apply tendsto_integral_of_dominated_convergence (fun x => C * ‖F x‖) |
| 43 | · intro j |
| 44 | exact (((m64EndpointCutoff_contDiff hf j).continuous.measurable.comp hq |
| 45 | ).aestronglyMeasurable).smul hF.aestronglyMeasurable |
| 46 | · exact hF.norm.const_mul C |
| 47 | · intro j |
| 48 | filter_upwards [hI] with x hx |
| 49 | rw [norm_smul, Real.norm_eq_abs] |
| 50 | exact mul_le_mul_of_nonneg_right (hC j (q x) (Ioo_subset_Icc_self hx)).1 (norm_nonneg _) |
| 51 | · filter_upwards [hI] with x hx |
| 52 | apply tendsto_const_nhds.congr' |
| 53 | filter_upwards [m64EndpointCutoff_eventually hf hx] with j hj |
| 54 | rw [hj.1] |
| 55 | · apply tendsto_integral_of_dominated_convergence (fun x => C * ‖F x‖) |
| 56 | · intro j |
| 57 | have hc := (m64EndpointCutoff_contDiff (a := a) (b := b) hf j).continuous_deriv (by simp) |
| 58 | exact (hc.measurable.comp hq).aestronglyMeasurable.smul hF.aestronglyMeasurable |
| 59 | · exact hF.norm.const_mul C |
| 60 | · intro j |
| 61 | filter_upwards [hI] with x hx |
| 62 | rw [norm_smul, Real.norm_eq_abs] |
| 63 | exact mul_le_mul_of_nonneg_right (hC j (q x) (Ioo_subset_Icc_self hx)).2 (norm_nonneg _) |
| 64 | · filter_upwards [hI] with x hx |
| 65 | apply tendsto_const_nhds.congr' |
| 66 | filter_upwards [m64EndpointCutoff_eventually hf hx] with j hj |
| 67 | rw [hj.2] |
| 68 | |
| 69 | end PoincareMT |