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.ComparisonCutoffs |
| 2 | import Mathlib.Analysis.FunctionalSpaces.SobolevInequality |
| 3 | import Mathlib.MeasureTheory.Function.LpSpace.Complete |
| 4 | |
| 5 | /-! |
| 6 | # Homogeneous Sobolev bounds for smooth square-integrable functions |
| 7 | |
| 8 | Spatial cutoffs extend the compactly supported Sobolev inequality to a smooth |
| 9 | function whose value and derivative belong to `L²`. The derivative of the |
| 10 | cutoff contributes an error tending to zero; Fatou's lemma passes to the limit. |
| 11 | -/ |
| 12 | |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open MeasureTheory Filter |
| 17 | open scoped ContDiff ENNReal Topology |
| 18 | |
| 19 | namespace NavierStokesR3.RieszTestOperators |
| 20 | |
| 21 | open ProblemStatement ComparisonCutoffs |
| 22 | |
| 23 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 24 | |
| 25 | /-- The product rule with a uniformly bounded spatial cutoff. -/ |
| 26 | theorem norm_fderiv_cutoff_smul_le {f : Space → E} (hf : ContDiff ℝ 1 f) |
| 27 | {R : ℝ} (hR : 0 < R) (x : Space) : |
| 28 | ‖fderiv ℝ (fun y => cutoff R y • f y) x‖ ≤ |
| 29 | ‖fderiv ℝ f x‖ + (derivativeConstant 1 / R) * ‖f x‖ := by |
| 30 | change ‖fderiv ℝ (cutoff R • f) x‖ ≤ _ |
| 31 | rw [fderiv_smul ((cutoff_smooth R).differentiable (by simp) x) |
| 32 | (hf.differentiable (by simp) x)] |
| 33 | calc |
| 34 | ‖cutoff R x • fderiv ℝ f x + (fderiv ℝ (cutoff R) x).smulRight (f x)‖ |
| 35 | ≤ ‖cutoff R x • fderiv ℝ f x‖ + |
| 36 | ‖(fderiv ℝ (cutoff R) x).smulRight (f x)‖ := norm_add_le _ _ |
| 37 | _ = cutoff R x * ‖fderiv ℝ f x‖ + ‖fderiv ℝ (cutoff R) x‖ * ‖f x‖ := by |
| 38 | rw [_root_.norm_smul (cutoff R x) (fderiv ℝ f x), Real.norm_eq_abs, |
| 39 | abs_of_nonneg (cutoff_nonneg R x), |
| 40 | ContinuousLinearMap.norm_smulRight_apply] |
| 41 | _ ≤ 1 * ‖fderiv ℝ f x‖ + (derivativeConstant 1 / R) * ‖f x‖ := by |
| 42 | exact add_le_add |
| 43 | (mul_le_mul_of_nonneg_right (cutoff_le_one R x) (norm_nonneg _)) |
| 44 | (mul_le_mul_of_nonneg_right (cutoff_fderiv_le hR x) (norm_nonneg _)) |
| 45 | _ = ‖fderiv ℝ f x‖ + (derivativeConstant 1 / R) * ‖f x‖ := by rw [one_mul] |
| 46 | |
| 47 | /-- The cutoff derivative has a vanishing `L²` error. -/ |
| 48 | theorem eLpNorm_fderiv_cutoff_smul_le {f : Space → E} (hf : ContDiff ℝ 1 f) |
| 49 | {R : ℝ} (hR : 0 < R) : |
| 50 | eLpNorm (fderiv ℝ (fun y => cutoff R y • f y)) 2 volume ≤ |
| 51 | eLpNorm (fderiv ℝ f) 2 volume + |
| 52 | ENNReal.ofReal (derivativeConstant 1 / R) * eLpNorm f 2 volume := by |
| 53 | calc |
| 54 | eLpNorm (fderiv ℝ (fun y => cutoff R y • f y)) 2 volume |
| 55 | ≤ eLpNorm (fun x => ‖fderiv ℝ f x‖ + |
| 56 | (derivativeConstant 1 / R) * ‖f x‖) 2 volume := |
| 57 | eLpNorm_mono_real (norm_fderiv_cutoff_smul_le hf hR) |
| 58 | _ ≤ eLpNorm (fun x => ‖fderiv ℝ f x‖) 2 volume + |
| 59 | eLpNorm (fun x => (derivativeConstant 1 / R) * ‖f x‖) 2 volume := |
| 60 | eLpNorm_add_le (hf.continuous_fderiv (by simp)).norm.aestronglyMeasurable |
| 61 | (continuous_const.mul hf.continuous.norm).aestronglyMeasurable (by norm_num) |
| 62 | _ = eLpNorm (fderiv ℝ f) 2 volume + |
| 63 | ENNReal.ofReal (derivativeConstant 1 / R) * eLpNorm f 2 volume := by |
| 64 | rw [eLpNorm_norm] |
| 65 | change _ + eLpNorm ((derivativeConstant 1 / R) • (fun x => ‖f x‖)) 2 volume = _ |
| 66 | rw [eLpNorm_const_smul, eLpNorm_norm, Real.enorm_eq_ofReal |
| 67 | (div_nonneg (derivativeConstant_pos 1).le hR.le)] |
| 68 | |
| 69 | /-- The homogeneous `H¹ → L⁶` inequality without a support assumption. |
| 70 | Only the function itself must have finite `L²` norm for this extended-norm |
| 71 | inequality; the right side may be infinite. -/ |
| 72 | theorem smooth_eLpNorm_six_le {f : Space → E} (hf : ContDiff ℝ 1 f) |
| 73 | (h2 : MemLp f 2 volume) : |
| 74 | eLpNorm f 6 volume ≤ |
| 75 | (eLpNormLESNormFDerivOfEqInnerConst (volume : Measure Space) 2 : ℝ≥0∞) * |
| 76 | eLpNorm (fderiv ℝ f) 2 volume := by |
| 77 | let C : ℝ≥0∞ := eLpNormLESNormFDerivOfEqInnerConst (volume : Measure Space) 2 |
| 78 | let D : ℝ≥0∞ := eLpNorm (fderiv ℝ f) 2 volume |
| 79 | let M : ℝ≥0∞ := eLpNorm f 2 volume |
| 80 | let u : ℕ → Space → E := fun n x => cutoff (n : ℝ) x • f x |
| 81 | have hu (n : ℕ) : ContDiff ℝ 1 (u n) := |
| 82 | ((cutoff_smooth (n : ℝ)).of_le (by simp)).smul hf |
| 83 | have hnat : Tendsto (fun n : ℕ => (n : ℝ)) atTop atTop := |
| 84 | tendsto_natCast_atTop_atTop |
| 85 | have hpointwise (x : Space) : |
| 86 | Tendsto (fun n => u n x) atTop (𝓝 (f x)) := by |
| 87 | apply tendsto_nhds_of_eventually_eq |
| 88 | filter_upwards [hnat.eventually (eventually_cutoff_eq_one x)] with n hn |
| 89 | simp only [u, hn, one_smul] |
| 90 | have hfatou : eLpNorm f 6 volume ≤ |
| 91 | atTop.liminf (fun n => eLpNorm (u n) 6 volume) := |
| 92 | Lp.eLpNorm_lim_le_liminf_eLpNorm |
| 93 | (fun n => (hu n).continuous.aestronglyMeasurable) f |
| 94 | (Filter.Eventually.of_forall hpointwise) |
| 95 | have hn_dim : Module.finrank ℝ Space = 3 := by |
| 96 | simp [Space, NavierStokes.ProblemStatement.Space] |
| 97 | have hbound : ∀ᶠ n : ℕ in atTop, |
| 98 | eLpNorm (u n) 6 volume ≤ |
| 99 | C * (D + ENNReal.ofReal (derivativeConstant 1 / (n : ℝ)) * M) := by |
| 100 | filter_upwards [eventually_ge_atTop (1 : ℕ)] with n hn |
| 101 | have hnR : 0 < (n : ℝ) := by |
| 102 | exact_mod_cast (lt_of_lt_of_le Nat.zero_lt_one hn) |
| 103 | have hcompact : HasCompactSupport (u n) := |
| 104 | (cutoff_hasCompactSupport hnR).smul_right |
| 105 | have hSob := eLpNorm_le_eLpNorm_fderiv_of_eq_inner (volume : Measure Space) |
| 106 | (hu n) hcompact (p := 2) (p' := 6) (by norm_num) (by omega) |
| 107 | (by rw [hn_dim]; norm_num) |
| 108 | have hSob' : eLpNorm (u n) 6 volume ≤ |
| 109 | C * eLpNorm (fderiv ℝ (u n)) 2 volume := by |
| 110 | simpa [C] using hSob |
| 111 | exact hSob'.trans |
| 112 | (mul_le_mul_right (eLpNorm_fderiv_cutoff_smul_le hf hnR) C) |
| 113 | have herr : Tendsto |
| 114 | (fun n : ℕ => ENNReal.ofReal (derivativeConstant 1 / (n : ℝ)) * M) |
| 115 | atTop (𝓝 0) := by |
| 116 | simpa using ENNReal.Tendsto.mul_const |
| 117 | (ENNReal.tendsto_ofReal |
| 118 | (tendsto_const_div_atTop_nhds_zero_nat (derivativeConstant 1))) |
| 119 | (Or.inr h2.eLpNorm_ne_top) |
| 120 | have hsum : Tendsto |
| 121 | (fun n : ℕ => D + ENNReal.ofReal (derivativeConstant 1 / (n : ℝ)) * M) |
| 122 | atTop (𝓝 (D + 0)) := |
| 123 | tendsto_const_nhds.add herr |
| 124 | have hlimit : Tendsto |
| 125 | (fun n : ℕ => C * (D + ENNReal.ofReal (derivativeConstant 1 / (n : ℝ)) * M)) |
| 126 | atTop (𝓝 (C * D)) := by |
| 127 | simpa only [add_zero] using ENNReal.Tendsto.const_mul hsum |
| 128 | (Or.inr (show C ≠ (⊤ : ℝ≥0∞) from ENNReal.coe_ne_top)) |
| 129 | exact hfatou.trans ((Filter.liminf_le_liminf hbound).trans_eq hlimit.liminf_eq) |
| 130 | |
| 131 | /-- A smooth function with square-integrable value and derivative belongs to |
| 132 | `L⁶`, with no support hypothesis. -/ |
| 133 | theorem smooth_memLp_six {f : Space → E} (hf : ContDiff ℝ 1 f) |
| 134 | (h2 : MemLp f 2 volume) (hD2 : MemLp (fderiv ℝ f) 2 volume) : |
| 135 | MemLp f 6 volume := by |
| 136 | refine ⟨hf.continuous.aestronglyMeasurable, (smooth_eLpNorm_six_le hf h2).trans_lt ?_⟩ |
| 137 | exact ENNReal.mul_lt_top ENNReal.coe_lt_top hD2.2 |
| 138 | |
| 139 | /-- The real-valued homogeneous Sobolev bound when both `L²` norms are finite. -/ |
| 140 | theorem smooth_eLpNorm_six_toReal_le {f : Space → E} (hf : ContDiff ℝ 1 f) |
| 141 | (h2 : MemLp f 2 volume) (hD2 : MemLp (fderiv ℝ f) 2 volume) : |
| 142 | (eLpNorm f 6 volume).toReal ≤ |
| 143 | (eLpNormLESNormFDerivOfEqInnerConst (volume : Measure Space) 2 : ℝ) * |
| 144 | (eLpNorm (fderiv ℝ f) 2 volume).toReal := by |
| 145 | have hfinite : |
| 146 | (eLpNormLESNormFDerivOfEqInnerConst (volume : Measure Space) 2 : ℝ≥0∞) * |
| 147 | eLpNorm (fderiv ℝ f) 2 volume ≠ (⊤ : ℝ≥0∞) := |
| 148 | (ENNReal.mul_lt_top ENNReal.coe_lt_top hD2.2).ne |
| 149 | simpa only [ENNReal.toReal_mul, ENNReal.coe_toReal] using |
| 150 | ENNReal.toReal_mono hfinite (smooth_eLpNorm_six_le hf h2) |
| 151 | |
| 152 | end NavierStokesR3.RieszTestOperators |