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.CompactParameterIntegral |
| 2 | import Euler.AngleMeanZeroPrimitive |
| 3 | |
| 4 | /-! The actual angular primitive is jointly smooth in spatial labels and angle. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | universe u |
| 9 | |
| 10 | namespace EulerAngleMeanZeroPrimitive |
| 11 | |
| 12 | open Set MeasureTheory EulerCompactParameterIntegral |
| 13 | open scoped ContDiff |
| 14 | |
| 15 | variable {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 16 | |
| 17 | omit [CompleteSpace E] in |
| 18 | theorem rawPrimitive_fixed_interval (f : ℝ → E) (θ : ℝ) : |
| 19 | rawPrimitive f θ = θ • (∫ s in (0 : ℝ)..1, f (θ*s)) := by |
| 20 | simpa only [rawPrimitive, mul_zero, mul_one] using |
| 21 | (intervalIntegral.smul_integral_comp_mul_left (a := (0 : ℝ)) (b := 1) f θ).symm |
| 22 | |
| 23 | variable {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] [ProperSpace X] |
| 24 | |
| 25 | theorem rawPrimitive_joint_contDiff (F : X × ℝ → E) (hF : ContDiff ℝ ∞ F) : |
| 26 | ContDiff ℝ ∞ (fun p : X × ℝ => rawPrimitive (fun θ => F (p.1,θ)) p.2) := by |
| 27 | have hG : ContDiff ℝ ∞ (fun z : (X × ℝ) × ℝ => F (z.1.1,z.1.2*z.2)) := |
| 28 | hF.comp (contDiff_fst.fst.prodMk (contDiff_fst.snd.mul contDiff_snd)) |
| 29 | have hi := integral_contDiff 0 1 zero_le_one _ hG |
| 30 | simpa only [rawPrimitive_fixed_interval, Pi.smul_def'] using contDiff_snd.smul hi |
| 31 | |
| 32 | theorem primitive_joint_contDiff (P : ℝ) (hP : 0 ≤ P) (F : X × ℝ → E) |
| 33 | (hF : ContDiff ℝ ∞ F) : |
| 34 | ContDiff ℝ ∞ (fun p : X × ℝ => primitive P (fun θ => F (p.1,θ)) p.2) := by |
| 35 | have hr := rawPrimitive_joint_contDiff F hF |
| 36 | have hm := integral_contDiff 0 P hP _ hr |
| 37 | exact hr.sub (contDiff_const.smul (hm.comp contDiff_fst)) |
| 38 | |
| 39 | section Continuous |
| 40 | |
| 41 | variable {Y : Type*} [TopologicalSpace Y] [FirstCountableTopology Y] [LocallyCompactSpace Y] |
| 42 | |
| 43 | end Continuous |
| 44 | end EulerAngleMeanZeroPrimitive |