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.GraphPressurePotential |
| 2 | import Mathlib.MeasureTheory.Integral.Bochner.Set |
| 3 | |
| 4 | /-! Radial reconstruction of a canonically normalized scalar potential. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerCanonicalGraphPotential |
| 9 | |
| 10 | open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace |
| 11 | open scoped ContDiff |
| 12 | |
| 13 | /-- The scalar radial integral of a spatial vector field, based at the origin. -/ |
| 14 | def radialPotential (V : Vector3 → Vector3) (x : Vector3) : ℝ := |
| 15 | ∫ s in (0 : ℝ)..1, ⟪V (s • x), x⟫_ℝ |
| 16 | |
| 17 | /-- The radial integral is normalized to vanish at the origin. -/ |
| 18 | theorem radialPotential_zero (V : Vector3 → Vector3) : radialPotential V 0 = 0 := by |
| 19 | simp [radialPotential] |
| 20 | |
| 21 | /-- The fundamental theorem of calculus identifies the radial integral with a normalized genuine potential. -/ |
| 22 | theorem radialPotential_eq_sub (V : Vector3 → Vector3) (hV : Continuous V) |
| 23 | (q : Vector3 → ℝ) (hq : ContDiff ℝ ∞ q) (hgrad : ∀ x, gradient q x = V x) |
| 24 | (x : Vector3) : radialPotential V x = q x - q 0 := by |
| 25 | have hd (s : ℝ) : HasDerivAt (fun r : ℝ => q (r • x)) ⟪V (s • x), x⟫_ℝ s := by |
| 26 | have h := ((hq.differentiable (by simp)) (s • x)).hasFDerivAt.comp_hasDerivAt s |
| 27 | ((hasDerivAt_id s).smul_const x) |
| 28 | simpa only [Function.comp_def, id_eq, one_smul, ← inner_gradient_left, hgrad] using h |
| 29 | have hi : IntervalIntegrable (fun s : ℝ => ⟪V (s • x), x⟫_ℝ) volume 0 1 := |
| 30 | ((hV.comp (continuous_id.smul continuous_const)).inner continuous_const).intervalIntegrable 0 1 |
| 31 | simpa only [radialPotential, one_smul, zero_smul] using |
| 32 | intervalIntegral.integral_eq_sub_of_hasDerivAt (fun s _ => hd s) hi |
| 33 | |
| 34 | /-- A radial reconstruction of a genuine smooth gradient is itself spatially smooth. -/ |
| 35 | theorem radialPotential_smooth (V : Vector3 → Vector3) (hV : Continuous V) |
| 36 | (q : Vector3 → ℝ) (hq : ContDiff ℝ ∞ q) (hgrad : ∀ x, gradient q x = V x) : |
| 37 | ContDiff ℝ ∞ (radialPotential V) := by |
| 38 | have he : radialPotential V = fun x => q x - q 0 := |
| 39 | funext (radialPotential_eq_sub V hV q hq hgrad) |
| 40 | rw [he] |
| 41 | exact hq.sub contDiff_const |
| 42 | |
| 43 | /-- Radial normalization preserves the actual gradient. -/ |
| 44 | theorem radialPotential_gradient (V : Vector3 → Vector3) (hV : Continuous V) |
| 45 | (q : Vector3 → ℝ) (hq : ContDiff ℝ ∞ q) (hgrad : ∀ x, gradient q x = V x) |
| 46 | (x : Vector3) : gradient (radialPotential V) x = V x := by |
| 47 | have he : radialPotential V = fun x => q x - q 0 := |
| 48 | funext (radialPotential_eq_sub V hV q hq hgrad) |
| 49 | rw [he, gradient, fderiv_sub_const] |
| 50 | exact hgrad x |
| 51 | |
| 52 | /-- A jointly continuous vector field has a jointly continuous radial scalar potential. -/ |
| 53 | theorem radialPotential_joint_continuous {T : Type*} [TopologicalSpace T] |
| 54 | [FirstCountableTopology T] [LocallyCompactSpace T] |
| 55 | (V : T → Vector3 → Vector3) (hV : Continuous V.uncurry) : |
| 56 | Continuous (fun p : T × Vector3 => radialPotential (V p.1) p.2) := by |
| 57 | have hc : Continuous (fun p : (T × Vector3) × ℝ => |
| 58 | ⟪V p.1.1 (p.2 • p.1.2), p.1.2⟫_ℝ) := by |
| 59 | exact (hV.comp ((continuous_fst.fst).prodMk |
| 60 | (continuous_snd.smul continuous_fst.snd))).inner continuous_fst.snd |
| 61 | have hi := continuous_parametric_integral_of_continuous |
| 62 | (μ := volume) |
| 63 | (f := fun p : T × Vector3 => fun s : ℝ => ⟪V p.1 (s • p.2), p.2⟫_ℝ) |
| 64 | hc (isCompact_Icc : IsCompact (Icc (0 : ℝ) 1)) |
| 65 | simpa only [radialPotential, intervalIntegral.integral_of_le (zero_le_one : (0 : ℝ) ≤ 1), |
| 66 | integral_Icc_eq_integral_Ioc] using hi |
| 67 | |
| 68 | end EulerCanonicalGraphPotential |