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 stage_congr_at {J D : ℕ} {C c X K : ℝ} {a β b γ : ℕ → ℝ} {n : ℕ} |
| 35 | (G : StageGuards J D C c X K a β n) (ha : a n=b n) (hβ : β n=γ n) : |
| 36 | StageGuards J D C c X K b γ n where |
| 37 | epsilon_pos := by simpa only [ha] using G.epsilon_pos |
| 38 | epsilon_small := by simpa only [ha] using G.epsilon_small |
| 39 | sigma_pos := by simpa only [hβ] using G.sigma_pos |
| 40 | sigma_small := by simpa only [hβ] using G.sigma_small |
| 41 | reciprocal_pos := G.reciprocal_pos |
| 42 | reciprocal_small := G.reciprocal_small |
| 43 | target_from_sigma := by simpa only [hβ] using G.target_from_sigma |
| 44 | target_le_horizon := by simpa only [ha,hβ] using G.target_le_horizon |
| 45 | horizon_le_Theta := by simpa only [ha,hβ] using G.horizon_le_Theta |
| 46 | extra_time := by simpa only [ha,hβ] using G.extra_time |
| 47 | next_width := G.next_width |
| 48 | geometry_small := by simpa only [geometryError,ha] using G.geometry_small |
| 49 | compression := by simpa only [ha,hβ] using G.compression |
| 50 | |
| 51 | /-- Extend just the current scalar values to a bounded artificial |
| 52 | sequence, apply the uniform theorem, then transfer its local conclusion. |
| 53 | No hypotheses on any future stage are required. -/ |
| 54 | theorem stage_guards_at (J D : ℕ) (hJ : 3 ≤ J) (C c X K δ : ℝ) |
| 55 | (hC : 4 ≤ C) (hX : 8 ≤ X) (hK : 1 ≤ K) (hδ : δ ≤ 1/2) |
| 56 | (hδK : 1000000*K*δ ≤ 1) (hb : ActualBounds J D C c X δ) |
| 57 | (a β : ℕ → ℝ) (n : ℕ) |
| 58 | (ha : 1/2 ≤ a n) (ha2 : a n ≤ 2) |
| 59 | (hβ : 1/2 ≤ β n*(scaleSequence J X n)^2) |
| 60 | (hβ2 : β n*(scaleSequence J X n)^2 ≤ 2) : |
| 61 | StageGuards J D C c X K a β n := by |
| 62 | let b : ℕ → ℝ := fun _ => a n |
| 63 | let γ : ℕ → ℝ := fun i => β n*(scaleSequence J X n)^2/(scaleSequence J X i)^2 |
| 64 | have hx := quadratic_growth_pos J (by omega) (scaleSequence J X) |
| 65 | (show 0 < X by linarith only [hX]) (scaleSequence_succ J X) |
| 66 | have hγ (i : ℕ) : γ i*(scaleSequence J X i)^2=β n*(scaleSequence J X n)^2 := by |
| 67 | dsimp only [γ] |
| 68 | exact div_mul_cancel₀ _ (pow_ne_zero _ (hx i).ne') |
| 69 | have H := stage_guards J D hJ C c X K δ hC hX hK hδ hδK hb b γ |
| 70 | (fun _ => ha) (fun _ => ha2) |
| 71 | (fun i => by rw [hγ i]; exact hβ) (fun i => by rw [hγ i]; exact hβ2) n |
| 72 | apply stage_congr_at (b := a) (γ := β) H rfl |
| 73 | dsimp only [γ] |
| 74 | exact mul_div_cancel_right₀ _ (pow_ne_zero _ (hx n).ne') |
| 75 | |
| 76 | end EulerParentRenewalPrefix |