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.R3EnergyNorms |
| 2 | |
| 3 | /-! |
| 4 | # Diffusion and transport boundary estimates |
| 5 | |
| 6 | Only the undifferentiated velocity needs a global `L²` bound. Every |
| 7 | derivative in these estimates is multiplied by a compact cutoff. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | namespace NavierStokes.R3EnergyBoundary |
| 12 | |
| 13 | open Set Filter MeasureTheory ProblemStatement InnerProductSpace |
| 14 | open R3CompactEnergy R3CutoffSobolev R3WeightedLp R3EnergyNorms |
| 15 | open scoped ContDiff RealInnerProductSpace ENNReal |
| 16 | |
| 17 | theorem derivative_eighth {φ : Space → ℝ} (hφ : ContDiff ℝ ∞ φ) (x v : Space) : |
| 18 | fderiv ℝ (fun y => φ y ^ 8) x v = 8 * φ x ^ 7 * fderiv ℝ φ x v := by |
| 19 | rw [((hφ.differentiable (by simp) x).hasFDerivAt.pow 8).fderiv] |
| 20 | simp |
| 21 | |
| 22 | theorem derivative_eighth_bound {φ : Space → ℝ} {D : ℝ} |
| 23 | (hφ : ContDiff ℝ ∞ φ) (hr : ∀ x, φ x ∈ Icc (0 : ℝ) 1) |
| 24 | (hb : ∀ x, ‖fderiv ℝ φ x‖ ≤ D) (x v : Space) : |
| 25 | |fderiv ℝ (fun y => φ y ^ 8) x v| ≤ 8 * φ x ^ 7 * D * ‖v‖ := by |
| 26 | have hφ0 := (hr x).1 |
| 27 | rw [derivative_eighth hφ, abs_mul, abs_of_nonneg (by positivity : 0 ≤ 8 * φ x ^ 7)] |
| 28 | have h := (fderiv ℝ φ x).le_opNorm v |
| 29 | rw [Real.norm_eq_abs] at h |
| 30 | exact (mul_le_mul_of_nonneg_left (h.trans (mul_le_mul_of_nonneg_right (hb x) (norm_nonneg v))) |
| 31 | (by positivity)).trans_eq (by ring) |
| 32 | |
| 33 | theorem diffusionFlux_le {φ : Space → ℝ} {w : Space → Space} {D : ℝ} |
| 34 | (hφ : ContDiff ℝ ∞ φ) (hc : HasCompactSupport φ) (hw : ContDiff ℝ ∞ w) |
| 35 | (hr : ∀ x, φ x ∈ Icc (0 : ℝ) 1) (hD : 0 ≤ D) |
| 36 | (hb : ∀ x, ‖fderiv ℝ φ x‖ ≤ D) (hw₂ : MemLp w 2) : |
| 37 | |diffusionFlux (fun x => φ x ^ 8) w| ≤ |
| 38 | 24 * D * lpNorm (weightedDerivativeNorm φ w) 2 volume * lpNorm w 2 volume := by |
| 39 | have hA := weightedDerivativeNorm_memLp (hφ.of_le (by simp)) hc (hw.of_le (by simp)) |
| 40 | have hAW : Integrable (fun x => weightedDerivativeNorm φ w x * ‖w x‖) := |
| 41 | memLp_one_iff_integrable.mp (hw₂.norm.mul' hA) |
| 42 | have hbound (i : Fin 3) (x : Space) : |
| 43 | ‖PeriodicIntegration.spatialPartial i (fun y => φ y ^ 8) x * |
| 44 | ⟪w x, PeriodicIntegration.spatialPartial i w x⟫_ℝ‖ ≤ |
| 45 | 8 * D * (weightedDerivativeNorm φ w x * ‖w x‖) := by |
| 46 | have hφ0 := (hr x).1 |
| 47 | have hi : ‖coordinateVector i‖ = 1 := by simp [coordinateVector] |
| 48 | have hder : ‖PeriodicIntegration.spatialPartial i w x‖ ≤ ‖fderiv ℝ w x‖ := by |
| 49 | simpa only [PeriodicIntegration.spatialPartial, hi, mul_one] using (fderiv ℝ w x).le_opNorm (coordinateVector i) |
| 50 | have hφder := derivative_eighth_bound hφ hr hb x (coordinateVector i) |
| 51 | rw [hi, mul_one] at hφder |
| 52 | have hpow : φ x ^ 7 ≤ φ x ^ 4 := pow_le_pow_of_le_one (hr x).1 (hr x).2 (by norm_num) |
| 53 | rw [Real.norm_eq_abs, abs_mul] |
| 54 | have hinner := (abs_real_inner_le_norm (w x) (PeriodicIntegration.spatialPartial i w x)).trans |
| 55 | (mul_le_mul_of_nonneg_left hder (norm_nonneg _)) |
| 56 | have hh := mul_le_mul hφder hinner (abs_nonneg _) (by positivity : 0 ≤ 8 * φ x ^ 7 * D) |
| 57 | have hp := mul_le_mul_of_nonneg_right hpow |
| 58 | (by positivity : 0 ≤ 8 * D * ‖w x‖ * ‖fderiv ℝ w x‖) |
| 59 | dsimp only [weightedDerivativeNorm] |
| 60 | change |(fderiv ℝ (fun y => φ y ^ 8) x) (coordinateVector i)| * |
| 61 | |⟪w x, PeriodicIntegration.spatialPartial i w x⟫_ℝ| ≤ _ |
| 62 | nlinarith only [hh, hp] |
| 63 | have hint (i : Fin 3) : |∫ x : Space, |
| 64 | PeriodicIntegration.spatialPartial i (fun y => φ y ^ 8) x * |
| 65 | ⟪w x, PeriodicIntegration.spatialPartial i w x⟫_ℝ| ≤ |
| 66 | 8 * D * lpNorm (weightedDerivativeNorm φ w) 2 volume * lpNorm w 2 volume := by |
| 67 | have h := norm_integral_le_of_norm_le (hAW.const_mul (8 * D)) (Eventually.of_forall (hbound i)) |
| 68 | rw [Real.norm_eq_abs, integral_const_mul] at h |
| 69 | have hh := integral_mul_le hA hw₂.norm (fun x => by |
| 70 | exact mul_nonneg (by positivity) (norm_nonneg _)) (fun x => norm_nonneg _) |
| 71 | rw [lpNorm_norm hw₂.1] at hh |
| 72 | exact h.trans ((mul_le_mul_of_nonneg_left hh (by positivity)).trans_eq (by ring)) |
| 73 | unfold diffusionFlux |
| 74 | apply (Finset.abs_sum_le_sum_abs _ _).trans |
| 75 | apply (Finset.sum_le_sum (fun i _ => hint i)).trans_eq |
| 76 | simp |
| 77 | ring |
| 78 | |
| 79 | theorem transportFlux_le {φ : Space → ℝ} {w v : Space → Space} {D U : ℝ} |
| 80 | (hφ : ContDiff ℝ ∞ φ) (hc : HasCompactSupport φ) (hw : ContDiff ℝ ∞ w) |
| 81 | (hr : ∀ x, φ x ∈ Icc (0 : ℝ) 1) (hD : 0 ≤ D) (hU : 0 ≤ U) |
| 82 | (hb : ∀ x, ‖fderiv ℝ φ x‖ ≤ D) (hw₂ : MemLp w 2) |
| 83 | (hv : ∀ x, ‖v x‖ ≤ ‖w x‖ + U) : |
| 84 | |transportFlux (fun x => φ x ^ 8) w v| ≤ |
| 85 | 8 * D * (lpNorm (fourthWeight φ (fun x => ‖w x‖)) 6 volume ^ (3 / 2 : ℝ) * |
| 86 | lpNorm w 2 volume ^ (3 / 2 : ℝ) + U * lpNorm w 2 volume ^ 2) := by |
| 87 | have hpc : HasCompactSupport (fun x => φ x ^ 7) := hc.comp_left (g := fun r : ℝ => r ^ 7) (by norm_num) |
| 88 | have hQ : Integrable (fun x => φ x ^ 7 * ‖w x‖ ^ 3) := |
| 89 | R3CompactIntegration.integrable_mul (hφ.continuous.pow 7) (hw.continuous.norm.pow 3) hpc |
| 90 | have hW : Integrable (fun x => ‖w x‖ ^ 2) := (memLp_two_iff_integrable_sq hw₂.norm.1).mp hw₂.norm |
| 91 | have hbound (x : Space) : ‖fderiv ℝ (fun y => φ y ^ 8) x (v x) * ‖w x‖ ^ 2‖ ≤ |
| 92 | 8 * D * (φ x ^ 7 * ‖w x‖ ^ 3 + U * ‖w x‖ ^ 2) := by |
| 93 | have h := derivative_eighth_bound hφ hr hb x (v x) |
| 94 | have hφ7 : 0 ≤ φ x ^ 7 := pow_nonneg (hr x).1 _ |
| 95 | have hφ1 : φ x ^ 7 ≤ 1 := pow_le_one₀ (hr x).1 (hr x).2 |
| 96 | have hv' := mul_le_mul_of_nonneg_left (hv x) (by positivity : 0 ≤ 8 * φ x ^ 7 * D) |
| 97 | have hh := mul_le_mul_of_nonneg_right (h.trans hv') (sq_nonneg ‖w x‖) |
| 98 | have hl := mul_le_mul_of_nonneg_right hφ1 (by positivity : 0 ≤ 8 * D * U * ‖w x‖ ^ 2) |
| 99 | rw [Real.norm_eq_abs, abs_mul, abs_of_nonneg (sq_nonneg ‖w x‖)] |
| 100 | nlinarith only [hh, hl] |
| 101 | have hmajor : Integrable (fun x => 8 * D * (φ x ^ 7 * ‖w x‖ ^ 3 + U * ‖w x‖ ^ 2)) := |
| 102 | (hQ.add (hW.const_mul U)).const_mul (8 * D) |
| 103 | have h := norm_integral_le_of_norm_le hmajor (Eventually.of_forall hbound) |
| 104 | rw [Real.norm_eq_abs, integral_const_mul, integral_add hQ (hW.const_mul U), integral_const_mul, |
| 105 | ← lpNorm_two_sq hw₂.1] at h |
| 106 | have hB : MemLp (fourthWeight φ (fun x => ‖w x‖)) 6 := by |
| 107 | have hpc4 : HasCompactSupport (fun x => φ x ^ 4 * ‖w x‖) := |
| 108 | (hc.comp_left (g := fun r : ℝ => r ^ 4) (by norm_num)).mul_right |
| 109 | exact ((hφ.continuous.pow 4).mul hw.continuous.norm).memLp_of_hasCompactSupport |
| 110 | hpc4 |
| 111 | have hQbound := cubic_lpNorm hφ.continuous.measurable hw.continuous.norm.measurable hr |
| 112 | (fun x => norm_nonneg _) hw₂.norm hB |
| 113 | rw [lpNorm_norm hw₂.1, lpNorm_one_eq_integral_norm hQ.1] at hQbound |
| 114 | have he (x : Space) : ‖φ x ^ 7 * ‖w x‖ ^ 3‖ = φ x ^ 7 * ‖w x‖ ^ 3 := |
| 115 | Real.norm_of_nonneg (mul_nonneg (pow_nonneg (hr x).1 _) (by positivity)) |
| 116 | simp only [he] at hQbound |
| 117 | exact h.trans (mul_le_mul_of_nonneg_left (add_le_add hQbound le_rfl) (by positivity)) |
| 118 | |
| 119 | end NavierStokes.R3EnergyBoundary |