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.PacketSourceScaleSequence |
| 2 | |
| 3 | /-! Uniform frequency separation for polynomial source sizes. These |
| 4 | costs can be placed in the same finite list as the geometric and pressure |
| 5 | costs, so the starting stage is chosen only once. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerPacketUniformFrequencyScales |
| 10 | |
| 11 | open Real Filter EulerScale EulerPacketSourceScaleBounds |
| 12 | EulerPacketSourceScaleChoice EulerPacketSourceScaleSequence |
| 13 | open scoped Topology |
| 14 | |
| 15 | def parameterEnvelope (J : ℕ) (C c : ℝ) (p q : ℕ) (X : ℝ) (n : ℕ) : ℝ := |
| 16 | C*((J+n : ℕ) : ℝ)^p*(scaleSequence J X n)^q* |
| 17 | exp (c*(scaleSequence J X n/((J-1+n : ℕ) : ℝ)^3)) |
| 18 | |
| 19 | def frequencyCostSpec (A C c : ℝ) (hA : 0 < A) (hC : 0 < C) |
| 20 | (p q N : ℕ) (θ : ℝ) (hθ : 0 < θ) : CostSpec where |
| 21 | d := 1 |
| 22 | B := 3 |
| 23 | N := 2 |
| 24 | a := 2 |
| 25 | b := θ |
| 26 | c := (N : ℝ)*c |
| 27 | C := A*C^N |
| 28 | p := p*N |
| 29 | q := q*N |
| 30 | d_le_two := by norm_num |
| 31 | a_nonneg := by norm_num |
| 32 | a_lt_B := by norm_num |
| 33 | a_le_N := by norm_num |
| 34 | b_pos := hθ |
| 35 | C_pos := mul_pos hA (pow_pos hC N) |
| 36 | |
| 37 | theorem frequencyCost_eq (J : ℕ) (A C c : ℝ) (hA : 0 < A) (hC : 0 < C) |
| 38 | (p q N : ℕ) (θ : ℝ) (hθ : 0 < θ) (X : ℝ) (n : ℕ) : |
| 39 | (frequencyCostSpec A C c hA hC p q N θ hθ).cost J (scaleSequence J X) n= |
| 40 | A*(parameterEnvelope J C c p q X n)^N/(frequency J X n)^θ := by |
| 41 | simp only [frequencyCostSpec,CostSpec.cost,monomialCost,parameterEnvelope, |
| 42 | frequency,mul_pow,← pow_mul,← exp_mul,div_eq_mul_inv,← exp_neg,← exp_nat_mul] |
| 43 | rw [mul_assoc (A*C^N),mul_assoc (A*C^N)] |
| 44 | simp only [mul_assoc,← exp_add] |
| 45 | congr 2 |
| 46 | norm_num only [rpow_ofNat] |
| 47 | ring_nf |
| 48 | |
| 49 | theorem guard_of_cost_le (J : ℕ) (A C c : ℝ) (hA : 0 < A) (hC : 0 < C) |
| 50 | (p q N : ℕ) (θ : ℝ) (hθ : 0 < θ) (X : ℝ) (n : ℕ) |
| 51 | (hcost : (frequencyCostSpec A C c hA hC p q N θ hθ).cost J (scaleSequence J X) n ≤ 1) : |
| 52 | A*(parameterEnvelope J C c p q X n)^N ≤ (frequency J X n)^θ := by |
| 53 | rw [frequencyCost_eq] at hcost |
| 54 | exact (div_le_one (rpow_pos_of_pos (exp_pos _) θ)).mp hcost |
| 55 | |
| 56 | theorem frequency_monotone (J : ℕ) (hJ : 2 ≤ J) (X : ℝ) (hX : 0 ≤ X) : |
| 57 | Monotone (frequency J X) := by |
| 58 | apply monotone_nat_of_le_succ |
| 59 | intro n |
| 60 | have hj : (2 : ℝ) ≤ (J+n : ℕ) := by exact_mod_cast (show 2 ≤ J+n by omega) |
| 61 | have hjp : (0 : ℝ) < (J+n : ℕ) := by linarith only [hj] |
| 62 | have hxall : ∀ m, 0 ≤ scaleSequence J X m := by |
| 63 | intro m |
| 64 | induction m with |
| 65 | | zero => exact hX |
| 66 | | succ m ih => |
| 67 | rw [scaleSequence_succ] |
| 68 | exact mul_nonneg (sq_nonneg _) ih |
| 69 | have hbase : ((J+n : ℕ) : ℝ)+1 ≤ ((J+n : ℕ) : ℝ)^2 := by |
| 70 | nlinarith only [hj,sq_nonneg (((J+n : ℕ) : ℝ)-2)] |
| 71 | have hp := pow_le_pow_left₀ (show 0 ≤ ((J+n : ℕ) : ℝ)+1 by positivity) hbase 2 |
| 72 | have hm := mul_le_mul_of_nonneg_left hp (hxall n) |
| 73 | unfold frequency |
| 74 | apply exp_le_exp.mpr |
| 75 | rw [scaleSequence_succ] |
| 76 | have hcast : ((J+(n+1) : ℕ) : ℝ)=((J+n : ℕ) : ℝ)+1 := by push_cast; ring |
| 77 | rw [hcast] |
| 78 | apply (div_le_div_iff₀ (pow_pos hjp 2) (by positivity)).mpr |
| 79 | nlinarith only [hm] |
| 80 | |
| 81 | theorem frequency_zero_tendsto_atTop (J : ℕ) (hJ : 1 ≤ J) : |
| 82 | Tendsto (fun X : ℝ => frequency J X 0) atTop atTop := by |
| 83 | have hj : (0 : ℝ) < J := by exact_mod_cast (show 0 < J by omega) |
| 84 | have h := tendsto_exp_atTop.comp |
| 85 | ((tendsto_id : Tendsto (fun X : ℝ => X) atTop atTop).atTop_div_const (pow_pos hj 2)) |
| 86 | change Tendsto (fun X : ℝ => exp (X/(J : ℝ)^2)) atTop atTop |
| 87 | exact h |
| 88 | |
| 89 | theorem eventually_all_frequency (J : ℕ) (hJ : 2 ≤ J) (P : ℝ → Prop) |
| 90 | (hP : ∀ᶠ k : ℝ in atTop, P k) : |
| 91 | ∀ᶠ X : ℝ in atTop, ∀ n, P (frequency J X n) := by |
| 92 | obtain ⟨K,hK⟩ := eventually_atTop.mp hP |
| 93 | filter_upwards [eventually_ge_atTop (0 : ℝ), |
| 94 | (frequency_zero_tendsto_atTop J (by omega)).eventually (eventually_ge_atTop K)] with X hX hf |
| 95 | intro n |
| 96 | exact hK _ (hf.trans (frequency_monotone J hJ X hX (Nat.zero_le n))) |
| 97 | |
| 98 | end EulerPacketUniformFrequencyScales |