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 Euler.EulerProof |
| 2 | import Mathlib.Analysis.FunctionalSpaces.SobolevInequality |
| 3 | import Mathlib.MeasureTheory.Function.LpSeminorm.LpNorm |
| 4 | |
| 5 | /-! A genuine ordinary-space cutoff-curl dual estimate. All spatial norms and |
| 6 | integrals in this file use Lebesgue measure on Euclidean three-space. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerMeanCutoffCurl |
| 11 | |
| 12 | open MeasureTheory EulerSmoothLimit EulerVectorCalculus |
| 13 | open scoped ContDiff ENNReal NNReal |
| 14 | |
| 15 | /-- Curl of a vector-valued field, using the existing coordinate curl. -/ |
| 16 | def vectorCurl (f : Space → Space) : Space → Space := |
| 17 | curl (fun i x => f x i) |
| 18 | |
| 19 | /-- The fixed homogeneous Sobolev constant for dimension three and exponent two. -/ |
| 20 | def sobolevConstant : ℝ≥0 := |
| 21 | eLpNormLESNormFDerivOfEqInnerConst (volume : Measure Space) 2 |
| 22 | |
| 23 | /-- The ordinary homogeneous Sobolev inequality, with no dependence on support size. -/ |
| 24 | theorem homogeneous_sobolev (f : Space → Space) |
| 25 | (hf : ContDiff ℝ ∞ f) (hfc : HasCompactSupport f) : |
| 26 | lpNorm f 6 volume ≤ (sobolevConstant : ℝ) * lpNorm (fderiv ℝ f) 2 volume := by |
| 27 | have hd : Continuous (fderiv ℝ f) := (hf.fderiv_right (m := ∞) (by simp)).continuous |
| 28 | have hdm : MemLp (fderiv ℝ f) 2 volume := hd.memLp_of_hasCompactSupport (hfc.fderiv ℝ) |
| 29 | have h := eLpNorm_le_eLpNorm_fderiv_of_eq_inner (volume : Measure Space) |
| 30 | (hf.of_le (by simp) : ContDiff ℝ 1 f) hfc (p := 2) (p' := 6) |
| 31 | (by norm_num) (by simp [Space]) (by norm_num [Space]) |
| 32 | have hr := ENNReal.toReal_mono (by finiteness [hdm.eLpNorm_ne_top]) h |
| 33 | simpa [ENNReal.toReal_mul, ENNReal.coe_toReal, |
| 34 | toReal_eLpNorm hf.continuous.aestronglyMeasurable, |
| 35 | toReal_eLpNorm hd.aestronglyMeasurable, sobolevConstant] using hr |
| 36 | |
| 37 | /-- A three-vector's Euclidean norm is at most the sum of its component norms. -/ |
| 38 | theorem norm_le_sum_coordinates (v : Space) : ‖v‖ ≤ ∑ i : Fin 3, ‖v i‖ := by |
| 39 | have hv : (∑ i : Fin 3, EuclideanSpace.single i (v i)) = v := by |
| 40 | ext j |
| 41 | simp |
| 42 | calc |
| 43 | ‖v‖ = ‖∑ i : Fin 3, EuclideanSpace.single i (v i)‖ := by rw [hv] |
| 44 | _ ≤ ∑ i : Fin 3, ‖EuclideanSpace.single i (v i)‖ := norm_sum_le _ _ |
| 45 | _ = ∑ i : Fin 3, ‖v i‖ := by simp |
| 46 | |
| 47 | /-- The coordinate definition of curl is bounded by six times the full derivative norm. -/ |
| 48 | theorem norm_vectorCurl_le (f : Space → Space) (x : Space) |
| 49 | (hf : DifferentiableAt ℝ f x) : |
| 50 | ‖vectorCurl f x‖ ≤ 6 * ‖fderiv ℝ f x‖ := by |
| 51 | have hc (i j : Fin 3) : |
| 52 | ‖partialDerivative (fun y => f y i) j x‖ ≤ ‖fderiv ℝ f x‖ := by |
| 53 | rw [partialDerivative, fderiv_coordinate f x hf] |
| 54 | exact (PiLp.norm_apply_le _ i).trans (by |
| 55 | simpa using ((fderiv ℝ f x).le_opNorm (EuclideanSpace.single j 1))) |
| 56 | calc |
| 57 | ‖vectorCurl f x‖ ≤ ∑ i : Fin 3, ‖vectorCurl f x i‖ := norm_le_sum_coordinates _ |
| 58 | _ ≤ ∑ _i : Fin 3, (2 * ‖fderiv ℝ f x‖) := by |
| 59 | apply Finset.sum_le_sum |
| 60 | intro i _ |
| 61 | exact (norm_sub_le _ _).trans (by linarith [hc (i+2) (i+1), hc (i+1) (i+2)]) |
| 62 | _ = 6 * ‖fderiv ℝ f x‖ := by simp; ring |
| 63 | |
| 64 | /-- The actual cutoff product rule gives the pointwise bound used in the dual estimate. -/ |
| 65 | theorem norm_cutoff_curl_le (ψ : Space → ℝ) (φ : Space → Space) (x : Space) |
| 66 | (hψ : DifferentiableAt ℝ ψ x) (hφ : DifferentiableAt ℝ φ x) : |
| 67 | ‖vectorCurl (fun y => ψ y • φ y) x‖ ≤ |
| 68 | 6 * (‖ψ x‖ * ‖fderiv ℝ φ x‖ + ‖fderiv ℝ ψ x‖ * ‖φ x‖) := by |
| 69 | refine (norm_vectorCurl_le _ x (hψ.smul hφ)).trans ?_ |
| 70 | apply mul_le_mul_of_nonneg_left _ (by norm_num) |
| 71 | rw [fderiv_smul hψ hφ] |
| 72 | simpa only [norm_smul, ContinuousLinearMap.norm_smulRight_apply] using |
| 73 | norm_add_le (ψ x • fderiv ℝ φ x) ((fderiv ℝ ψ x).smulRight (φ x)) |
| 74 | |
| 75 | /-- Hölder's inequality for the product of the pointwise norms, in real-valued Lp norms. -/ |
| 76 | theorem lpNorm_norm_mul_le {E F : Type*} [NormedAddCommGroup E] [NormedAddCommGroup F] |
| 77 | {f : Space → E} {g : Space → F} {p q r : ℝ≥0∞} [ENNReal.HolderTriple p q r] |
| 78 | (hf : MemLp f p volume) (hg : MemLp g q volume) : |
| 79 | lpNorm (fun x => ‖f x‖ * ‖g x‖) r volume ≤ lpNorm f p volume * lpNorm g q volume := by |
| 80 | have h := eLpNorm_le_eLpNorm_mul_eLpNorm'_of_norm (p := p) (q := q) (r := r) |
| 81 | hf.aestronglyMeasurable hg.aestronglyMeasurable (fun a b => ‖a‖ * ‖b‖) 1 |
| 82 | (Filter.Eventually.of_forall fun x => by simp) |
| 83 | have hr := ENNReal.toReal_mono (by finiteness [hf.eLpNorm_ne_top, hg.eLpNorm_ne_top]) h |
| 84 | have hm : AEStronglyMeasurable (fun x => ‖f x‖ * ‖g x‖) volume := |
| 85 | hf.aestronglyMeasurable.norm.mul hg.aestronglyMeasurable.norm |
| 86 | simpa [ENNReal.toReal_mul, ENNReal.coe_toReal, NNReal.coe_one, one_mul, |
| 87 | toReal_eLpNorm hm, |
| 88 | toReal_eLpNorm hf.aestronglyMeasurable, toReal_eLpNorm hg.aestronglyMeasurable] using hr |
| 89 | |
| 90 | /-- Smooth compactly supported vector fields have square-integrable actual curl. -/ |
| 91 | theorem vectorCurl_memLp (f : Space → Space) (hf : ContDiff ℝ ∞ f) |
| 92 | (hfc : HasCompactSupport f) : MemLp (vectorCurl f) 2 volume := by |
| 93 | have hd : Continuous (fderiv ℝ f) := (hf.fderiv_right (m := ∞) (by simp)).continuous |
| 94 | have hdm : MemLp (fderiv ℝ f) 2 volume := hd.memLp_of_hasCompactSupport (hfc.fderiv ℝ) |
| 95 | have hc : ContDiff ℝ ∞ (vectorCurl f) := |
| 96 | contDiff_curl _ ((contDiff_piLp 2).mp hf) |
| 97 | exact hdm.of_le_mul hc.continuous.aestronglyMeasurable |
| 98 | (Filter.Eventually.of_forall fun x => |
| 99 | norm_vectorCurl_le f x ((hf.differentiable (by simp)).differentiableAt)) |
| 100 | |
| 101 | /-- The actual L² cutoff-curl estimate, retaining the two Hölder terms. -/ |
| 102 | theorem cutoff_curl_lpNorm_le (ψ : Space → ℝ) (φ : Space → Space) |
| 103 | (hψ : ContDiff ℝ ∞ ψ) (hψc : HasCompactSupport ψ) |
| 104 | (hφ : ContDiff ℝ ∞ φ) (hφc : HasCompactSupport φ) : |
| 105 | lpNorm (vectorCurl (fun x => ψ x • φ x)) 2 volume ≤ |
| 106 | 6 * (lpNorm ψ ∞ volume + (sobolevConstant : ℝ) * lpNorm (fderiv ℝ ψ) 3 volume) * |
| 107 | lpNorm (fderiv ℝ φ) 2 volume := by |
| 108 | let : ENNReal.HolderTriple 3 6 2 := ⟨by |
| 109 | apply (ENNReal.toReal_eq_toReal_iff' (by finiteness) (by finiteness)).mp |
| 110 | norm_num [ENNReal.toReal_add, ENNReal.toReal_inv]⟩ |
| 111 | have hψm : MemLp ψ ∞ volume := hψ.continuous.memLp_of_hasCompactSupport hψc |
| 112 | have hφm : MemLp φ 6 volume := hφ.continuous.memLp_of_hasCompactSupport hφc |
| 113 | have hψd : MemLp (fderiv ℝ ψ) 3 volume := |
| 114 | (hψ.fderiv_right (m := ∞) (by simp)).continuous.memLp_of_hasCompactSupport (hψc.fderiv ℝ) |
| 115 | have hφd : MemLp (fderiv ℝ φ) 2 volume := |
| 116 | (hφ.fderiv_right (m := ∞) (by simp)).continuous.memLp_of_hasCompactSupport (hφc.fderiv ℝ) |
| 117 | let a : Space → ℝ := fun x => ‖ψ x‖ * ‖fderiv ℝ φ x‖ |
| 118 | let b : Space → ℝ := fun x => ‖fderiv ℝ ψ x‖ * ‖φ x‖ |
| 119 | have ha : MemLp a 2 volume := hφd.norm.mul' hψm.norm |
| 120 | have hb : MemLp b 2 volume := hφm.norm.mul' hψd.norm |
| 121 | have hg : MemLp (fun x => 6 * (a x + b x)) 2 volume := (ha.add hb).const_mul 6 |
| 122 | calc |
| 123 | lpNorm (vectorCurl (fun x => ψ x • φ x)) 2 volume ≤ |
| 124 | lpNorm (fun x => 6 * (a x + b x)) 2 volume := |
| 125 | lpNorm_mono_real hg (fun x => norm_cutoff_curl_le ψ φ x |
| 126 | ((hψ.differentiable (by simp)).differentiableAt) |
| 127 | ((hφ.differentiable (by simp)).differentiableAt)) |
| 128 | _ = 6 * lpNorm (a + b) 2 volume := by |
| 129 | simpa [Pi.add_apply] using lpNorm_fun_natCast_mul 6 (a + b) 2 volume |
| 130 | _ ≤ 6 * (lpNorm a 2 volume + lpNorm b 2 volume) := |
| 131 | mul_le_mul_of_nonneg_left (lpNorm_add_le ha (by norm_num)) (by norm_num) |
| 132 | _ ≤ 6 * (lpNorm ψ ∞ volume * lpNorm (fderiv ℝ φ) 2 volume + |
| 133 | lpNorm (fderiv ℝ ψ) 3 volume * lpNorm φ 6 volume) := by |
| 134 | exact mul_le_mul_of_nonneg_left (add_le_add |
| 135 | (lpNorm_norm_mul_le hψm hφd) (lpNorm_norm_mul_le hψd hφm)) (by norm_num) |
| 136 | _ ≤ 6 * (lpNorm ψ ∞ volume * lpNorm (fderiv ℝ φ) 2 volume + |
| 137 | lpNorm (fderiv ℝ ψ) 3 volume * |
| 138 | ((sobolevConstant : ℝ) * lpNorm (fderiv ℝ φ) 2 volume)) := by |
| 139 | apply mul_le_mul_of_nonneg_left _ (by norm_num) |
| 140 | exact add_le_add le_rfl |
| 141 | (mul_le_mul_of_nonneg_left (homogeneous_sobolev φ hφ hφc) lpNorm_nonneg) |
| 142 | _ = 6 * (lpNorm ψ ∞ volume + (sobolevConstant : ℝ) * lpNorm (fderiv ℝ ψ) 3 volume) * |
| 143 | lpNorm (fderiv ℝ φ) 2 volume := by ring |
| 144 | |
| 145 | /-- The norm of a scalar gradient equals the norm of its Fréchet derivative. -/ |
| 146 | theorem norm_gradient_eq_fderiv (ψ : Space → ℝ) (x : Space) : |
| 147 | ‖gradient ψ x‖ = ‖fderiv ℝ ψ x‖ := |
| 148 | (InnerProductSpace.toDual ℝ Space).symm.norm_map _ |
| 149 | |
| 150 | /-- The L³ cutoff derivative norm can equivalently be written using its actual gradient. -/ |
| 151 | theorem lpNorm_gradient_eq_fderiv (ψ : Space → ℝ) (hψ : ContDiff ℝ ∞ ψ) : |
| 152 | lpNorm (gradient ψ) 3 volume = lpNorm (fderiv ℝ ψ) 3 volume := by |
| 153 | have hd : Continuous (fderiv ℝ ψ) := (hψ.fderiv_right (m := ∞) (by simp)).continuous |
| 154 | have hg : Continuous (gradient ψ) := (InnerProductSpace.toDual ℝ Space).symm.continuous.comp hd |
| 155 | rw [← lpNorm_norm hg.aestronglyMeasurable, ← lpNorm_norm hd.aestronglyMeasurable] |
| 156 | congr 1 |
| 157 | funext x |
| 158 | exact norm_gradient_eq_fderiv ψ x |
| 159 | |
| 160 | /-- A dimension-only constant, independent of the cutoff, test field, and support radii. -/ |
| 161 | def cutoffCurlConstant : ℝ := 6 * (1 + (sobolevConstant : ℝ)) |
| 162 | |
| 163 | theorem cutoffCurlConstant_pos : 0 < cutoffCurlConstant := by |
| 164 | unfold cutoffCurlConstant |
| 165 | positivity |
| 166 | |
| 167 | /-- The source's ordinary-space cutoff-curl bound with the actual gradient L³ norm. -/ |
| 168 | theorem cutoff_curl_bound (ψ : Space → ℝ) (φ : Space → Space) |
| 169 | (hψ : ContDiff ℝ ∞ ψ) (hψc : HasCompactSupport ψ) |
| 170 | (hφ : ContDiff ℝ ∞ φ) (hφc : HasCompactSupport φ) : |
| 171 | lpNorm (vectorCurl (fun x => ψ x • φ x)) 2 volume ≤ |
| 172 | cutoffCurlConstant * (lpNorm ψ ∞ volume + lpNorm (gradient ψ) 3 volume) * |
| 173 | lpNorm (fderiv ℝ φ) 2 volume := by |
| 174 | rw [lpNorm_gradient_eq_fderiv ψ hψ] |
| 175 | refine (cutoff_curl_lpNorm_le ψ φ hψ hψc hφ hφc).trans ?_ |
| 176 | apply mul_le_mul_of_nonneg_right _ lpNorm_nonneg |
| 177 | have ha : 0 ≤ lpNorm ψ ∞ volume := lpNorm_nonneg |
| 178 | have hb : 0 ≤ lpNorm (fderiv ℝ ψ) 3 volume := lpNorm_nonneg |
| 179 | have hc : 0 ≤ (sobolevConstant : ℝ) := NNReal.coe_nonneg _ |
| 180 | unfold cutoffCurlConstant |
| 181 | nlinarith [mul_nonneg hc ha] |
| 182 | |
| 183 | /-- The distributional cutoff-curl functional on an arbitrary genuine L² field. |
| 184 | No derivative or divergence condition on `z` is required. -/ |
| 185 | theorem integral_cutoff_curl_bound (ψ : Space → ℝ) (φ : Space → Space) |
| 186 | (hψ : ContDiff ℝ ∞ ψ) (hψc : HasCompactSupport ψ) |
| 187 | (hφ : ContDiff ℝ ∞ φ) (hφc : HasCompactSupport φ) |
| 188 | (z : Lp Space 2 (volume : Measure Space)) : |
| 189 | |∫ x, inner ℝ (z x) (vectorCurl (fun y => ψ y • φ y) x)| ≤ |
| 190 | cutoffCurlConstant * (lpNorm ψ ∞ volume + lpNorm (gradient ψ) 3 volume) * |
| 191 | ‖z‖ * lpNorm (fderiv ℝ φ) 2 volume := by |
| 192 | have hprod : ContDiff ℝ ∞ (fun y => ψ y • φ y) := hψ.smul hφ |
| 193 | have hpc : HasCompactSupport (fun y => ψ y • φ y) := hφc.smul_left (f := ψ) |
| 194 | have hm : MemLp (vectorCurl (fun y => ψ y • φ y)) 2 volume := |
| 195 | vectorCurl_memLp _ hprod hpc |
| 196 | let v : Lp Space 2 (volume : Measure Space) := hm.toLp _ |
| 197 | have hv : ‖v‖ = lpNorm (vectorCurl (fun y => ψ y • φ y)) 2 volume := by |
| 198 | rw [Lp.norm_toLp, toReal_eLpNorm hm.aestronglyMeasurable] |
| 199 | have he : (∫ x, inner ℝ (z x) (vectorCurl (fun y => ψ y • φ y) x)) = inner ℝ z v := by |
| 200 | rw [L2.inner_def] |
| 201 | apply integral_congr_ae |
| 202 | filter_upwards [hm.coeFn_toLp] with x hx |
| 203 | rw [hx] |
| 204 | calc |
| 205 | |∫ x, inner ℝ (z x) (vectorCurl (fun y => ψ y • φ y) x)| = |inner ℝ z v| := congrArg abs he |
| 206 | _ ≤ ‖z‖ * ‖v‖ := by |
| 207 | simpa only [Real.norm_eq_abs] using norm_inner_le_norm (𝕜 := ℝ) z v |
| 208 | _ ≤ ‖z‖ * (cutoffCurlConstant * (lpNorm ψ ∞ volume + lpNorm (gradient ψ) 3 volume) * |
| 209 | lpNorm (fderiv ℝ φ) 2 volume) := by |
| 210 | rw [hv] |
| 211 | exact mul_le_mul_of_nonneg_left (cutoff_curl_bound ψ φ hψ hψc hφ hφc) (norm_nonneg z) |
| 212 | _ = cutoffCurlConstant * (lpNorm ψ ∞ volume + lpNorm (gradient ψ) 3 volume) * |
| 213 | ‖z‖ * lpNorm (fderiv ℝ φ) 2 volume := by ring |
| 214 | |
| 215 | end EulerMeanCutoffCurl |