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.R3.ProblemStatement |
| 2 | import Mathlib.Analysis.Distribution.SchwartzSpace.Deriv |
| 3 | |
| 4 | /-! |
| 5 | # Compact smooth test functions as Schwartz functions |
| 6 | |
| 7 | Compact support is preserved by iterated derivatives. Consequently each |
| 8 | polynomially weighted derivative norm is continuous with compact support and |
| 9 | is bounded, giving a Schwartz map with the original function as its coercion. |
| 10 | -/ |
| 11 | |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open Set |
| 16 | open scoped ContDiff |
| 17 | |
| 18 | namespace NavierStokesR3.CompactSchwartz |
| 19 | |
| 20 | open ProblemStatement |
| 21 | |
| 22 | /-- Polynomially weighted derivative norms of compact smooth functions are |
| 23 | bounded on all of space. -/ |
| 24 | theorem weighted_derivative_bound (f : Space → ℂ) (hf : ContDiff ℝ ∞ f) |
| 25 | (hc : HasCompactSupport f) (k n : ℕ) : |
| 26 | ∃ C : ℝ, ∀ x, ‖x‖ ^ k * ‖iteratedFDeriv ℝ n f x‖ ≤ C := by |
| 27 | have hcompact : |
| 28 | HasCompactSupport (fun x => ‖x‖ ^ k * ‖iteratedFDeriv ℝ n f x‖) := |
| 29 | (hc.iteratedFDeriv n).norm.mul_left |
| 30 | have hcontinuous : |
| 31 | Continuous (fun x => ‖x‖ ^ k * ‖iteratedFDeriv ℝ n f x‖) := |
| 32 | (continuous_norm.pow k).mul (hf.continuous_iteratedFDeriv (mod_cast le_top)).norm |
| 33 | obtain ⟨C, hC⟩ := hcompact.exists_bound_of_continuous hcontinuous |
| 34 | exact ⟨C, fun x => (le_abs_self _).trans (hC x)⟩ |
| 35 | |
| 36 | /-- A compactly supported smooth function defines a Schwartz function. -/ |
| 37 | def ofCompactSupport (f : Space → ℂ) (hf : ContDiff ℝ ∞ f) |
| 38 | (hc : HasCompactSupport f) : SchwartzMap Space ℂ where |
| 39 | toFun := f |
| 40 | smooth' := hf |
| 41 | decay' := weighted_derivative_bound f hf hc |
| 42 | |
| 43 | @[simp] theorem coe_ofCompactSupport (f : Space → ℂ) (hf : ContDiff ℝ ∞ f) |
| 44 | (hc : HasCompactSupport f) : |
| 45 | (ofCompactSupport f hf hc : Space → ℂ) = f := rfl |
| 46 | |
| 47 | @[simp] theorem ofCompactSupport_apply (f : Space → ℂ) (hf : ContDiff ℝ ∞ f) |
| 48 | (hc : HasCompactSupport f) (x : Space) : |
| 49 | ofCompactSupport f hf hc x = f x := rfl |
| 50 | |
| 51 | /-- Passing to the Schwartz wrapper preserves topological support exactly. -/ |
| 52 | @[simp] theorem tsupport_ofCompactSupport (f : Space → ℂ) (hf : ContDiff ℝ ∞ f) |
| 53 | (hc : HasCompactSupport f) : |
| 54 | tsupport (ofCompactSupport f hf hc) = tsupport f := rfl |
| 55 | |
| 56 | /-- Each iterated derivative remains supported inside the original support. -/ |
| 57 | theorem tsupport_iteratedFDeriv_subset (f : Space → ℂ) (n : ℕ) : |
| 58 | tsupport (iteratedFDeriv ℝ n f) ⊆ tsupport f := |
| 59 | _root_.tsupport_iteratedFDeriv_subset n |
| 60 | |
| 61 | /-- Each iterated derivative of a compactly supported test has compact support. -/ |
| 62 | theorem hasCompactSupport_iteratedFDeriv (f : Space → ℂ) |
| 63 | (hc : HasCompactSupport f) (n : ℕ) : |
| 64 | HasCompactSupport (iteratedFDeriv ℝ n f) := |
| 65 | hc.iteratedFDeriv n |
| 66 | |
| 67 | end NavierStokesR3.CompactSchwartz |