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.Bochner.Set |
| 2 | import Mathlib.MeasureTheory.Function.L2Space |
| 3 | |
| 4 | /-! Column energy transport on actual measurable source subsets. |
| 5 | This keeps the original fields and the exact measure-preserving map. |
| 6 | Source: M64 finite-boundary-regularity derivation, modulus and coordinate |
| 7 | transport of the reflected weak energy. |
| 8 | |
| 9 | Morgan--Tian context: Lemma 19.15, printed pp. 447-449. This project analytic helper |
| 10 | supports the actual annular minimizer and boundary regularity construction. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | set_option autoImplicit false |
| 15 | set_option warningAsError true |
| 16 | |
| 17 | open Set Filter MeasureTheory |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | /-- A pointwise column bound and a genuine measure-preserving embedding control the |
| 22 | transported energy by the original energy on a containing set. Source: |
| 23 | derivations/2026-09-26-finite-boundary-regularity.md, measure-preserving column energy |
| 24 | transport. -/ |
| 25 | theorem m64MeasurePreserving_column_energy_le |
| 26 | {X Y E F ι : Type*} [MeasurableSpace X] [MeasurableSpace Y] |
| 27 | [NormedAddCommGroup E] [NormedAddCommGroup F] [Fintype ι] |
| 28 | {mu : Measure X} {nu : Measure Y} {T : X → Y} {S : Set X} {O : Set Y} |
| 29 | (hT : MeasurePreserving T mu nu) (hTe : MeasurableEmbedding T) |
| 30 | (hS : MeasurableSet S) (hSO : MapsTo T S O) |
| 31 | (V : ι → Y → F) (W : ι → X → E) |
| 32 | (hV : ∀ i, MemLp (V i) 2 (nu.restrict O)) |
| 33 | (hW : ∀ i, MemLp (W i) 2 (mu.restrict S)) |
| 34 | {L : ℝ} |
| 35 | (hbound : ∀ i, ∀ x ∈ S, ‖W i x‖ ≤ L * ‖V i (T x)‖) : |
| 36 | (∫ x in S, ∑ i, ‖W i x‖ ^ 2 ∂mu) ≤ |
| 37 | L ^ 2 * ∫ y in O, ∑ i, ‖V i y‖ ^ 2 ∂nu := by |
| 38 | have hsub : S ⊆ T ⁻¹' O := hSO |
| 39 | have hcomp (i : ι) : MemLp (V i ∘ T) 2 (mu.restrict (T ⁻¹' O)) := |
| 40 | (hV i).comp_measurePreserving (hT.restrict_preimage_emb hTe O) |
| 41 | have hsum : IntegrableOn (fun x => ∑ i, ‖V i (T x)‖ ^ 2) (T ⁻¹' O) mu := |
| 42 | integrable_finsetSum _ (fun i _ => (hcomp i).norm.integrable_sq) |
| 43 | have hw : IntegrableOn (fun x => ∑ i, ‖W i x‖ ^ 2) S mu := |
| 44 | integrable_finsetSum _ (fun i _ => (hW i).norm.integrable_sq) |
| 45 | calc |
| 46 | _ ≤ ∫ x in S, L ^ 2 * ∑ i, ‖V i (T x)‖ ^ 2 ∂mu := by |
| 47 | apply integral_mono_ae hw ((hsum.mono_set hsub).const_mul _) |
| 48 | filter_upwards [ae_restrict_mem hS] with x hx |
| 49 | rw [Finset.mul_sum] |
| 50 | apply Finset.sum_le_sum |
| 51 | intro i _ |
| 52 | calc |
| 53 | ‖W i x‖ ^ 2 ≤ (L * ‖V i (T x)‖) ^ 2 := |
| 54 | pow_le_pow_left₀ (norm_nonneg _) (hbound i x hx) 2 |
| 55 | _ = _ := mul_pow _ _ _ |
| 56 | _ = L ^ 2 * ∫ x in S, ∑ i, ‖V i (T x)‖ ^ 2 ∂mu := integral_const_mul _ _ |
| 57 | _ ≤ L ^ 2 * ∫ x in T ⁻¹' O, ∑ i, ‖V i (T x)‖ ^ 2 ∂mu := by |
| 58 | apply mul_le_mul_of_nonneg_left _ (sq_nonneg L) |
| 59 | exact setIntegral_mono_set hsum |
| 60 | (Eventually.of_forall fun x => Finset.sum_nonneg fun i _ => sq_nonneg _) |
| 61 | (Eventually.of_forall fun x hx => hsub hx) |
| 62 | _ = _ := congrArg (fun z : ℝ => L ^ 2 * z) |
| 63 | (hT.setIntegral_preimage_emb hTe (fun y => ∑ i, ‖V i y‖ ^ 2) O) |
| 64 | |
| 65 | end PoincareMT |