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.R3CompactEnergy |
| 2 | import NavierStokes.R3CutoffSobolev |
| 3 | import NavierStokes.R3PressureFlux |
| 4 | |
| 5 | /-! |
| 6 | # Norms and dissipation in the localized energy estimate |
| 7 | -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | namespace NavierStokes.R3EnergyNorms |
| 11 | |
| 12 | open Set Filter MeasureTheory ProblemStatement InnerProductSpace |
| 13 | open R3CompactEnergy R3CutoffSobolev R3WeightedLp |
| 14 | open scoped ContDiff RealInnerProductSpace ENNReal |
| 15 | |
| 16 | theorem lpNorm_two_sq {V : Type*} [NormedAddCommGroup V] {f : Space → V} |
| 17 | (hf : AEStronglyMeasurable f volume) : |
| 18 | lpNorm f 2 volume ^ 2 = ∫ x : Space, ‖f x‖ ^ 2 := by |
| 19 | rw [lpNorm_eq_integral_norm_rpow_toReal (by norm_num) (by norm_num) hf] |
| 20 | norm_num |
| 21 | rw [← Real.rpow_natCast, ← Real.rpow_mul (integral_nonneg (fun x => sq_nonneg ‖f x‖))] |
| 22 | norm_num |
| 23 | |
| 24 | theorem integral_mul_le {f g : Space → ℝ} (hf : MemLp f 2) (hg : MemLp g 2) |
| 25 | (hf₀ : ∀ x, 0 ≤ f x) (hg₀ : ∀ x, 0 ≤ g x) : |
| 26 | (∫ x : Space, f x * g x) ≤ lpNorm f 2 volume * lpNorm g 2 volume := by |
| 27 | have he : (∫ x : Space, f x * g x) = lpNorm (fun x => f x * g x) 1 volume := by |
| 28 | rw [lpNorm_one_eq_integral_norm (hf.1.fun_mul hg.1)] |
| 29 | apply integral_congr_ae |
| 30 | exact Eventually.of_forall (fun x => (Real.norm_of_nonneg (mul_nonneg (hf₀ x) (hg₀ x))).symm) |
| 31 | rw [he] |
| 32 | exact lpNorm_mul_le hf hg |
| 33 | |
| 34 | theorem weightedDerivative_sq_le_dissipation {φ : Space → ℝ} {w : Space → Space} |
| 35 | (hφ : ContDiff ℝ ∞ φ) (hc : HasCompactSupport φ) (hw : ContDiff ℝ ∞ w) : |
| 36 | lpNorm (weightedDerivativeNorm φ w) 2 volume ^ 2 ≤ |
| 37 | 3 * dissipation (fun x => φ x ^ 8) w := by |
| 38 | have hm := weightedDerivativeNorm_memLp (hφ.of_le (by simp)) hc (hw.of_le (by simp)) |
| 39 | have hp : HasCompactSupport (fun x => φ x ^ 8) := hc.comp_left (g := fun r : ℝ => r ^ 8) (by norm_num) |
| 40 | have hi (i : Fin 3) : Integrable (fun x => φ x ^ 8 * ‖PeriodicIntegration.spatialPartial i w x‖ ^ 2) := |
| 41 | R3CompactIntegration.integrable_mul (hφ.continuous.pow 8) |
| 42 | ((partial_smooth hw i).continuous.norm.pow 2) hp |
| 43 | have hs : Integrable (fun x => ∑ i : Fin 3, φ x ^ 8 * ‖PeriodicIntegration.spatialPartial i w x‖ ^ 2) := |
| 44 | integrable_finsetSum _ (fun i _ => hi i) |
| 45 | have hb (x : Space) : ‖weightedDerivativeNorm φ w x‖ ^ 2 ≤ |
| 46 | 3 * ∑ i : Fin 3, φ x ^ 8 * ‖PeriodicIntegration.spatialPartial i w x‖ ^ 2 := by |
| 47 | have hh := mul_le_mul_of_nonneg_left (operator_norm_sq_le (fderiv ℝ w x)) (by positivity : 0 ≤ φ x ^ 8) |
| 48 | simp only [weightedDerivativeNorm, Real.norm_eq_abs, sq_abs, mul_pow, ← pow_mul, |
| 49 | PeriodicIntegration.spatialPartial, ← Finset.mul_sum] |
| 50 | norm_num only [Nat.reduceMul] |
| 51 | nlinarith only [hh] |
| 52 | rw [lpNorm_two_sq hm.1] |
| 53 | have hmsq : Integrable (fun x => ‖weightedDerivativeNorm φ w x‖ ^ 2) := by |
| 54 | exact (memLp_two_iff_integrable_sq hm.norm.1).mp hm.norm |
| 55 | have hh := integral_mono hmsq (hs.const_mul 3) hb |
| 56 | rw [integral_const_mul, integral_finsetSum _ (fun i _ => hi i)] at hh |
| 57 | exact hh |
| 58 | |
| 59 | theorem neg_coupling_le {χ : Space → ℝ} {w u : Space → Space} {B : ℝ} |
| 60 | (hχ : ContDiff ℝ ∞ χ) (hc : HasCompactSupport χ) (hχ₀ : ∀ x, 0 ≤ χ x) |
| 61 | (hw : ContDiff ℝ ∞ w) (hu : ContDiff ℝ ∞ u) (hB : ∀ x, ‖fderiv ℝ u x‖ ≤ B) : |
| 62 | -coupling χ w u ≤ B * (∫ x : Space, χ x * ‖w x‖ ^ 2) := by |
| 63 | have hi : Integrable (fun x => χ x * ⟪w x, fderiv ℝ u x (w x)⟫_ℝ) := |
| 64 | integrable_weighted_inner hχ.continuous hw.continuous |
| 65 | ((hu.continuous_fderiv (by simp)).clm_apply hw.continuous) hc |
| 66 | have hj := R3CompactIntegration.integrable_mul hχ.continuous (hw.continuous.norm.pow 2) hc |
| 67 | rw [coupling, ← integral_neg, ← integral_const_mul] |
| 68 | apply integral_mono hi.neg (hj.const_mul B) |
| 69 | intro x |
| 70 | change -(χ x * ⟪w x, fderiv ℝ u x (w x)⟫_ℝ) ≤ B * (χ x * ‖w x‖ ^ 2) |
| 71 | have hh := mul_le_mul_of_nonneg_left (PeriodicUniqueness.nonlinear_energy_bound (fderiv ℝ u x) (w x) (hB x)) (hχ₀ x) |
| 72 | nlinarith only [hh] |
| 73 | |
| 74 | def pressureFluxFactor (φ : Space → ℝ) (w : Space → Space) (x : Space) : ℂ := |
| 75 | (8 * φ x * fderiv ℝ φ x (w x) : ℝ) |
| 76 | |
| 77 | theorem pressureFluxFactor_bound {φ : Space → ℝ} {w : Space → Space} {D : ℝ} |
| 78 | (hφ : ∀ x, φ x ∈ Icc (0 : ℝ) 1) (hD : ∀ x, ‖fderiv ℝ φ x‖ ≤ D) (x : Space) : |
| 79 | ‖pressureFluxFactor φ w x‖ ≤ 8 * D * ‖w x‖ := by |
| 80 | have hh := (fderiv ℝ φ x).le_opNorm (w x) |
| 81 | have hp : 0 ≤ 8 * φ x := mul_nonneg (by norm_num) (hφ x).1 |
| 82 | rw [pressureFluxFactor, Complex.norm_real, norm_mul, Real.norm_of_nonneg hp] |
| 83 | have hd : 0 ≤ D := (norm_nonneg _).trans (hD x) |
| 84 | have hbound := mul_le_mul_of_nonneg_left (hh.trans |
| 85 | (mul_le_mul_of_nonneg_right (hD x) (norm_nonneg _))) hp |
| 86 | have hl := mul_le_mul_of_nonneg_right (hφ x).2 (mul_nonneg hd (norm_nonneg (w x))) |
| 87 | nlinarith only [hbound, hl] |
| 88 | |
| 89 | theorem pressureFluxFactor_memLp {φ : Space → ℝ} {w : Space → Space} {D : ℝ} |
| 90 | (hφ : ContDiff ℝ ∞ φ) (hw : ContDiff ℝ ∞ w) (hr : ∀ x, φ x ∈ Icc (0 : ℝ) 1) |
| 91 | (hD : 0 ≤ D) (hb : ∀ x, ‖fderiv ℝ φ x‖ ≤ D) (hw₂ : MemLp w 2) : |
| 92 | MemLp (pressureFluxFactor φ w) 2 ∧ |
| 93 | lpNorm (pressureFluxFactor φ w) 2 volume ≤ 8 * D * lpNorm w 2 volume := by |
| 94 | have hc : Continuous (pressureFluxFactor φ w) := by |
| 95 | unfold pressureFluxFactor |
| 96 | exact Complex.continuous_ofReal.comp |
| 97 | ((continuous_const.mul hφ.continuous).mul ((hφ.continuous_fderiv (by simp)).clm_apply hw.continuous)) |
| 98 | have hM := hw₂.norm.const_mul (8 * D) |
| 99 | have hm := hM.mono' hc.aestronglyMeasurable (Eventually.of_forall (pressureFluxFactor_bound hr hb)) |
| 100 | refine ⟨hm, ?_⟩ |
| 101 | have hh := lpNorm_mono_real hM (pressureFluxFactor_bound hr hb) |
| 102 | change lpNorm (pressureFluxFactor φ w) 2 volume ≤ lpNorm ((8 * D) • (fun x => ‖w x‖)) 2 volume at hh |
| 103 | rw [lpNorm_const_smul, coe_nnnorm, Real.norm_of_nonneg (by positivity), lpNorm_norm hw₂.1] at hh |
| 104 | exact hh |
| 105 | |
| 106 | theorem pressureFluxFactor_identity {φ : Space → ℝ} (hφ : ContDiff ℝ ∞ φ) |
| 107 | (w : Space → Space) (x : Space) : |
| 108 | R3PressureCutoff.powerCutoff φ x * pressureFluxFactor φ w x = |
| 109 | (fderiv ℝ (fun y => φ y ^ 8) x (w x) : ℝ) := by |
| 110 | rw [((hφ.differentiable (by simp) x).hasFDerivAt.pow 8).fderiv] |
| 111 | simp only [R3PressureCutoff.powerCutoff, pressureFluxFactor, smul_apply, |
| 112 | smul_eq_mul] |
| 113 | push_cast |
| 114 | ring |
| 115 | |
| 116 | end NavierStokes.R3EnergyNorms |