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 | omit [CompleteSpace E] in |
| 44 | theorem rawPrimitive_joint_continuous (F : Y × ℝ → E) (hF : Continuous F) : |
| 45 | Continuous (fun p : Y × ℝ => rawPrimitive (fun θ => F (p.1,θ)) p.2) := by |
| 46 | have hG : Continuous (fun z : (Y × ℝ) × ℝ => F (z.1.1,z.1.2*z.2)) := |
| 47 | hF.comp (continuous_fst.fst.prodMk (continuous_fst.snd.mul continuous_snd)) |
| 48 | have hi := continuous_parametric_integral_of_continuous |
| 49 | (μ := volume) (f := fun p : Y × ℝ => fun s : ℝ => F (p.1,p.2*s)) hG |
| 50 | (isCompact_Icc : IsCompact (Icc (0 : ℝ) 1)) |
| 51 | have hi' : Continuous (fun p : Y × ℝ => ∫ s in (0 : ℝ)..1, F (p.1,p.2*s)) := by |
| 52 | simpa only [intervalIntegral.integral_of_le (zero_le_one : (0 : ℝ) ≤ 1), |
| 53 | integral_Icc_eq_integral_Ioc] using hi |
| 54 | simpa only [rawPrimitive_fixed_interval, Pi.smul_def'] using continuous_snd.smul hi' |
| 55 | |
| 56 | omit [CompleteSpace E] in |
| 57 | theorem primitive_joint_continuous (P : ℝ) (hP : 0 ≤ P) (F : Y × ℝ → E) |
| 58 | (hF : Continuous F) : |
| 59 | Continuous (fun p : Y × ℝ => primitive P (fun θ => F (p.1,θ)) p.2) := by |
| 60 | have hr := rawPrimitive_joint_continuous F hF |
| 61 | have hm := continuous_parametric_integral_of_continuous |
| 62 | (μ := volume) (f := fun y : Y => fun s : ℝ => rawPrimitive (fun θ => F (y,θ)) s) |
| 63 | hr (isCompact_Icc : IsCompact (Icc (0 : ℝ) P)) |
| 64 | have hm' : Continuous (fun y : Y => ∫ s in (0 : ℝ)..P, rawPrimitive (fun θ => F (y,θ)) s) := by |
| 65 | simpa only [intervalIntegral.integral_of_le hP, integral_Icc_eq_integral_Ioc] using hm |
| 66 | exact hr.sub (continuous_const.smul (hm'.comp continuous_fst)) |
| 67 | |
| 68 | end Continuous |
| 69 | end EulerAngleMeanZeroPrimitive |