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.AnnularEvolution.Plateau.Weak.AnnulusClass |
| 2 | |
| 3 | /-! |
| 4 | # Actual weak annular energy at variable cylinder modulus |
| 5 | |
| 6 | The two source columns carry the reciprocal positive weights `r` and |
| 7 | `r^-1`. On a compact positive modulus interval these energies control |
| 8 | the fixed-modulus energy uniformly, supplying genuine weak compactness. |
| 9 | |
| 10 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 11 | 447-449. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | open Set Filter MeasureTheory Topology |
| 19 | open scoped Topology Manifold ContDiff |
| 20 | |
| 21 | namespace PoincareMT.M64ObservedWeakAnnulus |
| 22 | |
| 23 | variable {n m : ℕ} {M : Type*} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 25 | {e : M → EuclideanSpace ℝ (Fin m)} {c0 c1 : ℝ → M} |
| 26 | |
| 27 | local notation "E" => EuclideanSpace ℝ (Fin m) |
| 28 | local notation "S" => interior m64AnnulusDomain |
| 29 | |
| 30 | /-- The genuine observed Dirichlet energy for cylinder modulus `r`. Source: Morgan-Tian |
| 31 | Lemma 19.15, pp. 447-449; M64 derivation `2026-09-26-raw-harmonic-stress.md`. -/ |
| 32 | def weightedEnergy (B : M → E →L[ℝ] E →L[ℝ] ℝ) (r : ℝ) |
| 33 | (A : M64ObservedWeakAnnulus (n := n) e c0 c1) : ℝ := |
| 34 | ∫ p in S, (r * B (A.map p) (A.column 0 p) (A.column 0 p) + |
| 35 | r⁻¹ * B (A.map p) (A.column 1 p) (A.column 1 p)) / 2 |
| 36 | |
| 37 | /-- Positive modulus gives nonnegative actual weighted energy. Source: Morgan-Tian Lemma |
| 38 | 19.15, pp. 447-449; M64 derivation `2026-09-26-raw-harmonic-stress.md`. -/ |
| 39 | theorem weightedEnergy_nonneg (B : M → E →L[ℝ] E →L[ℝ] ℝ) |
| 40 | (hpos : ∀ q v, 0 ≤ B q v v) {r : ℝ} (hr : 0 ≤ r) |
| 41 | (A : M64ObservedWeakAnnulus (n := n) e c0 c1) : 0 ≤ A.weightedEnergy B r := |
| 42 | integral_nonneg fun p => div_nonneg |
| 43 | (add_nonneg (mul_nonneg hr (hpos _ _)) |
| 44 | (mul_nonneg (inv_nonneg.mpr hr) (hpos _ _))) (by norm_num) |
| 45 | |
| 46 | /-- The weighted density is integrable for every finite real modulus. Source: Morgan-Tian |
| 47 | Lemma 19.15, pp. 447-449; M64 derivation `2026-09-26-raw-harmonic-stress.md`. -/ |
| 48 | theorem weightedEnergy_integrable (B : M → E →L[ℝ] E →L[ℝ] ℝ) (hB : Continuous B) |
| 49 | (hei : IsEmbedding e) {K : ℝ} (hb : ∀ q, ‖B q‖ ≤ K) |
| 50 | (A : M64ObservedWeakAnnulus (n := n) e c0 c1) (r : ℝ) : |
| 51 | IntegrableOn (fun p => (r * B (A.map p) (A.column 0 p) (A.column 0 p) + |
| 52 | r⁻¹ * B (A.map p) (A.column 1 p) (A.column 1 p)) / 2) S volume := |
| 53 | (((A.column_energy_integrable B hB hei hb 0).const_mul r).add |
| 54 | ((A.column_energy_integrable B hB hei hb 1).const_mul r⁻¹)).div_const 2 |
| 55 | |
| 56 | /-- Integrable weighted energy is the sum of the two weighted column integrals. Source: |
| 57 | Morgan-Tian Lemma 19.15, pp. 447-449; M64 derivation `2026-09-26-raw-harmonic-stress.md`. -/ |
| 58 | theorem weightedEnergy_eq_column_integrals |
| 59 | (B : M → E →L[ℝ] E →L[ℝ] ℝ) (hB : Continuous B) |
| 60 | (hei : IsEmbedding e) {K : ℝ} (hb : ∀ q, ‖B q‖ ≤ K) |
| 61 | (A : M64ObservedWeakAnnulus (n := n) e c0 c1) (r : ℝ) : |
| 62 | A.weightedEnergy B r = |
| 63 | (r / 2) * (∫ p in S, B (A.map p) (A.column 0 p) (A.column 0 p)) + |
| 64 | (r⁻¹ / 2) * (∫ p in S, B (A.map p) (A.column 1 p) (A.column 1 p)) := by |
| 65 | rw [weightedEnergy, integral_div, integral_add |
| 66 | ((A.column_energy_integrable B hB hei hb 0).const_mul r) |
| 67 | ((A.column_energy_integrable B hB hei hb 1).const_mul r⁻¹), |
| 68 | integral_const_mul, integral_const_mul] |
| 69 | ring |
| 70 | |
| 71 | /-- A bounded observed quadratic form controls each actual column energy by the squared L2 |
| 72 | norm. Source: Morgan-Tian Lemma 19.15, pp. 447-449; M64 derivation |
| 73 | `2026-09-26-raw-harmonic-stress.md`. -/ |
| 74 | theorem column_energy_le_norm_sq |
| 75 | (B : M → E →L[ℝ] E →L[ℝ] ℝ) (hB : Continuous B) |
| 76 | (hei : IsEmbedding e) {K : ℝ} (hb : ∀ q, ‖B q‖ ≤ K) |
| 77 | (A : M64ObservedWeakAnnulus (n := n) e c0 c1) (i : Fin 2) : |
| 78 | (∫ p in S, B (A.map p) (A.column i p) (A.column i p)) ≤ K * ‖A.column i‖ ^ 2 := by |
| 79 | have hi := (memLp_two_iff_integrable_sq_norm |
| 80 | (Lp.aestronglyMeasurable (A.column i))).mp (Lp.memLp (A.column i)) |
| 81 | calc |
| 82 | _ ≤ ∫ p in S, K * ‖A.column i p‖ ^ 2 := by |
| 83 | apply integral_mono_ae (A.column_energy_integrable B hB hei hb i) (hi.const_mul K) |
| 84 | exact Eventually.of_forall fun p => by |
| 85 | have hop := (B (A.map p)).le_opNorm₂ (A.column i p) (A.column i p) |
| 86 | have hh := mul_le_mul_of_nonneg_right (hb (A.map p)) (sq_nonneg ‖A.column i p‖) |
| 87 | rw [Real.norm_eq_abs] at hop |
| 88 | nlinarith [le_abs_self (B (A.map p) (A.column i p) (A.column i p))] |
| 89 | _ = _ := by rw [integral_const_mul, ← LpFiniteCoordinatesNative.l2_norm_sq] |
| 90 | |
| 91 | /-- Moduli in a compact positive interval control the unweighted energy with the uniform |
| 92 | factor `max (lo^-1) hi`. Source: Morgan-Tian Lemma 19.15, pp. 447-449; M64 derivation |
| 93 | `2026-09-26-raw-harmonic-stress.md`. -/ |
| 94 | theorem energy_le_weightedEnergy_of_mem |
| 95 | (B : M → E →L[ℝ] E →L[ℝ] ℝ) (hB : Continuous B) |
| 96 | (hei : IsEmbedding e) {K : ℝ} (hb : ∀ q, ‖B q‖ ≤ K) |
| 97 | (hpos : ∀ q v, 0 ≤ B q v v) {lo hi r : ℝ} (hlo : 0 < lo) (hr : r ∈ Icc lo hi) |
| 98 | (A : M64ObservedWeakAnnulus (n := n) e c0 c1) : |
| 99 | A.energy B ≤ max lo⁻¹ hi * A.weightedEnergy B r := by |
| 100 | have hrpos : 0 < r := hlo.trans_le hr.1 |
| 101 | have h0 : 1 ≤ max lo⁻¹ hi * r := by |
| 102 | have hh := mul_le_mul_of_nonneg_left hr.1 (inv_nonneg.mpr hlo.le) |
| 103 | rw [inv_mul_cancel₀ hlo.ne'] at hh |
| 104 | exact hh.trans (mul_le_mul_of_nonneg_right (le_max_left _ _) hrpos.le) |
| 105 | have h1 : 1 ≤ max lo⁻¹ hi * r⁻¹ := by |
| 106 | have hh := mul_le_mul_of_nonneg_right (hr.2.trans (le_max_right lo⁻¹ hi)) |
| 107 | (inv_nonneg.mpr hrpos.le) |
| 108 | simpa only [mul_inv_cancel₀ hrpos.ne'] using hh |
| 109 | calc |
| 110 | _ ≤ ∫ p in S, max lo⁻¹ hi * |
| 111 | ((r * B (A.map p) (A.column 0 p) (A.column 0 p) + |
| 112 | r⁻¹ * B (A.map p) (A.column 1 p) (A.column 1 p)) / 2) := by |
| 113 | apply integral_mono_ae (A.energy_integrable B hB hei hb) |
| 114 | ((A.weightedEnergy_integrable B hB hei hb r).const_mul _) |
| 115 | exact Eventually.of_forall fun p => by |
| 116 | have hh0 := mul_le_mul_of_nonneg_right h0 (hpos (A.map p) (A.column 0 p)) |
| 117 | have hh1 := mul_le_mul_of_nonneg_right h1 (hpos (A.map p) (A.column 1 p)) |
| 118 | nlinarith |
| 119 | _ = _ := integral_const_mul _ _ |
| 120 | |
| 121 | end PoincareMT.M64ObservedWeakAnnulus |