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.PacketSourceScaleChoice |
| 2 | import Euler.PacketSourceScaleGuards |
| 3 | |
| 4 | /-! Finite-prefix control of the actual coupling recurrence. Each step |
| 5 | may use only the bounds already proved on its preceding prefix. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerParentRenewalPrefix |
| 10 | |
| 11 | open Finset EulerPacketSourceScaleChoice EulerPacketSourceScaleGuards |
| 12 | EulerPacketSourceScaleActual EulerScale |
| 13 | |
| 14 | theorem relative_step_error {a b e : ℝ} (ha : 0 < a) (ha2 : a ≤ 2) |
| 15 | (he : 0 ≤ e) (h : |b/a-1| ≤ e) : |b-a| ≤ 2*e := by |
| 16 | have hid : (b/a-1)*a=b-a := by field_simp |
| 17 | calc |
| 18 | |b-a| = |b/a-1| * a := by rw [← hid,abs_mul,abs_of_pos ha] |
| 19 | _ ≤ e*a := mul_le_mul_of_nonneg_right h ha.le |
| 20 | _ ≤ e*2 := mul_le_mul_of_nonneg_left ha2 he |
| 21 | _ = 2*e := by ring |
| 22 | |
| 23 | theorem partial_sum_le {e : ℕ → ℝ} {η : ℝ} (he : SmallSeries e η) (n : ℕ) : |
| 24 | ∑ i ∈ range n, e i ≤ η := |
| 25 | (he.summable.sum_le_tsum (range n) (fun i _ => he.nonneg i)).trans he.total_le |
| 26 | |
| 27 | theorem bounds_of_accumulated_error {e : ℕ → ℝ} {η v : ℝ} |
| 28 | (he : SmallSeries e η) (hη : η ≤ 1/4) (n : ℕ) |
| 29 | (hv : |v-1| ≤ 2*∑ i ∈ range n, e i) : 1/2 ≤ v ∧ v ≤ 2 := by |
| 30 | have hs := partial_sum_le he n |
| 31 | have ha := abs_le.mp hv |
| 32 | constructor <;> linarith only [hs,hη,ha.1,ha.2] |
| 33 | |
| 34 | theorem accumulate_step {a e : ℕ → ℝ} (n : ℕ) |
| 35 | (ha : 1/2 ≤ a n) (ha2 : a n ≤ 2) (he : 0 ≤ e n) |
| 36 | (hprev : |a n-1| ≤ 2*∑ i ∈ range n, e i) |
| 37 | (hstep : |a (n+1)/a n-1| ≤ e n) : |
| 38 | |a (n+1)-1| ≤ 2*∑ i ∈ range (n+1), e i := by |
| 39 | have hi := relative_step_error (by linarith only [ha] : 0 < a n) ha2 he hstep |
| 40 | have ht := abs_add_le (a (n+1)-a n) (a n-1) |
| 41 | rw [show a (n+1)-a n+(a n-1)=a (n+1)-1 by ring] at ht |
| 42 | rw [sum_range_succ] |
| 43 | linarith only [hi,hprev,ht] |
| 44 | |
| 45 | /-- No bound on a future coupling is an input. The step estimate can |
| 46 | be established only after the previous finite prefix has been bounded. -/ |
| 47 | theorem coupling_prefix {a e : ℕ → ℝ} {η : ℝ} (N : ℕ) |
| 48 | (he : SmallSeries e η) (hη : η ≤ 1/4) (hzero : a 0=1) |
| 49 | (hstep : ∀ n < N, (∀ i ≤ n, 1/2 ≤ a i ∧ a i ≤ 2) → |
| 50 | |a (n+1)/a n-1| ≤ e n) : |
| 51 | ∀ n ≤ N, (1/2 ≤ a n ∧ a n ≤ 2) ∧ |a n-1| ≤ 2*∑ i ∈ range n, e i := by |
| 52 | intro n |
| 53 | induction n using Nat.strong_induction_on with |
| 54 | | h n ih => |
| 55 | intro hn |
| 56 | cases n with |
| 57 | | zero => simp only [hzero,sub_self,abs_zero,sum_range_zero,mul_zero]; norm_num |
| 58 | | succ n => |
| 59 | have hp := ih n (by omega) (by omega) |
| 60 | have hprefix : ∀ i ≤ n, 1/2 ≤ a i ∧ a i ≤ 2 := by |
| 61 | intro i hi |
| 62 | exact (ih i (by omega) (by omega)).1 |
| 63 | have hs := accumulate_step n hp.1.1 hp.1.2 (he.nonneg n) hp.2 |
| 64 | (hstep n (by omega) hprefix) |
| 65 | exact ⟨bounds_of_accumulated_error he hη (n+1) hs,hs⟩ |
| 66 | |
| 67 | /-- The same finite induction propagates the normalized tilt invariant |
| 68 | along with the coupling. Its hypotheses mention only already-built stages. -/ |
| 69 | theorem coupling_and_tilt_prefix {a β x e : ℕ → ℝ} {η : ℝ} (N : ℕ) |
| 70 | (he : SmallSeries e η) (hη : η ≤ 1/4) (hzero : a 0=1) |
| 71 | (hβzero : 1/2 ≤ β 0*(x 0)^2 ∧ β 0*(x 0)^2 ≤ 2) |
| 72 | (hstep : ∀ n < N, |
| 73 | (∀ i ≤ n, (1/2 ≤ a i ∧ a i ≤ 2) ∧ (1/2 ≤ β i*(x i)^2 ∧ β i*(x i)^2 ≤ 2)) → |
| 74 | |a (n+1)/a n-1| ≤ e n ∧ |
| 75 | (1/2 ≤ β (n+1)*(x (n+1))^2 ∧ β (n+1)*(x (n+1))^2 ≤ 2)) : |
| 76 | ∀ n ≤ N, (1/2 ≤ a n ∧ a n ≤ 2) ∧ |
| 77 | (1/2 ≤ β n*(x n)^2 ∧ β n*(x n)^2 ≤ 2) ∧ |
| 78 | |a n-1| ≤ 2*∑ i ∈ range n, e i := by |
| 79 | intro n |
| 80 | induction n using Nat.strong_induction_on with |
| 81 | | h n ih => |
| 82 | intro hn |
| 83 | cases n with |
| 84 | | zero => |
| 85 | refine ⟨?_,hβzero,?_⟩ <;> simp only [hzero,sub_self,abs_zero,sum_range_zero,mul_zero] <;> norm_num |
| 86 | | succ n => |
| 87 | have hp := ih n (by omega) (by omega) |
| 88 | have hprefix : ∀ i ≤ n, |
| 89 | (1/2 ≤ a i ∧ a i ≤ 2) ∧ (1/2 ≤ β i*(x i)^2 ∧ β i*(x i)^2 ≤ 2) := by |
| 90 | intro i hi |
| 91 | have h := ih i (by omega) (by omega) |
| 92 | exact ⟨h.1,h.2.1⟩ |
| 93 | have ht := hstep n (by omega) hprefix |
| 94 | have hs := accumulate_step n hp.1.1 hp.1.2 (he.nonneg n) hp.2.2 ht.1 |
| 95 | exact ⟨bounds_of_accumulated_error he hη (n+1) hs,ht.2,hs⟩ |
| 96 | |
| 97 | theorem stage_congr_at {J D : ℕ} {C c X K : ℝ} {a β b γ : ℕ → ℝ} {n : ℕ} |
| 98 | (G : StageGuards J D C c X K a β n) (ha : a n=b n) (hβ : β n=γ n) : |
| 99 | StageGuards J D C c X K b γ n where |
| 100 | epsilon_pos := by simpa only [ha] using G.epsilon_pos |
| 101 | epsilon_small := by simpa only [ha] using G.epsilon_small |
| 102 | sigma_pos := by simpa only [hβ] using G.sigma_pos |
| 103 | sigma_small := by simpa only [hβ] using G.sigma_small |
| 104 | reciprocal_pos := G.reciprocal_pos |
| 105 | reciprocal_small := G.reciprocal_small |
| 106 | target_from_sigma := by simpa only [hβ] using G.target_from_sigma |
| 107 | target_le_horizon := by simpa only [ha,hβ] using G.target_le_horizon |
| 108 | horizon_le_Theta := by simpa only [ha,hβ] using G.horizon_le_Theta |
| 109 | extra_time := by simpa only [ha,hβ] using G.extra_time |
| 110 | next_width := G.next_width |
| 111 | geometry_small := by simpa only [geometryError,ha] using G.geometry_small |
| 112 | compression := by simpa only [ha,hβ] using G.compression |
| 113 | |
| 114 | /-- Extend just the current scalar values to a bounded artificial |
| 115 | sequence, apply the uniform theorem, then transfer its local conclusion. |
| 116 | No hypotheses on any future stage are required. -/ |
| 117 | theorem stage_guards_at (J D : ℕ) (hJ : 3 ≤ J) (C c X K δ : ℝ) |
| 118 | (hC : 4 ≤ C) (hX : 8 ≤ X) (hK : 1 ≤ K) (hδ : δ ≤ 1/2) |
| 119 | (hδK : 1000000*K*δ ≤ 1) (hb : ActualBounds J D C c X δ) |
| 120 | (a β : ℕ → ℝ) (n : ℕ) |
| 121 | (ha : 1/2 ≤ a n) (ha2 : a n ≤ 2) |
| 122 | (hβ : 1/2 ≤ β n*(scaleSequence J X n)^2) |
| 123 | (hβ2 : β n*(scaleSequence J X n)^2 ≤ 2) : |
| 124 | StageGuards J D C c X K a β n := by |
| 125 | let b : ℕ → ℝ := fun _ => a n |
| 126 | let γ : ℕ → ℝ := fun i => β n*(scaleSequence J X n)^2/(scaleSequence J X i)^2 |
| 127 | have hx := quadratic_growth_pos J (by omega) (scaleSequence J X) |
| 128 | (show 0 < X by linarith only [hX]) (scaleSequence_succ J X) |
| 129 | have hγ (i : ℕ) : γ i*(scaleSequence J X i)^2=β n*(scaleSequence J X n)^2 := by |
| 130 | dsimp only [γ] |
| 131 | exact div_mul_cancel₀ _ (pow_ne_zero _ (hx i).ne') |
| 132 | have H := stage_guards J D hJ C c X K δ hC hX hK hδ hδK hb b γ |
| 133 | (fun _ => ha) (fun _ => ha2) |
| 134 | (fun i => by rw [hγ i]; exact hβ) (fun i => by rw [hγ i]; exact hβ2) n |
| 135 | apply stage_congr_at (b := a) (γ := β) H rfl |
| 136 | dsimp only [γ] |
| 137 | exact mul_div_cancel_right₀ _ (pow_ne_zero _ (hx n).ne') |
| 138 | |
| 139 | end EulerParentRenewalPrefix |