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 Euler.SmoothL2GevreyCalculus |
| 2 | |
| 3 | /-! Pointwise factorial estimates suffice when one factor has compact |
| 4 | support. In particular polynomial factors need not be globally bounded. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerGevreyFunctions |
| 9 | |
| 10 | open EulerGevrey EulerGevreyGeneratingDerivatives |
| 11 | open scoped ContDiff |
| 12 | |
| 13 | variable {E V : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 14 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 15 | |
| 16 | theorem product_bound_at (f g : E → ℝ) (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) |
| 17 | (R A B : ℝ) (hR : 0 ≤ R) (hA : 0 ≤ A) (hB : 0 ≤ B) (x : E) |
| 18 | (hb₁ : ∀ n, ‖iteratedFDeriv ℝ n f x‖ ≤ A*majorant R 0 n) |
| 19 | (hb₂ : ∀ n, ‖iteratedFDeriv ℝ n g x‖ ≤ B*majorant R 0 n) (n : ℕ) : |
| 20 | ‖iteratedFDeriv ℝ n (fun y => f y*g y) x‖ ≤ (3*A*B)*majorant R 0 n := by |
| 21 | have hp := sequence_product_majorant R A B hR hA hB 0 0 |
| 22 | (fun k => ‖iteratedFDeriv ℝ k f x‖) (fun k => ‖iteratedFDeriv ℝ k g x‖) |
| 23 | (fun k => by simpa only [abs_norm] using hb₁ k) |
| 24 | (fun k => by simpa only [abs_norm] using hb₂ k) n |
| 25 | exact (norm_iteratedFDeriv_mul_le hf hg x (by simp)).trans |
| 26 | ((le_abs_self _).trans (by simpa using hp)) |
| 27 | |
| 28 | theorem majorant_one_le (R : ℝ) (hR : 1 ≤ R) (n : ℕ) : 1 ≤ majorant R 0 n := by |
| 29 | have hf : (1 : ℝ) ≤ n.factorial := by exact_mod_cast Nat.succ_le_of_lt (Nat.factorial_pos n) |
| 30 | simpa only [majorant,Nat.add_zero] using |
| 31 | one_le_mul_of_one_le_of_one_le (one_le_pow₀ hR) (by nlinarith : (1 : ℝ) ≤ (n.factorial : ℝ)^2) |
| 32 | |
| 33 | theorem id_bound_on_ball (r R : ℝ) (hr : 1 ≤ r) (hR : 1 ≤ R) |
| 34 | (x : E) (hx : ‖x‖ ≤ r) (n : ℕ) : |
| 35 | ‖iteratedFDeriv ℝ n (id : E → E) x‖ ≤ r*majorant R 0 n := by |
| 36 | cases n with |
| 37 | | zero => simpa only [norm_iteratedFDeriv_zero,id_eq,majorant,Nat.zero_add, |
| 38 | pow_zero,Nat.factorial_zero,Nat.cast_one,one_pow,mul_one] using hx |
| 39 | | succ n => |
| 40 | have hi := norm_iteratedFDeriv_id_le (n+1) (Nat.succ_pos _) x |
| 41 | have hnorm : ‖iteratedFDeriv ℝ (n+1) (id : E → E) x‖ ≤ 1 := by |
| 42 | split_ifs at hi <;> linarith |
| 43 | exact hnorm.trans (one_le_mul_of_one_le_of_one_le hr (majorant_one_le R hR _)) |
| 44 | |
| 45 | theorem linear_bound_on_ball (L : E →L[ℝ] V) (r R : ℝ) (hr : 1 ≤ r) (hR : 1 ≤ R) |
| 46 | (x : E) (hx : ‖x‖ ≤ r) (n : ℕ) : |
| 47 | ‖iteratedFDeriv ℝ n (L : E → V) x‖ ≤ (‖L‖*r)*majorant R 0 n := by |
| 48 | have h := L.norm_iteratedFDeriv_comp_left (f := id) (x := x) contDiffAt_id (by simp : (n : ℕ∞ω) ≤ ∞) |
| 49 | exact h.trans (by simpa only [mul_assoc] using |
| 50 | mul_le_mul_of_nonneg_left (id_bound_on_ball r R hr hR x hx n) (norm_nonneg L)) |
| 51 | |
| 52 | theorem compact_product_bound (f g : E → ℝ) (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) |
| 53 | (K : Set E) (hK : tsupport f ⊆ K) (R A B : ℝ) (hR : 0 ≤ R) (hA : 0 ≤ A) (hB : 0 ≤ B) |
| 54 | (hb₁ : ∀ n x, ‖iteratedFDeriv ℝ n f x‖ ≤ A*majorant R 0 n) |
| 55 | (hb₂ : ∀ x ∈ K, ∀ n, ‖iteratedFDeriv ℝ n g x‖ ≤ B*majorant R 0 n) : |
| 56 | ∀ n x, ‖iteratedFDeriv ℝ n (fun y => f y*g y) x‖ ≤ (3*A*B)*majorant R 0 n := by |
| 57 | intro n x |
| 58 | by_cases hx : x ∈ K |
| 59 | · exact product_bound_at f g hf hg R A B hR hA hB x (fun j => hb₁ j x) (hb₂ x hx) n |
| 60 | · have hn : x ∉ tsupport (fun y => f y*g y) := fun h => hx (hK (tsupport_mul_subset_left h)) |
| 61 | have hz : iteratedFDeriv ℝ n (fun y => f y*g y) x=0 := by |
| 62 | by_contra hh |
| 63 | exact hn (support_iteratedFDeriv_subset n hh) |
| 64 | rw [hz,norm_zero] |
| 65 | exact mul_nonneg (by positivity) (majorant_nonneg R hR 0 n) |
| 66 | |
| 67 | end EulerGevreyFunctions |