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 Mathlib.Analysis.Calculus.Deriv.Pow |
| 2 | import Mathlib.Analysis.Calculus.Deriv.Mul |
| 3 | import Mathlib.Data.Nat.Factorial.Basic |
| 4 | import Mathlib.Tactic.FieldSimp |
| 5 | import Mathlib.Tactic.Linarith |
| 6 | import Mathlib.Tactic.NormNum |
| 7 | import Mathlib.Tactic.Positivity |
| 8 | import Mathlib.Tactic.Ring |
| 9 | |
| 10 | /-! |
| 11 | # Algebraic checks for the natural axis profile |
| 12 | |
| 13 | These theorems concern the scaled leading equations and the two explicit |
| 14 | truncations in Proposition 5.1 of the candidate manuscript. They do not |
| 15 | establish convergence of a formal power series, the nonlinear remainder |
| 16 | estimates, the contraction argument, or the full profile's cone margin. |
| 17 | -/ |
| 18 | |
| 19 | namespace NavierStokes.AxisProfile |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | /-- The coefficient of `Y^n` in `(Y ∂YY + m ∂Y) a`, at the formal |
| 24 | coefficient level. -/ |
| 25 | def radialOperatorCoeff (m : ℕ) (a : ℕ → ℝ) (n : ℕ) : ℝ := |
| 26 | ((n : ℝ) + 1) * ((n : ℝ) + m) * a (n + 1) |
| 27 | |
| 28 | /-- The regular zero-datum formal inverse used in the scaled equations. -/ |
| 29 | def radialInverseCoeff (m : ℕ) (f : ℕ → ℝ) : ℕ → ℝ |
| 30 | | 0 => 0 |
| 31 | | n + 1 => f n / (((n : ℝ) + 1) * ((n : ℝ) + m)) |
| 32 | |
| 33 | @[simp] theorem radialInverseCoeff_zero (m : ℕ) (f : ℕ → ℝ) : |
| 34 | radialInverseCoeff m f 0 = 0 := rfl |
| 35 | |
| 36 | /-- For positive `m`, the stated shift really inverts the formal radial |
| 37 | operator. No assertion about convergence is implicit in this theorem. -/ |
| 38 | theorem radialOperator_inverse (m : ℕ) (hm : 0 < m) (f : ℕ → ℝ) (n : ℕ) : |
| 39 | radialOperatorCoeff m (radialInverseCoeff m f) n = f n := by |
| 40 | have hm' : (0 : ℝ) < m := Nat.cast_pos.mpr hm |
| 41 | have hden : ((n : ℝ) + 1) * ((n : ℝ) + m) ≠ 0 := by positivity |
| 42 | unfold radialOperatorCoeff |
| 43 | rw [radialInverseCoeff] |
| 44 | exact mul_div_cancel₀ (f n) hden |
| 45 | |
| 46 | /-- The leading angular series coefficient from Proposition 5.1: |
| 47 | `(-χ/2)^n / (n! (n+1)!)`. -/ |
| 48 | def profileCoeff (χ : ℝ) (n : ℕ) : ℝ := |
| 49 | (-χ / 2) ^ n / ((n.factorial : ℝ) * ((n + 1).factorial : ℝ)) |
| 50 | |
| 51 | @[simp] theorem profileCoeff_zero (χ : ℝ) : profileCoeff χ 0 = 1 := by |
| 52 | norm_num [profileCoeff] |
| 53 | |
| 54 | /-- Exact recurrence for the displayed regular series. -/ |
| 55 | theorem profileCoeff_recurrence (χ : ℝ) (n : ℕ) : |
| 56 | 2 * ((n : ℝ) + 1) * ((n : ℝ) + 2) * profileCoeff χ (n + 1) = |
| 57 | -χ * profileCoeff χ n := by |
| 58 | have hf : (n.factorial : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr (Nat.factorial_ne_zero n) |
| 59 | have hn1 : (n : ℝ) + 1 ≠ 0 := by positivity |
| 60 | have hn2 : (n : ℝ) + 1 + 1 ≠ 0 := by positivity |
| 61 | simp only [profileCoeff, Nat.factorial_succ, Nat.cast_mul, Nat.cast_add, |
| 62 | Nat.cast_one, pow_succ] |
| 63 | field_simp; ring |
| 64 | |
| 65 | /-- The formal series solves the leading angular equation coefficient by |
| 66 | coefficient. This does not identify an analytic solution. -/ |
| 67 | theorem profileCoeff_scaled_equation (χ : ℝ) (n : ℕ) : |
| 68 | 2 * radialOperatorCoeff 2 (profileCoeff χ) n = -χ * profileCoeff χ n := by |
| 69 | simpa only [radialOperatorCoeff, Nat.cast_ofNat, mul_assoc] using |
| 70 | profileCoeff_recurrence χ n |
| 71 | |
| 72 | /-- The coefficient transformation for the formal combination `f + Yf'` |
| 73 | is exactly the factorial-square series used for the sign test. -/ |
| 74 | theorem weighted_profileCoeff (χ : ℝ) (n : ℕ) : |
| 75 | ((n : ℝ) + 1) * profileCoeff χ n = |
| 76 | (-χ / 2) ^ n / (n.factorial : ℝ) ^ 2 := by |
| 77 | have hf : (n.factorial : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr (Nat.factorial_ne_zero n) |
| 78 | have hn : (n : ℝ) + 1 ≠ 0 := by positivity |
| 79 | simp only [profileCoeff, Nat.factorial_succ, Nat.cast_mul, Nat.cast_add, |
| 80 | Nat.cast_one] |
| 81 | field_simp |
| 82 | |
| 83 | /-- The cubic lower truncation in the manuscript, with `t = Yχ/2`. -/ |
| 84 | def cubicLower (t : ℝ) : ℝ := 1 - t / 2 + t ^ 2 / 12 - t ^ 3 / 144 |
| 85 | |
| 86 | /-- The quartic upper truncation for `f₀ + s f₀'`, in the variable `t=s/2`. -/ |
| 87 | def quarticUpper (t : ℝ) : ℝ := |
| 88 | 1 - t + t ^ 2 / 4 - t ^ 3 / 36 + t ^ 4 / 576 |
| 89 | |
| 90 | /-- A rational positivity certificate for the lower truncation on |
| 91 | `t ≤ 2.05`; the natural application also has `t ≥ 0`. -/ |
| 92 | theorem cubicLower_gt_quarter (t : ℝ) (ht : t ≤ 41 / 20) : |
| 93 | 1 / 4 < cubicLower t := by |
| 94 | have hd : 0 ≤ 41 / 20 - t := sub_nonneg.mpr ht |
| 95 | have h2 : 0 ≤ (41 / 20 - t) ^ 2 := sq_nonneg _ |
| 96 | have h3 : 0 ≤ (41 / 20 - t) ^ 3 := pow_nonneg hd _ |
| 97 | have hidentity : cubicLower t = |
| 98 | cubicLower (41 / 20) + |
| 99 | (1 / 2 - (41 / 20) / 6 + (41 / 20) ^ 2 / 48) * (41 / 20 - t) + |
| 100 | (1 / 12 - (41 / 20) / 48) * (41 / 20 - t) ^ 2 + |
| 101 | (41 / 20 - t) ^ 3 / 144 := by |
| 102 | unfold cubicLower |
| 103 | ring |
| 104 | norm_num [cubicLower] at hidentity |
| 105 | unfold cubicLower |
| 106 | nlinarith |
| 107 | |
| 108 | /-- A direct rational verification of the numerical strict inequality |
| 109 | used for the initial cone margin. -/ |
| 110 | theorem quarticUpper_lt_neg_eighteen_hundredths |
| 111 | (t : ℝ) (hlo : 99 / 50 ≤ t) (hhi : t ≤ 2) : |
| 112 | quarticUpper t < -(18 / 100) := by |
| 113 | have ht : 0 ≤ t := by linarith |
| 114 | have hsmall : 0 ≤ 1 - t / 2 := by linarith |
| 115 | have hsmall_le : 1 - t / 2 ≤ 1 / 100 := by linarith |
| 116 | have hsquare := pow_le_pow_left₀ hsmall hsmall_le 2 |
| 117 | have hcube := pow_le_pow_left₀ (show (0 : ℝ) ≤ 99 / 50 by norm_num) hlo 3 |
| 118 | have hfour := pow_le_pow_left₀ ht hhi 4 |
| 119 | norm_num at hsquare hcube hfour |
| 120 | unfold quarticUpper |
| 121 | nlinarith |
| 122 | |
| 123 | /-- The first four actual displayed series terms, for a concrete link |
| 124 | between the coefficient calculation and the lower polynomial. -/ |
| 125 | theorem first_four_terms_eq_cubic (χ Y : ℝ) : |
| 126 | profileCoeff χ 0 + profileCoeff χ 1 * Y + |
| 127 | profileCoeff χ 2 * Y ^ 2 + profileCoeff χ 3 * Y ^ 3 = |
| 128 | cubicLower (Y * χ / 2) := by |
| 129 | norm_num [profileCoeff, cubicLower, Nat.factorial_succ] |
| 130 | ring |
| 131 | |
| 132 | /-- The first five terms of the formal `f + Yf'` series give exactly the |
| 133 | quartic sign-test polynomial. -/ |
| 134 | theorem first_five_weighted_terms_eq_quartic (χ Y : ℝ) : |
| 135 | profileCoeff χ 0 + 2 * profileCoeff χ 1 * Y + |
| 136 | 3 * profileCoeff χ 2 * Y ^ 2 + 4 * profileCoeff χ 3 * Y ^ 3 + |
| 137 | 5 * profileCoeff χ 4 * Y ^ 4 = quarticUpper (Y * χ / 2) := by |
| 138 | norm_num [profileCoeff, quarticUpper, Nat.factorial_succ] |
| 139 | ring |
| 140 | |
| 141 | /-- The leading axial profile displayed in the scaled construction. -/ |
| 142 | def leadingAxial (Z L Y : ℝ) : ℝ := -Y * Z / (2 * L) |
| 143 | |
| 144 | theorem leadingAxial_zero (Z L : ℝ) : leadingAxial Z L 0 = 0 := by |
| 145 | simp [leadingAxial] |
| 146 | |
| 147 | theorem hasDerivAt_leadingAxial (Z L Y : ℝ) : |
| 148 | HasDerivAt (leadingAxial Z L) (-Z / (2 * L)) Y := by |
| 149 | have hfun : leadingAxial Z L = fun x : ℝ => (-Z / (2 * L)) * x := by |
| 150 | funext x |
| 151 | unfold leadingAxial |
| 152 | ring |
| 153 | rw [hfun] |
| 154 | simpa only [id_eq, mul_one] using (hasDerivAt_id Y).const_mul (-Z / (2 * L)) |
| 155 | |
| 156 | /-- The derivative of the linear leading axial solution is constant. -/ |
| 157 | theorem hasDerivAt_leadingAxial_derivative (Z L Y : ℝ) : |
| 158 | HasDerivAt (fun _ : ℝ => -Z / (2 * L)) 0 Y := |
| 159 | hasDerivAt_const Y _ |
| 160 | |
| 161 | /-- The derivative as a function, permitting a second differentiation. -/ |
| 162 | theorem deriv_leadingAxial (Z L : ℝ) : |
| 163 | deriv (leadingAxial Z L) = fun _ : ℝ => -Z / (2 * L) := by |
| 164 | funext Y |
| 165 | exact (hasDerivAt_leadingAxial Z L Y).deriv |
| 166 | |
| 167 | /-- The linear leading axial profile satisfies the actual scaled ODE. -/ |
| 168 | theorem leadingAxial_scaled_equation (Z L Y : ℝ) (hL : L ≠ 0) : |
| 169 | 2 * (Y * deriv (deriv (leadingAxial Z L)) Y + deriv (leadingAxial Z L) Y) = |
| 170 | -Z / L := by |
| 171 | rw [deriv_leadingAxial] |
| 172 | simp only [deriv_const, mul_zero, zero_add] |
| 173 | field_simp |
| 174 | |
| 175 | end |
| 176 | |
| 177 | end NavierStokes.AxisProfile |