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.OrdinaryEulerL2Stability |
| 2 | |
| 3 | /-! A uniform short-time bound for a nonnegative genuine energy with |
| 4 | a quadratic differential upper bound. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerOrdinarySobolev |
| 9 | |
| 10 | open Set |
| 11 | |
| 12 | theorem quadratic_energy_bound (T C : ℝ) (hT : 0 ≤ T) |
| 13 | (X X' : ℝ → ℝ) (hX : ContinuousOn X (Icc 0 T)) |
| 14 | (hpos : ∀ t ∈ Icc 0 T, 0 ≤ X t) |
| 15 | (hd : ∀ t ∈ Icc 0 T, HasDerivWithinAt X (X' t) (Icc 0 T) t) |
| 16 | (hb : ∀ t ∈ Icc 0 T, X' t ≤ C*(1+X t)^2) |
| 17 | (hC : 0 ≤ C) (hsmall : C*T ≤ (1+X 0)⁻¹/2) |
| 18 | (t : ℝ) (ht : t ∈ Icc 0 T) : X t ≤ 2*X 0+1 := by |
| 19 | have hz : (0 : ℝ) ∈ Icc 0 T := ⟨le_rfl,hT⟩ |
| 20 | have hp (r : ℝ) (hr : r ∈ Icc 0 T) : 0 < 1+X r := by linarith [hpos r hr] |
| 21 | let f (r : ℝ) := (1+X r)⁻¹+C*r |
| 22 | let f' (r : ℝ) := -(X' r)/(1+X r)^2+C |
| 23 | have hc : ContinuousOn f (Icc 0 T) := |
| 24 | ((continuousOn_const.add hX).inv₀ (fun r hr => (hp r hr).ne')).add |
| 25 | (continuous_const.mul continuous_id).continuousOn |
| 26 | have hfd (r : ℝ) (hr : r ∈ Icc 0 T) : HasDerivWithinAt f (f' r) (Icc 0 T) r := by |
| 27 | have hi := ((hd r hr).const_add 1).inv (hp r hr).ne' |
| 28 | have hl := ((hasDerivAt_id r).const_mul C).hasDerivWithinAt (s := Icc 0 T) |
| 29 | simpa only [f,f',id_eq,mul_one,Pi.inv_apply] using hi.fun_add hl |
| 30 | have hfn (r : ℝ) (hr : r ∈ Icc 0 T) : 0 ≤ f' r := by |
| 31 | have hdv : X' r/(1+X r)^2 ≤ C := (div_le_iff₀ (sq_pos_of_pos (hp r hr))).mpr (by |
| 32 | simpa only [mul_comm C] using hb r hr) |
| 33 | dsimp [f'] |
| 34 | rw [neg_div] |
| 35 | linarith |
| 36 | have hm : MonotoneOn f (Icc 0 T) := |
| 37 | monotoneOn_of_hasDerivWithinAt_nonneg (convex_Icc 0 T) hc |
| 38 | (fun r hr => (hfd r (interior_subset hr)).mono interior_subset) |
| 39 | (fun r hr => hfn r (interior_subset hr)) |
| 40 | have hmono := hm hz ht ht.1 |
| 41 | dsimp [f] at hmono |
| 42 | have hCt : C*t ≤ (1+X 0)⁻¹/2 := |
| 43 | (mul_le_mul_of_nonneg_left ht.2 hC).trans hsmall |
| 44 | have hi : (1 : ℝ)/(2*(1+X 0)) ≤ 1/(1+X t) := by |
| 45 | have he : (1 : ℝ)/(2*(1+X 0))=(1+X 0)⁻¹/2 := by |
| 46 | rw [mul_comm 2,div_mul_eq_div_div,one_div] |
| 47 | rw [he,one_div] |
| 48 | linarith |
| 49 | have hcross := (div_le_div_iff₀ (mul_pos (by norm_num) (hp 0 hz)) (hp t ht)).mp hi |
| 50 | nlinarith |
| 51 | |
| 52 | end EulerOrdinarySobolev |