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.Real.Sqrt |
| 2 | import Mathlib.Tactic.FieldSimp |
| 3 | import Mathlib.Tactic.Linarith |
| 4 | import Mathlib.Tactic.Ring |
| 5 | |
| 6 | /-! |
| 7 | # Reference pulse growth |
| 8 | |
| 9 | This file verifies the scalar reference growth calculation in Lemma 8.5 and |
| 10 | Proposition A.4 of the supplied manuscript. The denominator `(1 + u^2)^(3/2)` |
| 11 | is written as `(1 + u^2) * sqrt (1 + u^2)` to avoid fractional-power notation. |
| 12 | These results do not assert bounds on the actual variable-coefficient ODE or |
| 13 | on its parameter derivatives. |
| 14 | -/ |
| 15 | |
| 16 | namespace NavierStokes.PulseGrowth |
| 17 | |
| 18 | /-- Scalar growth of the positive reference mode after the chosen viscous damping. -/ |
| 19 | noncomputable def netGrowth (lam u s : ℝ) : ℝ := |
| 20 | lam / Real.sqrt (1 + s ^ 2) - |
| 21 | lam * (1 + s ^ 2) / ((1 + u ^ 2) * Real.sqrt (1 + u ^ 2)) |
| 22 | |
| 23 | theorem one_add_sq_pos (s : ℝ) : 0 < 1 + s ^ 2 := by |
| 24 | positivity |
| 25 | |
| 26 | theorem radius_pos (s : ℝ) : 0 < Real.sqrt (1 + s ^ 2) := |
| 27 | Real.sqrt_pos.2 (one_add_sq_pos s) |
| 28 | |
| 29 | theorem dampingDenominator_pos (u : ℝ) : |
| 30 | 0 < (1 + u ^ 2) * Real.sqrt (1 + u ^ 2) := |
| 31 | mul_pos (one_add_sq_pos u) (radius_pos u) |
| 32 | |
| 33 | /-- The three-halves denominator is the cube of the positive square root. -/ |
| 34 | theorem dampingDenominator_eq_radius_cube (u : ℝ) : |
| 35 | (1 + u ^ 2) * Real.sqrt (1 + u ^ 2) = (Real.sqrt (1 + u ^ 2)) ^ 3 := by |
| 36 | calc |
| 37 | (1 + u ^ 2) * Real.sqrt (1 + u ^ 2) = |
| 38 | (Real.sqrt (1 + u ^ 2)) ^ 2 * Real.sqrt (1 + u ^ 2) := by |
| 39 | rw [Real.sq_sqrt (le_of_lt (one_add_sq_pos u))] |
| 40 | _ = (Real.sqrt (1 + u ^ 2)) ^ 3 := by ring |
| 41 | |
| 42 | /-- Squaring the proposed positive eigenvalue gives the reference discriminant. -/ |
| 43 | theorem reference_eigenvalue_square (lam s : ℝ) : |
| 44 | (lam / Real.sqrt (1 + s ^ 2)) ^ 2 = lam ^ 2 / (1 + s ^ 2) := by |
| 45 | rw [div_pow, Real.sq_sqrt (le_of_lt (one_add_sq_pos s))] |
| 46 | |
| 47 | /-- Characteristic equation for the two off-diagonal reference coefficients. |
| 48 | |
| 49 | Here `a = 2 F₀ Nθ` and `b = -(2 F₀ Nθ + |g₀|)` in the manuscript. |
| 50 | The hypothesis is the manuscript's definition of the squared reference rate; |
| 51 | its positivity from the geometric cone is not assumed to have been established. |
| 52 | -/ |
| 53 | theorem reference_characteristic_equation {a b lam s : ℝ} (hdisc : lam ^ 2 = a * b) : |
| 54 | (lam / Real.sqrt (1 + s ^ 2)) ^ 2 - (a / (1 + s ^ 2)) * b = 0 := by |
| 55 | rw [reference_eigenvalue_square, hdisc] |
| 56 | ring |
| 57 | |
| 58 | /-- Reversing the sign of the slot parameter does not change the growth. -/ |
| 59 | theorem netGrowth_even (lam u s : ℝ) : |
| 60 | netGrowth lam u (-s) = netGrowth lam u s := by |
| 61 | simp [netGrowth] |
| 62 | |
| 63 | /-- The prescribed damping exactly cancels growth at the threshold. -/ |
| 64 | theorem netGrowth_at_threshold (lam u : ℝ) : netGrowth lam u u = 0 := by |
| 65 | unfold netGrowth |
| 66 | field_simp [ne_of_gt (one_add_sq_pos u), ne_of_gt (radius_pos u)]; ring |
| 67 | |
| 68 | /-- Strict decrease in squared distance from zero, for a positive reference rate. -/ |
| 69 | theorem netGrowth_strictAnti_sq {lam u s t : ℝ} (hlam : 0 < lam) |
| 70 | (hst : s ^ 2 < t ^ 2) : netGrowth lam u t < netGrowth lam u s := by |
| 71 | have hst' : 1 + s ^ 2 < 1 + t ^ 2 := by linarith |
| 72 | have hr : Real.sqrt (1 + s ^ 2) < Real.sqrt (1 + t ^ 2) := |
| 73 | Real.sqrt_lt_sqrt (le_of_lt (one_add_sq_pos s)) hst' |
| 74 | have hg : lam / Real.sqrt (1 + t ^ 2) < lam / Real.sqrt (1 + s ^ 2) := by |
| 75 | apply (div_lt_div_iff₀ (radius_pos t) (radius_pos s)).2 |
| 76 | exact mul_lt_mul_of_pos_left hr hlam |
| 77 | have hd : lam * (1 + s ^ 2) / ((1 + u ^ 2) * Real.sqrt (1 + u ^ 2)) < |
| 78 | lam * (1 + t ^ 2) / ((1 + u ^ 2) * Real.sqrt (1 + u ^ 2)) := |
| 79 | div_lt_div_of_pos_right (mul_lt_mul_of_pos_left hst' hlam) (dampingDenominator_pos u) |
| 80 | exact sub_lt_sub hg hd |
| 81 | |
| 82 | theorem netGrowth_eq_of_sq_eq {lam u s t : ℝ} (hst : s ^ 2 = t ^ 2) : |
| 83 | netGrowth lam u s = netGrowth lam u t := by |
| 84 | simp only [netGrowth, hst] |
| 85 | |
| 86 | /-- Growth is positive strictly inside either threshold. -/ |
| 87 | theorem netGrowth_pos_of_abs_lt {lam u s : ℝ} (hlam : 0 < lam) |
| 88 | (hs : |s| < |u|) : 0 < netGrowth lam u s := by |
| 89 | have h := netGrowth_strictAnti_sq (u := u) hlam (sq_lt_sq.2 hs) |
| 90 | simpa only [netGrowth_at_threshold] using h |
| 91 | |
| 92 | /-- Growth vanishes at both signed thresholds. -/ |
| 93 | theorem netGrowth_zero_of_abs_eq {lam u s : ℝ} (hs : |s| = |u|) : |
| 94 | netGrowth lam u s = 0 := by |
| 95 | have hsq : s ^ 2 = u ^ 2 := by |
| 96 | calc |
| 97 | s ^ 2 = |s| ^ 2 := (sq_abs s).symm |
| 98 | _ = |u| ^ 2 := by rw [hs] |
| 99 | _ = u ^ 2 := sq_abs u |
| 100 | rw [netGrowth_eq_of_sq_eq hsq, netGrowth_at_threshold] |
| 101 | |
| 102 | /-- Growth is negative outside either threshold. -/ |
| 103 | theorem netGrowth_neg_of_abs_gt {lam u s : ℝ} (hlam : 0 < lam) |
| 104 | (hs : |u| < |s|) : netGrowth lam u s < 0 := by |
| 105 | have h := netGrowth_strictAnti_sq (u := u) hlam (sq_lt_sq.2 hs) |
| 106 | simpa only [netGrowth_at_threshold] using h |
| 107 | |
| 108 | /-- A complete positive/zero/negative classification for a positive reference rate. -/ |
| 109 | theorem netGrowth_sign {lam u s : ℝ} (hlam : 0 < lam) : |
| 110 | (0 < netGrowth lam u s ↔ |s| < |u|) ∧ |
| 111 | (netGrowth lam u s = 0 ↔ |s| = |u|) ∧ |
| 112 | (netGrowth lam u s < 0 ↔ |u| < |s|) := by |
| 113 | rcases lt_trichotomy |s| |u| with hs | hs | hs |
| 114 | · have hg := netGrowth_pos_of_abs_lt (lam := lam) hlam hs |
| 115 | constructor |
| 116 | · exact ⟨fun _ => hs, fun _ => hg⟩ |
| 117 | constructor |
| 118 | · constructor <;> intro h <;> linarith |
| 119 | · constructor <;> intro h <;> linarith |
| 120 | · have hg : netGrowth lam u s = 0 := netGrowth_zero_of_abs_eq hs |
| 121 | constructor |
| 122 | · constructor <;> intro h <;> linarith |
| 123 | constructor |
| 124 | · exact ⟨fun _ => hs, fun _ => hg⟩ |
| 125 | · constructor <;> intro h <;> linarith |
| 126 | · have hg := netGrowth_neg_of_abs_gt (lam := lam) hlam hs |
| 127 | constructor |
| 128 | · constructor <;> intro h <;> linarith |
| 129 | constructor |
| 130 | · constructor <;> intro h <;> linarith |
| 131 | · exact ⟨fun _ => hs, fun _ => hg⟩ |
| 132 | |
| 133 | /-- For positive magnitudes the reference growth is strictly decreasing. -/ |
| 134 | theorem netGrowth_strictAntiOn_nonneg {lam u : ℝ} (hlam : 0 < lam) : |
| 135 | StrictAntiOn (netGrowth lam u) (Set.Ici 0) := by |
| 136 | intro s hs t ht hst |
| 137 | have hs0 : 0 ≤ s := hs |
| 138 | have ht0 : 0 ≤ t := ht |
| 139 | apply netGrowth_strictAnti_sq hlam |
| 140 | apply sq_lt_sq.2 |
| 141 | simpa only [abs_of_nonneg hs0, abs_of_nonneg ht0] using hst |
| 142 | |
| 143 | /-- Magnitude of either signed schedule, in the slot-time variable. -/ |
| 144 | noncomputable def slotMagnitude (u ell v : ℝ) : ℝ := u / 2 + u * v / ell |
| 145 | |
| 146 | theorem slotMagnitude_midpoint (u ell : ℝ) (hell : ell ≠ 0) : |
| 147 | slotMagnitude u ell (ell / 2) = u := by |
| 148 | unfold slotMagnitude |
| 149 | field_simp; ring |
| 150 | |
| 151 | theorem slotMagnitude_nonneg {u ell v : ℝ} (hu : 0 ≤ u) (hell : 0 < ell) |
| 152 | (hv : 0 ≤ v) : 0 ≤ slotMagnitude u ell v := by |
| 153 | unfold slotMagnitude |
| 154 | positivity |
| 155 | |
| 156 | theorem slotMagnitude_lt_threshold {u ell v : ℝ} (hu : 0 < u) (hell : 0 < ell) |
| 157 | (hv : v < ell / 2) : slotMagnitude u ell v < u := by |
| 158 | have hdiv : u * v / ell < u / 2 := (div_lt_iff₀ hell).2 (by nlinarith) |
| 159 | unfold slotMagnitude |
| 160 | linarith |
| 161 | |
| 162 | theorem slotMagnitude_gt_threshold {u ell v : ℝ} (hu : 0 < u) (hell : 0 < ell) |
| 163 | (hv : ell / 2 < v) : u < slotMagnitude u ell v := by |
| 164 | have hdiv : u / 2 < u * v / ell := (lt_div_iff₀ hell).2 (by nlinarith) |
| 165 | unfold slotMagnitude |
| 166 | linarith |
| 167 | |
| 168 | /-- Positive reference growth on the first half of a slot. -/ |
| 169 | theorem netGrowth_slot_positive {lam u ell v : ℝ} (hlam : 0 < lam) (hu : 0 < u) |
| 170 | (hell : 0 < ell) (hv : 0 ≤ v) (hmid : v < ell / 2) : |
| 171 | 0 < netGrowth lam u (slotMagnitude u ell v) := by |
| 172 | apply netGrowth_pos_of_abs_lt hlam |
| 173 | rw [abs_of_nonneg (slotMagnitude_nonneg (le_of_lt hu) hell hv), abs_of_pos hu] |
| 174 | exact slotMagnitude_lt_threshold hu hell hmid |
| 175 | |
| 176 | /-- Zero reference growth at the slot midpoint. -/ |
| 177 | theorem netGrowth_slot_midpoint (lam u ell : ℝ) (hell : ell ≠ 0) : |
| 178 | netGrowth lam u (slotMagnitude u ell (ell / 2)) = 0 := by |
| 179 | rw [slotMagnitude_midpoint u ell hell, netGrowth_at_threshold] |
| 180 | |
| 181 | /-- Negative reference growth on the second half of a slot (and beyond). -/ |
| 182 | theorem netGrowth_slot_negative {lam u ell v : ℝ} (hlam : 0 < lam) (hu : 0 < u) |
| 183 | (hell : 0 < ell) (hmid : ell / 2 < v) : |
| 184 | netGrowth lam u (slotMagnitude u ell v) < 0 := by |
| 185 | have hv : 0 ≤ v := by linarith |
| 186 | apply netGrowth_neg_of_abs_gt hlam |
| 187 | rw [abs_of_pos hu, abs_of_nonneg (slotMagnitude_nonneg (le_of_lt hu) hell hv)] |
| 188 | exact slotMagnitude_gt_threshold hu hell hmid |
| 189 | |
| 190 | end NavierStokes.PulseGrowth |