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 | /- Adapted from Mapher `PoincareMT/Proofs/M03/Existence/ChartPullbackEnergyNative.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Analysis.Parabolic.Quasilinear.Charts.Measure.ChartLp |
| 6 | import Mathlib.MeasureTheory.Function.L2Space |
| 7 | |
| 8 | /-! |
| 9 | # Scalar energy transport by the actual chart pullback |
| 10 | |
| 11 | The squared L2 operator estimate gives a uniform comparison of scalar |
| 12 | coordinate integrals with the native global L2 norm. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option maxHeartbeats 800000 |
| 17 | |
| 18 | open MeasureTheory Set Filter |
| 19 | open scoped ENNReal Topology |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | universe u v |
| 24 | |
| 25 | namespace PoincareMT.ChartLpNative |
| 26 | |
| 27 | section ScalarNorm |
| 28 | |
| 29 | variable {X : Type v} [MeasurableSpace X] {μ : Measure X} |
| 30 | |
| 31 | theorem scalarL2_norm_sq (f : Lp ℝ 2 μ) : ‖f‖ ^ 2 = ∫ x, f x ^ 2 ∂μ := by |
| 32 | calc |
| 33 | ‖f‖ ^ 2 = inner ℝ f f := (real_inner_self_eq_norm_sq f).symm |
| 34 | _ = ∫ x, inner ℝ (f x) (f x) ∂μ := L2.inner_def f f |
| 35 | _ = _ := by simp only [real_inner_self_eq_norm_sq, Real.norm_eq_abs, sq_abs] |
| 36 | |
| 37 | theorem scalarToLp_norm_sq {f : X → ℝ} (hf : MemLp f 2 μ) : |
| 38 | ‖hf.toLp f‖ ^ 2 = ∫ x, f x ^ 2 ∂μ := by |
| 39 | rw [scalarL2_norm_sq] |
| 40 | apply integral_congr_ae |
| 41 | filter_upwards [hf.coeFn_toLp] with x hx |
| 42 | rw [hx] |
| 43 | |
| 44 | end ScalarNorm |
| 45 | |
| 46 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 47 | |
| 48 | local notation "E" => EuclideanSpace ℝ (Fin n) |
| 49 | |
| 50 | theorem chartPullback_memLp (e : OpenPartialHomeomorph M E) {A : Set E} |
| 51 | (hA : MeasurableSet A) (hAt : A ⊆ e.target) {μ : Measure M} {c : ℝ} |
| 52 | (hc : 0 < c) (hdom : ENNReal.ofReal c • (volume.restrict A).map e.symm ≤ μ) |
| 53 | {f : M → ℝ} (hf : MemLp f 2 μ) : MemLp (f ∘ e.symm) 2 (volume.restrict A) := |
| 54 | MemLp.ae_eq (chartPullbackL2_toLp_coe e hA hAt hc hdom hf) |
| 55 | (Lp.memLp (chartPullbackL2 e hA hAt hc hdom (hf.toLp f))) |
| 56 | |
| 57 | /-- The bounded chart operator controls the actual scalar coordinate energy. -/ |
| 58 | theorem chartPullback_integral_sq_le (e : OpenPartialHomeomorph M E) {A : Set E} |
| 59 | (hA : MeasurableSet A) (hAt : A ⊆ e.target) {μ : Measure M} {c : ℝ} |
| 60 | (hc : 0 < c) (hdom : ENNReal.ofReal c • (volume.restrict A).map e.symm ≤ μ) |
| 61 | {f : M → ℝ} (hf : MemLp f 2 μ) : |
| 62 | (∫ z in A, f (e.symm z) ^ 2) ≤ |
| 63 | ‖(chartPullbackL2 e hA hAt hc hdom : Lp ℝ 2 μ →L[ℝ] Lp ℝ 2 (volume.restrict A))‖ ^ 2 * |
| 64 | ‖hf.toLp f‖ ^ 2 := by |
| 65 | let L : Lp ℝ 2 μ →L[ℝ] Lp ℝ 2 (volume.restrict A) := chartPullbackL2 e hA hAt hc hdom |
| 66 | calc |
| 67 | _ = ∫ z in A, L (hf.toLp f) z ^ 2 := by |
| 68 | apply integral_congr_ae |
| 69 | filter_upwards [chartPullbackL2_toLp_coe e hA hAt hc hdom hf] with z hz |
| 70 | exact congrArg (fun t : ℝ => t ^ 2) hz.symm |
| 71 | _ = ‖L (hf.toLp f)‖ ^ 2 := (scalarL2_norm_sq _).symm |
| 72 | _ ≤ (‖L‖ * ‖hf.toLp f‖) ^ 2 := |
| 73 | (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (norm_nonneg _) (norm_nonneg _))).mpr |
| 74 | (L.le_opNorm _) |
| 75 | _ = _ := mul_pow _ _ _ |
| 76 | |
| 77 | end PoincareMT.ChartLpNative |