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.EulerProof |
| 2 | |
| 3 | /-! The scalar comparison lemma with genuine one-sided endpoint derivatives. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerOrdinarySobolev |
| 8 | |
| 9 | open Set Real |
| 10 | |
| 11 | theorem quadratic_stability_within (X X' : ℝ → ℝ) (C ε T : ℝ) |
| 12 | (hC : 0 < C) (hε : 0 < ε) (_hT : 0 ≤ T) |
| 13 | (hsmall : 2*ε*exp (3*C*T) ≤ 1/2) |
| 14 | (hcont : ContinuousOn X (Icc 0 T)) (hinit : X 0 ≤ ε) |
| 15 | (hder : ∀ t ∈ Ico 0 T, HasDerivWithinAt X (X' t) (Icc 0 T) t) |
| 16 | (hineq : ∀ t ∈ Ico 0 T, X' t ≤ C*(X t+(X t)^2)) : |
| 17 | ∀ t ∈ Icc 0 T, X t ≤ 2*ε*exp (3*C*T) := by |
| 18 | let F : ℝ → ℝ := fun t => 2*ε*exp (3*C*t) |
| 19 | have hF (t : ℝ) : HasDerivAt F (3*C*F t) t := by |
| 20 | have hh := ((hasDerivAt_id t).const_mul (3*C)).exp.const_mul (2*ε) |
| 21 | simp only [id_eq,mul_one] at hh |
| 22 | change HasDerivAt (fun s => 2*ε*exp (3*C*s)) (3*C*(2*ε*exp (3*C*t))) t |
| 23 | exact hh.congr_deriv (by ring) |
| 24 | have hFp (t : ℝ) : 0 < F t := by dsimp [F]; positivity |
| 25 | have hbound : ∀ t ∈ Icc 0 T, X t ≤ F t := by |
| 26 | apply image_le_of_deriv_right_lt_deriv_boundary hcont |
| 27 | (fun t ht => (hder t ht).mono_of_mem_nhdsWithin (Icc_mem_nhdsGE_of_mem ht)) |
| 28 | · simpa only [F,mul_zero,exp_zero,mul_one] using (hinit.trans (by linarith : ε ≤ 2*ε)) |
| 29 | · exact hF |
| 30 | · intro t ht he |
| 31 | have hFt : F t ≤ 1/2 := by |
| 32 | calc |
| 33 | F t ≤ 2*ε*exp (3*C*T) := by dsimp [F]; gcongr; exact ht.2.le |
| 34 | _ ≤ _ := hsmall |
| 35 | have hb := hineq t ht |
| 36 | rw [he] at hb |
| 37 | have hfsq : (F t)^2 ≤ F t := by nlinarith [hFp t] |
| 38 | have hh := mul_le_mul_of_nonneg_left hfsq hC.le |
| 39 | nlinarith [mul_pos hC (hFp t)] |
| 40 | intro t ht |
| 41 | apply (hbound t ht).trans |
| 42 | dsimp [F] |
| 43 | gcongr |
| 44 | exact ht.2 |
| 45 | |
| 46 | end EulerOrdinarySobolev |