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.Normed.Group.Continuity |
| 2 | import Mathlib.Analysis.Normed.Field.Basic |
| 3 | import Mathlib.Tactic.Ring |
| 4 | |
| 5 | /-! |
| 6 | # Scalar flatness and fixed power losses |
| 7 | |
| 8 | This file isolates the scalar asymptotic argument used in Lemmas 11.2--11.5 |
| 9 | of the candidate manuscript. It proves neither the asserted bounds for physical |
| 10 | jets nor the existence, compatibility, or smooth extension of those jets. |
| 11 | |
| 12 | All powers here have natural exponents. Constants and neighborhoods may depend |
| 13 | on the requested power, as they do in a flatness statement. |
| 14 | -/ |
| 15 | |
| 16 | open Filter Topology |
| 17 | |
| 18 | namespace NavierStokes.Flatness |
| 19 | |
| 20 | variable {α : Type*} {l : Filter α} {q f g : α → ℝ} |
| 21 | |
| 22 | /-- Along `l`, `f` is eventually bounded by a constant times every natural |
| 23 | power of the absolute value of the scale `q`. -/ |
| 24 | def PowerFlat (l : Filter α) (q f : α → ℝ) : Prop := |
| 25 | ∀ n : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ x in l, |f x| ≤ C * |q x| ^ n |
| 26 | |
| 27 | /-- An exact scalar estimate: `n + loss` powers of smallness absorb `loss` |
| 28 | powers in a nonzero denominator. No assumption that the scale is small is |
| 29 | needed for this algebraic step. -/ |
| 30 | theorem fixed_power_loss_bound {x scale C : ℝ} {n loss : ℕ} |
| 31 | (hscale : scale ≠ 0) (hx : |x| ≤ C * |scale| ^ (n + loss)) : |
| 32 | |x / scale ^ loss| ≤ C * |scale| ^ n := by |
| 33 | rw [abs_div, abs_pow] |
| 34 | apply (div_le_iff₀ (pow_pos (abs_pos.mpr hscale) loss)).2 |
| 35 | simpa only [pow_add, mul_assoc] using hx |
| 36 | |
| 37 | /-- Arbitrary power decay persists after any fixed inverse-power loss. -/ |
| 38 | theorem PowerFlat.div_pow (hf : PowerFlat l q f) |
| 39 | (hq : ∀ᶠ x in l, q x ≠ 0) (loss : ℕ) : |
| 40 | PowerFlat l q (fun x => f x / q x ^ loss) := by |
| 41 | intro n |
| 42 | obtain ⟨C, hC, hbound⟩ := hf (n + loss) |
| 43 | refine ⟨C, hC, ?_⟩ |
| 44 | filter_upwards [hq, hbound] with x hx hfx |
| 45 | exact fixed_power_loss_bound hx hfx |
| 46 | |
| 47 | /-- Flat estimates are stable under finite addition. -/ |
| 48 | theorem PowerFlat.add (hf : PowerFlat l q f) (hg : PowerFlat l q g) : |
| 49 | PowerFlat l q (fun x => f x + g x) := by |
| 50 | intro n |
| 51 | obtain ⟨C, hC, hfb⟩ := hf n |
| 52 | obtain ⟨D, hD, hgb⟩ := hg n |
| 53 | refine ⟨C + D, add_nonneg hC hD, ?_⟩ |
| 54 | filter_upwards [hfb, hgb] with x hfx hgx |
| 55 | calc |
| 56 | |f x + g x| ≤ |f x| + |g x| := abs_add_le _ _ |
| 57 | _ ≤ C * |q x| ^ n + D * |q x| ^ n := add_le_add hfx hgx |
| 58 | _ = (C + D) * |q x| ^ n := (add_mul _ _ _).symm |
| 59 | |
| 60 | /-- Flat estimates are stable under multiplication. Only boundedness of the |
| 61 | second factor, the `n = 0` case of its flatness, is used. -/ |
| 62 | theorem PowerFlat.mul (hf : PowerFlat l q f) (hg : PowerFlat l q g) : |
| 63 | PowerFlat l q (fun x => f x * g x) := by |
| 64 | intro n |
| 65 | obtain ⟨C, hC, hfb⟩ := hf n |
| 66 | obtain ⟨D, hD, hgb⟩ := hg 0 |
| 67 | refine ⟨C * D, mul_nonneg hC hD, ?_⟩ |
| 68 | filter_upwards [hfb, hgb] with x hfx hgx |
| 69 | have hgx' : |g x| ≤ D := by simpa only [pow_zero, mul_one] using hgx |
| 70 | calc |
| 71 | |f x * g x| = |f x| * |g x| := abs_mul _ _ |
| 72 | _ ≤ (C * |q x| ^ n) * D := |
| 73 | mul_le_mul hfx hgx' (abs_nonneg _) (mul_nonneg hC (pow_nonneg (abs_nonneg _) _)) |
| 74 | _ = (C * D) * |q x| ^ n := by ring |
| 75 | |
| 76 | /-- A flat scalar times a scalar with a fixed power loss remains flat. This |
| 77 | models one factor in the residual product estimates, provided the stated |
| 78 | bounds have already been established for the actual factors. -/ |
| 79 | theorem PowerFlat.mul_of_power_bound (hf : PowerFlat l q f) |
| 80 | (hq : ∀ᶠ x in l, q x ≠ 0) (loss : ℕ) {D : ℝ} (hD : 0 ≤ D) |
| 81 | (hg : ∀ᶠ x in l, |g x| ≤ D / |q x| ^ loss) : |
| 82 | PowerFlat l q (fun x => f x * g x) := by |
| 83 | intro n |
| 84 | obtain ⟨C, hC, hfb⟩ := hf (n + loss) |
| 85 | refine ⟨C * D, mul_nonneg hC hD, ?_⟩ |
| 86 | filter_upwards [hq, hfb, hg] with x hqx hfx hgx |
| 87 | have hden : |q x| ^ loss ≠ 0 := pow_ne_zero _ (abs_ne_zero.mpr hqx) |
| 88 | calc |
| 89 | |f x * g x| = |f x| * |g x| := abs_mul _ _ |
| 90 | _ ≤ (C * |q x| ^ (n + loss)) * (D / |q x| ^ loss) := |
| 91 | mul_le_mul hfx hgx (abs_nonneg _) |
| 92 | (mul_nonneg hC (pow_nonneg (abs_nonneg _) _)) |
| 93 | _ = ((C * D) * |q x| ^ n) * (|q x| ^ loss / |q x| ^ loss) := by |
| 94 | rw [pow_add] |
| 95 | ring |
| 96 | _ = (C * D) * |q x| ^ n := by rw [div_self hden, mul_one] |
| 97 | |
| 98 | /-- Stage bounds with unbounded natural exponents imply flatness even after |
| 99 | subtracting a fixed natural loss. Each stage has its own constant and eventual |
| 100 | neighborhood; no uniformity of these quantities in the stage is assumed. -/ |
| 101 | theorem powerFlat_of_stage_bounds {exponent : ℕ → ℕ} (loss : ℕ) |
| 102 | (hexponent : ∀ n : ℕ, ∃ j : ℕ, n ≤ exponent j) |
| 103 | (hq : ∀ᶠ x in l, |q x| ≤ 1) |
| 104 | (hstage : ∀ j : ℕ, ∃ C : ℝ, 0 ≤ C ∧ |
| 105 | ∀ᶠ x in l, |f x| ≤ C * |q x| ^ (exponent j - loss)) : |
| 106 | PowerFlat l q f := by |
| 107 | intro n |
| 108 | obtain ⟨j, hj⟩ := hexponent (n + loss) |
| 109 | obtain ⟨C, hC, hb⟩ := hstage j |
| 110 | have hn : n ≤ exponent j - loss := Nat.le_sub_of_add_le hj |
| 111 | refine ⟨C, hC, ?_⟩ |
| 112 | filter_upwards [hq, hb] with x hqx hfx |
| 113 | exact hfx.trans (mul_le_mul_of_nonneg_left |
| 114 | (pow_le_pow_of_le_one (abs_nonneg _) hqx hn) hC) |
| 115 | |
| 116 | /-- Flatness gives an actual zero limit when the scale tends to zero. |
| 117 | This is a scalar limit theorem, not a theorem about differentiability. -/ |
| 118 | theorem PowerFlat.tendsto_zero (hf : PowerFlat l q f) |
| 119 | (hq : Tendsto q l (𝓝 0)) : Tendsto f l (𝓝 0) := by |
| 120 | obtain ⟨C, _, hb⟩ := hf 1 |
| 121 | apply squeeze_zero_norm' (f := f) (a := fun x => C * |q x|) |
| 122 | · simpa only [Real.norm_eq_abs, pow_one] using hb |
| 123 | · simpa only [abs_zero, mul_zero] using hq.abs.const_mul C |
| 124 | |
| 125 | /-- The zero limit survives every fixed inverse-power loss. -/ |
| 126 | theorem PowerFlat.div_pow_tendsto_zero (hf : PowerFlat l q f) |
| 127 | (hq : Tendsto q l (𝓝 0)) (hq_ne : ∀ᶠ x in l, q x ≠ 0) (loss : ℕ) : |
| 128 | Tendsto (fun x => f x / q x ^ loss) l (𝓝 0) := |
| 129 | (hf.div_pow hq_ne loss).tendsto_zero hq |
| 130 | |
| 131 | end NavierStokes.Flatness |