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.PacketCorrectionScalar |
| 2 | import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics |
| 3 | |
| 4 | /-! The literal source truncation floor(k^ϑ), ϑ=10⁻⁶, meets the packet |
| 5 | and correction guards from finitely many fixed-cost bounds. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerPacketSourceFrequency |
| 10 | |
| 11 | open Real Filter EulerPacketCoarseMajorant EulerPacketCorrectionScalar |
| 12 | |
| 13 | def theta : ℝ := 1/1000000 |
| 14 | def expansion (k : ℝ) : ℝ := k^theta |
| 15 | def truncation (k : ℝ) : ℕ := Nat.floor (expansion k) |
| 16 | def smallPower (k : ℝ) : ℝ := k^(theta/100) |
| 17 | |
| 18 | theorem expansion_pos (k : ℝ) (hk : 0 < k) : 0 < expansion k := |
| 19 | Real.rpow_pos_of_pos hk _ |
| 20 | |
| 21 | theorem truncation_bounds (k : ℝ) (hk : 1 ≤ k) : |
| 22 | 1 ≤ truncation k ∧ expansion k-1 ≤ (truncation k : ℝ) ∧ |
| 23 | (truncation k : ℝ) ≤ expansion k := by |
| 24 | have hx : 1 ≤ expansion k := Real.one_le_rpow hk (by norm_num [theta]) |
| 25 | exact ⟨(Nat.one_le_floor_iff _).mpr hx,(Nat.sub_one_lt_floor _).le, |
| 26 | Nat.floor_le (zero_le_one.trans hx)⟩ |
| 27 | |
| 28 | theorem smallPower_le_expansion (k : ℝ) (hk : 1 ≤ k) : smallPower k ≤ expansion k := |
| 29 | Real.rpow_le_rpow_of_exponent_le hk (by norm_num [theta]) |
| 30 | |
| 31 | theorem smallPower_le_frequency (k : ℝ) (hk : 1 ≤ k) : smallPower k ≤ k := by |
| 32 | simpa only [Real.rpow_one,smallPower] using |
| 33 | Real.rpow_le_rpow_of_exponent_le (x := k) hk (by norm_num [theta] : theta/100 ≤ 1) |
| 34 | |
| 35 | theorem smallPower_le_gradeCap (k : ℝ) (hk : 1 ≤ k) : smallPower k ≤ k^(1/100 : ℝ) := |
| 36 | Real.rpow_le_rpow_of_exponent_le hk (by norm_num [theta]) |
| 37 | |
| 38 | theorem tailBase_frequency (R H C k : ℝ) (hC : 0 ≤ C) (hk : 1 ≤ k) |
| 39 | (hc : tailPolynomialConstant R H C ≤ smallPower k) : |
| 40 | tailBase R H C (truncation k) ≤ k^(1/100 : ℝ) := by |
| 41 | have hk0 : 0 < k := zero_lt_one.trans_le hk |
| 42 | obtain ⟨hn,_,hnx⟩ := truncation_bounds k hk |
| 43 | calc |
| 44 | _ ≤ tailPolynomialConstant R H C*(truncation k : ℝ)^222 := |
| 45 | tailBase_polynomial_bound R H C hC _ hn |
| 46 | _ ≤ smallPower k*(expansion k)^222 := |
| 47 | mul_le_mul hc (pow_le_pow_left₀ (Nat.cast_nonneg _) hnx 222) |
| 48 | (by positivity) (Real.rpow_pos_of_pos hk0 _).le |
| 49 | _ = k^(theta/100+theta*222) := by |
| 50 | unfold smallPower expansion |
| 51 | rw [← Real.rpow_mul_natCast hk0.le,← Real.rpow_add hk0] |
| 52 | norm_num |
| 53 | _ ≤ k^(1/100 : ℝ) := Real.rpow_le_rpow_of_exponent_le hk (by norm_num [theta]) |
| 54 | |
| 55 | /-- The source's very small power is below the exponential margin in |
| 56 | the error target exp(-sqrt(k^ϑ)). -/ |
| 57 | theorem smallPower_le_exp_sqrt (k : ℝ) (hk : 0 < k) : |
| 58 | smallPower k ≤ Real.exp (Real.sqrt (expansion k)) := by |
| 59 | have hx : 0 ≤ expansion k := (expansion_pos k hk).le |
| 60 | have hl := Real.log_le_rpow_div hx (by norm_num : (0 : ℝ) < 1/2) |
| 61 | rw [← Real.sqrt_eq_rpow] at hl |
| 62 | have hlog : Real.log (expansion k)=theta*Real.log k := Real.log_rpow hk theta |
| 63 | have hs := Real.sqrt_nonneg (expansion k) |
| 64 | unfold smallPower |
| 65 | rw [Real.rpow_def_of_pos hk] |
| 66 | apply Real.exp_le_exp.mpr |
| 67 | rw [hlog] at hl |
| 68 | nlinarith only [hl,hs] |
| 69 | |
| 70 | theorem correction_guards (C T D ρ0 k : ℝ) (hk : 1 ≤ k) (hρ : 0 < ρ0) |
| 71 | (hX : 64 ≤ expansion k) (hlog : 1 ≤ Real.log k) |
| 72 | (hgrowth : 12*C*T ≤ smallPower k) |
| 73 | (hdrift : 8*C*T*D/ρ0 ≤ smallPower k) |
| 74 | (herror : 8*C*T/ρ0 ≤ smallPower k) : |
| 75 | 2*residual k (expansion k)*Real.exp (3*C*T) ≤ delta (expansion k)/2 ∧ |
| 76 | 2*C*(D/k+delta (expansion k))*T ≤ ρ0/2 := by |
| 77 | have hk0 : 0 < k := zero_lt_one.trans_le hk |
| 78 | constructor |
| 79 | · apply residual_small C T k (expansion k) hX hlog |
| 80 | have hh := hgrowth.trans (smallPower_le_expansion k hk) |
| 81 | linarith |
| 82 | · apply radius_decay C T D ρ0 k (expansion k) hk0 |
| 83 | · have hh := (div_le_iff₀ hρ).mp (hdrift.trans (smallPower_le_frequency k hk)) |
| 84 | nlinarith only [hh] |
| 85 | · have hh := (div_le_iff₀ hρ).mp (herror.trans (smallPower_le_exp_sqrt k hk0)) |
| 86 | nlinarith only [hh] |
| 87 | |
| 88 | /-- Every finite list of fixed source costs fits the required very small |
| 89 | power after one sufficiently large frequency choice. -/ |
| 90 | theorem fixed_costs_eventually (cost : Finset ℝ) : |
| 91 | ∀ᶠ k : ℝ in atTop, 4 ≤ k ∧ 64 ≤ expansion k ∧ 1 ≤ Real.log k ∧ |
| 92 | ∀ c ∈ cost, c ≤ smallPower k := by |
| 93 | have hpow := _root_.tendsto_rpow_atTop (by norm_num [theta] : 0 < theta/100) |
| 94 | have hcost : ∀ᶠ k : ℝ in atTop, ∀ c ∈ cost, c ≤ smallPower k := by |
| 95 | apply (Finset.eventually_all cost).mpr |
| 96 | intro c _ |
| 97 | exact hpow.eventually_ge_atTop c |
| 98 | filter_upwards [eventually_ge_atTop (4 : ℝ), |
| 99 | (_root_.tendsto_rpow_atTop (by norm_num [theta] : 0 < theta)).eventually_ge_atTop 64, |
| 100 | Real.tendsto_log_atTop.eventually_ge_atTop 1,hcost] with k hk hx hl hc |
| 101 | exact ⟨hk,hx,hl,hc⟩ |
| 102 | |
| 103 | end EulerPacketSourceFrequency |