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 Mathlib.Analysis.Calculus.Deriv.MeanValue |
| 2 | import Mathlib.Analysis.SpecialFunctions.ExpDeriv |
| 3 | import Mathlib.Tactic.Linarith |
| 4 | import Mathlib.Tactic.Ring |
| 5 | |
| 6 | /-! |
| 7 | # A scalar bound for the forced energy inequality |
| 8 | |
| 9 | The integrating factor controls an energy whose time derivative is bounded by |
| 10 | the energy plus a constant. Only derivatives in the interior of the time |
| 11 | interval are required. |
| 12 | -/ |
| 13 | |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open Set |
| 18 | |
| 19 | namespace NavierStokesR3.ScalarEnergyBound |
| 20 | |
| 21 | /-- The shifted energy has a nonincreasing integrating factor. -/ |
| 22 | theorem forced_gronwall_weighted {T C : ℝ} {E E' : ℝ → ℝ} |
| 23 | (hT : 0 ≤ T) (hcont : ContinuousOn E (Icc 0 T)) (hinitial : E 0 = 0) |
| 24 | (hderiv : ∀ t ∈ Ioo 0 T, HasDerivAt E (E' t) t) |
| 25 | (hbound : ∀ t ∈ Ioo 0 T, E' t ≤ E t + C) : |
| 26 | ∀ t ∈ Icc 0 T, (E t + C) * Real.exp (-t) ≤ C := by |
| 27 | let G : ℝ → ℝ := fun t => Real.exp (-t) * (E t + C) |
| 28 | let G' : ℝ → ℝ := fun t => Real.exp (-t) * (E' t - (E t + C)) |
| 29 | have hgcont : ContinuousOn G (Icc 0 T) := |
| 30 | (Real.continuous_exp.comp continuous_id.neg).continuousOn.mul |
| 31 | (hcont.add continuousOn_const) |
| 32 | have hgderiv (t : ℝ) (ht : t ∈ Ioo 0 T) : HasDerivAt G (G' t) t := by |
| 33 | have hexp := (hasDerivAt_id t).neg.exp |
| 34 | convert! hexp.mul ((hderiv t ht).add_const C) using 1 |
| 35 | try dsimp [G, G'] |
| 36 | ring |
| 37 | have hG : AntitoneOn G (Icc 0 T) := by |
| 38 | apply antitoneOn_of_hasDerivWithinAt_nonpos (convex_Icc 0 T) hgcont |
| 39 | · intro t ht |
| 40 | exact (hgderiv t (by simpa only [interior_Icc] using ht)).hasDerivWithinAt |
| 41 | · intro t ht |
| 42 | exact mul_nonpos_of_nonneg_of_nonpos (Real.exp_pos _).le |
| 43 | (sub_nonpos.mpr (hbound t (by simpa only [interior_Icc] using ht))) |
| 44 | intro t ht |
| 45 | have hle := hG ⟨le_rfl, hT⟩ ht ht.1 |
| 46 | simpa [G, hinitial, mul_comm] using hle |
| 47 | |
| 48 | /-- The scalar forced Gronwall estimate with zero initial energy. -/ |
| 49 | theorem forced_gronwall {T C : ℝ} {E E' : ℝ → ℝ} |
| 50 | (hT : 0 ≤ T) (hcont : ContinuousOn E (Icc 0 T)) (hinitial : E 0 = 0) |
| 51 | (hderiv : ∀ t ∈ Ioo 0 T, HasDerivAt E (E' t) t) |
| 52 | (hbound : ∀ t ∈ Ioo 0 T, E' t ≤ E t + C) : |
| 53 | ∀ t ∈ Icc 0 T, E t ≤ C * (Real.exp t - 1) := by |
| 54 | intro t ht |
| 55 | have hweighted := forced_gronwall_weighted hT hcont hinitial hderiv hbound t ht |
| 56 | have hmul := mul_le_mul_of_nonneg_right hweighted (Real.exp_pos t).le |
| 57 | have hexp : Real.exp (-t) * Real.exp t = 1 := by |
| 58 | rw [← Real.exp_add] |
| 59 | simp |
| 60 | rw [mul_assoc, hexp, mul_one] at hmul |
| 61 | calc |
| 62 | E t ≤ C * Real.exp t - C := by linarith |
| 63 | _ = C * (Real.exp t - 1) := by ring |
| 64 | |
| 65 | /-- A bound independent of the endpoint of an interval contained in `[0, 1]`. -/ |
| 66 | theorem forced_gronwall_uniform {T C : ℝ} {E E' : ℝ → ℝ} |
| 67 | (hT : 0 ≤ T) (hT1 : T ≤ 1) (hC : 0 ≤ C) |
| 68 | (hcont : ContinuousOn E (Icc 0 T)) (hinitial : E 0 = 0) |
| 69 | (hderiv : ∀ t ∈ Ioo 0 T, HasDerivAt E (E' t) t) |
| 70 | (hbound : ∀ t ∈ Ioo 0 T, E' t ≤ E t + C) : |
| 71 | ∀ t ∈ Icc 0 T, E t ≤ C * Real.exp 1 := by |
| 72 | intro t ht |
| 73 | calc |
| 74 | E t ≤ C * (Real.exp t - 1) := |
| 75 | forced_gronwall hT hcont hinitial hderiv hbound t ht |
| 76 | _ ≤ C * Real.exp t := mul_le_mul_of_nonneg_left (by linarith) hC |
| 77 | _ ≤ C * Real.exp 1 := |
| 78 | mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr (ht.2.trans hT1)) hC |
| 79 | |
| 80 | end NavierStokesR3.ScalarEnergyBound |