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.AnglePrimitiveTranslation |
| 2 | |
| 3 | /-! The normalized angular primitive reverses joint reflection parity. -/ |
| 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 | omit [CompleteSpace E] in |
| 14 | theorem primitive_neg (P : ℝ) (f : ℝ → E) : |
| 15 | primitive P (fun θ => -f θ)=fun θ => -primitive P f θ := by |
| 16 | funext θ |
| 17 | simp only [primitive, rawPrimitive, intervalIntegral.integral_neg, smul_neg] |
| 18 | abel |
| 19 | |
| 20 | /-- Reflection of the argument contributes one minus sign to a primitive. -/ |
| 21 | theorem primitive_reflection (P : ℝ) (hP : P ≠ 0) (f : ℝ → E) (hf : Continuous f) |
| 22 | (hper : Function.Periodic f P) (hmean : ∫ θ in 0..P, f θ=0) : |
| 23 | primitive P (fun θ => -f (-θ))=fun θ => primitive P f (-θ) := by |
| 24 | symm |
| 25 | apply primitive_unique P hP (fun θ => -f (-θ)) (hf.comp continuous_neg).neg |
| 26 | · intro θ |
| 27 | simpa only [Function.comp_def, id_eq, neg_smul, one_smul] using |
| 28 | (primitive_hasDerivAt P f hf (-θ)).scomp θ ((hasDerivAt_id θ).neg) |
| 29 | · rw [intervalIntegral.integral_comp_neg, neg_zero] |
| 30 | have h := (primitive_periodic P f hf hper hmean).intervalIntegral_add_eq (-P) 0 |
| 31 | simp only [neg_add_cancel, zero_add] at h |
| 32 | exact h.trans (primitive_mean_zero P hP f hf) |
| 33 | |
| 34 | end EulerAngleMeanZeroPrimitive |