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 | /-! The normalized periodic angular primitive commutes with actual angular translation. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerAngleMeanZeroPrimitive |
| 8 | |
| 9 | open MeasureTheory |
| 10 | |
| 11 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 12 | |
| 13 | theorem primitive_translate (P : ℝ) (hP : P ≠ 0) (f : ℝ → E) (hf : Continuous f) |
| 14 | (hper : Function.Periodic f P) (hmean : ∫ θ in 0..P, f θ=0) (a : ℝ) : |
| 15 | primitive P (fun θ => f (θ+a))=fun θ => primitive P f (θ+a) := by |
| 16 | symm |
| 17 | apply primitive_unique P hP (fun θ => f (θ+a)) (hf.comp (continuous_id.add continuous_const)) |
| 18 | · intro θ |
| 19 | simpa only [one_smul, Function.comp_def, id_eq] using |
| 20 | (primitive_hasDerivAt P f hf (θ+a)).scomp θ ((hasDerivAt_id θ).add_const a) |
| 21 | · rw [intervalIntegral.integral_comp_add_right] |
| 22 | have h := (primitive_periodic P f hf hper hmean).intervalIntegral_add_eq a 0 |
| 23 | rw [zero_add] at h |
| 24 | rw [zero_add, add_comm P a, h, primitive_mean_zero P hP f hf] |
| 25 | |
| 26 | end EulerAngleMeanZeroPrimitive |