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.Function.AbsolutelyContinuous |
| 2 | |
| 3 | /-! Pointwise interval equality preserves absolute continuity. This is |
| 4 | used when lifting the observed semicircle through a closed embedding. |
| 5 | Source: the defining disjoint-interval estimate. |
| 6 | |
| 7 | Morgan--Tian context: Lemma 19.15, printed pp. 447-449. This project analytic helper |
| 8 | supports the actual annular minimizer and boundary regularity construction. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option warningAsError true |
| 13 | |
| 14 | open Set |
| 15 | |
| 16 | namespace PoincareMT |
| 17 | |
| 18 | /-- Absolute continuity depends only on the values on the specified closed interval. Source: |
| 19 | derivations/2026-09-26-boundary-semicircle-assembly.md, vector primitive and |
| 20 | closed-embedding lift. -/ |
| 21 | theorem m64AbsolutelyContinuousOnInterval_congr |
| 22 | {X : Type*} [PseudoMetricSpace X] {f g : ℝ → X} {a b : ℝ} |
| 23 | (hf : AbsolutelyContinuousOnInterval f a b) (heq : EqOn f g (uIcc a b)) : |
| 24 | AbsolutelyContinuousOnInterval g a b := by |
| 25 | rw [absolutelyContinuousOnInterval_iff] at hf ⊢ |
| 26 | intro epsilon hepsilon |
| 27 | obtain ⟨delta, hdelta, hbound⟩ := hf epsilon hepsilon |
| 28 | refine ⟨delta, hdelta, fun E hE hlen => ?_⟩ |
| 29 | have hsum : (∑ i ∈ Finset.range E.1, dist (f (E.2 i).1) (f (E.2 i).2)) = |
| 30 | ∑ i ∈ Finset.range E.1, dist (g (E.2 i).1) (g (E.2 i).2) := by |
| 31 | apply Finset.sum_congr rfl |
| 32 | intro i hi |
| 33 | rw [heq (hE.1 i hi).1, heq (hE.1 i hi).2] |
| 34 | rw [← hsum] |
| 35 | exact hbound E hE hlen |
| 36 | |
| 37 | end PoincareMT |