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

chore(NavierStokes/Wave): delete 10 declarations nothing uses #515
Open
+0 −121 NavierStokes/WaveInteractionBounds.lean View file
| @@ -69,13 +69,6 @@ theorem mean_wave_cmul {s : StripData D} {P : ℕ → D → ℝ} {α β : ℝ} | ||
| 69 | 69 | WaveClass s P (α + β) (fun n x => f n x * g n x) := |
| 70 | 70 | hf.bilinear_wave hg hζ (ContinuousLinearMap.mul ℝ ℂ) |
| 71 | 71 | |
| 72 | -theorem wave_cmul_mean {s : StripData D} {P : ℕ → D → ℝ} {α β : ℝ} | |
| 73 | - {f g : ℕ → D → ℂ} (hf : WaveClass s P α f) (hg : WaveClass s P β g) | |
| 74 | - (hP0 : ∀ n x, x ∈ s.domain → 0 ≤ P n x) | |
| 75 | - (hP1 : ∀ n x, x ∈ s.domain → P n x ≤ 1) : | |
| 76 | - MeanClass s (α + β) (fun n x => f n x * g n x) := | |
| 77 | - hf.bilinear_mean hg hP0 hP1 (ContinuousLinearMap.mul ℝ ℂ) | |
| 78 | - | |
| 79 | 72 | /-- Evaluation of the actual derivative field at an actual vector field. -/ |
| 80 | 73 | theorem class_along {s : StripData D} {w : ℕ → D → ℝ} {α β : ℝ} |
| 81 | 74 | {f : ℕ → D → E} {V : ℕ → D → D} |
| @@ -176,22 +169,6 @@ theorem strippedTransport_class {s : StripData D} {w v : ℕ → D → ℝ} {α | ||
| 176 | 169 | have hz' := hz.mono_exponent (show α + β - κ ≤ α + (β + 1) by linarith) |
| 177 | 170 | exact (hr'.add hc').add hz' |
| 178 | 171 | |
| 179 | -theorem strippedDivergence_class {s : StripData D} {w : ℕ → D → ℝ} {α κ : ℝ} | |
| 180 | - (G : Geometry s κ) (hκ : 0 ≤ κ) {a : Family D} | |
| 181 | - (ha : ∀ i, MemClass s w α (fun n x => a n x i)) : | |
| 182 | - MemClass s w (α - κ) | |
| 183 | - (fun n => strippedDivergence (G.radius n) (G.radial n) (G.axial n) (a n)) := by | |
| 184 | - have hr : MemClass s w (α - κ) | |
| 185 | - (fun n => along (G.radial n) (fun y => a n y 0)) := by | |
| 186 | - simpa only [sub_eq_add_neg] using class_along (ha 0) G.radial_class | |
| 187 | - have hc := (class_div_radius G (ha 0)).mono_exponent (show α - κ ≤ α by linarith) | |
| 188 | - have hz := (class_along (ha 2) G.axial_class).mono_exponent | |
| 189 | - (show α - κ ≤ α + 1 by linarith) | |
| 190 | - apply class_congr ((hr.add hc).add hz) | |
| 191 | - intro n x _ | |
| 192 | - simp only [strippedDivergence, Complex.real_smul, Complex.ofReal_inv, div_eq_mul_inv] | |
| 193 | - ring | |
| 194 | - | |
| 195 | 172 | theorem wave_mean_weight {s : StripData D} {P : ℕ → D → ℝ} {α : ℝ} {f : ℕ → D → E} |
| 196 | 173 | (hf : MemClass s (fun n x => (Real.sqrt (s.zeta x) * P n x) * s.zeta x) α f) |
| 197 | 174 | (hζ : ∀ x ∈ s.domain, s.zeta x ≤ 1) |
| @@ -200,36 +177,6 @@ theorem wave_mean_weight {s : StripData D} {P : ℕ → D → ℝ} {α : ℝ} {f | ||
| 200 | 177 | intro n x hx |
| 201 | 178 | exact mul_le_of_le_one_right (mul_nonneg (Real.sqrt_nonneg _) (hP n x hx)) (hζ x hx) |
| 202 | 179 | |
| 203 | -theorem wave_square_weight_mean {s : StripData D} {P : ℕ → D → ℝ} {α : ℝ} | |
| 204 | - {f : ℕ → D → E} | |
| 205 | - (hf : MemClass s (fun n x => (Real.sqrt (s.zeta x) * P n x) * | |
| 206 | - (Real.sqrt (s.zeta x) * P n x)) α f) | |
| 207 | - (hP0 : ∀ n x, x ∈ s.domain → 0 ≤ P n x) | |
| 208 | - (hP1 : ∀ n x, x ∈ s.domain → P n x ≤ 1) : MeanClass s α f := by | |
| 209 | - apply hf.mono_weight (fun _ x hx => s.zeta_nonneg x hx) | |
| 210 | - intro n x hx | |
| 211 | - have hP2 : P n x * P n x ≤ 1 := by nlinarith [hP0 n x hx, hP1 n x hx] | |
| 212 | - calc | |
| 213 | - _ = (Real.sqrt (s.zeta x)) ^ 2 * (P n x * P n x) := by ring | |
| 214 | - _ = s.zeta x * (P n x * P n x) := by rw [Real.sq_sqrt (s.zeta_nonneg x hx)] | |
| 215 | - _ ≤ s.zeta x * 1 := mul_le_mul_of_nonneg_left hP2 (s.zeta_nonneg x hx) | |
| 216 | - _ = _ := mul_one _ | |
| 217 | - | |
| 218 | -theorem wave_square_weight_wave {s : StripData D} {P : ℕ → D → ℝ} {α : ℝ} | |
| 219 | - {f : ℕ → D → E} | |
| 220 | - (hf : MemClass s (fun n x => (Real.sqrt (s.zeta x) * P n x) * | |
| 221 | - (Real.sqrt (s.zeta x) * P n x)) α f) | |
| 222 | - (hζ : ∀ x ∈ s.domain, s.zeta x ≤ 1) | |
| 223 | - (hP0 : ∀ n x, x ∈ s.domain → 0 ≤ P n x) | |
| 224 | - (hP1 : ∀ n x, x ∈ s.domain → P n x ≤ 1) : WaveClass s P α f := by | |
| 225 | - apply hf.mono_weight (fun n x hx => mul_nonneg (Real.sqrt_nonneg _) (hP0 n x hx)) | |
| 226 | - intro n x hx | |
| 227 | - have hs1 : Real.sqrt (s.zeta x) ≤ 1 := by | |
| 228 | - nlinarith [Real.sqrt_nonneg (s.zeta x), Real.sq_sqrt (s.zeta_nonneg x hx), hζ x hx] | |
| 229 | - have hw1 : Real.sqrt (s.zeta x) * P n x ≤ 1 := by | |
| 230 | - simpa only [one_mul] using mul_le_mul hs1 (hP1 n x hx) (hP0 n x hx) (by norm_num : (0 : ℝ) ≤ 1) | |
| 231 | - exact mul_le_of_le_one_right (mul_nonneg (Real.sqrt_nonneg _) (hP0 n x hx)) hw1 | |
| 232 | - | |
| 233 | 180 | theorem mean_advects_stripped_wave {s : StripData D} {P : ℕ → D → ℝ} {α μ κ : ℝ} |
| 234 | 181 | (G : Geometry s κ) (hκ : κ ≤ 1) {m a : Family D} |
| 235 | 182 | (hm : MeanVector s μ m) (ha : WaveVector s P α a) |
| @@ -326,74 +273,6 @@ noncomputable def sameCoefficient {s : StripData D} {κ : ℝ} (G : Geometry s | ||
| 326 | 273 | strippedTransport G a b n x i + phaseFactor (ξ n) * normalDot |
| 327 | 274 | (phaseNormal (G.radius n) (G.radial n) (G.angular n) (G.axial n) (Φ n) x) (a n x) * b n x i |
| 328 | 275 | |
| 329 | -/-- All derivatives of the longitudinal contraction are estimated through | |
| 330 | -the actual divergence identity, including derivatives of the phase normal. -/ | |
| 331 | -theorem same_label_raw_bound {s : StripData D} {P : ℕ → D → ℝ} {α β κ : ℝ} | |
| 332 | - (G : Geometry s κ) (hκ : 0 ≤ κ) {Φ : ℕ → D → ℝ} {ν ξ : ℕ → ℝ} | |
| 333 | - {a b : Family D} (ha : WaveVector s P α a) (hb : WaveVector s P β b) | |
| 334 | - (hΦ : ∀ n, ContDiffOn ℝ ∞ (Φ n) s.domain) (hν : ∀ n, ν n ≠ 0) | |
| 335 | - (hratio : BandBound s 0 (fun n => ξ n / ν n)) | |
| 336 | - (haθ : AngularIndependent G a) | |
| 337 | - (hdiv : ∀ n x, x ∈ s.domain → cylindricalDivergence | |
| 338 | - (G.radius n) (G.radial n) (G.angular n) (G.axial n) (vectorMode (ν n) (Φ n) (a n)) x = 0) | |
| 339 | - (i : Fin 3) : | |
| 340 | - MemClass s (fun n x => (Real.sqrt (s.zeta x) * P n x) * | |
| 341 | - (Real.sqrt (s.zeta x) * P n x)) (α + β - κ) | |
| 342 | - (fun n x => sameCoefficient G Φ ξ a b n x i) := by | |
| 343 | - have hs := strippedDivergence_class G hκ ha | |
| 344 | - have hsw : WaveClass s P (α - κ) (fun n x => | |
| 345 | - (ξ n / ν n) • (-strippedDivergence (G.radius n) (G.radial n) (G.axial n) (a n) x)) := by | |
| 346 | - unfold WaveClass | |
| 347 | - simpa only [add_zero] using (class_neg hs).band_smul hratio | |
| 348 | - have hprod := class_cmul hsw (hb i) | |
| 349 | - have hprod' : MemClass s (fun n x => (Real.sqrt (s.zeta x) * P n x) * | |
| 350 | - (Real.sqrt (s.zeta x) * P n x)) (α + β - κ) (fun n x => | |
| 351 | - ((ξ n / ν n) • (-strippedDivergence (G.radius n) (G.radial n) (G.axial n) (a n) x)) * b n x i) := by | |
| 352 | - convert! hprod using 1 | |
| 353 | - ring | |
| 354 | - have hp : MemClass s (fun n x => (Real.sqrt (s.zeta x) * P n x) * | |
| 355 | - (Real.sqrt (s.zeta x) * P n x)) (α + β - κ) (fun n x => | |
| 356 | - phaseFactor (ξ n) * normalDot | |
| 357 | - (phaseNormal (G.radius n) (G.radial n) (G.angular n) (G.axial n) (Φ n) x) (a n x) * b n x i) := by | |
| 358 | - apply class_congr hprod' | |
| 359 | - intro n x hx | |
| 360 | - have hp := ((hΦ n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp) | |
| 361 | - have hd j := (((ha j).smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp) | |
| 362 | - dsimp only | |
| 363 | - rw [switched_longitudinal _ _ _ _ (ν n) (ξ n) (hν n) hp hd (haθ n 1 x hx) (hdiv n x hx)] | |
| 364 | - exact (strippedTransport_class G hκ ha hb i).add hp | |
| 365 | - | |
| 366 | -theorem int_abs_cast_one_le {j : ℤ} (hj : j ≠ 0) : (1 : ℝ) ≤ |(j : ℝ)| := by | |
| 367 | - have hpos : (0 : ℤ) < |j| := abs_pos.mpr hj | |
| 368 | - have hone : (1 : ℤ) ≤ |j| := by omega | |
| 369 | - exact_mod_cast hone | |
| 370 | - | |
| 371 | -theorem harmonic_ratio_bound {j l : ℤ} {M : ℝ} (hj : j ≠ 0) | |
| 372 | - (hM : 0 ≤ M) (hl : |(l : ℝ)| ≤ M) : |(l : ℝ) / (j : ℝ)| ≤ M := by | |
| 373 | - have hj1 := int_abs_cast_one_le hj | |
| 374 | - rw [abs_div] | |
| 375 | - apply (div_le_iff₀ (lt_of_lt_of_le (by norm_num : (0 : ℝ) < 1) hj1)).mpr | |
| 376 | - exact hl.trans (le_mul_of_one_le_right hM hj1) | |
| 377 | - | |
| 378 | -theorem bandBound_harmonic_ratio (s : StripData D) {j l : ℕ → ℤ} {M : ℝ} | |
| 379 | - (hj : ∀ n, j n ≠ 0) (hM : 0 ≤ M) (hl : ∀ n, |(l n : ℝ)| ≤ M) : | |
| 380 | - BandBound s 0 (fun n => (l n : ℝ) / (j n : ℝ)) := by | |
| 381 | - refine ⟨M, hM, 0, ?_⟩ | |
| 382 | - intro n | |
| 383 | - simpa only [Real.norm_eq_abs, Real.rpow_zero, pow_zero, mul_one] using | |
| 384 | - harmonic_ratio_bound (hj n) hM (hl n) | |
| 385 | - | |
| 386 | -theorem frequency_ratio {k : ℝ} (hk : k ≠ 0) {j : ℤ} (hj : j ≠ 0) (l : ℤ) : | |
| 387 | - (k * (l : ℝ)) / (k * (j : ℝ)) = (l : ℝ) / (j : ℝ) := by | |
| 388 | - have hj' : (j : ℝ) ≠ 0 := by exact_mod_cast hj | |
| 389 | - field_simp | |
| 390 | - | |
| 391 | -theorem bandBound_frequency_ratio (s : StripData D) {k : ℕ → ℝ} {j l : ℕ → ℤ} {M : ℝ} | |
| 392 | - (hk : ∀ n, k n ≠ 0) (hj : ∀ n, j n ≠ 0) (hM : 0 ≤ M) | |
| 393 | - (hl : ∀ n, |(l n : ℝ)| ≤ M) : | |
| 394 | - BandBound s 0 (fun n => (k n * (l n : ℝ)) / (k n * (j n : ℝ))) := by | |
| 395 | - simpa only [frequency_ratio (hk _) (hj _)] using bandBound_harmonic_ratio s hj hM hl | |
| 396 | - | |
| 397 | 276 | theorem bandBound_frequency {s : StripData D} {β : ℝ} {k : ℕ → ℝ} {j : ℕ → ℤ} {M : ℝ} |
| 398 | 277 | (hk : BandBound s β k) (hM : 0 ≤ M) (hj : ∀ n, |(j n : ℝ)| ≤ M) : |
| 399 | 278 | BandBound s β (fun n => k n * (j n : ℝ)) := by |
+31 −0 routes/s1-ns-wave-8/README.md added View file
| @@ -0,0 +1,31 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-wave-8 | |
| 6 | + | |
| 7 | +One unit of #10 (S-1, "Delete declarations that nothing uses"), wave 8, the declaration pass. Family | |
| 8 | +`NavierStokes/Wave*`: it deletes 10 declarations, 121 lines, from `NavierStokes/WaveInteractionBounds.lean`: | |
| 9 | + | |
| 10 | +- `wave_cmul_mean`, `wave_square_weight_mean`, `wave_square_weight_wave` (weighted `MeanClass`/`WaveClass` | |
| 11 | + bridges next to their used counterparts `mean_wave_cmul` and `mean_advects_stripped_wave`); | |
| 12 | +- `strippedDivergence_class` and its only user `same_label_raw_bound` (the same-label contraction estimate, | |
| 13 | + which goes with it); | |
| 14 | +- the frequency-ratio helpers `int_abs_cast_one_le`, `harmonic_ratio_bound`, `bandBound_harmonic_ratio`, | |
| 15 | + `frequency_ratio`, `bandBound_frequency_ratio`. | |
| 16 | + | |
| 17 | +The unit was cut from Treant's run of 2026-12-03 (TitiSkywalker/NavierStokesAndEuler) and read again against this | |
| 18 | +project's declaration graph under its rule that the paper's results stay: a declaration Treant deleted stays when | |
| 19 | +one of the paper's results reaches it, when its docstring cites the paper, or when the text of a declaration that | |
| 20 | +stays names it. None of those keeps a declaration here; the one deleted docstring (`same_label_raw_bound`'s) says | |
| 21 | +what the theorem states and names no Lemma, Theorem, Proposition, Corollary, Section or Equation. | |
| 22 | + | |
| 23 | +Every deleted name was checked on the tree left behind, all ten: `git grep -n -w <short name> -- '*.lean'`. Nine | |
| 24 | +find nothing; the tenth, `strippedDivergence_class`, still occurs at `NavierStokes/CurlClassBounds.lean:251`, which | |
| 25 | +is another declaration of that short name in another namespace. The diff is deletions only; `python3 | |
| 26 | +checks/challenge.py .` ends with `ok: 4 challenge files and the build configuration as approved; …`. | |
| 27 | + | |
| 28 | +## Next | |
| 29 | + | |
| 30 | +The maintainer's review after `challenge` and `build`. If `build` finds a user of one of these names that the grep | |
| 31 | +cannot see, that declaration comes back from the parent commit of this branch and out of this unit. | |