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.OperatorGevreyCalculus |
| 2 | import Mathlib.Analysis.Calculus.FDeriv.Bilinear |
| 3 | |
| 4 | /-! |
| 5 | # Actual directional word calculus without changing radius |
| 6 | |
| 7 | The word derivative and word sum are the existing ordered evaluations of |
| 8 | the genuine iterated Fréchet derivative. Fixed bounded maps commute with |
| 9 | every word and act boundedly on the same sum, without a dimension factor. |
| 10 | -/ |
| 11 | |
| 12 | /-! ## From `Euler/ParameterWordGevrey.lean` |
| 13 | |
| 14 | The text of `Euler/ParameterWordGevrey.lean`, folded into this file, which was its only importer. -/ |
| 15 | |
| 16 | section |
| 17 | |
| 18 | /-! |
| 19 | # Actual ordered parameter derivatives and their factorial word sums |
| 20 | |
| 21 | The parameter estimates are stated for the genuine iterated Fréchet |
| 22 | derivative. Evaluation on an ordered family of directions gives the mixed |
| 23 | word derivative. Summing all words changes the radius by one fixed alphabet |
| 24 | factor, independent of the derivative order and factorial shift. |
| 25 | -/ |
| 26 | |
| 27 | noncomputable section |
| 28 | |
| 29 | namespace EulerParameterWordGevrey |
| 30 | |
| 31 | open Finset EulerGevrey |
| 32 | |
| 33 | variable {P E ι : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 34 | [NormedAddCommGroup E] [NormedSpace ℝ E] [Fintype ι] |
| 35 | |
| 36 | /-- The actual mixed differential evaluated on an ordered word of directions. -/ |
| 37 | def wordDerivative (directions : ι → P) (f : P → E) {n : ℕ} (w : Fin n → ι) (x : P) : E := |
| 38 | iteratedFDeriv ℝ n f x (fun j => directions (w j)) |
| 39 | |
| 40 | /-- The sum of the actual norms over all ordered words. -/ |
| 41 | def wordSum (directions : ι → P) (f : P → E) (n : ℕ) (x : P) : ℝ := |
| 42 | ∑ w : Fin n → ι, ‖wordDerivative directions f w x‖ |
| 43 | |
| 44 | omit [Fintype ι] in |
| 45 | /-- Unit directions do not enlarge the norm of the actual differential. -/ |
| 46 | theorem wordDerivative_norm (directions : ι → P) (hd : ∀ i, ‖directions i‖ ≤ 1) |
| 47 | (f : P → E) {n : ℕ} (w : Fin n → ι) (x : P) : |
| 48 | ‖wordDerivative directions f w x‖ ≤ ‖iteratedFDeriv ℝ n f x‖ := by |
| 49 | have hp : (∏ j : Fin n, ‖directions (w j)‖) ≤ 1 := |
| 50 | prod_le_one (fun _ _ => norm_nonneg _) (fun j _ => hd (w j)) |
| 51 | exact ((iteratedFDeriv ℝ n f x).le_opNorm (fun j => directions (w j))).trans |
| 52 | (by simpa only [mul_one] using mul_le_mul_of_nonneg_left hp (norm_nonneg _)) |
| 53 | |
| 54 | /-- Summing the actual word norms costs precisely the number of words. -/ |
| 55 | theorem wordSum_le (directions : ι → P) (hd : ∀ i, ‖directions i‖ ≤ 1) |
| 56 | (f : P → E) (n : ℕ) (x : P) : |
| 57 | wordSum directions f n x ≤ (Fintype.card ι : ℝ)^n * ‖iteratedFDeriv ℝ n f x‖ := by |
| 58 | have h := sum_le_sum (fun (w : Fin n → ι) (_ : w ∈ univ) => wordDerivative_norm directions hd f w x) |
| 59 | simpa only [wordSum, sum_const, card_univ, Fintype.card_fun, Fintype.card_fin, |
| 60 | nsmul_eq_mul, Nat.cast_pow] using h |
| 61 | |
| 62 | /-- The actual word sum has a factorial bound with one dimension-dependent radius enlargement. -/ |
| 63 | theorem wordSum_gevrey (directions : ι → P) (hd : ∀ i, ‖directions i‖ ≤ 1) |
| 64 | (f : P → E) (R C : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (d : ℕ) |
| 65 | (hb : ∀ n x, ‖iteratedFDeriv ℝ n f x‖ ≤ C*majorant R d n) |
| 66 | (n : ℕ) (x : P) : |
| 67 | wordSum directions f n x ≤ |
| 68 | C * majorant (max 1 (Fintype.card ι : ℝ) * R) d n := by |
| 69 | let m : ℝ := max 1 (Fintype.card ι : ℝ) |
| 70 | have hm : 1 ≤ m := le_max_left _ _ |
| 71 | have hcard : (Fintype.card ι : ℝ) ≤ m := le_max_right _ _ |
| 72 | have hpow : (Fintype.card ι : ℝ)^n ≤ m^(n+d) := |
| 73 | (pow_le_pow_left₀ (by positivity) hcard n).trans |
| 74 | (pow_le_pow_right₀ hm (Nat.le_add_right n d)) |
| 75 | have hM : 0 ≤ majorant R d n := majorant_nonneg R hR d n |
| 76 | calc |
| 77 | wordSum directions f n x ≤ (Fintype.card ι : ℝ)^n * ‖iteratedFDeriv ℝ n f x‖ := |
| 78 | wordSum_le directions hd f n x |
| 79 | _ ≤ (Fintype.card ι : ℝ)^n * (C*majorant R d n) := |
| 80 | mul_le_mul_of_nonneg_left (hb n x) (by positivity) |
| 81 | _ ≤ m^(n+d) * (C*majorant R d n) := |
| 82 | mul_le_mul_of_nonneg_right hpow (mul_nonneg hC hM) |
| 83 | _ = C*majorant (m*R) d n := by simp only [majorant, mul_pow]; ring |
| 84 | |
| 85 | end EulerParameterWordGevrey |
| 86 | end |
| 87 | |
| 88 | end |
| 89 | |
| 90 | noncomputable section |
| 91 | |
| 92 | namespace EulerParameterWordGevrey |
| 93 | |
| 94 | open ContinuousLinearMap Finset |
| 95 | open scoped ContDiff |
| 96 | |
| 97 | variable {P E F ι : Type*} |
| 98 | [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 99 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 100 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 101 | |
| 102 | /-- A genuine derivative in one prescribed constant direction. -/ |
| 103 | def directional (directions : ι → P) (f : P → E) (i : ι) : P → E := |
| 104 | fun x => fderiv ℝ f x (directions i) |
| 105 | |
| 106 | theorem directional_contDiff (directions : ι → P) (f : P → E) (hf : ContDiff ℝ ∞ f) (i : ι) : |
| 107 | ContDiff ℝ ∞ (directional directions f i) := |
| 108 | (hf.fderiv_right (m := ∞) (by simp)).clm_apply contDiff_const |
| 109 | |
| 110 | theorem wordDerivative_zero (directions : ι → P) (f : P → E) |
| 111 | (w : Fin 0 → ι) (x : P) : wordDerivative directions f w x = f x := |
| 112 | iteratedFDeriv_zero_apply _ |
| 113 | |
| 114 | /-- Every bounded linear map commutes with the actual ordered spatial derivative. -/ |
| 115 | theorem wordDerivative_comp_clm (directions : ι → P) (L : E →L[ℝ] F) |
| 116 | (f : P → E) (hf : ContDiff ℝ ∞ f) {n : ℕ} (w : Fin n → ι) (x : P) : |
| 117 | wordDerivative directions (L ∘ f) w x = L (wordDerivative directions f w x) := |
| 118 | congrArg (fun D : P [×n]→L[ℝ] F => D (fun j => directions (w j))) |
| 119 | (L.iteratedFDeriv_comp_left (x := x) hf.contDiffAt (by simp)) |
| 120 | |
| 121 | theorem wordDerivative_add (directions : ι → P) (f g : P → E) |
| 122 | (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) {n : ℕ} (w : Fin n → ι) (x : P) : |
| 123 | wordDerivative directions (f+g) w x = |
| 124 | wordDerivative directions f w x+wordDerivative directions g w x := |
| 125 | congrArg (fun D : P [×n]→L[ℝ] E => D (fun j => directions (w j))) |
| 126 | (iteratedFDeriv_add_apply (x := x) (hf.contDiffAt.of_le (by simp)) (hg.contDiffAt.of_le (by simp))) |
| 127 | |
| 128 | theorem wordDerivative_sub (directions : ι → P) (f g : P → E) |
| 129 | (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) {n : ℕ} (w : Fin n → ι) (x : P) : |
| 130 | wordDerivative directions (f-g) w x = |
| 131 | wordDerivative directions f w x-wordDerivative directions g w x := |
| 132 | congrArg (fun D : P [×n]→L[ℝ] E => D (fun j => directions (w j))) |
| 133 | (iteratedFDeriv_sub_apply (x := x) (hf.contDiffAt.of_le (by simp)) (hg.contDiffAt.of_le (by simp))) |
| 134 | |
| 135 | /-- Removing the last word letter differentiates the function in that direction first. -/ |
| 136 | theorem wordDerivative_snoc (directions : ι → P) (f : P → E) (hf : ContDiff ℝ ∞ f) |
| 137 | {n : ℕ} (w : Fin n → ι) (i : ι) (x : P) : |
| 138 | wordDerivative directions f (Fin.snoc w i) x = |
| 139 | wordDerivative directions (directional directions f i) w x := by |
| 140 | change iteratedFDeriv ℝ (n+1) f x (directions ∘ Fin.snoc w i) = _ |
| 141 | rw [Fin.comp_snoc, iteratedFDeriv_succ_apply_right, Fin.init_snoc, Fin.snoc_last] |
| 142 | exact (wordDerivative_comp_clm directions (ContinuousLinearMap.apply ℝ E (directions i)) |
| 143 | (fderiv ℝ f) (hf.fderiv_right (m := ∞) (by simp)) w x).symm |
| 144 | |
| 145 | variable [Fintype ι] |
| 146 | |
| 147 | theorem wordSum_zero (directions : ι → P) (f : P → E) (x : P) : |
| 148 | wordSum directions f 0 x = ‖f x‖ := by |
| 149 | simp only [wordSum, wordDerivative_zero, sum_const, card_univ, Fintype.card_fun, |
| 150 | Fintype.card_fin, pow_zero, one_smul] |
| 151 | |
| 152 | theorem wordSum_nonneg (directions : ι → P) (f : P → E) (n : ℕ) (x : P) : |
| 153 | 0 ≤ wordSum directions f n x := sum_nonneg (fun _ _ => norm_nonneg _) |
| 154 | |
| 155 | /-- The genuine word sum decomposes as the sum of its first directional derivatives. -/ |
| 156 | theorem wordSum_succ (directions : ι → P) (f : P → E) (hf : ContDiff ℝ ∞ f) |
| 157 | (n : ℕ) (x : P) : |
| 158 | wordSum directions f (n+1) x = ∑ i, wordSum directions (directional directions f i) n x := by |
| 159 | calc |
| 160 | _ = ∑ z : ι × (Fin n → ι), ‖wordDerivative directions (directional directions f z.1) z.2 x‖ := |
| 161 | Fintype.sum_equiv (Fin.snocEquiv (fun _ : Fin (n+1) => ι)).symm |
| 162 | (fun w => ‖wordDerivative directions f w x‖) |
| 163 | (fun z => ‖wordDerivative directions (directional directions f z.1) z.2 x‖) |
| 164 | (fun w => by |
| 165 | change ‖wordDerivative directions f w x‖ = |
| 166 | ‖wordDerivative directions (directional directions f (w (Fin.last n))) (Fin.init w) x‖ |
| 167 | have h := wordDerivative_snoc directions f hf (Fin.init w) (w (Fin.last n)) x |
| 168 | simpa only [Fin.snoc_init_self] using congrArg norm h) |
| 169 | _ = _ := Fintype.sum_prod_type _ |
| 170 | |
| 171 | /-- A fixed bounded map preserves the radius and factorial shift in the actual word sum. -/ |
| 172 | theorem wordSum_comp_clm_le (directions : ι → P) (L : E →L[ℝ] F) |
| 173 | (f : P → E) (hf : ContDiff ℝ ∞ f) (n : ℕ) (x : P) : |
| 174 | wordSum directions (L ∘ f) n x ≤ ‖L‖*wordSum directions f n x := by |
| 175 | unfold wordSum |
| 176 | rw [mul_sum] |
| 177 | apply sum_le_sum |
| 178 | intro w _ |
| 179 | rw [wordDerivative_comp_clm directions L f hf w x] |
| 180 | exact L.le_opNorm _ |
| 181 | |
| 182 | theorem wordSum_add_le (directions : ι → P) (f g : P → E) |
| 183 | (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) (n : ℕ) (x : P) : |
| 184 | wordSum directions (f+g) n x ≤ wordSum directions f n x+wordSum directions g n x := by |
| 185 | unfold wordSum |
| 186 | rw [← sum_add_distrib] |
| 187 | apply sum_le_sum |
| 188 | intro w _ |
| 189 | rw [wordDerivative_add directions f g hf hg w x] |
| 190 | exact norm_add_le _ _ |
| 191 | |
| 192 | theorem wordSum_sub_le (directions : ι → P) (f g : P → E) |
| 193 | (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) (n : ℕ) (x : P) : |
| 194 | wordSum directions (f-g) n x ≤ wordSum directions f n x+wordSum directions g n x := by |
| 195 | unfold wordSum |
| 196 | rw [← sum_add_distrib] |
| 197 | apply sum_le_sum |
| 198 | intro w _ |
| 199 | rw [wordDerivative_sub directions f g hf hg w x] |
| 200 | exact norm_sub_le _ _ |
| 201 | |
| 202 | end EulerParameterWordGevrey |