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.LpSpace.Indicator |
| 2 | import Mathlib.MeasureTheory.Function.LpSeminorm.Basic |
| 3 | |
| 4 | /-! |
| 5 | # Restricted Lp pullback under measure-preserving maps |
| 6 | |
| 7 | An almost-everywhere image inclusion suffices for restricted norm |
| 8 | control and representative transport. Source: the translation step |
| 9 | of M64's inward-boundary-approximation derivation. |
| 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 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | set_option warningAsError true |
| 18 | |
| 19 | open Set Filter MeasureTheory |
| 20 | open scoped ENNReal |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | variable {X Y E : Type*} [MeasurableSpace X] [MeasurableSpace Y] |
| 25 | [NormedAddCommGroup E] {mu : Measure X} {nu : Measure Y} |
| 26 | {T : X → Y} {K : Set X} {O : Set Y} {p : ℝ≥0∞} |
| 27 | |
| 28 | /-- Restricted Lp values and their norm are controlled by the original domain whenever the |
| 29 | image lies there almost everywhere. This permits the null physical face in M64's inward |
| 30 | approximation. Source: derivations/2026-09-26-inward-boundary-approximation.md, translation |
| 31 | and extension. -/ |
| 32 | theorem m64MeasurePreserving_memLp_restrict |
| 33 | (hT : MeasurePreserving T mu nu) (hO : MeasurableSet O) |
| 34 | (hbase : ∀ᵐ x ∂mu.restrict K, T x ∈ O) |
| 35 | {u : Y → E} (hu : MemLp u p (nu.restrict O)) : |
| 36 | MemLp (u ∘ T) p (mu.restrict K) ∧ |
| 37 | eLpNorm (u ∘ T) p (mu.restrict K) ≤ eLpNorm u p (nu.restrict O) := by |
| 38 | classical |
| 39 | let U := O.indicator u |
| 40 | have hU : MemLp U p nu := (memLp_indicator_iff_restrict hO).mpr hu |
| 41 | have heq : U ∘ T =ᵐ[mu.restrict K] u ∘ T := by |
| 42 | filter_upwards [hbase] with x hx |
| 43 | exact indicator_of_mem hx u |
| 44 | refine ⟨((hU.comp_measurePreserving hT).restrict K).ae_eq heq, ?_⟩ |
| 45 | calc |
| 46 | _ = eLpNorm (U ∘ T) p (mu.restrict K) := eLpNorm_congr_ae heq.symm |
| 47 | _ ≤ eLpNorm (U ∘ T) p mu := eLpNorm_mono_measure _ Measure.restrict_le_self |
| 48 | _ = eLpNorm U p nu := eLpNorm_comp_measurePreserving hU.aestronglyMeasurable hT |
| 49 | _ = _ := eLpNorm_indicator_eq_eLpNorm_restrict hO |
| 50 | |
| 51 | /-- Actual almost-everywhere data on the original domain pull back to a restricted set with |
| 52 | almost-everywhere image inclusion. Source: M64's inward approximation derivation, transport |
| 53 | of the original columns. Source/construction: |
| 54 | proof-work/tasks/M64/derivations/2026-09-26-inward-boundary-approximation.md, Translation |
| 55 | and extension. -/ |
| 56 | theorem m64MeasurePreserving_ae_restrict |
| 57 | (hT : MeasurePreserving T mu nu) (hO : MeasurableSet O) |
| 58 | (hbase : ∀ᵐ x ∂mu.restrict K, T x ∈ O) |
| 59 | {P : Y → Prop} (hP : ∀ᵐ y ∂nu.restrict O, P y) : |
| 60 | ∀ᵐ x ∂mu.restrict K, P (T x) := by |
| 61 | have hall := hT.quasiMeasurePreserving.ae ((ae_restrict_iff' hO).mp hP) |
| 62 | filter_upwards [ae_restrict_of_ae hall, hbase] with x hx hb |
| 63 | exact hx hb |
| 64 | |
| 65 | end PoincareMT |