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.PacketCorrectionConstants |
| 2 | import Mathlib.Analysis.Real.Sqrt |
| 3 | |
| 4 | /-! Explicit scalar choices for the actual drift-aware correction budget. |
| 5 | The error target is exp(-sqrt X), with X=k^ϑ in the source construction. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerPacketCorrectionScalar |
| 10 | |
| 11 | open Set |
| 12 | |
| 13 | def delta (X : ℝ) : ℝ := Real.exp (-Real.sqrt X) |
| 14 | |
| 15 | def residual (k X : ℝ) : ℝ := 2*Real.exp (-(7/10)*X*Real.log k) |
| 16 | |
| 17 | def initialRadius (R M Rc : ℝ) : ℝ := 1/(1+8*R+4*M*Rc+Rc) |
| 18 | |
| 19 | theorem delta_pos (X : ℝ) : 0 < delta X := Real.exp_pos _ |
| 20 | |
| 21 | theorem delta_le_one (X : ℝ) : delta X ≤ 1 := |
| 22 | Real.exp_le_one_iff.mpr (neg_nonpos.mpr (Real.sqrt_nonneg X)) |
| 23 | |
| 24 | theorem residual_pos (k X : ℝ) : 0 < residual k X := |
| 25 | mul_pos (by norm_num) (Real.exp_pos _) |
| 26 | |
| 27 | /-- One polynomial inverse radius meets both packet-series and pressure- |
| 28 | inverse absorption requirements. -/ |
| 29 | theorem initialRadius_bounds (R M Rc : ℝ) (hR : 0 ≤ R) (hM : 0 ≤ M) (hRc : 0 ≤ Rc) : |
| 30 | 0 < initialRadius R M Rc ∧ initialRadius R M Rc*(4*R) ≤ 1/2 ∧ |
| 31 | 4*M*(initialRadius R M Rc*Rc) ≤ 1 ∧ initialRadius R M Rc*Rc ≤ 1 := by |
| 32 | have hd : 0 < 1+8*R+4*M*Rc+Rc := by positivity |
| 33 | have hmc : 0 ≤ M*Rc := mul_nonneg hM hRc |
| 34 | unfold initialRadius |
| 35 | refine ⟨one_div_pos.mpr hd, ?_, ?_, ?_⟩ |
| 36 | · rw [div_mul_eq_mul_div,one_mul,div_le_iff₀ hd] |
| 37 | nlinarith |
| 38 | · rw [show 4*M*(1/(1+8*R+4*M*Rc+Rc)*Rc) = |
| 39 | (4*M*Rc)/(1+8*R+4*M*Rc+Rc) by ring, div_le_iff₀ hd] |
| 40 | nlinarith |
| 41 | · rw [div_mul_eq_mul_div,one_mul,div_le_iff₀ hd] |
| 42 | nlinarith |
| 43 | |
| 44 | /-- The actual residual envelope wins over the Gronwall factor with an |
| 45 | explicit linear bound on the source growth cost. -/ |
| 46 | theorem residual_small (C T k X : ℝ) (hX : 64 ≤ X) (hk : 1 ≤ Real.log k) |
| 47 | (hgrowth : 3*C*T ≤ X/4) : |
| 48 | 2*residual k X*Real.exp (3*C*T) ≤ delta X/2 := by |
| 49 | have hX0 : 0 ≤ X := by linarith |
| 50 | have hs : Real.sqrt X ≤ X/8 := |
| 51 | (Real.sqrt_le_left (by linarith)).mpr (by nlinarith) |
| 52 | have hl : Real.log 8 ≤ X/8 := |
| 53 | (Real.log_le_sub_one_of_pos (by norm_num : (0 : ℝ) < 8)).trans (by linarith) |
| 54 | have hxlog : X ≤ X*Real.log k := le_mul_of_one_le_right hX0 hk |
| 55 | have he : Real.log 8 + (-(7/10)*X*Real.log k+3*C*T) ≤ -Real.sqrt X := by |
| 56 | nlinarith only [hX0,hs,hl,hxlog,hgrowth] |
| 57 | have hh := Real.exp_le_exp.mpr he |
| 58 | rw [Real.exp_add,Real.exp_log (by norm_num : (0 : ℝ) < 8),Real.exp_add] at hh |
| 59 | unfold residual delta |
| 60 | nlinarith only [hh] |
| 61 | |
| 62 | /-- The two elementary frequency guards control the radius loss caused |
| 63 | by the actual O(1/k) drift and the chosen error target. -/ |
| 64 | theorem radius_decay (C T D ρ0 k X : ℝ) (hk : 0 < k) |
| 65 | (hfrequency : 8*C*T*D ≤ ρ0*k) |
| 66 | (herror : 8*C*T ≤ ρ0*Real.exp (Real.sqrt X)) : |
| 67 | 2*C*(D/k+delta X)*T ≤ ρ0/2 := by |
| 68 | have hf : 8*C*T*(D/k) ≤ ρ0 := by |
| 69 | calc |
| 70 | _ = (8*C*T*D)/k := by ring |
| 71 | _ ≤ ρ0 := (div_le_iff₀ hk).mpr hfrequency |
| 72 | have he : 8*C*T*delta X ≤ ρ0 := by |
| 73 | rw [delta,Real.exp_neg,← div_eq_mul_inv] |
| 74 | exact (div_le_iff₀ (Real.exp_pos _)).mpr herror |
| 75 | nlinarith only [hf,he] |
| 76 | |
| 77 | def radius (T C D ρ0 k X : ℝ) : C(Icc (0 : ℝ) T,ℝ) := |
| 78 | ⟨fun t => ρ0-2*C*(D/k+delta X)*t.val, |
| 79 | continuous_const.sub (continuous_const.mul continuous_subtype_val)⟩ |
| 80 | |
| 81 | theorem radius_bounds (T C D ρ0 k X : ℝ) (hC : 0 ≤ C) (hD : 0 ≤ D) (hk : 0 < k) |
| 82 | (hdecay : 2*C*(D/k+delta X)*T ≤ ρ0/2) (t : Icc (0 : ℝ) T) : |
| 83 | ρ0/2 ≤ radius T C D ρ0 k X t ∧ radius T C D ρ0 k X t ≤ ρ0 := by |
| 84 | have hs : 0 ≤ 2*C*(D/k+delta X) := by |
| 85 | exact mul_nonneg (mul_nonneg (by norm_num) hC) |
| 86 | (add_nonneg (div_nonneg hD hk.le) (delta_pos X).le) |
| 87 | have hu := mul_nonneg hs t.property.1 |
| 88 | have hl := (mul_le_mul_of_nonneg_left t.property.2 hs).trans hdecay |
| 89 | change ρ0/2 ≤ ρ0-2*C*(D/k+delta X)*t.val ∧ ρ0-2*C*(D/k+delta X)*t.val ≤ ρ0 |
| 90 | constructor <;> linarith |
| 91 | |
| 92 | end EulerPacketCorrectionScalar |