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.AngleMeanZeroPrimitive |
| 2 | |
| 3 | /-! Uniform bounds for the actual mean-zero angular primitive. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerAngleMeanZeroPrimitive |
| 8 | |
| 9 | open Set MeasureTheory |
| 10 | |
| 11 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 12 | |
| 13 | omit [CompleteSpace E] in |
| 14 | theorem rawPrimitive_bound (P M : ℝ) (hM : 0 ≤ M) (f : ℝ → E) |
| 15 | (hf : ∀ θ ∈ Icc 0 P, ‖f θ‖ ≤ M) (θ : ℝ) (hθ : θ ∈ Icc 0 P) : |
| 16 | ‖rawPrimitive f θ‖ ≤ M*P := by |
| 17 | have h := intervalIntegral.norm_integral_le_of_norm_le_const |
| 18 | (a := (0 : ℝ)) (b := θ) (f := f) (C := M) (fun x hx => hf x (by |
| 19 | rw [uIoc_of_le hθ.1] at hx |
| 20 | exact ⟨hx.1.le, hx.2.trans hθ.2⟩)) |
| 21 | simp only [sub_zero, abs_of_nonneg hθ.1] at h |
| 22 | exact h.trans (mul_le_mul_of_nonneg_left hθ.2 hM) |
| 23 | |
| 24 | omit [CompleteSpace E] in |
| 25 | theorem primitive_bound (P M : ℝ) (hP : 0 < P) (hM : 0 ≤ M) (f : ℝ → E) |
| 26 | (hf : ∀ θ ∈ Icc 0 P, ‖f θ‖ ≤ M) (θ : ℝ) (hθ : θ ∈ Icc 0 P) : |
| 27 | ‖primitive P f θ‖ ≤ 2*P*M := by |
| 28 | have hraw := rawPrimitive_bound P M hM f hf |
| 29 | have hint : ‖∫ s in 0..P, rawPrimitive f s‖ ≤ (M*P)*P := by |
| 30 | have h := intervalIntegral.norm_integral_le_of_norm_le_const |
| 31 | (a := (0 : ℝ)) (b := P) (f := rawPrimitive f) (C := M*P) (fun x hx => hraw x (by |
| 32 | rw [uIoc_of_le hP.le] at hx |
| 33 | exact ⟨hx.1.le, hx.2⟩)) |
| 34 | simpa only [sub_zero, abs_of_pos hP] using h |
| 35 | have hmean : ‖P⁻¹ • (∫ s in 0..P, rawPrimitive f s)‖ ≤ M*P := by |
| 36 | rw [norm_smul, Real.norm_eq_abs, abs_of_pos (inv_pos.mpr hP)] |
| 37 | calc |
| 38 | _ ≤ P⁻¹*((M*P)*P) := mul_le_mul_of_nonneg_left hint (inv_nonneg.mpr hP.le) |
| 39 | _ = M*P := by field_simp |
| 40 | exact (norm_sub_le _ _).trans (by linarith [hraw θ hθ, hmean]) |
| 41 | |
| 42 | end EulerAngleMeanZeroPrimitive |