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 NavierStokes.AxisOperators |
| 2 | |
| 3 | /-! Inserting undifferentiated factors inside the regular radial inverse. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace NavierStokes.AxisInverseFactors |
| 8 | |
| 9 | open Finset Finset.Nat Set AxisWeightEstimates AxisCoefficientSpace AxisOperators |
| 10 | open scoped BigOperators Topology BoundedContinuousFunction |
| 11 | |
| 12 | private local instance (I : Window) (ε : ℝ) : NormedAddCommGroup (AxisSpace I ε) := inferInstance |
| 13 | private local instance (I : Window) (ε : ℝ) : NormedSpace ℝ (AxisSpace I ε) := inferInstance |
| 14 | |
| 15 | def degreeMultiplier (r n : ℕ) : ℝ := (n : ℝ) * ((n : ℝ) + r - 1) |
| 16 | |
| 17 | theorem degreeMultiplier_nonneg {r : ℕ} (hr : 1 ≤ r) (n : ℕ) : |
| 18 | 0 ≤ degreeMultiplier r n := by |
| 19 | have hr' : (1 : ℝ) ≤ r := by exact_mod_cast hr |
| 20 | have hn : 0 ≤ (n : ℝ) := by positivity |
| 21 | unfold degreeMultiplier |
| 22 | exact mul_nonneg hn (by linarith) |
| 23 | |
| 24 | theorem degreeMultiplier_mono {r : ℕ} (hr : 1 ≤ r) : Monotone (degreeMultiplier r) := by |
| 25 | intro i n hin |
| 26 | have hr' : (1 : ℝ) ≤ r := by exact_mod_cast hr |
| 27 | have hi : 0 ≤ (i : ℝ) := by positivity |
| 28 | have hn : (i : ℝ) ≤ n := by exact_mod_cast hin |
| 29 | unfold degreeMultiplier |
| 30 | nlinarith |
| 31 | |
| 32 | theorem degreeMultiplier_pos {r n : ℕ} (hr : 1 ≤ r) (hn : 0 < n) : |
| 33 | 0 < degreeMultiplier r n := by |
| 34 | have hr' : (1 : ℝ) ≤ r := by exact_mod_cast hr |
| 35 | have hn' : (0 : ℝ) < n := by exact_mod_cast hn |
| 36 | unfold degreeMultiplier |
| 37 | exact mul_pos hn' (by linarith) |
| 38 | |
| 39 | @[simp] theorem degreeMultiplier_zero (r : ℕ) : degreeMultiplier r 0 = 0 := by |
| 40 | simp [degreeMultiplier] |
| 41 | |
| 42 | @[simp] theorem degreeMultiplier_succ (r n : ℕ) : |
| 43 | degreeMultiplier r (n+1) = radialDivisor r n := by |
| 44 | simp only [degreeMultiplier, radialDivisor, Nat.cast_add, Nat.cast_one] |
| 45 | ring |
| 46 | |
| 47 | /-- The harmless cutoff only makes the coefficient ratio bounded for |
| 48 | indices outside the convolution range. -/ |
| 49 | def ratio (r n i : ℕ) : ℝ := degreeMultiplier r (min i n) / degreeMultiplier r n |
| 50 | |
| 51 | theorem ratio_mem_Icc {r : ℕ} (hr : 1 ≤ r) (n i : ℕ) : ratio r n i ∈ Icc (0 : ℝ) 1 := by |
| 52 | refine ⟨div_nonneg (degreeMultiplier_nonneg hr _) (degreeMultiplier_nonneg hr _), ?_⟩ |
| 53 | by_cases hn : n = 0 |
| 54 | · simp [ratio, hn] |
| 55 | · exact (div_le_one (degreeMultiplier_pos hr (Nat.pos_of_ne_zero hn))).mpr |
| 56 | (degreeMultiplier_mono hr (min_le_right _ _)) |
| 57 | |
| 58 | theorem ratio_of_le (r n i : ℕ) (hi : i ≤ n) : |
| 59 | ratio r n i = degreeMultiplier r i / degreeMultiplier r n := by |
| 60 | simp only [ratio, min_eq_left hi] |
| 61 | |
| 62 | def insertFamily (I : Window) (ε : ℝ) (r : ℕ) (A B : AxisSpace I ε) |
| 63 | (n m : ℕ) (x : ℝ) : ℝ := |
| 64 | jetProduct (fun i k => ratio r n i * inputJet I ε A i k x) |
| 65 | (fun j l => inputJet I ε B j l x) n m |
| 66 | |
| 67 | theorem insertFamily_continuous (I : Window) (ε : ℝ) (r : ℕ) |
| 68 | (A B : AxisSpace I ε) (n m : ℕ) : |
| 69 | ContinuousOn (insertFamily I ε r A B n m) I.interval := by |
| 70 | change ContinuousOn (fun x => ∑ ij ∈ antidiagonal n, |
| 71 | leibnizSum (fun k => ratio r n ij.1 * inputJet I ε A ij.1 k x) |
| 72 | (fun l => inputJet I ε B ij.2 l x) m) I.interval |
| 73 | apply continuousOn_finsetSum |
| 74 | intro ij _ |
| 75 | apply continuousOn_leibnizSum I |
| 76 | · intro k |
| 77 | exact continuousOn_const.mul (continuous_jet I (weight ε) A.1 ij.1 k).continuousOn |
| 78 | · intro k |
| 79 | exact (continuous_jet I (weight ε) B.1 ij.2 k).continuousOn |
| 80 | |
| 81 | theorem insertFamily_deriv (I : Window) (ε : ℝ) (r : ℕ) |
| 82 | (A B : AxisSpace I ε) (n m : ℕ) (x : ℝ) (hx : x ∈ I.interval) : |
| 83 | HasDerivWithinAt (insertFamily I ε r A B n m) |
| 84 | (insertFamily I ε r A B n (m+1) x) I.interval x := by |
| 85 | exact HasDerivWithinAt.fun_sum (u := antidiagonal n) (fun ij _ => |
| 86 | hasDerivWithinAt_leibnizSum I _ _ |
| 87 | (fun k y hy => (hasDerivWithinAt_jet I (weight ε) A ij.1 k hy).const_mul (ratio r n ij.1)) |
| 88 | (fun k y hy => hasDerivWithinAt_jet I (weight ε) B ij.2 k hy) m hx) |
| 89 | |
| 90 | theorem insertFamily_bound (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 91 | {r : ℕ} (hr : 1 ≤ r) (A B : AxisSpace I ε) (n m : ℕ) (x : ℝ) : |
| 92 | |insertFamily I ε r A B n m x| ≤ (64 * ‖A‖ * ‖B‖) * weight ε n m := by |
| 93 | apply jetProduct_bound hε (norm_nonneg A) (norm_nonneg B) |
| 94 | · intro i k |
| 95 | rw [abs_mul, abs_of_nonneg (ratio_mem_Icc hr n i).1] |
| 96 | exact (mul_le_mul_of_nonneg_left (inputJet_bound I hε A i k x) |
| 97 | (ratio_mem_Icc hr n i).1).trans |
| 98 | (mul_le_of_le_one_left (mul_nonneg (norm_nonneg A) (weight_pos hε i k).le) |
| 99 | (ratio_mem_Icc hr n i).2) |
| 100 | · intro j k |
| 101 | exact inputJet_bound I hε B j k x |
| 102 | |
| 103 | /-- The first argument is an already inverted source. The second is |
| 104 | inserted before that inverse, with one algebra constant. -/ |
| 105 | def insert (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 106 | (A B : AxisSpace I ε) : AxisSpace I ε := |
| 107 | ofJetFamily I (weight ε) (weight_pos hε) (insertFamily I ε r A B) |
| 108 | (insertFamily_continuous I ε r A B) (insertFamily_deriv I ε r A B) |
| 109 | (64 * ‖A‖ * ‖B‖) (by positivity) |
| 110 | (fun n m x _ => insertFamily_bound I hε hr A B n m x) |
| 111 | |
| 112 | theorem norm_insert_le (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 113 | (A B : AxisSpace I ε) : ‖insert I hε r hr A B‖ ≤ 64 * ‖A‖ * ‖B‖ := |
| 114 | norm_ofJetFamily_le _ _ _ _ _ _ _ _ _ |
| 115 | |
| 116 | theorem jet_insert (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 117 | (A B : AxisSpace I ε) (n m : ℕ) {x : ℝ} (hx : x ∈ I.interval) : |
| 118 | inputJet I ε (insert I hε r hr A B) n m x = insertFamily I ε r A B n m x := by |
| 119 | unfold insert inputJet |
| 120 | exact jet_ofJetFamily I (weight ε) (weight_pos hε) _ _ _ _ _ _ _ _ hx |
| 121 | |
| 122 | theorem coefficient_insert (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 123 | (A B : AxisSpace I ε) (n : ℕ) {x : ℝ} (hx : x ∈ I.interval) : |
| 124 | coefficient I (weight ε) (insert I hε r hr A B) n x = |
| 125 | ∑ ij ∈ antidiagonal n, ratio r n ij.1 * |
| 126 | coefficient I (weight ε) A ij.1 x * coefficient I (weight ε) B ij.2 x := by |
| 127 | simpa only [insertFamily, jetProduct, antidiagonal_zero, Finset.sum_singleton, |
| 128 | Nat.choose_zero_right, Nat.cast_one, one_mul, coefficient] using |
| 129 | jet_insert I hε r hr A B n 0 hx |
| 130 | |
| 131 | /-- This operator really inserts the factor inside the inverse. -/ |
| 132 | theorem insert_regularInverse (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 133 | (F B : AxisSpace I ε) : |
| 134 | insert I hε r hr (regularInverse I hε r hr F) B = |
| 135 | regularInverse I hε r hr (product I hε F B) := by |
| 136 | apply coefficient_ext I (weight ε) (fun n m => (weight_pos hε n m).ne') |
| 137 | intro n x hx |
| 138 | rw [coefficient_insert I hε r hr _ _ n hx] |
| 139 | cases n with |
| 140 | | zero => |
| 141 | change _ = inputJet I ε (regularInverse I hε r hr (product I hε F B)) 0 0 x |
| 142 | rw [jet_regularInverse_zero I hε r hr _ _ hx] |
| 143 | simp [ratio] |
| 144 | | succ n => |
| 145 | change _ = inputJet I ε (regularInverse I hε r hr (product I hε F B)) (n+1) 0 x |
| 146 | rw [jet_regularInverse_succ I hε r hr _ _ _ hx] |
| 147 | change _ = coefficient I (weight ε) (product I hε F B) n x / radialDivisor r n |
| 148 | rw [coefficient_product I hε F B n hx, sum_antidiagonal_succ] |
| 149 | simp only [ratio, Nat.zero_min, degreeMultiplier_zero, zero_div, zero_mul, zero_add] |
| 150 | rw [Finset.sum_div] |
| 151 | apply Finset.sum_congr rfl |
| 152 | intro ij hij |
| 153 | have hi : ij.1+1 ≤ n+1 := Nat.succ_le_succ (Nat.le.intro (mem_antidiagonal.mp hij)) |
| 154 | rw [min_eq_left hi, degreeMultiplier_succ, degreeMultiplier_succ] |
| 155 | change (radialDivisor r ij.1 / radialDivisor r n) * |
| 156 | inputJet I ε (regularInverse I hε r hr F) (ij.1+1) 0 x * _ = _ |
| 157 | rw [jet_regularInverse_succ I hε r hr _ _ _ hx] |
| 158 | have hd := radialDivisor_pos hr ij.1 |
| 159 | field_simp [hd.ne'] |
| 160 | simp only [coefficient] |
| 161 | ring |
| 162 | |
| 163 | /-- Repeat insertion for any finite list of factors. -/ |
| 164 | def insertFactors (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 165 | (A : AxisSpace I ε) : List (AxisSpace I ε) → AxisSpace I ε |
| 166 | | [] => A |
| 167 | | B :: Bs => insertFactors I hε r hr (insert I hε r hr A B) Bs |
| 168 | |
| 169 | theorem norm_insertFactors_le (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 170 | (A : AxisSpace I ε) (Bs : List (AxisSpace I ε)) : |
| 171 | ‖insertFactors I hε r hr A Bs‖ ≤ 64 ^ Bs.length * ‖A‖ * (Bs.map norm).prod := by |
| 172 | induction Bs generalizing A with |
| 173 | | nil => simp [insertFactors] |
| 174 | | cons B Bs ih => |
| 175 | apply (ih (insert I hε r hr A B)).trans |
| 176 | have hp : 0 ≤ (Bs.map norm).prod := by |
| 177 | apply List.prod_nonneg |
| 178 | intro a ha |
| 179 | obtain ⟨v, _, rfl⟩ := List.mem_map.mp ha |
| 180 | exact norm_nonneg v |
| 181 | calc |
| 182 | _ ≤ 64 ^ Bs.length * (64 * ‖A‖ * ‖B‖) * (Bs.map norm).prod := |
| 183 | mul_le_mul_of_nonneg_right |
| 184 | (mul_le_mul_of_nonneg_left (norm_insert_le I hε r hr A B) (by positivity)) hp |
| 185 | _ = _ := by simp only [List.length_cons, List.map_cons, List.prod_cons, pow_succ]; ring |
| 186 | |
| 187 | /-- Recover the source coefficients by applying the radial differential |
| 188 | operator to a zero-constant inverse. These coefficients need not themselves |
| 189 | belong to the bounded axis space. -/ |
| 190 | def recoveredSource (I : Window) (ε : ℝ) (r : ℕ) (A : AxisSpace I ε) |
| 191 | (n : ℕ) (x : ℝ) : ℝ := radialDivisor r n * coefficient I (weight ε) A (n+1) x |
| 192 | |
| 193 | theorem recoveredSource_insert (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 194 | (A B : AxisSpace I ε) (n : ℕ) {x : ℝ} (hx : x ∈ I.interval) : |
| 195 | recoveredSource I ε r (insert I hε r hr A B) n x = |
| 196 | ∑ ij ∈ antidiagonal n, recoveredSource I ε r A ij.1 x * |
| 197 | coefficient I (weight ε) B ij.2 x := by |
| 198 | unfold recoveredSource |
| 199 | rw [coefficient_insert I hε r hr A B _ hx, sum_antidiagonal_succ] |
| 200 | simp only [ratio, Nat.zero_min, degreeMultiplier_zero, zero_div, zero_mul, zero_add] |
| 201 | rw [Finset.mul_sum] |
| 202 | apply Finset.sum_congr rfl |
| 203 | intro ij hij |
| 204 | have hi : ij.1+1 ≤ n+1 := Nat.succ_le_succ (Nat.le.intro (mem_antidiagonal.mp hij)) |
| 205 | rw [min_eq_left hi, degreeMultiplier_succ, degreeMultiplier_succ] |
| 206 | field_simp [(radialDivisor_pos hr n).ne'] |
| 207 | |
| 208 | /-- Arbitrarily many undifferentiated factors cost exactly one additional |
| 209 | algebra constant apiece in the mixed derivative estimate. -/ |
| 210 | theorem norm_mixed_extra_factors (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 211 | (F G : AxisSpace I ε) (Bs : List (AxisSpace I ε)) : |
| 212 | ‖insertFactors I hε r hr (inverseMixed I hε r hr F G) Bs‖ ≤ |
| 213 | 64 ^ Bs.length * (5120 / ε * ‖F‖ * ‖G‖) * (Bs.map norm).prod := by |
| 214 | apply (norm_insertFactors_le I hε r hr _ Bs).trans |
| 215 | have hb : ‖inverseMixed I hε r hr F G‖ ≤ 5120 / ε * ‖F‖ * ‖G‖ := by |
| 216 | have ht := norm_bilinearValue_le I hε (inverseMixedData I hε r hr) F G |
| 217 | change ‖inverseMixed I hε r hr F G‖ ≤ (64 * (80 / ε)) * ‖F‖ * ‖G‖ at ht |
| 218 | convert ht using 1 |
| 219 | ring |
| 220 | have hp : 0 ≤ (Bs.map norm).prod := by |
| 221 | apply List.prod_nonneg |
| 222 | intro a ha |
| 223 | obtain ⟨v, _, rfl⟩ := List.mem_map.mp ha |
| 224 | exact norm_nonneg v |
| 225 | exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hb (by positivity)) hp |
| 226 | |
| 227 | theorem coefficient_insert_zero (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 228 | (A B : AxisSpace I ε) {x : ℝ} (hx : x ∈ I.interval) : |
| 229 | coefficient I (weight ε) (insert I hε r hr A B) 0 x = 0 := by |
| 230 | rw [coefficient_insert I hε r hr A B 0 hx] |
| 231 | simp [ratio] |
| 232 | |
| 233 | /-- The recovered mixed source is the actual coefficient convolution of |
| 234 | the parameter derivative of F with the logarithmic radial derivative of G. -/ |
| 235 | theorem recoveredSource_mixed (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 236 | (F G : AxisSpace I ε) (n : ℕ) {x : ℝ} (hx : x ∈ I.interval) : |
| 237 | recoveredSource I ε r (inverseMixed I hε r hr F G) n x = |
| 238 | ∑ ij ∈ antidiagonal n, inputJet I ε F ij.1 1 x * |
| 239 | ((ij.2 : ℝ) * coefficient I (weight ε) G ij.2 x) := by |
| 240 | unfold recoveredSource |
| 241 | change radialDivisor r n * inputJet I ε (inverseMixed I hε r hr F G) (n+1) 0 x = _ |
| 242 | rw [jet_inverseMixed I hε r hr F G (n+1) 0 hx] |
| 243 | simp only [differentialFamily, antidiagonal_zero, Finset.sum_singleton, |
| 244 | Nat.choose_zero_right, Nat.cast_one, mul_one, Nat.add_zero] |
| 245 | rw [Finset.mul_sum] |
| 246 | apply Finset.sum_congr rfl |
| 247 | intro ij _ |
| 248 | simp only [coefficient] |
| 249 | field_simp [(radialDivisor_pos hr n).ne'] |
| 250 | |
| 251 | /-- Any established norm estimate, including omission of either derivative |
| 252 | or radial averaging, acquires the same one-constant-per-factor bound. -/ |
| 253 | theorem norm_extra_factors_of_bound (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 254 | (A : AxisSpace I ε) (Bs : List (AxisSpace I ε)) {K : ℝ} (hK : ‖A‖ ≤ K) : |
| 255 | ‖insertFactors I hε r hr A Bs‖ ≤ 64 ^ Bs.length * K * (Bs.map norm).prod := by |
| 256 | apply (norm_insertFactors_le I hε r hr A Bs).trans |
| 257 | have hp : 0 ≤ (Bs.map norm).prod := by |
| 258 | apply List.prod_nonneg |
| 259 | intro a ha |
| 260 | obtain ⟨v, _, rfl⟩ := List.mem_map.mp ha |
| 261 | exact norm_nonneg v |
| 262 | exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hK (by positivity)) hp |
| 263 | |
| 264 | end NavierStokes.AxisInverseFactors |