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.Analysis.Elliptic.Regularity.Sobolev.Embedding.ExponentIteration |
| 2 | |
| 3 | /-! |
| 4 | # Quantitative iteration to a supercritical Sobolev exponent |
| 5 | |
| 6 | The constants in each subcritical Sobolev step are multiplied before the |
| 7 | function is introduced. This is the quantitative counterpart of the |
| 8 | membership-only exponent iteration used to construct smooth representatives. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | open MeasureTheory Set |
| 14 | open scoped ENNReal |
| 15 | open Poincare.Analysis.Sobolev.Euclidean |
| 16 | open Poincare.Analysis.Sobolev.EuclideanEmbedding |
| 17 | |
| 18 | namespace Poincare.Analysis.Elliptic.InteriorEstimates |
| 19 | |
| 20 | variable {d : ℕ} [NeZero d] |
| 21 | local notation "E" => EuclideanSpace ℝ (Fin d) |
| 22 | |
| 23 | /-- A finite tower of Sobolev embeddings, with its constant selected before |
| 24 | the compactly supported function. -/ |
| 25 | theorem quantitative_sobolev_tower {Ω : Set E} (hΩ : IsOpen Ω) (m s : ℕ) |
| 26 | {p : ℝ} (hp : 1 ≤ p) |
| 27 | (hreg : RegularExponent.IsRegular (d : ℝ) p (s + 1)) |
| 28 | (hdp : (d : ℝ) < ((s + 1 : ℕ) : ℝ) * p) : |
| 29 | ∃ q C : ℝ, 1 ≤ q ∧ (d : ℝ) < q ∧ 0 ≤ C ∧ |
| 30 | ∀ {f : E → ℝ}, HasCompactSupport f → tsupport f ⊆ Ω → |
| 31 | MemWkp (m + 1 + s) (ENNReal.ofReal p) f Ω → |
| 32 | MemWkp (m + 1) (ENNReal.ofReal q) f Ω ∧ |
| 33 | iteratedWeakSobolevNorm (m + 1) (ENNReal.ofReal q) f Ω ≤ |
| 34 | ENNReal.ofReal C * |
| 35 | iteratedWeakSobolevNorm (m + 1 + s) (ENNReal.ofReal p) f Ω := by |
| 36 | induction s generalizing p with |
| 37 | | zero => |
| 38 | have hd : (d : ℝ) < p := by simpa using hdp |
| 39 | refine ⟨p, 1, hp, hd, by norm_num, ?_⟩ |
| 40 | intro f hf hs hmem |
| 41 | simpa using And.intro hmem (le_refl |
| 42 | (iteratedWeakSobolevNorm (m + 1) (ENNReal.ofReal p) f Ω)) |
| 43 | | succ s ih => |
| 44 | have hpne : p ≠ (d : ℝ) := hreg.p_ne_n_of_one_le (by omega) |
| 45 | rcases lt_or_gt_of_ne hpne with hplt | hpgt |
| 46 | · let p₁ : ℝ := TowerStep.pOne d p |
| 47 | have hp₁ : 1 ≤ p₁ := TowerStep.pOne_ge_one hp hplt |
| 48 | have hreg₁ : RegularExponent.IsRegular (d : ℝ) p₁ (s + 1) := |
| 49 | hreg.tower_step hp hplt |
| 50 | have hdp₁ : (d : ℝ) < ((s + 1 : ℕ) : ℝ) * p₁ := by |
| 51 | apply IterationCalc.kp1_real_gt_d_of_kp1p_gt_d d (s + 1) p |
| 52 | (lt_of_lt_of_le zero_lt_one hp) hplt |
| 53 | simpa only [Nat.cast_add, Nat.cast_one] using hdp |
| 54 | obtain ⟨q, C, hq, hdq, hC, hbound⟩ := ih hp₁ hreg₁ hdp₁ |
| 55 | let A := TowerStep.subcriticalConstant (m + 1 + s) d p |
| 56 | have hA : 0 ≤ A := TowerStep.subcriticalConstant_nonneg _ _ _ |
| 57 | refine ⟨q, C * A, hq, hdq, mul_nonneg hC hA, ?_⟩ |
| 58 | intro f hf hs hmem |
| 59 | have hmem' : MemWkp ((m + 1 + s) + 1) (ENNReal.ofReal p) f Ω := by |
| 60 | simpa only [Nat.add_assoc] using hmem |
| 61 | obtain ⟨hnext, hnextbound⟩ := TowerStep.MemWkp_subcritical_iterated |
| 62 | (m + 1 + s) hp hplt hΩ hf hs hmem' |
| 63 | obtain ⟨hfinal, hfinalbound⟩ := hbound hf hs hnext |
| 64 | refine ⟨hfinal, hfinalbound.trans ?_⟩ |
| 65 | calc |
| 66 | ENNReal.ofReal C * iteratedWeakSobolevNorm (m + 1 + s) |
| 67 | (ENNReal.ofReal p₁) f Ω ≤ |
| 68 | ENNReal.ofReal C * (ENNReal.ofReal A * |
| 69 | iteratedWeakSobolevNorm ((m + 1 + s) + 1) |
| 70 | (ENNReal.ofReal p) f Ω) := by gcongr |
| 71 | _ = ENNReal.ofReal (C * A) * |
| 72 | iteratedWeakSobolevNorm (m + 1 + (s + 1)) |
| 73 | (ENNReal.ofReal p) f Ω := by |
| 74 | rw [ENNReal.ofReal_mul hC, mul_assoc] |
| 75 | simp only [Nat.add_assoc] |
| 76 | · refine ⟨p, 1, hp, hpgt, by norm_num, ?_⟩ |
| 77 | intro f hf hs hmem |
| 78 | refine ⟨hmem.le_of_le (by omega), ?_⟩ |
| 79 | simpa using EuclideanIterated.wkpNorm_mono_order (d := d) |
| 80 | (f := f) (Ω := Ω) (p := ENNReal.ofReal p) |
| 81 | (show m + 1 ≤ m + 1 + (s + 1) by omega) |
| 82 | |
| 83 | end Poincare.Analysis.Elliptic.InteriorEstimates |