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.SpecialFunctions.Pow.Real |
| 2 | import Mathlib.Algebra.Order.AbsoluteValue.Basic |
| 3 | import Mathlib.Data.Rat.Floor |
| 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 | # Exact core and carrier scaling |
| 12 | |
| 13 | Real-power identities and the integer-frequency estimate in Appendix A, |
| 14 | Proposition A.2 and Remark 8.6 of the candidate manuscript. These are scalar |
| 15 | scaling facts; they do not supply a Navier--Stokes solution or analytic estimates |
| 16 | for its profiles. The arbitrary envelope is kept in the carrier Reynolds product. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | namespace NavierStokes.Scaling |
| 22 | |
| 23 | /-- The core velocity scale, with the fixed profile coefficient omitted. -/ |
| 24 | def coreVelocity (q h : ℝ) : ℝ := q ^ (-(1 / 2 + h)) |
| 25 | |
| 26 | /-- The radial length scale. -/ |
| 27 | def radialLength (q : ℝ) : ℝ := q ^ (1 / 2 : ℝ) |
| 28 | |
| 29 | /-- The axial length scale. -/ |
| 30 | def axialLength (q h : ℝ) : ℝ := q ^ (1 / 2 - h) |
| 31 | |
| 32 | /-- Reynolds number at physical viscosity one. -/ |
| 33 | def reynolds (velocity length : ℝ) : ℝ := velocity * length |
| 34 | |
| 35 | theorem core_radial_reynolds {q : ℝ} (hq : 0 < q) (h : ℝ) : |
| 36 | reynolds (coreVelocity q h) (radialLength q) = q ^ (-h) := by |
| 37 | unfold reynolds coreVelocity radialLength |
| 38 | rw [← Real.rpow_add hq] |
| 39 | congr 1 |
| 40 | ring |
| 41 | |
| 42 | theorem core_axial_reynolds {q : ℝ} (hq : 0 < q) (h : ℝ) : |
| 43 | reynolds (coreVelocity q h) (axialLength q h) = q ^ (-2 * h) := by |
| 44 | unfold reynolds coreVelocity axialLength |
| 45 | rw [← Real.rpow_add hq] |
| 46 | congr 1 |
| 47 | ring |
| 48 | |
| 49 | /-- Dividing the diffusion scale by the inertial scale yields `Q ^ h`. -/ |
| 50 | theorem normalized_viscosity {Q : ℝ} (hQ : 0 < Q) (h : ℝ) : |
| 51 | Q ^ (-(1 / 2 + h) - 1) / Q ^ (-2 * (1 / 2 + h) - 1 / 2) = |
| 52 | Q ^ h := by |
| 53 | rw [← Real.rpow_sub hQ] |
| 54 | congr 1 |
| 55 | ring |
| 56 | |
| 57 | theorem sqrt_viscosity {Q : ℝ} (hQ : 0 < Q) (h : ℝ) : |
| 58 | Real.sqrt (Q ^ h) = Q ^ (h / 2) := by |
| 59 | rw [Real.sqrt_eq_rpow, ← Real.rpow_mul hQ.le] |
| 60 | congr 1 |
| 61 | ring |
| 62 | |
| 63 | /-- The physical amplitude prefactor of the primary wave. -/ |
| 64 | theorem wave_amplitude_power {Q : ℝ} (hQ : 0 < Q) (h : ℝ) : |
| 65 | coreVelocity Q h * Real.sqrt (Q ^ h) = Q ^ (-1 / 2 - h / 2) := by |
| 66 | rw [sqrt_viscosity hQ] |
| 67 | unfold coreVelocity |
| 68 | rw [← Real.rpow_add hQ] |
| 69 | congr 1 |
| 70 | ring |
| 71 | |
| 72 | /-- The continuum wavelength scale, before rounding the frequency. -/ |
| 73 | theorem wave_length_power {Q : ℝ} (hQ : 0 < Q) (h : ℝ) : |
| 74 | radialLength Q * Real.sqrt (Q ^ h) = Q ^ (1 / 2 + h / 2) := by |
| 75 | rw [sqrt_viscosity hQ] |
| 76 | unfold radialLength |
| 77 | rw [← Real.rpow_add hQ] |
| 78 | |
| 79 | theorem wave_power_cancellation {Q : ℝ} (hQ : 0 < Q) (h : ℝ) : |
| 80 | Q ^ (-1 / 2 - h / 2) * Q ^ (1 / 2 + h / 2) = 1 := by |
| 81 | rw [← Real.rpow_add hQ] |
| 82 | have he : (-1 / 2 - h / 2) + (1 / 2 + h / 2) = (0 : ℝ) := by ring |
| 83 | rw [he, Real.rpow_zero] |
| 84 | |
| 85 | /-- The integer carrier frequency is the natural ceiling of `ε ^ (-1/2)`. -/ |
| 86 | def carrierFrequency (ε : ℝ) : ℕ := ⌈ε ^ (-(1 / 2 : ℝ))⌉₊ |
| 87 | |
| 88 | theorem inverse_sqrt_power {ε : ℝ} (hε : 0 < ε) : |
| 89 | ε ^ (-(1 / 2 : ℝ)) = (Real.sqrt ε)⁻¹ := by |
| 90 | rw [Real.rpow_neg hε.le, Real.sqrt_eq_rpow] |
| 91 | |
| 92 | /-- Integer rounding changes `k √ε` by at most `√ε`. -/ |
| 93 | theorem carrier_frequency_sqrt_bounds {ε : ℝ} (hε : 0 < ε) : |
| 94 | 1 ≤ (carrierFrequency ε : ℝ) * Real.sqrt ε ∧ |
| 95 | (carrierFrequency ε : ℝ) * Real.sqrt ε ≤ 1 + Real.sqrt ε := by |
| 96 | have hs : 0 < Real.sqrt ε := Real.sqrt_pos.mpr hε |
| 97 | have hp : 0 ≤ ε ^ (-(1 / 2 : ℝ)) := (Real.rpow_pos_of_pos hε _).le |
| 98 | have hc : ε ^ (-(1 / 2 : ℝ)) * Real.sqrt ε = 1 := by |
| 99 | rw [inverse_sqrt_power hε, inv_mul_cancel₀ hs.ne'] |
| 100 | constructor |
| 101 | · have hl := mul_le_mul_of_nonneg_right |
| 102 | (Nat.le_ceil (ε ^ (-(1 / 2 : ℝ)))) hs.le |
| 103 | simpa only [carrierFrequency, hc] using hl |
| 104 | · have hu := mul_le_mul_of_nonneg_right (Nat.ceil_lt_add_one hp).le hs.le |
| 105 | calc |
| 106 | (carrierFrequency ε : ℝ) * Real.sqrt ε ≤ |
| 107 | (ε ^ (-(1 / 2 : ℝ)) + 1) * Real.sqrt ε := hu |
| 108 | _ = 1 + Real.sqrt ε := by rw [add_mul, hc, one_mul] |
| 109 | |
| 110 | theorem carrier_frequency_pos {ε : ℝ} (hε : 0 < ε) : |
| 111 | 0 < (carrierFrequency ε : ℝ) := by |
| 112 | have h := (carrier_frequency_sqrt_bounds hε).1 |
| 113 | have hs : 0 < Real.sqrt ε := Real.sqrt_pos.mpr hε |
| 114 | nlinarith |
| 115 | |
| 116 | /-- The lower and upper viscosity bounds include the integer ceiling error. -/ |
| 117 | theorem carrier_viscosity_bounds {ε : ℝ} (hε : 0 < ε) : |
| 118 | 1 ≤ ε * (carrierFrequency ε : ℝ) ^ 2 ∧ |
| 119 | ε * (carrierFrequency ε : ℝ) ^ 2 ≤ (1 + Real.sqrt ε) ^ 2 := by |
| 120 | obtain ⟨hl, hu⟩ := carrier_frequency_sqrt_bounds hε |
| 121 | have hk : 0 ≤ (carrierFrequency ε : ℝ) * Real.sqrt ε := by positivity |
| 122 | have heq : ((carrierFrequency ε : ℝ) * Real.sqrt ε) ^ 2 = |
| 123 | ε * (carrierFrequency ε : ℝ) ^ 2 := by |
| 124 | rw [mul_pow, Real.sq_sqrt hε.le] |
| 125 | ring |
| 126 | constructor |
| 127 | · have hsq := (sq_le_sq₀ (by norm_num : (0 : ℝ) ≤ 1) hk).mpr hl |
| 128 | simpa only [one_pow, heq] using hsq |
| 129 | · have hsq := (sq_le_sq₀ hk (by positivity : 0 ≤ 1 + Real.sqrt ε)).mpr hu |
| 130 | simpa only [heq] using hsq |
| 131 | |
| 132 | theorem one_add_sqrt_sq_le_four {ε : ℝ} (hε₁ : ε ≤ 1) : |
| 133 | (1 + Real.sqrt ε) ^ 2 ≤ 4 := by |
| 134 | have hs : Real.sqrt ε ≤ 1 := Real.sqrt_le_one.mpr hε₁ |
| 135 | have hs₀ := Real.sqrt_nonneg ε |
| 136 | nlinarith |
| 137 | |
| 138 | /-- The manuscript's complete inequality, for `0 < ε ≤ 1`. -/ |
| 139 | theorem order_one_viscosity {ε : ℝ} (hε : 0 < ε) (hε₁ : ε ≤ 1) : |
| 140 | 1 ≤ ε * (carrierFrequency ε : ℝ) ^ 2 ∧ |
| 141 | ε * (carrierFrequency ε : ℝ) ^ 2 ≤ (1 + Real.sqrt ε) ^ 2 ∧ |
| 142 | (1 + Real.sqrt ε) ^ 2 ≤ 4 := by |
| 143 | exact ⟨(carrier_viscosity_bounds hε).1, (carrier_viscosity_bounds hε).2, |
| 144 | one_add_sqrt_sq_le_four hε₁⟩ |
| 145 | |
| 146 | theorem reciprocal_frequency_bounds {ε : ℝ} (hε : 0 < ε) (hε₁ : ε ≤ 1) : |
| 147 | Real.sqrt ε / 2 ≤ 1 / (carrierFrequency ε : ℝ) ∧ |
| 148 | 1 / (carrierFrequency ε : ℝ) ≤ Real.sqrt ε := by |
| 149 | obtain ⟨hl, hu⟩ := carrier_frequency_sqrt_bounds hε |
| 150 | have hk := carrier_frequency_pos hε |
| 151 | have hs : Real.sqrt ε ≤ 1 := Real.sqrt_le_one.mpr hε₁ |
| 152 | constructor |
| 153 | · apply (le_div_iff₀ hk).mpr |
| 154 | nlinarith |
| 155 | · apply (div_le_iff₀ hk).mpr |
| 156 | nlinarith |
| 157 | |
| 158 | /-- The physical wavelength with the actual integer carrier frequency. -/ |
| 159 | def waveLength (Q h : ℝ) : ℝ := |
| 160 | radialLength Q / (carrierFrequency (Q ^ h) : ℝ) |
| 161 | |
| 162 | /-- Integer rounding changes the nominal wavelength by a factor in `[1/2,1]`. -/ |
| 163 | theorem wave_length_bounds {Q h : ℝ} (hQ : 0 < Q) (hε : Q ^ h ≤ 1) : |
| 164 | Q ^ (1 / 2 + h / 2) / 2 ≤ waveLength Q h ∧ |
| 165 | waveLength Q h ≤ Q ^ (1 / 2 + h / 2) := by |
| 166 | have hp : 0 < Q ^ h := Real.rpow_pos_of_pos hQ h |
| 167 | obtain ⟨hl, hu⟩ := reciprocal_frequency_bounds hp hε |
| 168 | have hr : 0 ≤ radialLength Q := (Real.rpow_pos_of_pos hQ _).le |
| 169 | constructor |
| 170 | · calc |
| 171 | Q ^ (1 / 2 + h / 2) / 2 = |
| 172 | radialLength Q * (Real.sqrt (Q ^ h) / 2) := by |
| 173 | rw [← wave_length_power hQ h] |
| 174 | ring |
| 175 | _ ≤ radialLength Q * (1 / (carrierFrequency (Q ^ h) : ℝ)) := |
| 176 | mul_le_mul_of_nonneg_left hl hr |
| 177 | _ = waveLength Q h := by simp [waveLength, div_eq_mul_inv] |
| 178 | · calc |
| 179 | waveLength Q h = radialLength Q * (1 / (carrierFrequency (Q ^ h) : ℝ)) := by |
| 180 | simp [waveLength, div_eq_mul_inv] |
| 181 | _ ≤ radialLength Q * Real.sqrt (Q ^ h) := mul_le_mul_of_nonneg_left hu hr |
| 182 | _ = Q ^ (1 / 2 + h / 2) := wave_length_power hQ h |
| 183 | |
| 184 | /-- The primary velocity includes an arbitrary real envelope coefficient. -/ |
| 185 | def waveVelocity (Q h envelope : ℝ) : ℝ := |
| 186 | coreVelocity Q h * Real.sqrt (Q ^ h) * envelope |
| 187 | |
| 188 | /-- Exact cancellation leaves the envelope and a bounded rounding factor. -/ |
| 189 | theorem wave_reynolds_exact {Q : ℝ} (hQ : 0 < Q) (h envelope : ℝ) : |
| 190 | reynolds (waveVelocity Q h envelope) (waveLength Q h) = |
| 191 | envelope / ((carrierFrequency (Q ^ h) : ℝ) * Real.sqrt (Q ^ h)) := by |
| 192 | have hp : 0 < Q ^ h := Real.rpow_pos_of_pos hQ h |
| 193 | have hk := carrier_frequency_pos hp |
| 194 | have hs : 0 < Real.sqrt (Q ^ h) := Real.sqrt_pos.mpr hp |
| 195 | have hc : (coreVelocity Q h * Real.sqrt (Q ^ h)) * |
| 196 | (radialLength Q * Real.sqrt (Q ^ h)) = 1 := by |
| 197 | rw [wave_amplitude_power hQ h, wave_length_power hQ h, |
| 198 | wave_power_cancellation hQ h] |
| 199 | apply (eq_div_iff (mul_ne_zero hk.ne' hs.ne')).mpr |
| 200 | unfold reynolds waveVelocity waveLength |
| 201 | calc |
| 202 | (coreVelocity Q h * Real.sqrt (Q ^ h) * envelope * |
| 203 | (radialLength Q / (carrierFrequency (Q ^ h) : ℝ))) * |
| 204 | ((carrierFrequency (Q ^ h) : ℝ) * Real.sqrt (Q ^ h)) = |
| 205 | envelope * ((coreVelocity Q h * Real.sqrt (Q ^ h)) * |
| 206 | (radialLength Q * Real.sqrt (Q ^ h))) := by |
| 207 | field_simp |
| 208 | _ = envelope := by rw [hc, mul_one] |
| 209 | |
| 210 | /-- A positive envelope gives quantitative bounds with no extra power of `Q`. -/ |
| 211 | theorem wave_reynolds_bounds {Q h envelope : ℝ} (hQ : 0 < Q) |
| 212 | (hε : Q ^ h ≤ 1) (he : 0 ≤ envelope) : |
| 213 | envelope / 2 ≤ reynolds (waveVelocity Q h envelope) (waveLength Q h) ∧ |
| 214 | reynolds (waveVelocity Q h envelope) (waveLength Q h) ≤ envelope := by |
| 215 | rw [wave_reynolds_exact hQ] |
| 216 | have hp : 0 < Q ^ h := Real.rpow_pos_of_pos hQ h |
| 217 | obtain ⟨hl, hu⟩ := carrier_frequency_sqrt_bounds hp |
| 218 | have hs : Real.sqrt (Q ^ h) ≤ 1 := Real.sqrt_le_one.mpr hε |
| 219 | have hd : 0 < (carrierFrequency (Q ^ h) : ℝ) * Real.sqrt (Q ^ h) := by |
| 220 | linarith |
| 221 | have hd₂ : (carrierFrequency (Q ^ h) : ℝ) * Real.sqrt (Q ^ h) ≤ 2 := by |
| 222 | linarith |
| 223 | constructor |
| 224 | · apply (le_div_iff₀ hd).mpr |
| 225 | nlinarith [mul_nonneg he (sub_nonneg.mpr hd₂)] |
| 226 | · apply (div_le_iff₀ hd).mpr |
| 227 | nlinarith [mul_nonneg he (sub_nonneg.mpr hl)] |
| 228 | |
| 229 | /-- The scaling computation does not imply a lower bound at envelope zeros. -/ |
| 230 | theorem wave_reynolds_zero_envelope (Q h : ℝ) : |
| 231 | reynolds (waveVelocity Q h 0) (waveLength Q h) = 0 := by |
| 232 | simp [reynolds, waveVelocity] |
| 233 | |
| 234 | end NavierStokes.Scaling |