Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import NavierStokes.R3.ComparisonSetup |
| 2 | import NavierStokes.R3.LpNormTools |
| 3 | import NavierStokes.R3.GradientOperator |
| 4 | import NavierStokes.R3.WeightedInterpolation |
| 5 | import Mathlib.Analysis.FunctionalSpaces.SobolevInequality |
| 6 | |
| 7 | /-! |
| 8 | # Weighted Sobolev estimates for compact cutoffs |
| 9 | |
| 10 | The derivative estimate is local: the unweighted velocity only needs to be in |
| 11 | `L²`. No integrability assumption is made on its unweighted derivative. |
| 12 | -/ |
| 13 | |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open Set MeasureTheory |
| 18 | open scoped ContDiff ENNReal NNReal |
| 19 | |
| 20 | namespace NavierStokesR3.WeightedSobolev |
| 21 | |
| 22 | open ProblemStatement Comparison |
| 23 | |
| 24 | /-- The fixed whole-space `H¹ → L⁶` Sobolev constant in dimension three. -/ |
| 25 | def sobolevConstant : ℝ := |
| 26 | (eLpNormLESNormFDerivOfEqInnerConst (volume : Measure Space) 2 : ℝ) |
| 27 | |
| 28 | theorem sobolevConstant_nonneg : 0 ≤ sobolevConstant := NNReal.coe_nonneg _ |
| 29 | |
| 30 | /-- Compactly supported continuous functions have finite norms at every |
| 31 | exponent, including infinity. -/ |
| 32 | theorem memLp_of_compact {E : Type*} [NormedAddCommGroup E] |
| 33 | {f : Space → E} (hf : Continuous f) (hs : HasCompactSupport f) |
| 34 | (p : ℝ≥0∞) : MemLp f p (volume : Measure Space) := |
| 35 | hf.memLp_of_hasCompactSupport hs |
| 36 | |
| 37 | /-- Mathlib's homogeneous Sobolev inequality specialized to Euclidean `R³`. |
| 38 | The finite derivative norm is supplied by compact support and `C¹` regularity. -/ |
| 39 | theorem lpNorm_six_le {E : Type*} [NormedAddCommGroup E] |
| 40 | [InnerProductSpace ℝ E] [CompleteSpace E] |
| 41 | {f : Space → E} (hf : ContDiff ℝ 1 f) (hs : HasCompactSupport f) : |
| 42 | comparisonLpNorm 6 f ≤ sobolevConstant * comparisonLpNorm 2 (fderiv ℝ f) := by |
| 43 | have hn : Module.finrank ℝ Space = 3 := by simp [Space, NavierStokes.ProblemStatement.Space] |
| 44 | have h := eLpNorm_le_eLpNorm_fderiv_of_eq_inner (volume : Measure Space) |
| 45 | hf hs (p := 2) (p' := 6) (by norm_num) (by omega) (by rw [hn]; norm_num) |
| 46 | have hd : MemLp (fderiv ℝ f) 2 (volume : Measure Space) := |
| 47 | (hf.continuous_fderiv (by simp)).memLp_of_hasCompactSupport (hs.fderiv ℝ) |
| 48 | have hfin : (eLpNormLESNormFDerivOfEqInnerConst (volume : Measure Space) 2 : ℝ≥0∞) * |
| 49 | eLpNorm (fderiv ℝ f) 2 volume ≠ (⊤ : ℝ≥0∞) := |
| 50 | ENNReal.mul_ne_top ENNReal.coe_ne_top hd.eLpNorm_ne_top |
| 51 | simpa [comparisonLpNorm, sobolevConstant, ENNReal.toReal_mul] using ENNReal.toReal_mono hfin h |
| 52 | |
| 53 | /-- Multiplication by any positive natural power of a compact cutoff preserves |
| 54 | compact support, even if the multiplied function is not compactly supported. -/ |
| 55 | theorem hasCompactSupport_cutoff_pow_smul {E : Type*} [Zero E] [SMulWithZero ℝ E] |
| 56 | {φ : Space → ℝ} (hs : HasCompactSupport φ) (w : Space → E) |
| 57 | {n : ℕ} (hn : n ≠ 0) : HasCompactSupport (fun x => φ x ^ n • w x) := by |
| 58 | have hp : HasCompactSupport (fun x => φ x ^ n) := |
| 59 | hs.comp_left (g := fun r : ℝ => r ^ n) (by simp [hn]) |
| 60 | exact hp.smul_right |
| 61 | |
| 62 | /-- All weighted velocity norms in the comparison argument are finite. -/ |
| 63 | theorem memLp_cutoff_pow_smul {E : Type*} [NormedAddCommGroup E] |
| 64 | [NormedSpace ℝ E] {φ : Space → ℝ} {w : Space → E} |
| 65 | (hφ : Continuous φ) (hs : HasCompactSupport φ) (hw : Continuous w) |
| 66 | {n : ℕ} (hn : n ≠ 0) (p : ℝ≥0∞) : |
| 67 | MemLp (fun x => φ x ^ n • w x) p (volume : Measure Space) := |
| 68 | ((hφ.pow n).smul hw).memLp_of_hasCompactSupport |
| 69 | (hasCompactSupport_cutoff_pow_smul hs w hn) |
| 70 | |
| 71 | /-- Derivative of the fourth power of a scalar cutoff. -/ |
| 72 | theorem fderiv_cutoff_four {φ : Space → ℝ} {x : Space} |
| 73 | (hφ : DifferentiableAt ℝ φ x) : |
| 74 | fderiv ℝ (fun y => φ y ^ 4) x = (4 * φ x ^ 3) • fderiv ℝ φ x := by |
| 75 | simpa only [Function.comp_def, Nat.cast_ofNat, Nat.reduceSub] using |
| 76 | ((hasDerivAt_pow 4 (φ x)).comp_hasFDerivAt x hφ.hasFDerivAt).fderiv |
| 77 | |
| 78 | /-- The pointwise product rule keeps the derivative of the velocity weighted. -/ |
| 79 | theorem norm_fderiv_cutoff_four_le {φ : Space → ℝ} {w : Space → Space} |
| 80 | {x : Space} (hφ : DifferentiableAt ℝ φ x) (hw : DifferentiableAt ℝ w x) |
| 81 | (hφ0 : 0 ≤ φ x) : |
| 82 | ‖fderiv ℝ (fun y => φ y ^ 4 • w y) x‖ ≤ |
| 83 | φ x ^ 4 * ‖fderiv ℝ w x‖ + |
| 84 | 4 * φ x ^ 3 * ‖fderiv ℝ φ x‖ * ‖w x‖ := by |
| 85 | rw [fderiv_fun_smul (c := fun y => φ y ^ 4) (hφ.pow 4) hw, |
| 86 | fderiv_cutoff_four hφ] |
| 87 | calc |
| 88 | ‖φ x ^ 4 • fderiv ℝ w x + |
| 89 | ((4 * φ x ^ 3) • fderiv ℝ φ x).smulRight (w x)‖ ≤ |
| 90 | ‖φ x ^ 4 • fderiv ℝ w x‖ + |
| 91 | ‖((4 * φ x ^ 3) • fderiv ℝ φ x).smulRight (w x)‖ := norm_add_le _ _ |
| 92 | _ ≤ ‖φ x ^ 4‖ * ‖fderiv ℝ w x‖ + |
| 93 | (‖4 * φ x ^ 3‖ * ‖fderiv ℝ φ x‖) * ‖w x‖ := by |
| 94 | rw [ContinuousLinearMap.norm_smulRight_apply] |
| 95 | exact add_le_add |
| 96 | (ContinuousLinearMap.opNorm_smul_le (φ x ^ 4) (fderiv ℝ w x)) |
| 97 | (mul_le_mul_of_nonneg_right |
| 98 | (ContinuousLinearMap.opNorm_smul_le (4 * φ x ^ 3) (fderiv ℝ φ x)) |
| 99 | (norm_nonneg _)) |
| 100 | _ = _ := by simp [Real.norm_eq_abs, abs_of_nonneg hφ0] |
| 101 | |
| 102 | /-- The pointwise magnitude of the weighted coordinate gradient. -/ |
| 103 | def cutoffGradientAmplitude (φ : Space → ℝ) (w : Space → Space) (x : Space) : ℝ := |
| 104 | φ x ^ 4 * Real.sqrt (gradientSq w x) |
| 105 | |
| 106 | theorem cutoffGradientAmplitude_nonneg (φ : Space → ℝ) (w : Space → Space) (x : Space) : |
| 107 | 0 ≤ cutoffGradientAmplitude φ w x := by |
| 108 | unfold cutoffGradientAmplitude |
| 109 | positivity |
| 110 | |
| 111 | theorem continuous_cutoffGradientAmplitude {φ : Space → ℝ} {w : Space → Space} |
| 112 | (hφ : Continuous φ) (hw : ContDiff ℝ 1 w) : |
| 113 | Continuous (cutoffGradientAmplitude φ w) := |
| 114 | (hφ.pow 4).mul (GradientOperator.continuous_gradientSq hw).sqrt |
| 115 | |
| 116 | theorem hasCompactSupport_cutoffGradientAmplitude {φ : Space → ℝ} |
| 117 | (hs : HasCompactSupport φ) (w : Space → Space) : |
| 118 | HasCompactSupport (cutoffGradientAmplitude φ w) := by |
| 119 | have hp : HasCompactSupport (fun x => φ x ^ 4) := |
| 120 | hs.comp_left (g := fun r : ℝ => r ^ 4) (by norm_num) |
| 121 | exact hp.mul_right |
| 122 | |
| 123 | theorem memLp_cutoffGradientAmplitude {φ : Space → ℝ} {w : Space → Space} |
| 124 | (hφ : Continuous φ) (hs : HasCompactSupport φ) (hw : ContDiff ℝ 1 w) |
| 125 | (p : ℝ≥0∞) : MemLp (cutoffGradientAmplitude φ w) p volume := |
| 126 | (continuous_cutoffGradientAmplitude hφ hw).memLp_of_hasCompactSupport |
| 127 | (hasCompactSupport_cutoffGradientAmplitude hs w) |
| 128 | |
| 129 | theorem norm_cutoffGradientAmplitude_sq (φ : Space → ℝ) (w : Space → Space) (x : Space) : |
| 130 | ‖cutoffGradientAmplitude φ w x‖ ^ 2 = φ x ^ 8 * gradientSq w x := by |
| 131 | rw [cutoffGradientAmplitude, Real.norm_eq_abs, sq_abs, mul_pow, |
| 132 | Real.sq_sqrt (GradientOperator.gradientSq_nonneg w x)] |
| 133 | ring |
| 134 | |
| 135 | /-- The weighted dissipation integral is finite solely from local regularity. -/ |
| 136 | theorem integrable_weighted_gradientSq {φ : Space → ℝ} {w : Space → Space} |
| 137 | (hφ : Continuous φ) (hs : HasCompactSupport φ) (hw : ContDiff ℝ 1 w) : |
| 138 | Integrable (fun x => φ x ^ 8 * gradientSq w x) volume := by |
| 139 | have hp : HasCompactSupport (fun x => φ x ^ 8) := |
| 140 | hs.comp_left (g := fun r : ℝ => r ^ 8) (by norm_num) |
| 141 | exact ((hφ.pow 8).mul (GradientOperator.continuous_gradientSq hw)).integrable_of_hasCompactSupport |
| 142 | hp.mul_right |
| 143 | |
| 144 | theorem lpNorm_cutoffGradientAmplitude {φ : Space → ℝ} {w : Space → Space} |
| 145 | (hφ : Continuous φ) (hs : HasCompactSupport φ) (hw : ContDiff ℝ 1 w) : |
| 146 | comparisonLpNorm 2 (cutoffGradientAmplitude φ w) = |
| 147 | Real.sqrt (∫ x, φ x ^ 8 * gradientSq w x) := by |
| 148 | rw [LpNormTools.lpNorm_two_eq_sqrt_l2Sq (memLp_cutoffGradientAmplitude hφ hs hw 2)] |
| 149 | congr 1 |
| 150 | exact integral_congr_ae (Filter.Eventually.of_forall (norm_cutoffGradientAmplitude_sq φ w)) |
| 151 | |
| 152 | /-- A pointwise majorant with no unweighted derivative term. -/ |
| 153 | theorem norm_fderiv_cutoff_four_le_amplitude {φ : Space → ℝ} {w : Space → Space} |
| 154 | {x : Space} (hφ : DifferentiableAt ℝ φ x) (hw : DifferentiableAt ℝ w x) |
| 155 | (hφ0 : 0 ≤ φ x) (hφ1 : φ x ≤ 1) {L : ℝ} |
| 156 | (hL : ‖fderiv ℝ φ x‖ ≤ L) : |
| 157 | ‖fderiv ℝ (fun y => φ y ^ 4 • w y) x‖ ≤ |
| 158 | 3 * cutoffGradientAmplitude φ w x + (4 * L) * ‖w x‖ := by |
| 159 | have hg := GradientOperator.norm_fderiv_le_three_mul_sqrt_gradientSq w x |
| 160 | have hp : φ x ^ 3 ≤ 1 := pow_le_one₀ hφ0 hφ1 |
| 161 | have hd : φ x ^ 3 * ‖fderiv ℝ φ x‖ ≤ L := |
| 162 | (mul_le_of_le_one_left (norm_nonneg _) hp).trans hL |
| 163 | calc |
| 164 | ‖fderiv ℝ (fun y => φ y ^ 4 • w y) x‖ ≤ |
| 165 | φ x ^ 4 * ‖fderiv ℝ w x‖ + |
| 166 | 4 * φ x ^ 3 * ‖fderiv ℝ φ x‖ * ‖w x‖ := |
| 167 | norm_fderiv_cutoff_four_le hφ hw hφ0 |
| 168 | _ ≤ φ x ^ 4 * (3 * Real.sqrt (gradientSq w x)) + |
| 169 | (4 * L) * ‖w x‖ := by |
| 170 | apply add_le_add |
| 171 | · exact mul_le_mul_of_nonneg_left hg (by positivity) |
| 172 | · nlinarith [mul_le_mul_of_nonneg_right hd (norm_nonneg (w x))] |
| 173 | _ = _ := by unfold cutoffGradientAmplitude; ring |
| 174 | |
| 175 | /-- The derivative of the cutoff velocity has a finite `L²` bound involving |
| 176 | only weighted dissipation and the velocity's unweighted `L²` norm. -/ |
| 177 | theorem lpNorm_fderiv_cutoff_four_le {φ : Space → ℝ} {w : Space → Space} |
| 178 | (hφ : ContDiff ℝ 1 φ) (hs : HasCompactSupport φ) (hw : ContDiff ℝ 1 w) |
| 179 | (hw2 : MemLp w 2 volume) (hφ0 : ∀ x, 0 ≤ φ x) (hφ1 : ∀ x, φ x ≤ 1) |
| 180 | {L : ℝ} (hL0 : 0 ≤ L) (hL : ∀ x, ‖fderiv ℝ φ x‖ ≤ L) : |
| 181 | comparisonLpNorm 2 (fderiv ℝ (fun x => φ x ^ 4 • w x)) ≤ |
| 182 | 3 * Real.sqrt (∫ x, φ x ^ 8 * gradientSq w x) + (4 * L) * comparisonLpNorm 2 w := by |
| 183 | let G := cutoffGradientAmplitude φ w |
| 184 | have hG : MemLp G 2 volume := memLp_cutoffGradientAmplitude hφ.continuous hs hw 2 |
| 185 | have hG3 : MemLp (fun x => (3 : ℝ) • G x) 2 volume := hG.const_smul (3 : ℝ) |
| 186 | have hw4 : MemLp (fun x => (4 * L) • ‖w x‖) 2 volume := hw2.norm.const_smul (4 * L) |
| 187 | calc |
| 188 | comparisonLpNorm 2 (fderiv ℝ (fun x => φ x ^ 4 • w x)) ≤ |
| 189 | comparisonLpNorm 2 (fun x => (3 : ℝ) • G x + (4 * L) • ‖w x‖) := by |
| 190 | apply LpNormTools.lpNorm_mono_of_norm_le (hG3.add hw4) |
| 191 | intro x |
| 192 | have hp := norm_fderiv_cutoff_four_le_amplitude |
| 193 | (hφ.differentiable (by simp) x) (hw.differentiable (by simp) x) (hφ0 x) (hφ1 x) (hL x) |
| 194 | simpa only [Pi.add_apply, smul_eq_mul, Real.norm_eq_abs, |
| 195 | abs_of_nonneg (show 0 ≤ 3 * G x + (4 * L) * ‖w x‖ by |
| 196 | have := cutoffGradientAmplitude_nonneg φ w x |
| 197 | dsimp [G] at * |
| 198 | positivity)] using hp |
| 199 | _ ≤ comparisonLpNorm 2 (fun x => (3 : ℝ) • G x) + |
| 200 | comparisonLpNorm 2 (fun x => (4 * L) • ‖w x‖) := |
| 201 | LpNormTools.lpNorm_add_le (by norm_num) hG3 hw4 |
| 202 | _ = 3 * Real.sqrt (∫ x, φ x ^ 8 * gradientSq w x) + (4 * L) * comparisonLpNorm 2 w := by |
| 203 | rw [LpNormTools.lpNorm_const_smul, LpNormTools.lpNorm_const_smul] |
| 204 | have hGeq := lpNorm_cutoffGradientAmplitude hφ.continuous hs hw |
| 205 | change comparisonLpNorm 2 G = _ at hGeq |
| 206 | rw [hGeq] |
| 207 | simp [comparisonLpNorm, eLpNorm_norm, Real.norm_eq_abs, abs_of_nonneg hL0] |
| 208 | |
| 209 | /-- A positive, fixed constant for the cutoff Sobolev estimate. -/ |
| 210 | def weightedSobolevConstant : ℝ := 4 * sobolevConstant + 1 |
| 211 | |
| 212 | theorem weightedSobolevConstant_pos : 0 < weightedSobolevConstant := by |
| 213 | have := sobolevConstant_nonneg |
| 214 | unfold weightedSobolevConstant |
| 215 | positivity |
| 216 | |
| 217 | /-- The weighted Sobolev estimate `B ≤ C (A + L M)`. All dependence on the |
| 218 | cutoff is isolated in the derivative bound `L`; the constant is fixed. -/ |
| 219 | theorem weighted_sobolev {φ : Space → ℝ} {w : Space → Space} |
| 220 | (hφ : ContDiff ℝ 1 φ) (hs : HasCompactSupport φ) (hw : ContDiff ℝ 1 w) |
| 221 | (hw2 : MemLp w 2 volume) (hφ0 : ∀ x, 0 ≤ φ x) (hφ1 : ∀ x, φ x ≤ 1) |
| 222 | {L : ℝ} (hL0 : 0 ≤ L) (hL : ∀ x, ‖fderiv ℝ φ x‖ ≤ L) : |
| 223 | comparisonLpNorm 6 (fun x => φ x ^ 4 • w x) ≤ weightedSobolevConstant * |
| 224 | (Real.sqrt (∫ x, φ x ^ 8 * gradientSq w x) + L * comparisonLpNorm 2 w) := by |
| 225 | have hSob := lpNorm_six_le ((hφ.pow 4).smul hw) |
| 226 | (hasCompactSupport_cutoff_pow_smul hs w (by norm_num : (4 : ℕ) ≠ 0)) |
| 227 | have hDer := lpNorm_fderiv_cutoff_four_le hφ hs hw hw2 hφ0 hφ1 hL0 hL |
| 228 | have hA := Real.sqrt_nonneg (∫ x, φ x ^ 8 * gradientSq w x) |
| 229 | have hM := LpNormTools.lpNorm_nonneg 2 w |
| 230 | have hS := sobolevConstant_nonneg |
| 231 | apply hSob.trans |
| 232 | apply (mul_le_mul_of_nonneg_left hDer hS).trans |
| 233 | unfold weightedSobolevConstant |
| 234 | nlinarith [mul_nonneg hS hA, mul_nonneg hL0 hM] |
| 235 | |
| 236 | /-- Time-slice form using precisely the common comparison definitions. -/ |
| 237 | theorem cutoffL6_le {φ : Space → ℝ} {w : VelocityField} {t : ℝ} |
| 238 | (hφ : ContDiff ℝ 1 φ) (hs : HasCompactSupport φ) |
| 239 | (hw : ContDiff ℝ 1 (fun x => w (t, x))) |
| 240 | (hw2 : MemLp (fun x => w (t, x)) 2 volume) |
| 241 | (hφ0 : ∀ x, 0 ≤ φ x) (hφ1 : ∀ x, φ x ≤ 1) |
| 242 | {L : ℝ} (hL0 : 0 ≤ L) (hL : ∀ x, ‖fderiv ℝ φ x‖ ≤ L) : |
| 243 | cutoffL6 φ w t ≤ weightedSobolevConstant * |
| 244 | (dissipationRoot φ w t + L * comparisonLpNorm 2 (fun x => w (t, x))) := |
| 245 | weighted_sobolev hφ hs hw hw2 hφ0 hφ1 hL0 hL |
| 246 | |
| 247 | end NavierStokesR3.WeightedSobolev |