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.InteriorEstimates.Embedding.Cutoff |
| 2 | import PoincareLib.Analysis.Elliptic.Regularity.InteriorEstimates.Embedding.Tower |
| 3 | |
| 4 | /-! |
| 5 | # Quantitative L2 Sobolev embedding on nested balls |
| 6 | |
| 7 | A fixed cutoff, finite-volume exponent comparison, quantitative subcritical |
| 8 | iteration, and Morrey's inequality give a constant independent of the function. |
| 9 | The derivative order `m + 1 + d` is deliberately nonoptimal and works in every |
| 10 | positive dimension, including critical intermediate exponents. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open MeasureTheory Set Filter Metric |
| 16 | open scoped ENNReal Topology |
| 17 | open Poincare.Analysis.Sobolev.Euclidean |
| 18 | open Poincare.Analysis.Sobolev.EuclideanEmbedding |
| 19 | |
| 20 | namespace Poincare.Analysis.Elliptic.InteriorEstimates |
| 21 | |
| 22 | variable {d : ℕ} [NeZero d] |
| 23 | local notation "E" => EuclideanSpace ℝ (Fin d) |
| 24 | |
| 25 | /-- Classical derivatives on the half ball are bounded by finitely many L2 |
| 26 | derivatives on the outer ball, uniformly over all smooth functions. -/ |
| 27 | theorem smooth_jet_le_l2_derivativeProfile {x₀ : E} {R : ℝ} (hR : 0 < R) (m : ℕ) : |
| 28 | ∃ C : ℝ, 0 ≤ C ∧ ∀ {u : E → ℝ}, ContDiff ℝ (⊤ : ℕ∞) u → |
| 29 | ∀ x ∈ Metric.ball x₀ (R / 2), |
| 30 | ‖iteratedFDeriv ℝ m u x‖ ≤ |
| 31 | C * (derivativeProfile 2 (Metric.ball x₀ R) (m + 1 + d) u).toReal := by |
| 32 | classical |
| 33 | let Ω := Metric.ball x₀ R |
| 34 | let k := m + 1 + d |
| 35 | obtain ⟨χ, A, hχ, hχc, hχs, hχone, hA, hcutoff⟩ := |
| 36 | exists_fixed_cutoff_profile_bound hR k |
| 37 | obtain ⟨p, hp, hp₂, hdp, hreg⟩ := |
| 38 | RegularExponent.exists_regular_exponent_below (d : ℝ) (d + 1) |
| 39 | (by omega) (by norm_num : (1 : ℝ) < 2) |
| 40 | (by push_cast; linarith [Nat.cast_nonneg (α := ℝ) d]) |
| 41 | obtain ⟨q, T, hq, hdq, hT, htower⟩ := |
| 42 | quantitative_sobolev_tower (Ω := Ω) isOpen_ball m d hp hreg hdp |
| 43 | obtain ⟨B, hB, hmorrey⟩ := |
| 44 | Poincare.Analysis.Sobolev.EuclideanMorrey.smooth_morrey_iteratedFDeriv_bound_uniform |
| 45 | hdq hR m |
| 46 | let N : ℝ≥0∞ := ∑ j ∈ Finset.range (k + 1), (Fintype.card (Fin j → Fin d) : ℝ≥0∞) |
| 47 | let V : ℝ≥0∞ := (volume.restrict Ω) univ ^ |
| 48 | (1 / (ENNReal.ofReal p).toReal - 1 / (2 : ℝ≥0∞).toReal) |
| 49 | let Q : ℝ≥0∞ := ENNReal.ofReal T * N * V * ENNReal.ofReal A |
| 50 | have hpenn : (1 : ℝ≥0∞) ≤ ENNReal.ofReal p := by |
| 51 | simpa using ENNReal.ofReal_le_ofReal hp |
| 52 | have hp₂enn : ENNReal.ofReal p ≤ (2 : ℝ≥0∞) := by |
| 53 | simpa using ENNReal.ofReal_le_ofReal hp₂.le |
| 54 | have hqenn : (1 : ℝ≥0∞) ≤ ENNReal.ofReal q := by |
| 55 | simpa using ENNReal.ofReal_le_ofReal hq |
| 56 | have hN : N ≠ ⊤ := ENNReal.sum_ne_top.mpr (fun j hj => ENNReal.natCast_ne_top _) |
| 57 | have hV : V ≠ ⊤ := by |
| 58 | apply ENNReal.rpow_ne_top_of_nonneg |
| 59 | · rw [ENNReal.toReal_ofReal (lt_of_lt_of_le zero_lt_one hp).le] |
| 60 | norm_num only [ENNReal.toReal_ofNat] |
| 61 | exact sub_nonneg.mpr (one_div_le_one_div_of_le |
| 62 | (lt_of_lt_of_le zero_lt_one hp) hp₂.le) |
| 63 | · rw [Measure.restrict_apply_univ] |
| 64 | exact measure_ball_lt_top.ne |
| 65 | have hQ : Q ≠ ⊤ := ENNReal.mul_ne_top |
| 66 | (ENNReal.mul_ne_top (ENNReal.mul_ne_top ENNReal.ofReal_ne_top hN) hV) |
| 67 | ENNReal.ofReal_ne_top |
| 68 | refine ⟨B * Q.toReal, mul_nonneg hB ENNReal.toReal_nonneg, ?_⟩ |
| 69 | intro u hu x hx |
| 70 | let v : E → ℝ := fun y => χ y * u y |
| 71 | have hv : ContDiff ℝ (⊤ : ℕ∞) v := hχ.mul hu |
| 72 | have hvc : HasCompactSupport v := hχc.mul_right |
| 73 | have hvs : tsupport v ⊆ Ω := tsupport_mul_subset_left.trans hχs |
| 74 | have hvp : MemWkp k (ENNReal.ofReal p) v Ω := |
| 75 | MemWkp_of_smooth_compactSupport isOpen_ball hv hvc hvs hpenn k |
| 76 | obtain ⟨hvq, hnormq⟩ := htower hvc hvs hvp |
| 77 | have hprofile : derivativeProfile (ENNReal.ofReal q) Ω (m + 1) v ≤ |
| 78 | Q * derivativeProfile 2 Ω k u := by |
| 79 | calc |
| 80 | derivativeProfile (ENNReal.ofReal q) Ω (m + 1) v ≤ |
| 81 | iteratedWeakSobolevNorm (m + 1) (ENNReal.ofReal q) v Ω := |
| 82 | eLpNorm_iteratedFDeriv_le_wkpNorm isOpen_ball hqenn (m + 1) hv hvc hvs |
| 83 | _ ≤ ENNReal.ofReal T * iteratedWeakSobolevNorm k (ENNReal.ofReal p) v Ω := hnormq |
| 84 | _ ≤ ENNReal.ofReal T * (N * derivativeProfile (ENNReal.ofReal p) Ω k v) := by |
| 85 | gcongr |
| 86 | exact wkpNorm_le_derivativeProfile isOpen_ball hpenn k hv hvc hvs |
| 87 | _ ≤ ENNReal.ofReal T * (N * (derivativeProfile 2 Ω k v * V)) := by |
| 88 | gcongr |
| 89 | exact derivativeProfile_mono_exponent hp₂enn k hv |
| 90 | _ ≤ ENNReal.ofReal T * (N * |
| 91 | ((ENNReal.ofReal A * derivativeProfile 2 Ω k u) * V)) := by |
| 92 | gcongr |
| 93 | exact hcutoff hu |
| 94 | _ = Q * derivativeProfile 2 Ω k u := by dsimp [Q]; ring |
| 95 | have hfinite : derivativeProfile 2 Ω k u ≠ ⊤ := by |
| 96 | simpa using derivativeProfile_ne_top (by norm_num : (0 : ℝ) < 2) hR k hu |
| 97 | have hprofileReal : (derivativeProfile (ENNReal.ofReal q) Ω (m + 1) v).toReal ≤ |
| 98 | Q.toReal * (derivativeProfile 2 Ω k u).toReal := by |
| 99 | simpa only [ENNReal.toReal_mul] using |
| 100 | ENNReal.toReal_mono (ENNReal.mul_ne_top hQ hfinite) hprofile |
| 101 | have hsum : (derivativeProfile (ENNReal.ofReal q) Ω (m + 1) v).toReal = |
| 102 | ∑ j ∈ Finset.range (m + 2), |
| 103 | (eLpNorm (fun y => ‖iteratedFDeriv ℝ j v y‖) |
| 104 | (ENNReal.ofReal q) (volume.restrict Ω)).toReal := by |
| 105 | apply ENNReal.toReal_sum |
| 106 | intro j hj |
| 107 | exact (ENNReal.lt_top_of_sum_ne_top |
| 108 | (derivativeProfile_ne_top (lt_of_lt_of_le zero_lt_one hq) hR (m + 1) hv) hj).ne |
| 109 | have heq : v =ᶠ[𝓝 x] u := by |
| 110 | filter_upwards [isOpen_ball.mem_nhds hx] with y hy |
| 111 | simp only [v, hχone hy, one_mul] |
| 112 | have hjet : iteratedFDeriv ℝ m v x = iteratedFDeriv ℝ m u x := |
| 113 | (heq.iteratedFDeriv ℝ m).eq_of_nhds |
| 114 | have hm := hmorrey hv x hx |
| 115 | rw [hjet, ← hsum] at hm |
| 116 | exact hm.trans ((mul_le_mul_of_nonneg_left hprofileReal hB).trans_eq (mul_assoc _ _ _).symm) |
| 117 | |
| 118 | end Poincare.Analysis.Elliptic.InteriorEstimates |