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 Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics |
| 2 | import Mathlib.Analysis.SpecificLimits.Normed |
| 3 | import Mathlib.Topology.Order.LeftRightNhds |
| 4 | import Mathlib.Tactic.Linarith |
| 5 | import Mathlib.Tactic.NormNum |
| 6 | import Mathlib.Tactic.Ring |
| 7 | |
| 8 | /-! |
| 9 | # Diagonal cutoff scales from actual logarithmic limits |
| 10 | |
| 11 | This module proves the numerical cutoff-selection step in Lemma 11.3 of the |
| 12 | candidate manuscript. The decay of powers times logarithms is proved using |
| 13 | Mathlib's exponential asymptotic, not assumed as a cutoff-schedule hypothesis. |
| 14 | The resulting schedule enforces every requested finite collection of jet bounds. |
| 15 | It does not construct the analytic increments or prove their PDE estimates. |
| 16 | -/ |
| 17 | |
| 18 | namespace NavierStokes.DiagonalScale |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Topology BigOperators |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | /-- The scalar expression whose smallness is needed at each correction stage. -/ |
| 26 | def logPowerWeight (C p r q : ℝ) : ℝ := |
| 27 | C * (1 + |Real.log q|) ^ p * q ^ r |
| 28 | |
| 29 | /-- Any positive real power beats any fixed real logarithmic power at zero. -/ |
| 30 | theorem tendsto_logPowerWeight (C p r : ℝ) (hr : 0 < r) : |
| 31 | Tendsto (logPowerWeight C p r) (𝓝[>] (0 : ℝ)) (𝓝 0) := by |
| 32 | have hscale : Tendsto (fun q : ℝ => 1 - Real.log q) (𝓝[>] 0) atTop := by |
| 33 | apply tendsto_atTop.2 |
| 34 | intro b |
| 35 | filter_upwards [Real.tendsto_log_nhdsGT_zero.eventually |
| 36 | (eventually_le_atBot (1 - b))] with q hq |
| 37 | linarith |
| 38 | have hexp := |
| 39 | ((tendsto_rpow_mul_exp_neg_mul_atTop_nhds_zero p r hr).comp hscale).const_mul |
| 40 | (C * Real.exp r) |
| 41 | simp only [mul_zero] at hexp |
| 42 | apply hexp.congr' |
| 43 | filter_upwards [Ioc_mem_nhdsGT (show (0 : ℝ) < 1 by norm_num)] with q hq |
| 44 | have hidentity : Real.exp r * Real.exp (-r * (1 - Real.log q)) = |
| 45 | Real.exp (Real.log q * r) := by |
| 46 | rw [← Real.exp_add] |
| 47 | congr 1 |
| 48 | ring |
| 49 | dsimp only [Function.comp_apply, logPowerWeight] |
| 50 | rw [abs_of_nonpos (Real.log_nonpos hq.1.le hq.2), |
| 51 | Real.rpow_def_of_pos hq.1 r] |
| 52 | rw [← hidentity] |
| 53 | ring_nf |
| 54 | |
| 55 | /-- Absorbing half the positive power into the chosen small coefficient gives |
| 56 | exactly the stage bound used in the manuscript's tail estimate. -/ |
| 57 | theorem absorb_logarithmic_weight (C p g L q ε : ℝ) (hq : 0 < q) |
| 58 | (hsmall : |logPowerWeight C p (g / 2) q| ≤ ε) : |
| 59 | |C * (1 + |Real.log q|) ^ p * q ^ (g - L)| ≤ |
| 60 | ε * q ^ (g / 2 - L) := by |
| 61 | have hexp : g - L = g / 2 + (g / 2 - L) := by ring |
| 62 | rw [hexp, Real.rpow_add hq, ← mul_assoc, abs_mul, |
| 63 | abs_of_nonneg (Real.rpow_nonneg hq.le _)] |
| 64 | exact mul_le_mul_of_nonneg_right hsmall (Real.rpow_nonneg hq.le _) |
| 65 | |
| 66 | /-- A common integer scale controls an arbitrary finite family, uniformly on |
| 67 | the entire punctured interval through its reciprocal. -/ |
| 68 | theorem exists_integer_scale {ι : Type*} (s : Finset ι) (C p : ι → ℝ) |
| 69 | (r ε : ℝ) (hr : 0 < r) (hε : 0 < ε) : |
| 70 | ∃ a : ℕ, 0 < a ∧ |
| 71 | ∀ i ∈ s, ∀ q : ℝ, 0 < q → q ≤ 1 / (a : ℝ) → |
| 72 | |logPowerWeight (C i) (p i) r q| ≤ ε := by |
| 73 | have hsmall : ∀ᶠ q in 𝓝[>] (0 : ℝ), |
| 74 | ∀ i ∈ s, |logPowerWeight (C i) (p i) r q| < ε := by |
| 75 | apply (eventually_all_finset s).2 |
| 76 | intro i hi |
| 77 | have hlim := (tendsto_logPowerWeight (C i) (p i) r hr).abs |
| 78 | simp only [abs_zero] at hlim |
| 79 | exact hlim.eventually (gt_mem_nhds hε) |
| 80 | rcases mem_nhdsGT_iff_exists_Ioo_subset.1 hsmall with ⟨δ, hδ, hbound⟩ |
| 81 | change (0 : ℝ) < δ at hδ |
| 82 | obtain ⟨n, hn⟩ := exists_nat_one_div_lt hδ |
| 83 | refine ⟨n + 1, Nat.succ_pos _, ?_⟩ |
| 84 | intro i hi q hq hqa |
| 85 | have hrecip : (1 : ℝ) / ((n + 1 : ℕ) : ℝ) < δ := by |
| 86 | simpa only [Nat.cast_add, Nat.cast_one] using hn |
| 87 | exact (hbound ⟨hq, lt_of_le_of_lt hqa hrecip⟩ i hi).le |
| 88 | |
| 89 | /-- A recursive integer sequence dominating prescribed local scales and at |
| 90 | least doubling on every step. -/ |
| 91 | def doublingEnvelope (b : ℕ → ℕ) : ℕ → ℕ |
| 92 | | 0 => max 1 (b 0) |
| 93 | | n + 1 => max (b (n + 1)) (2 * doublingEnvelope b n) |
| 94 | |
| 95 | theorem doublingEnvelope_ge (b : ℕ → ℕ) (n : ℕ) : |
| 96 | b n ≤ doublingEnvelope b n := by |
| 97 | cases n with |
| 98 | | zero => exact le_max_right _ _ |
| 99 | | succ n => exact le_max_left _ _ |
| 100 | |
| 101 | theorem doublingEnvelope_growth (b : ℕ → ℕ) (n : ℕ) : |
| 102 | 2 * doublingEnvelope b n ≤ doublingEnvelope b (n + 1) := by |
| 103 | exact le_max_right _ _ |
| 104 | |
| 105 | theorem doublingEnvelope_pos (b : ℕ → ℕ) (n : ℕ) : |
| 106 | 0 < doublingEnvelope b n := by |
| 107 | induction n with |
| 108 | | zero => exact lt_of_lt_of_le Nat.zero_lt_one (le_max_left _ _) |
| 109 | | succ n ih => |
| 110 | exact lt_of_lt_of_le (Nat.mul_pos (by norm_num) ih) (doublingEnvelope_growth b n) |
| 111 | |
| 112 | theorem doublingEnvelope_lower_bound (b : ℕ → ℕ) (n : ℕ) : |
| 113 | n + 1 ≤ doublingEnvelope b n := by |
| 114 | induction n with |
| 115 | | zero => exact le_max_left _ _ |
| 116 | | succ n ih => |
| 117 | have hp := doublingEnvelope_pos b n |
| 118 | have hg := doublingEnvelope_growth b n |
| 119 | omega |
| 120 | |
| 121 | theorem doublingEnvelope_strictMono (b : ℕ → ℕ) : |
| 122 | StrictMono (doublingEnvelope b) := by |
| 123 | apply strictMono_nat_of_lt_succ |
| 124 | intro n |
| 125 | have hp := doublingEnvelope_pos b n |
| 126 | have hg := doublingEnvelope_growth b n |
| 127 | omega |
| 128 | |
| 129 | /-- Consequently only finitely many cutoff supports can reach a fixed q > 0. -/ |
| 130 | theorem doublingEnvelope_reciprocal_eventually_small (b : ℕ → ℕ) |
| 131 | (q : ℝ) (hq : 0 < q) : |
| 132 | ∃ N : ℕ, ∀ j ≥ N, 1 / (doublingEnvelope b j : ℝ) < q := by |
| 133 | obtain ⟨N, hN⟩ := exists_nat_one_div_lt hq |
| 134 | refine ⟨N, ?_⟩ |
| 135 | intro j hj |
| 136 | have hn : (N : ℝ) + 1 ≤ (doublingEnvelope b j : ℝ) := by |
| 137 | exact_mod_cast (Nat.add_le_add_right hj 1).trans (doublingEnvelope_lower_bound b j) |
| 138 | exact lt_of_le_of_lt (one_div_le_one_div_of_le (by positivity) hn) hN |
| 139 | |
| 140 | /-- The numerical cutoff schedule of Lemma 11.3. Stage zero is exempt from a |
| 141 | positive decay exponent, as in the source. Every positive stage enforces all |
| 142 | jet requirements m ≤ j+2, with one schedule shared by all those requirements. |
| 143 | The optional integer B gives an arbitrary lower bound on the initial scale. -/ |
| 144 | theorem exists_diagonal_scales (C p : ℕ → ℕ → ℝ) (g : ℕ → ℝ) |
| 145 | (hg : ∀ j, 1 ≤ j → 0 < g j) (B : ℕ) : |
| 146 | ∃ a : ℕ → ℕ, |
| 147 | B ≤ a 0 ∧ |
| 148 | (∀ j, 0 < a j) ∧ |
| 149 | (∀ j, 2 * a j ≤ a (j + 1)) ∧ |
| 150 | StrictMono a ∧ |
| 151 | (∀ q : ℝ, 0 < q → ∃ N : ℕ, ∀ j ≥ N, 1 / (a j : ℝ) < q) ∧ |
| 152 | (∀ j, 1 ≤ j → ∀ m, m ≤ j + 2 → ∀ q : ℝ, |
| 153 | 0 < q → q ≤ 1 / (a j : ℝ) → |
| 154 | |logPowerWeight (C j m) (p j m) (g j / 2) q| ≤ (1 / 2 : ℝ) ^ j) := by |
| 155 | classical |
| 156 | have hlocal : ∀ j : ℕ, ∃ b : ℕ, 0 < b ∧ |
| 157 | (j = 0 → B ≤ b) ∧ |
| 158 | (1 ≤ j → ∀ m, m ≤ j + 2 → ∀ q : ℝ, |
| 159 | 0 < q → q ≤ 1 / (b : ℝ) → |
| 160 | |logPowerWeight (C j m) (p j m) (g j / 2) q| ≤ (1 / 2 : ℝ) ^ j) := by |
| 161 | intro j |
| 162 | by_cases hj : j = 0 |
| 163 | · refine ⟨max 1 B, lt_of_lt_of_le Nat.zero_lt_one (le_max_left _ _), ?_, ?_⟩ |
| 164 | · intro _ |
| 165 | exact le_max_right _ _ |
| 166 | · intro hpos |
| 167 | omega |
| 168 | · have hjpos : 1 ≤ j := by omega |
| 169 | obtain ⟨b, hb, hbound⟩ := exists_integer_scale (Finset.range (j + 3)) |
| 170 | (C j) (p j) (g j / 2) ((1 / 2 : ℝ) ^ j) |
| 171 | (by linarith [hg j hjpos]) (by positivity) |
| 172 | refine ⟨b, hb, ?_, ?_⟩ |
| 173 | · intro hzero |
| 174 | exact False.elim (hj hzero) |
| 175 | · intro _ m hm q hq hqb |
| 176 | exact hbound m (Finset.mem_range.mpr (by omega)) q hq hqb |
| 177 | choose b hbpos hbzero hbbound using hlocal |
| 178 | refine ⟨doublingEnvelope b, ?_, doublingEnvelope_pos b, |
| 179 | doublingEnvelope_growth b, doublingEnvelope_strictMono b, |
| 180 | doublingEnvelope_reciprocal_eventually_small b, ?_⟩ |
| 181 | · exact (hbzero 0 rfl).trans (doublingEnvelope_ge b 0) |
| 182 | · intro j hj m hm q hq hqa |
| 183 | apply hbbound j hj m hm q hq |
| 184 | apply hqa.trans |
| 185 | apply one_div_le_one_div_of_le |
| 186 | · exact_mod_cast hbpos j |
| 187 | · exact_mod_cast doublingEnvelope_ge b j |
| 188 | |
| 189 | /-- The exact dyadic tail used to sum the scalar majorants. -/ |
| 190 | theorem dyadic_tail_sum (J : ℕ) (A : ℝ) : |
| 191 | (∑' n : ℕ, (1 / 2 : ℝ) ^ (J + 1 + n) * A) = (1 / 2 : ℝ) ^ J * A := by |
| 192 | simp only [pow_add, pow_succ, mul_assoc, tsum_mul_left, tsum_mul_right, tsum_geometric_two] |
| 193 | ring |
| 194 | |
| 195 | /-- The scalar tail bound printed in Lemma 11.3, valid uniformly for every |
| 196 | `0 < q ≤ 1`. The sum indexes the tail by `j = J + 1 + n`. -/ |
| 197 | theorem weighted_tail_bound (g : ℕ → ℝ) (hg : Monotone g) (L q : ℝ) |
| 198 | (hq : 0 < q) (hq1 : q ≤ 1) (J : ℕ) : |
| 199 | Summable (fun n : ℕ => |
| 200 | (1 / 2 : ℝ) ^ (J + 1 + n) * q ^ (g (J + 1 + n) / 2 - L)) ∧ |
| 201 | (∑' n : ℕ, (1 / 2 : ℝ) ^ (J + 1 + n) * q ^ (g (J + 1 + n) / 2 - L)) ≤ |
| 202 | (1 / 2 : ℝ) ^ J * q ^ (g (J + 1) / 2 - L) := by |
| 203 | let A := q ^ (g (J + 1) / 2 - L) |
| 204 | have hmajor : Summable (fun n : ℕ => (1 / 2 : ℝ) ^ (J + 1 + n) * A) := by |
| 205 | simpa only [pow_add] using |
| 206 | (summable_geometric_two.mul_left ((1 / 2 : ℝ) ^ (J + 1))).mul_right A |
| 207 | have hnonneg : ∀ n : ℕ, |
| 208 | 0 ≤ (1 / 2 : ℝ) ^ (J + 1 + n) * q ^ (g (J + 1 + n) / 2 - L) := by |
| 209 | intro n |
| 210 | exact mul_nonneg (by positivity) (Real.rpow_nonneg hq.le _) |
| 211 | have hdom : ∀ n : ℕ, |
| 212 | (1 / 2 : ℝ) ^ (J + 1 + n) * q ^ (g (J + 1 + n) / 2 - L) ≤ |
| 213 | (1 / 2 : ℝ) ^ (J + 1 + n) * A := by |
| 214 | intro n |
| 215 | apply mul_le_mul_of_nonneg_left _ (by positivity) |
| 216 | apply Real.rpow_le_rpow_of_exponent_ge hq hq1 |
| 217 | have hgn := hg (Nat.le_add_right (J + 1) n) |
| 218 | linarith |
| 219 | have hsum := Summable.of_nonneg_of_le hnonneg hdom hmajor |
| 220 | refine ⟨hsum, ?_⟩ |
| 221 | calc |
| 222 | _ ≤ ∑' n : ℕ, (1 / 2 : ℝ) ^ (J + 1 + n) * A := |
| 223 | Summable.tsum_le_tsum hdom hsum hmajor |
| 224 | _ = (1 / 2 : ℝ) ^ J * A := dyadic_tail_sum J A |
| 225 | |
| 226 | end |
| 227 | |
| 228 | end NavierStokes.DiagonalScale |