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 | end NavierStokes.Flatness |