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.SobolevViscousEnergy |
| 2 | import Mathlib.Analysis.Calculus.Deriv.MeanValue |
| 3 | |
| 4 | /-! Squared metric stability with a viscosity-sized source, including zero energy. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerSquaredMetricStability |
| 9 | |
| 10 | open MeasureTheory Set InnerProductSpace Real EulerMetricEnergyEvolution |
| 11 | open scoped Topology |
| 12 | |
| 13 | variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℝ H] |
| 14 | |
| 15 | /-- A literal transport-pressure-heat equation gives a squared metric differential bound without differentiating a zero norm. -/ |
| 16 | theorem metric_derivative_bound (K : ℝ → H →L[ℝ] H) (e : ℝ → H) |
| 17 | (t ν c β h L ε M : ℝ) (K' : H →L[ℝ] H) (e' transport pressure forcing lap : H) |
| 18 | (hc : 0 < c) (hν : 0 ≤ ν) (hβ : 0 ≤ β) (hh : 0 ≤ h) (hL : 0 ≤ L) |
| 19 | (hK : HasDerivAt K K' t) (he : HasDerivAt e e' t) |
| 20 | (hsym : ∀ v w, ⟪K t v,w⟫_ℝ = ⟪v,K t w⟫_ℝ) |
| 21 | (hcoer : c^2*‖e t‖^2 ≤ ⟪K t (e t),e t⟫_ℝ) |
| 22 | (heq : e'+transport+pressure=forcing+ν • lap) |
| 23 | (hp : ⟪K t (e t),pressure⟫_ℝ=0) |
| 24 | (ht : |⟪K t (e t),transport⟫_ℝ| ≤ β*‖e t‖^2) |
| 25 | (hlap : ⟪K t (e t),lap⟫_ℝ ≤ h*‖e t‖^2) |
| 26 | (hf : ‖forcing‖ ≤ L*‖e t‖+ε*M) : |
| 27 | deriv (fun s => ⟪K s (e s),e s⟫_ℝ) t ≤ |
| 28 | ((‖K'‖+2*β+2*ν*h+2*‖K t‖*L+1)/c^2)*⟪K t (e t),e t⟫_ℝ+ |
| 29 | (‖K t‖*M)^2*ε^2 := by |
| 30 | have hd := metric_energy_evolution K e t K' e' transport pressure (forcing+ν • lap) hK he hsym heq hp |
| 31 | rw [hd.deriv] |
| 32 | have hb := energy_derivative_bound (K t) K' (e t) transport forcing β hβ ht |
| 33 | have hheat := mul_le_mul_of_nonneg_left hlap (mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) hν) |
| 34 | have hforce := mul_le_mul_of_nonneg_left hf (by positivity : 0 ≤ 2*‖K t‖*‖e t‖) |
| 35 | have hy := sq_nonneg (‖e t‖-‖K t‖*M*ε) |
| 36 | have hraw : ⟪K' (e t),e t⟫_ℝ+2*⟪K t (e t),forcing+ν • lap⟫_ℝ-2*⟪K t (e t),transport⟫_ℝ ≤ |
| 37 | (‖K'‖+2*β+2*ν*h+2*‖K t‖*L+1)*‖e t‖^2+(‖K t‖*M)^2*ε^2 := by |
| 38 | rw [inner_add_right,real_inner_smul_right] |
| 39 | nlinarith |
| 40 | have hn : ‖e t‖^2 ≤ ⟪K t (e t),e t⟫_ℝ/c^2 := (le_div_iff₀ (sq_pos_of_pos hc)).mpr (by nlinarith [hcoer]) |
| 41 | have ha : 0 ≤ ‖K'‖+2*β+2*ν*h+2*‖K t‖*L+1 := by positivity |
| 42 | calc |
| 43 | _ ≤ (‖K'‖+2*β+2*ν*h+2*‖K t‖*L+1)*‖e t‖^2+(‖K t‖*M)^2*ε^2 := hraw |
| 44 | _ ≤ (‖K'‖+2*β+2*ν*h+2*‖K t‖*L+1)*(⟪K t (e t),e t⟫_ℝ/c^2)+(‖K t‖*M)^2*ε^2 := |
| 45 | add_le_add (mul_le_mul_of_nonneg_left hn ha) le_rfl |
| 46 | _ = _ := by ring |
| 47 | |
| 48 | /-- A genuine interior differential inequality yields a finite-interval linear-growth bound, including both endpoints. -/ |
| 49 | theorem linear_growth_bound (E E' : ℝ → ℝ) (A B T : ℝ) (hA : 0 ≤ A) (hB : 0 ≤ B) (hT : 0 ≤ T) |
| 50 | (hcont : ContinuousOn E (Icc 0 T)) (hzero : E 0 ≤ 0) |
| 51 | (hder : ∀ t ∈ Ioo 0 T, HasDerivAt E (E' t) t) |
| 52 | (hineq : ∀ t ∈ Ioo 0 T, E' t ≤ A*E t+B) : |
| 53 | ∀ t ∈ Icc 0 T, E t ≤ B*T*exp (A*T) := by |
| 54 | let F := fun t : ℝ => exp (-A*t)*E t-B*t |
| 55 | have hFc : ContinuousOn F (Icc 0 T) := |
| 56 | (((Real.continuous_exp.comp (show Continuous (fun t : ℝ => -A*t) from continuous_const.mul continuous_id)).continuousOn).mul hcont).sub |
| 57 | (continuous_const.mul continuous_id).continuousOn |
| 58 | have hFd (t : ℝ) (ht : t ∈ Ioo 0 T) : |
| 59 | HasDerivAt F (exp (-A*t)*(E' t-A*E t)-B) t := by |
| 60 | have hlin : HasDerivAt (fun s : ℝ => -A*s) (-A) t := by |
| 61 | simpa only [id_eq,mul_one] using (hasDerivAt_id t).const_mul (-A) |
| 62 | have hlast : HasDerivAt (fun s : ℝ => B*s) B t := by |
| 63 | simpa only [id_eq,mul_one] using (hasDerivAt_id t).const_mul B |
| 64 | exact ((hlin.exp.mul (hder t ht)).sub hlast).congr_deriv (by ring) |
| 65 | have hanti : AntitoneOn F (Icc 0 T) := by |
| 66 | apply antitoneOn_of_deriv_nonpos (convex_Icc 0 T) hFc |
| 67 | · intro t ht |
| 68 | rw [interior_Icc] at ht |
| 69 | exact (hFd t ht).differentiableAt.differentiableWithinAt |
| 70 | · intro t ht |
| 71 | rw [interior_Icc] at ht |
| 72 | rw [(hFd t ht).deriv] |
| 73 | have h := mul_le_mul_of_nonneg_left (hineq t ht) (exp_pos (-A*t)).le |
| 74 | have hexp : exp (-A*t) ≤ 1 := exp_le_one_iff.mpr (by nlinarith [ht.1]) |
| 75 | have hBexp := mul_le_mul_of_nonneg_right hexp hB |
| 76 | nlinarith |
| 77 | intro t ht |
| 78 | have hF := hanti ⟨le_rfl,hT⟩ ht ht.1 |
| 79 | have hscaled : exp (-A*t)*E t ≤ B*t := by |
| 80 | dsimp [F] at hF |
| 81 | simp only [mul_zero,exp_zero,one_mul,sub_zero] at hF |
| 82 | linarith |
| 83 | have heq : exp (A*t)*exp (-A*t)=1 := by rw [← exp_add,show A*t+ -A*t=0 by ring,exp_zero] |
| 84 | have hE : E t ≤ B*t*exp (A*t) := by |
| 85 | have h := mul_le_mul_of_nonneg_left hscaled (exp_pos (A*t)).le |
| 86 | calc |
| 87 | E t = exp (A*t)*(exp (-A*t)*E t) := by rw [← mul_assoc,heq,one_mul] |
| 88 | _ ≤ exp (A*t)*(B*t) := h |
| 89 | _ = _ := by ring |
| 90 | exact hE.trans (mul_le_mul (mul_le_mul_of_nonneg_left ht.2 hB) |
| 91 | (exp_le_exp.mpr (mul_le_mul_of_nonneg_left ht.2 hA)) |
| 92 | (exp_pos _).le (mul_nonneg hB hT)) |
| 93 | |
| 94 | end EulerSquaredMetricStability |