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.PacketMomentumExpansion |
| 2 | |
| 3 | /-! Bounds for the surviving grades of the actual finite packet residual. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerPacketTailBound |
| 8 | |
| 9 | open Finset |
| 10 | |
| 11 | theorem sum_geometric_le_two (q : ℝ) (hq : 0 ≤ q) (hqhalf : q ≤ 1/2) (N : ℕ) : |
| 12 | (∑ i ∈ range N, q^i) ≤ 2 := by |
| 13 | induction N with |
| 14 | | zero => simp |
| 15 | | succ N ih => |
| 16 | rw [sum_range_succ'] |
| 17 | simp only [pow_succ, pow_zero] |
| 18 | rw [← sum_mul] |
| 19 | have h := mul_le_mul_of_nonneg_right ih hq |
| 20 | linarith |
| 21 | |
| 22 | theorem sum_geometric_Ico_le (q : ℝ) (hq : 0 ≤ q) (hqhalf : q ≤ 1/2) (a b : ℕ) : |
| 23 | (∑ i ∈ Ico a b, q^i) ≤ 2*q^a := by |
| 24 | rw [sum_Ico_eq_sum_range] |
| 25 | simp only [pow_add] |
| 26 | rw [← mul_sum] |
| 27 | exact (mul_le_mul_of_nonneg_left (sum_geometric_le_two q hq hqhalf (b-a)) |
| 28 | (pow_nonneg hq a)).trans_eq (mul_comm _ _) |
| 29 | |
| 30 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 31 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 32 | |
| 33 | theorem finite_tail_norm_le (κ B : ℝ) (hκ : 0 ≤ κ) (hB : 0 ≤ B) |
| 34 | (hsmall : κ*B ≤ 1/2) (N : ℕ) (c : ℕ → E) |
| 35 | (hc : ∀ n ∈ Ico (N+1) (2*N+3), ‖c n‖ ≤ B^(n+1)) : |
| 36 | ‖∑ n ∈ Ico (N+1) (2*N+3), κ^n • c n‖ ≤ 2*B*(κ*B)^(N+1) := by |
| 37 | calc |
| 38 | _ ≤ ∑ n ∈ Ico (N+1) (2*N+3), ‖κ^n • c n‖ := norm_sum_le _ _ |
| 39 | _ = ∑ n ∈ Ico (N+1) (2*N+3), κ^n*‖c n‖ := by |
| 40 | simp only [norm_smul, norm_pow, Real.norm_of_nonneg hκ] |
| 41 | _ ≤ ∑ n ∈ Ico (N+1) (2*N+3), κ^n*B^(n+1) := |
| 42 | sum_le_sum (fun n hn => mul_le_mul_of_nonneg_left (hc n hn) (pow_nonneg hκ n)) |
| 43 | _ = B*(∑ n ∈ Ico (N+1) (2*N+3), (κ*B)^n) := by |
| 44 | rw [mul_sum] |
| 45 | apply sum_congr rfl |
| 46 | intro n _ |
| 47 | simp only [pow_succ, mul_pow] |
| 48 | ring |
| 49 | _ ≤ B*(2*(κ*B)^(N+1)) := mul_le_mul_of_nonneg_left |
| 50 | (sum_geometric_Ico_le (κ*B) (mul_nonneg hκ hB) hsmall (N+1) (2*N+3)) hB |
| 51 | _ = _ := by ring |
| 52 | |
| 53 | /-- Includes the source's final k times inverse-frame normalization. -/ |
| 54 | theorem normalized_tail_norm_le (k B C : ℝ) (hk : 0 ≤ k) (hB : 0 ≤ B) |
| 55 | (hsmall : B/k ≤ 1/2) (L : E →L[ℝ] F) (hL : ‖L‖ ≤ C) (N : ℕ) (c : ℕ → E) |
| 56 | (hc : ∀ n ∈ Ico (N+1) (2*N+3), ‖c n‖ ≤ B^(n+1)) : |
| 57 | ‖k • L (∑ n ∈ Ico (N+1) (2*N+3), (k⁻¹)^n • c n)‖ ≤ |
| 58 | 2*C*k*B*(B/k)^(N+1) := by |
| 59 | have hC : 0 ≤ C := (norm_nonneg L).trans hL |
| 60 | have hq : k⁻¹*B=B/k := by ring |
| 61 | have htail := finite_tail_norm_le k⁻¹ B (inv_nonneg.mpr hk) hB |
| 62 | (by simpa only [hq] using hsmall) N c hc |
| 63 | rw [hq] at htail |
| 64 | rw [norm_smul, Real.norm_of_nonneg hk] |
| 65 | calc |
| 66 | _ ≤ k*(C*‖∑ n ∈ Ico (N+1) (2*N+3), (k⁻¹)^n • c n‖) := |
| 67 | mul_le_mul_of_nonneg_left ((L.le_opNorm _).trans |
| 68 | (mul_le_mul_of_nonneg_right hL (norm_nonneg _))) hk |
| 69 | _ ≤ k*(C*(2*B*(B/k)^(N+1))) := |
| 70 | mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left htail hC) hk |
| 71 | _ = _ := by ring |
| 72 | |
| 73 | end EulerPacketTailBound |