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.FiniteEnergyTruncation |
| 2 | import Mathlib.Analysis.SpecialFunctions.Pow.Real |
| 3 | |
| 4 | /-! |
| 5 | # Time dependence of the radial truncation |
| 6 | |
| 7 | The radial average and potential truncation preserve joint smoothness. |
| 8 | For a velocity smooth only on nonnegative times, the square-time pullback |
| 9 | is globally smooth. Pulling this family back along the continuous square |
| 10 | root recovers the original truncation, which is sufficient for the |
| 11 | continuous-in-time spatial-jet interface of `SmoothTimeField`. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | |
| 17 | open Set MeasureTheory Filter EulerSmoothLimit EulerVectorCalculus |
| 18 | open scoped ContDiff Topology |
| 19 | |
| 20 | namespace Euler.ComparatorBridge |
| 21 | |
| 22 | /-- Radial integration preserves joint smoothness with an auxiliary parameter. -/ |
| 23 | theorem radialAverage_family_smooth (v : Space × ℝ → Space) |
| 24 | (hv : ContDiff ℝ ∞ v) : |
| 25 | ContDiff ℝ ∞ (fun xt : Space × ℝ => radialAverage (fun y => v (y, xt.2)) xt.1) := by |
| 26 | let F : (Space × ℝ) × ℝ → Space := fun p => p.2 • v (p.2 • p.1.1, p.1.2) |
| 27 | have hF : ContDiff ℝ ∞ F := by |
| 28 | exact contDiff_snd.smul (hv.comp |
| 29 | ((contDiff_snd.smul contDiff_fst.fst).prodMk contDiff_fst.snd)) |
| 30 | exact EulerCompactParameterIntegral.integral_contDiff 0 1 (by norm_num) F hF |
| 31 | |
| 32 | /-- The radial vector potential is jointly smooth in space and the parameter. -/ |
| 33 | theorem radialPotential_family_smooth (v : Space × ℝ → Space) |
| 34 | (hv : ContDiff ℝ ∞ v) (i : Fin 3) : |
| 35 | ContDiff ℝ ∞ (fun xt : Space × ℝ => radialPotential (fun y => v (y, xt.2)) i xt.1) := by |
| 36 | have hc (j : Fin 3) : ContDiff ℝ ∞ (fun x : Space => x j) := |
| 37 | (EuclideanSpace.proj j : Space →L[ℝ] ℝ).contDiff |
| 38 | have hb := radialAverage_family_smooth v hv |
| 39 | exact ((hc _).comp contDiff_fst |>.mul ((hc _).comp hb)).sub |
| 40 | ((hc _).comp contDiff_fst |>.mul ((hc _).comp hb)) |
| 41 | |
| 42 | /-- Spatial derivatives of a smooth joint family are jointly smooth. -/ |
| 43 | theorem spatial_fderiv_family_smooth {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 44 | (f : Space × ℝ → E) (hf : ContDiff ℝ ∞ f) : |
| 45 | ContDiff ℝ ∞ (fun xt : Space × ℝ => fderiv ℝ (fun y => f (y, xt.2)) xt.1) := by |
| 46 | have he (xt : Space × ℝ) : fderiv ℝ (fun y => f (y, xt.2)) xt.1 = |
| 47 | (fderiv ℝ f xt).comp (ContinuousLinearMap.inl ℝ Space ℝ) := by |
| 48 | exact (((hf.differentiable (by simp)) xt).hasFDerivAt.comp xt.1 |
| 49 | (hasFDerivAt_prodMk_left (𝕜 := ℝ) xt.1 xt.2)).fderiv |
| 50 | have hs := (hf.fderiv_right (m := ∞) (by simp)).clm_comp |
| 51 | (contDiff_const (c := ContinuousLinearMap.inl ℝ Space ℝ)) |
| 52 | have heq : (fun xt : Space × ℝ => fderiv ℝ (fun y => f (y, xt.2)) xt.1) = |
| 53 | (fun xt => (fderiv ℝ f xt).comp (ContinuousLinearMap.inl ℝ Space ℝ)) := funext he |
| 54 | rw [heq] |
| 55 | exact hs |
| 56 | |
| 57 | /-- Curl, applied in the spatial variables only, preserves joint smoothness. -/ |
| 58 | theorem curl_family_smooth (ψ : Fin 3 → Space × ℝ → ℝ) |
| 59 | (hψ : ∀ i, ContDiff ℝ ∞ (ψ i)) : |
| 60 | ContDiff ℝ ∞ (fun xt : Space × ℝ => curl (fun i y => ψ i (y, xt.2)) xt.1) := by |
| 61 | apply (contDiff_piLp 2).mpr |
| 62 | intro i |
| 63 | exact ((spatial_fderiv_family_smooth (ψ (i + 2)) (hψ _)).clm_apply |
| 64 | (contDiff_const (c := EuclideanSpace.single (i + 1) (1 : ℝ)))).sub |
| 65 | ((spatial_fderiv_family_smooth (ψ (i + 1)) (hψ _)).clm_apply |
| 66 | (contDiff_const (c := EuclideanSpace.single (i + 2) (1 : ℝ)))) |
| 67 | |
| 68 | /-- A fixed smooth cutoff gives a jointly smooth family of solenoidal truncations. -/ |
| 69 | theorem potentialTruncation_family_smooth (v : Space × ℝ → Space) |
| 70 | (hv : ContDiff ℝ ∞ v) (χ : Space → ℝ) (hχ : ContDiff ℝ ∞ χ) : |
| 71 | ContDiff ℝ ∞ (fun xt : Space × ℝ => potentialTruncation (fun y => v (y, xt.2)) χ xt.1) := by |
| 72 | apply curl_family_smooth (fun i xt => χ xt.1 * radialPotential (fun y => v (y, xt.2)) i xt.1) |
| 73 | intro i |
| 74 | exact (hχ.comp contDiff_fst).mul (radialPotential_family_smooth v hv i) |
| 75 | |
| 76 | /-- Squaring the time parameter turns smoothness on the closed half-space into |
| 77 | global smoothness, including at time zero. -/ |
| 78 | theorem nonnegative_time_square_smooth {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 79 | (v : Space × ℝ → E) (hv : ContDiffOn ℝ ∞ v (univ ×ˢ Ici 0)) : |
| 80 | ContDiff ℝ ∞ (fun xt : Space × ℝ => v (xt.1, xt.2 ^ 2)) := by |
| 81 | apply contDiffOn_univ.mp |
| 82 | apply hv.comp (contDiff_fst.prodMk (contDiff_snd.pow 2)).contDiffOn |
| 83 | intro xt _ |
| 84 | exact ⟨mem_univ _, show 0 ≤ xt.2 ^ 2 from sq_nonneg _⟩ |
| 85 | |
| 86 | /-- The radial truncation of a Comparator-smooth field has a globally smooth |
| 87 | square-time parametrization. -/ |
| 88 | theorem potentialTruncation_square_family_smooth (v : Space × ℝ → Space) |
| 89 | (hv : ContDiffOn ℝ ∞ v (univ ×ˢ Ici 0)) |
| 90 | (χ : Space → ℝ) (hχ : ContDiff ℝ ∞ χ) : |
| 91 | ContDiff ℝ ∞ (fun xt : Space × ℝ => |
| 92 | potentialTruncation (fun y => v (y, xt.2 ^ 2)) χ xt.1) := |
| 93 | potentialTruncation_family_smooth _ (nonnegative_time_square_smooth v hv) χ hχ |
| 94 | |
| 95 | /-- The continuous time map used to recover the original compact time interval. -/ |
| 96 | def sqrtTimeMap (T : ℝ) : C(Icc (0 : ℝ) T, Icc (0 : ℝ) (Real.sqrt T)) where |
| 97 | toFun t := ⟨Real.sqrt t, Real.sqrt_nonneg _, Real.sqrt_le_sqrt t.property.2⟩ |
| 98 | continuous_toFun := (Real.continuous_sqrt.comp continuous_subtype_val).subtype_mk _ |
| 99 | |
| 100 | @[simp] theorem sqrtTimeMap_apply (T : ℝ) (t : Icc (0 : ℝ) T) : |
| 101 | (sqrtTimeMap T t : ℝ) = Real.sqrt t := rfl |
| 102 | |
| 103 | /-- Continuous square-root reparametrization recovers the exact original family. -/ |
| 104 | theorem potentialTruncation_square_sqrt (v : Space × ℝ → Space) |
| 105 | (χ : Space → ℝ) (x : Space) {t : ℝ} (ht : 0 ≤ t) : |
| 106 | potentialTruncation (fun y => v (y, (Real.sqrt t) ^ 2)) χ x = |
| 107 | potentialTruncation (fun y => v (y, t)) χ x := by |
| 108 | rw [Real.sq_sqrt ht] |
| 109 | |
| 110 | |
| 111 | end Euler.ComparatorBridge |