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.SlotColoring |
| 2 | import NavierStokes.Scaling |
| 3 | import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics |
| 4 | |
| 5 | /-! |
| 6 | # The actual native chart scales |
| 7 | |
| 8 | The floor index is the one defined from the manuscript's logarithmic formula |
| 9 | in `SlotColoring`. This module derives the coefficient comparisons in (25), |
| 10 | their reciprocal bounds, the rounded carrier scale, and polynomial/exponential |
| 11 | decay along the actual dyadic sequence. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.ChartScales |
| 17 | |
| 18 | open Filter |
| 19 | open scoped Topology |
| 20 | |
| 21 | abbrev Tg : ℝ := SlotColoring.coverGrowth |
| 22 | def Lambda : ℝ := 4 - Real.sqrt 2 |
| 23 | def rho : ℝ := Real.log Lambda / Real.log Tg |
| 24 | def kappa : ℝ := 1 / 100000 |
| 25 | def radialExponent (h : ℝ) : ℝ := 2 * ((1 + h) * rho - h * kappa) |
| 26 | |
| 27 | abbrev Q (n : ℕ) : ℝ := SlotColoring.dyadicQ n |
| 28 | def S (n : ℕ) : ℝ := (n : ℝ) ^ 2 |
| 29 | def epsilon (h : ℝ) (n : ℕ) : ℝ := Q n ^ h |
| 30 | abbrev nativeIndex (h : ℝ) (n : ℕ) : ℕ := SlotColoring.nativeIndex h n |
| 31 | |
| 32 | def timeCoefficient (h : ℝ) (n : ℕ) : ℝ := Tg ^ nativeIndex h n * Q n ^ (1 + h) |
| 33 | def radialCoefficient (h : ℝ) (n : ℕ) : ℝ := |
| 34 | Lambda ^ nativeIndex h n * Q n ^ (radialExponent h / 2) |
| 35 | |
| 36 | theorem sqrt_two_lt_two : Real.sqrt (2 : ℝ) < 2 := by |
| 37 | nlinarith [Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 2), Real.sqrt_nonneg (2 : ℝ)] |
| 38 | |
| 39 | theorem Tg_one_lt : 1 < Tg := by |
| 40 | unfold Tg SlotColoring.coverGrowth |
| 41 | linarith [Real.sqrt_nonneg (2 : ℝ)] |
| 42 | |
| 43 | theorem Tg_pos : 0 < Tg := lt_trans zero_lt_one Tg_one_lt |
| 44 | theorem log_Tg_pos : 0 < Real.log Tg := SlotColoring.log_coverGrowth_pos |
| 45 | |
| 46 | theorem Lambda_two_lt : 2 < Lambda := by |
| 47 | unfold Lambda |
| 48 | linarith [sqrt_two_lt_two] |
| 49 | |
| 50 | theorem Lambda_pos : 0 < Lambda := lt_trans (by norm_num) Lambda_two_lt |
| 51 | theorem log_Lambda_pos : 0 < Real.log Lambda := Real.log_pos (by linarith [Lambda_two_lt]) |
| 52 | |
| 53 | /-- A coarse explicit bound suffices to show that the radial power is positive. -/ |
| 54 | theorem rho_lower : (1 / 3 : ℝ) ≤ rho := by |
| 55 | have hl : Real.log (2 : ℝ) ≤ Real.log Lambda := Real.log_le_log (by norm_num) Lambda_two_lt.le |
| 56 | have ht : Tg ≤ (2 : ℝ) ^ 3 := by |
| 57 | unfold Tg SlotColoring.coverGrowth |
| 58 | norm_num |
| 59 | linarith [sqrt_two_lt_two] |
| 60 | have htlog := Real.log_le_log Tg_pos ht |
| 61 | rw [Real.log_pow] at htlog |
| 62 | norm_num at htlog |
| 63 | unfold rho |
| 64 | apply (le_div_iff₀ log_Tg_pos).mpr |
| 65 | linarith |
| 66 | |
| 67 | theorem rho_pos : 0 < rho := lt_of_lt_of_le (by norm_num) rho_lower |
| 68 | |
| 69 | /-- This includes the manuscript's range `0<h<1/2`, and in fact every `h≥0`. -/ |
| 70 | theorem radialExponent_pos (h : ℝ) (hh : 0 ≤ h) : 0 < radialExponent h := by |
| 71 | have hk : kappa < rho := by unfold kappa; linarith [rho_lower] |
| 72 | have hm := mul_nonneg hh (sub_nonneg.mpr hk.le) |
| 73 | unfold radialExponent |
| 74 | nlinarith [rho_pos] |
| 75 | |
| 76 | theorem Q_pos (n : ℕ) : 0 < Q n := Real.rpow_pos_of_pos (by norm_num) _ |
| 77 | |
| 78 | theorem Q_le_one (n : ℕ) : Q n ≤ 1 := by |
| 79 | calc |
| 80 | Q n ≤ (2 : ℝ) ^ (0 : ℝ) := |
| 81 | Real.rpow_le_rpow_of_exponent_le (by norm_num) (neg_nonpos.mpr (Nat.cast_nonneg n)) |
| 82 | _ = 1 := Real.rpow_zero _ |
| 83 | |
| 84 | theorem S_pos {n : ℕ} (hn : 1 ≤ n) : 0 < S n := by |
| 85 | have hn' : (0 : ℝ) < n := by exact_mod_cast (by omega : 0 < n) |
| 86 | exact pow_pos hn' _ |
| 87 | |
| 88 | theorem epsilon_pos (h : ℝ) (n : ℕ) : 0 < epsilon h n := Real.rpow_pos_of_pos (Q_pos n) _ |
| 89 | |
| 90 | theorem epsilon_le_one (h : ℝ) (hh : 0 ≤ h) (n : ℕ) : epsilon h n ≤ 1 := |
| 91 | Real.rpow_le_one (Q_pos n).le (Q_le_one n) hh |
| 92 | |
| 93 | theorem timeCoefficient_pos (h : ℝ) (n : ℕ) : 0 < timeCoefficient h n := |
| 94 | mul_pos (pow_pos Tg_pos _) (Real.rpow_pos_of_pos (Q_pos n) _) |
| 95 | |
| 96 | theorem radialCoefficient_pos (h : ℝ) (n : ℕ) : 0 < radialCoefficient h n := |
| 97 | mul_pos (pow_pos Lambda_pos _) (Real.rpow_pos_of_pos (Q_pos n) _) |
| 98 | |
| 99 | theorem Tg_rpow_rho : Tg ^ rho = Lambda := by |
| 100 | rw [Real.rpow_def_of_pos Tg_pos] |
| 101 | have he : Real.log Tg * rho = Real.log Lambda := by |
| 102 | unfold rho |
| 103 | field_simp [ne_of_gt log_Tg_pos] |
| 104 | rw [he, Real.exp_log Lambda_pos] |
| 105 | |
| 106 | theorem Lambda_pow_eq (n : ℕ) : Lambda ^ n = ((Tg ^ n : ℝ) ^ rho) := by |
| 107 | calc |
| 108 | Lambda ^ n = (Tg ^ rho) ^ n := by rw [Tg_rpow_rho] |
| 109 | _ = Tg ^ (rho * (n : ℝ)) := (Real.rpow_mul_natCast Tg_pos.le rho n).symm |
| 110 | _ = Tg ^ ((n : ℝ) * rho) := by rw [mul_comm] |
| 111 | _ = (Tg ^ n : ℝ) ^ rho := Real.rpow_natCast_mul Tg_pos.le n rho |
| 112 | |
| 113 | private theorem growth_at_nativeArgument (h : ℝ) {n : ℕ} (hn : 1 ≤ n) : |
| 114 | Tg ^ SlotColoring.nativeArgument h n = Q n ^ (-1 - h) / S n := by |
| 115 | have ha : 0 < Q n ^ (-1 - h) / S n := div_pos (Real.rpow_pos_of_pos (Q_pos n) _) (S_pos hn) |
| 116 | change Tg ^ (Real.log (Q n ^ (-1 - h) / S n) / Real.log Tg) = _ |
| 117 | rw [Real.rpow_def_of_pos Tg_pos] |
| 118 | have he : Real.log Tg * (Real.log (Q n ^ (-1 - h) / S n) / Real.log Tg) = |
| 119 | Real.log (Q n ^ (-1 - h) / S n) := by field_simp [ne_of_gt log_Tg_pos] |
| 120 | rw [he, Real.exp_log ha] |
| 121 | |
| 122 | theorem native_power_bounds (h : ℝ) (hh : 0 ≤ h) {n : ℕ} (hn : 4 ≤ n) : |
| 123 | Tg ^ nativeIndex h n ≤ Q n ^ (-1 - h) / S n ∧ |
| 124 | Q n ^ (-1 - h) / S n ≤ Tg * Tg ^ nativeIndex h n := by |
| 125 | have hlo := Nat.floor_le (SlotColoring.nativeArgument_nonneg h hh hn) |
| 126 | have hhi := (Nat.lt_floor_add_one (SlotColoring.nativeArgument h n)).le |
| 127 | have lo := Real.rpow_le_rpow_of_exponent_le Tg_one_lt.le hlo |
| 128 | have hi := Real.rpow_le_rpow_of_exponent_le Tg_one_lt.le hhi |
| 129 | rw [growth_at_nativeArgument h (by omega), Real.rpow_natCast] at lo |
| 130 | rw [growth_at_nativeArgument h (by omega), Real.rpow_add Tg_pos, |
| 131 | Real.rpow_natCast, Real.rpow_one] at hi |
| 132 | exact ⟨lo, by simpa only [nativeIndex, SlotColoring.nativeIndex, mul_comm] using hi⟩ |
| 133 | |
| 134 | private theorem target_times_Q (h : ℝ) {n : ℕ} : |
| 135 | (Q n ^ (-1 - h) / S n) * Q n ^ (1 + h) = 1 / S n := by |
| 136 | calc |
| 137 | (Q n ^ (-1 - h) / S n) * Q n ^ (1 + h) = |
| 138 | (Q n ^ (-1 - h) * Q n ^ (1 + h)) / S n := by ring |
| 139 | _ = 1 / S n := by |
| 140 | rw [← Real.rpow_add (Q_pos n)] |
| 141 | have he : (-1 - h) + (1 + h) = 0 := by ring |
| 142 | rw [he, Real.rpow_zero] |
| 143 | |
| 144 | /-- The actual floor index gives the complete `c_i` comparison in (25). -/ |
| 145 | theorem timeCoefficient_bounds (h : ℝ) (hh : 0 ≤ h) {n : ℕ} (hn : 4 ≤ n) : |
| 146 | 1 / (Tg * S n) ≤ timeCoefficient h n ∧ timeCoefficient h n ≤ 1 / S n := by |
| 147 | obtain ⟨hl, hu⟩ := native_power_bounds h hh hn |
| 148 | have hQ := (Real.rpow_pos_of_pos (Q_pos n) (1 + h)).le |
| 149 | constructor |
| 150 | · have hu' := mul_le_mul_of_nonneg_right hu hQ |
| 151 | rw [target_times_Q] at hu' |
| 152 | have hdiv : (1 / S n) / Tg ≤ timeCoefficient h n := by |
| 153 | apply (div_le_iff₀ Tg_pos).mpr |
| 154 | simpa [timeCoefficient, mul_assoc, mul_comm, mul_left_comm] using hu' |
| 155 | simpa only [div_div, mul_comm] using hdiv |
| 156 | · have hl' := mul_le_mul_of_nonneg_right hl hQ |
| 157 | simpa only [target_times_Q, timeCoefficient] using hl' |
| 158 | |
| 159 | /-- The radial coefficient is an exact power of the time coefficient, |
| 160 | with the explicit small-viscosity loss. -/ |
| 161 | theorem radialCoefficient_eq (h : ℝ) (n : ℕ) : |
| 162 | radialCoefficient h n = epsilon h n ^ (-kappa) * timeCoefficient h n ^ rho := by |
| 163 | have he : epsilon h n ^ (-kappa) = Q n ^ (-h * kappa) := by |
| 164 | unfold epsilon |
| 165 | rw [← Real.rpow_mul (Q_pos n).le] |
| 166 | congr 1 |
| 167 | ring |
| 168 | have hc : timeCoefficient h n ^ rho = |
| 169 | (Tg ^ nativeIndex h n : ℝ) ^ rho * Q n ^ ((1 + h) * rho) := by |
| 170 | unfold timeCoefficient |
| 171 | rw [Real.mul_rpow (pow_nonneg Tg_pos.le _) (Real.rpow_nonneg (Q_pos n).le _), |
| 172 | ← Real.rpow_mul (Q_pos n).le] |
| 173 | rw [he, hc] |
| 174 | unfold radialCoefficient |
| 175 | rw [Lambda_pow_eq] |
| 176 | have hd : radialExponent h / 2 = (-h * kappa) + (1 + h) * rho := by |
| 177 | unfold radialExponent |
| 178 | ring |
| 179 | rw [hd, Real.rpow_add (Q_pos n)] |
| 180 | ring |
| 181 | |
| 182 | private theorem one_div_S_rpow {n : ℕ} (hn : 1 ≤ n) : |
| 183 | (1 / S n) ^ rho = S n ^ (-rho) := by |
| 184 | rw [Real.div_rpow zero_le_one (S_pos hn).le, Real.one_rpow, |
| 185 | Real.rpow_neg (S_pos hn).le] |
| 186 | exact one_div _ |
| 187 | |
| 188 | private theorem one_div_TS_rpow {n : ℕ} (hn : 1 ≤ n) : |
| 189 | (1 / (Tg * S n)) ^ rho = S n ^ (-rho) / Lambda := by |
| 190 | rw [Real.div_rpow zero_le_one (mul_pos Tg_pos (S_pos hn)).le, Real.one_rpow, |
| 191 | Real.mul_rpow Tg_pos.le (S_pos hn).le, Tg_rpow_rho, Real.rpow_neg (S_pos hn).le] |
| 192 | simp [div_eq_mul_inv, mul_comm] |
| 193 | |
| 194 | /-- The full `M_i` comparison in (25), obtained from the actual native index. -/ |
| 195 | theorem radialCoefficient_bounds (h : ℝ) (hh : 0 ≤ h) {n : ℕ} (hn : 4 ≤ n) : |
| 196 | epsilon h n ^ (-kappa) * S n ^ (-rho) / Lambda ≤ radialCoefficient h n ∧ |
| 197 | radialCoefficient h n ≤ epsilon h n ^ (-kappa) * S n ^ (-rho) := by |
| 198 | obtain ⟨hcL, hcU⟩ := timeCoefficient_bounds h hh hn |
| 199 | have hp := (Real.rpow_pos_of_pos (epsilon_pos h n) (-kappa)).le |
| 200 | have hl := Real.rpow_le_rpow (one_div_nonneg.mpr (mul_pos Tg_pos (S_pos (by omega))).le) |
| 201 | hcL rho_pos.le |
| 202 | have hu := Real.rpow_le_rpow (timeCoefficient_pos h n).le hcU rho_pos.le |
| 203 | rw [one_div_TS_rpow (by omega)] at hl |
| 204 | rw [one_div_S_rpow (by omega)] at hu |
| 205 | rw [radialCoefficient_eq] |
| 206 | constructor |
| 207 | · simpa only [mul_div_assoc] using mul_le_mul_of_nonneg_left hl hp |
| 208 | · exact mul_le_mul_of_nonneg_left hu hp |
| 209 | |
| 210 | theorem timeCoefficient_inv_upper (h : ℝ) (hh : 0 ≤ h) {n : ℕ} (hn : 4 ≤ n) : |
| 211 | (timeCoefficient h n)⁻¹ ≤ Tg * S n := by |
| 212 | have hl := (timeCoefficient_bounds h hh hn).1 |
| 213 | have hi := one_div_le_one_div_of_le (one_div_pos.mpr (mul_pos Tg_pos (S_pos (by omega)))) hl |
| 214 | simpa only [one_div, inv_inv] using hi |
| 215 | |
| 216 | theorem radialCoefficient_inv_upper (h : ℝ) (hh : 0 ≤ h) {n : ℕ} (hn : 4 ≤ n) : |
| 217 | (radialCoefficient h n)⁻¹ ≤ Lambda * epsilon h n ^ kappa * S n ^ rho := by |
| 218 | have hl := (radialCoefficient_bounds h hh hn).1 |
| 219 | have hpos : 0 < epsilon h n ^ (-kappa) * S n ^ (-rho) / Lambda := |
| 220 | div_pos (mul_pos (Real.rpow_pos_of_pos (epsilon_pos h n) _) |
| 221 | (Real.rpow_pos_of_pos (S_pos (by omega)) _)) Lambda_pos |
| 222 | have hi := one_div_le_one_div_of_le hpos hl |
| 223 | have hS : 0 < S n := S_pos (by omega) |
| 224 | simpa [Real.rpow_neg (epsilon_pos h n).le, Real.rpow_neg hS.le, |
| 225 | div_eq_mul_inv, mul_assoc, mul_comm, mul_left_comm] using hi |
| 226 | |
| 227 | theorem timeCoefficient_inv_lower (h : ℝ) (hh : 0 ≤ h) {n : ℕ} (hn : 4 ≤ n) : |
| 228 | S n ≤ (timeCoefficient h n)⁻¹ := by |
| 229 | have hi := one_div_le_one_div_of_le (timeCoefficient_pos h n) (timeCoefficient_bounds h hh hn).2 |
| 230 | simpa only [one_div, inv_inv] using hi |
| 231 | |
| 232 | def slotLength (r0 h : ℝ) (n : ℕ) : ℝ := 2 * r0 / timeCoefficient h n |
| 233 | |
| 234 | /-- The native slot has length comparable to the actual slow scale `n²`. -/ |
| 235 | theorem slotLength_bounds (r0 h : ℝ) (hr : 0 ≤ r0) (hh : 0 ≤ h) {n : ℕ} (hn : 4 ≤ n) : |
| 236 | 2 * r0 * S n ≤ slotLength r0 h n ∧ slotLength r0 h n ≤ 2 * r0 * Tg * S n := by |
| 237 | have hm : 0 ≤ 2 * r0 := by positivity |
| 238 | have hl := mul_le_mul_of_nonneg_left (timeCoefficient_inv_lower h hh hn) hm |
| 239 | have hu := mul_le_mul_of_nonneg_left (timeCoefficient_inv_upper h hh hn) hm |
| 240 | exact ⟨by simpa only [slotLength, div_eq_mul_inv] using hl, |
| 241 | by simpa only [slotLength, div_eq_mul_inv, mul_assoc] using hu⟩ |
| 242 | |
| 243 | /-- The carrier is the genuine rounded integer frequency used in the manuscript. -/ |
| 244 | def carrier (h : ℝ) (n : ℕ) : ℕ := Scaling.carrierFrequency (epsilon h n) |
| 245 | |
| 246 | theorem carrier_viscosity_bounds (h : ℝ) (hh : 0 ≤ h) (n : ℕ) : |
| 247 | 1 ≤ epsilon h n * (carrier h n : ℝ) ^ 2 ∧ |
| 248 | epsilon h n * (carrier h n : ℝ) ^ 2 ≤ 4 := by |
| 249 | obtain ⟨hl, hu, h4⟩ := Scaling.order_one_viscosity (epsilon_pos h n) (epsilon_le_one h hh n) |
| 250 | exact ⟨hl, hu.trans h4⟩ |
| 251 | |
| 252 | theorem carrier_inv_bounds (h : ℝ) (hh : 0 ≤ h) (n : ℕ) : |
| 253 | Real.sqrt (epsilon h n) / 2 ≤ 1 / (carrier h n : ℝ) ∧ |
| 254 | 1 / (carrier h n : ℝ) ≤ Real.sqrt (epsilon h n) := |
| 255 | Scaling.reciprocal_frequency_bounds (epsilon_pos h n) (epsilon_le_one h hh n) |
| 256 | |
| 257 | theorem slow_power_epsilon_identity (h a b : ℝ) (n : ℕ) : |
| 258 | S n ^ a * epsilon h n ^ b = |
| 259 | (n : ℝ) ^ (2 * a) * Real.exp (-(h * b * Real.log 2) * (n : ℝ)) := by |
| 260 | have hS : S n ^ a = (n : ℝ) ^ (2 * a) := by |
| 261 | simpa only [S, Nat.cast_ofNat] using |
| 262 | (Real.rpow_natCast_mul (Nat.cast_nonneg n) 2 a).symm |
| 263 | have he : epsilon h n ^ b = Real.exp (-(h * b * Real.log 2) * (n : ℝ)) := by |
| 264 | unfold epsilon |
| 265 | rw [← Real.rpow_mul (Q_pos n).le] |
| 266 | unfold Q SlotColoring.dyadicQ |
| 267 | rw [← Real.rpow_mul (by norm_num : (0 : ℝ) ≤ 2), |
| 268 | Real.rpow_def_of_pos (by norm_num : (0 : ℝ) < 2)] |
| 269 | congr 1 |
| 270 | ring |
| 271 | rw [hS, he] |
| 272 | |
| 273 | /-- Every fixed real power of the slow scale is dominated by every positive |
| 274 | power of the actual small-viscosity scale, provided `h>0`. -/ |
| 275 | theorem slow_power_epsilon_tendsto_zero (h : ℝ) (hh : 0 < h) (a b : ℝ) (hb : 0 < b) : |
| 276 | Tendsto (fun n : ℕ => S n ^ a * epsilon h n ^ b) atTop (𝓝 0) := by |
| 277 | have hc : 0 < h * b * Real.log 2 := |
| 278 | mul_pos (mul_pos hh hb) (Real.log_pos (by norm_num)) |
| 279 | have ht := (tendsto_rpow_mul_exp_neg_mul_atTop_nhds_zero |
| 280 | (2 * a) (h * b * Real.log 2) hc).comp (tendsto_natCast_atTop_atTop (R := ℝ)) |
| 281 | simpa only [slow_power_epsilon_identity, Function.comp_def] using ht |
| 282 | |
| 283 | theorem eventually_slow_power_epsilon_lt (h : ℝ) (hh : 0 < h) (a b δ : ℝ) |
| 284 | (hb : 0 < b) (hδ : 0 < δ) : |
| 285 | ∀ᶠ n : ℕ in atTop, S n ^ a * epsilon h n ^ b < δ := |
| 286 | (tendsto_order.1 (slow_power_epsilon_tendsto_zero h hh a b hb)).2 δ hδ |
| 287 | |
| 288 | theorem exists_slow_power_epsilon_cutoff (h : ℝ) (hh : 0 < h) (a b δ : ℝ) |
| 289 | (hb : 0 < b) (hδ : 0 < δ) : |
| 290 | ∃ N : ℕ, ∀ n ≥ N, S n ^ a * epsilon h n ^ b < δ := |
| 291 | eventually_atTop.1 (eventually_slow_power_epsilon_lt h hh a b δ hb hδ) |
| 292 | |
| 293 | /-- The rounding error `1/k`, multiplied by any fixed slow power, also |
| 294 | vanishes along the actual dyadic sequence. -/ |
| 295 | theorem slow_power_div_carrier_tendsto_zero (h : ℝ) (hh : 0 < h) (a : ℝ) : |
| 296 | Tendsto (fun n : ℕ => S n ^ a / (carrier h n : ℝ)) atTop (𝓝 0) := by |
| 297 | apply squeeze_zero |
| 298 | (fun n => div_nonneg (Real.rpow_nonneg (sq_nonneg (n : ℝ)) a) (Nat.cast_nonneg _)) |
| 299 | (g := fun n : ℕ => S n ^ a * epsilon h n ^ (1 / 2 : ℝ)) |
| 300 | · intro n |
| 301 | calc |
| 302 | S n ^ a / (carrier h n : ℝ) = S n ^ a * (1 / (carrier h n : ℝ)) := by ring |
| 303 | _ ≤ S n ^ a * Real.sqrt (epsilon h n) := |
| 304 | mul_le_mul_of_nonneg_left (carrier_inv_bounds h hh.le n).2 |
| 305 | (Real.rpow_nonneg (sq_nonneg (n : ℝ)) a) |
| 306 | _ = S n ^ a * epsilon h n ^ (1 / 2 : ℝ) := by rw [Real.sqrt_eq_rpow] |
| 307 | · exact slow_power_epsilon_tendsto_zero h hh a (1 / 2) (by norm_num) |
| 308 | |
| 309 | end NavierStokes.ChartScales |