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.MeanL2Scaling |
| 2 | import Euler.LpDominatedConvergence |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.Operations |
| 4 | |
| 5 | /-! The physical dilation f(x) ↦ ell*f(x/ell), including actual spatial |
| 6 | derivatives and their genuine Banach-valued L² norms. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | |
| 11 | open scoped ContDiff |
| 12 | |
| 13 | namespace EulerPhysicalL2Scaling |
| 14 | |
| 15 | open MeasureTheory EulerSmoothLimit EulerMeanHarmonic |
| 16 | |
| 17 | variable {V : Type*} [NormedAddCommGroup V] |
| 18 | |
| 19 | theorem lpNorm_sq_integral (f : Space → V) (hf : MemLp f 2 volume) : |
| 20 | (lpNorm f 2 volume)^2 = ∫ x, ‖f x‖^2 := by |
| 21 | have hn : ‖hf.toLp f‖ = lpNorm f 2 volume := by |
| 22 | rw [Lp.norm_toLp, toReal_eLpNorm hf.aestronglyMeasurable] |
| 23 | rw [← hn, EulerLpConvergence.norm_sq_eq_integral] |
| 24 | apply integral_congr_ae |
| 25 | filter_upwards [hf.coeFn_toLp] with x hx |
| 26 | rw [hx] |
| 27 | |
| 28 | theorem lpNorm_inv_dilation_sq (f : Space → V) (hf : MemLp f 2 volume) |
| 29 | (ell : ℝ) (hell : 0 < ell) : |
| 30 | lpNorm (fun x => f (ell⁻¹ • x)) 2 volume ^ 2 = ell^3 * lpNorm f 2 volume ^ 2 := by |
| 31 | rw [lpNorm_sq_integral _ (memLp_dilation f hf ell⁻¹ (inv_ne_zero hell.ne')), |
| 32 | lpNorm_sq_integral f hf] |
| 33 | rw [Measure.integral_comp_inv_smul_of_nonneg volume (fun x => ‖f x‖^2) hell.le] |
| 34 | simp [Space, smul_eq_mul] |
| 35 | |
| 36 | theorem lpNorm_inv_dilation (f : Space → V) (hf : MemLp f 2 volume) |
| 37 | (ell : ℝ) (hell : 0 < ell) : |
| 38 | lpNorm (fun x => f (ell⁻¹ • x)) 2 volume = Real.sqrt (ell^3)*lpNorm f 2 volume := by |
| 39 | have he := lpNorm_inv_dilation_sq f hf ell hell |
| 40 | have hs : (Real.sqrt (ell^3))^2 = ell^3 := Real.sq_sqrt (pow_nonneg hell.le 3) |
| 41 | have hleft := lpNorm_nonneg (f := fun x => f (ell⁻¹ • x)) (p := 2) (μ := volume) |
| 42 | have hright : 0 ≤ Real.sqrt (ell^3)*lpNorm f 2 volume := |
| 43 | mul_nonneg (Real.sqrt_nonneg _) lpNorm_nonneg |
| 44 | nlinarith [sq_nonneg (lpNorm f 2 volume)] |
| 45 | |
| 46 | variable [NormedSpace ℝ V] |
| 47 | |
| 48 | def scale (ell : ℝ) (f : Space → V) : Space → V := fun x => ell • f (ell⁻¹ • x) |
| 49 | |
| 50 | theorem scale_contDiff (ell : ℝ) (f : Space → V) (hf : ContDiff ℝ ∞ f) : |
| 51 | ContDiff ℝ ∞ (scale ell f) := |
| 52 | (hf.comp (contDiff_id.const_smul ell⁻¹)).const_smul ell |
| 53 | |
| 54 | theorem iteratedFDeriv_scale (ell : ℝ) (f : Space → V) (hf : ContDiff ℝ ∞ f) |
| 55 | (n : ℕ) (x : Space) : |
| 56 | iteratedFDeriv ℝ n (scale ell f) x = |
| 57 | (ell*(ell⁻¹)^n) • iteratedFDeriv ℝ n f (ell⁻¹ • x) := by |
| 58 | have hc : ContDiff ℝ n (fun y : Space => f (ell⁻¹ • y)) := |
| 59 | (hf.comp (contDiff_id.const_smul ell⁻¹)).of_le (by simp) |
| 60 | change iteratedFDeriv ℝ n (fun y => ell • f (ell⁻¹ • y)) x = _ |
| 61 | rw [iteratedFDeriv_const_smul_apply' hc.contDiffAt, |
| 62 | iteratedFDeriv_comp_const_smul ell⁻¹ (hf.of_le (by simp)), smul_smul] |
| 63 | |
| 64 | theorem scale_jet_memLp (ell : ℝ) (hell : 0 < ell) (f : Space → V) (hf : ContDiff ℝ ∞ f) |
| 65 | (n : ℕ) (hn : MemLp (iteratedFDeriv ℝ n f) 2 volume) : |
| 66 | MemLp (iteratedFDeriv ℝ n (scale ell f)) 2 volume := by |
| 67 | have he : iteratedFDeriv ℝ n (scale ell f) = |
| 68 | fun x => (ell*(ell⁻¹)^n) • iteratedFDeriv ℝ n f (ell⁻¹ • x) := |
| 69 | funext (iteratedFDeriv_scale ell f hf n) |
| 70 | rw [he] |
| 71 | exact (memLp_dilation _ hn ell⁻¹ (inv_ne_zero hell.ne')).const_smul (ell*(ell⁻¹)^n) |
| 72 | |
| 73 | theorem lpNorm_scale_jet (ell : ℝ) (hell : 0 < ell) (f : Space → V) (hf : ContDiff ℝ ∞ f) |
| 74 | (n : ℕ) (hn : MemLp (iteratedFDeriv ℝ n f) 2 volume) : |
| 75 | lpNorm (iteratedFDeriv ℝ n (scale ell f)) 2 volume = |
| 76 | (ell*Real.sqrt (ell^3)*(ell⁻¹)^n)*lpNorm (iteratedFDeriv ℝ n f) 2 volume := by |
| 77 | have he : iteratedFDeriv ℝ n (scale ell f) = |
| 78 | (ell*(ell⁻¹)^n) • (fun x => iteratedFDeriv ℝ n f (ell⁻¹ • x)) := |
| 79 | funext (iteratedFDeriv_scale ell f hf n) |
| 80 | rw [he, lpNorm_const_smul] |
| 81 | change ‖ell*(ell⁻¹)^n‖*lpNorm (fun x => iteratedFDeriv ℝ n f (ell⁻¹ • x)) 2 volume = _ |
| 82 | rw [Real.norm_eq_abs, abs_of_nonneg (mul_nonneg hell.le (pow_nonneg (inv_nonneg.mpr hell.le) n))] |
| 83 | rw [lpNorm_inv_dilation _ hn ell hell] |
| 84 | ring |
| 85 | |
| 86 | theorem lpNorm_scale_jet_le (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) |
| 87 | (f : Space → V) (hf : ContDiff ℝ ∞ f) (n : ℕ) |
| 88 | (hn : MemLp (iteratedFDeriv ℝ n f) 2 volume) : |
| 89 | lpNorm (iteratedFDeriv ℝ n (scale ell f)) 2 volume ≤ |
| 90 | (ell⁻¹)^n*lpNorm (iteratedFDeriv ℝ n f) 2 volume := by |
| 91 | rw [lpNorm_scale_jet ell hell f hf n hn] |
| 92 | have hp : ell^3 ≤ (1 : ℝ) := pow_le_one₀ hell.le hell1 |
| 93 | have hs : Real.sqrt (ell^3) ≤ 1 := (Real.sqrt_le_one).mpr hp |
| 94 | have hfac : ell*Real.sqrt (ell^3) ≤ 1 := by |
| 95 | exact (mul_le_mul hell1 hs (Real.sqrt_nonneg _) zero_le_one).trans_eq (one_mul 1) |
| 96 | exact mul_le_mul_of_nonneg_right |
| 97 | (by simpa only [one_mul] using mul_le_mul_of_nonneg_right hfac (pow_nonneg (inv_nonneg.mpr hell.le) n)) |
| 98 | lpNorm_nonneg |
| 99 | |
| 100 | end EulerPhysicalL2Scaling |