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 | /-! A translation-kernel formula for the literal normalized periodic 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 | /-- This formula realizes the angular primitive as an integral of translations. -/ |
| 14 | theorem primitive_eq_translation_kernel (P : ℝ) (hP : P ≠ 0) (f : ℝ → E) |
| 15 | (hf : Continuous f) (hper : Function.Periodic f P) |
| 16 | (hmean : (∫ s in (0 : ℝ)..P, f s)=0) (θ : ℝ) : |
| 17 | primitive P f θ = P⁻¹ • (∫ s in (0 : ℝ)..P, s • f (θ+s)) := by |
| 18 | let q := primitive P f |
| 19 | have hq : Continuous q := primitive_continuous P f hf |
| 20 | have hqp : Function.Periodic q P := primitive_periodic P f hf hper hmean |
| 21 | have hd (s : ℝ) : HasDerivAt (fun r => r • q (θ+r)) |
| 22 | (q (θ+s)+s • f (θ+s)) s := by |
| 23 | have hq' := (primitive_hasDerivAt P f hf (θ+s)).scomp s ((hasDerivAt_id s).const_add θ) |
| 24 | simpa only [Function.comp_def, id_eq, one_smul, Pi.smul_def', q, add_comm] using |
| 25 | (hasDerivAt_id s).smul hq' |
| 26 | have hqc : Continuous (fun s => q (θ+s)) := hq.comp (continuous_const.add continuous_id) |
| 27 | have hfc : Continuous (fun s => s • f (θ+s)) := |
| 28 | continuous_id.smul (hf.comp (continuous_const.add continuous_id)) |
| 29 | have hi := intervalIntegral.integral_eq_sub_of_hasDerivAt (fun s _ => hd s) |
| 30 | ((hqc.add hfc).intervalIntegrable 0 P) |
| 31 | rw [intervalIntegral.integral_add (hqc.intervalIntegrable 0 P) (hfc.intervalIntegrable 0 P)] at hi |
| 32 | have hzero : (∫ s in (0 : ℝ)..P, q (θ+s))=0 := by |
| 33 | rw [intervalIntegral.integral_comp_add_left] |
| 34 | have hp := hqp.intervalIntegral_add_eq θ 0 |
| 35 | rw [zero_add] at hp |
| 36 | rw [add_zero, hp] |
| 37 | exact primitive_mean_zero P hP f hf |
| 38 | rw [hzero, zero_add, hqp θ, zero_smul, sub_zero] at hi |
| 39 | change q θ = _ |
| 40 | rw [hi, smul_smul, inv_mul_cancel₀ hP, one_smul] |
| 41 | |
| 42 | end EulerAngleMeanZeroPrimitive |