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.LpTranslation |
| 2 | import Euler.LpDominatedDerivative |
| 3 | import Mathlib.Analysis.Calculus.MeanValue |
| 4 | |
| 5 | /-! The genuine L² derivative of translations of compact smooth ordinary-space fields. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | |
| 10 | namespace EulerLpTranslation |
| 11 | |
| 12 | open MeasureTheory EulerSmoothLimit EulerLpDerivative Filter |
| 13 | open scoped ContDiff Topology |
| 14 | |
| 15 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 16 | |
| 17 | def compactField (f : Space → V) (hc : HasCompactSupport f) (hf : ContDiff ℝ ∞ f) : L2Space V := |
| 18 | (hf.continuous.memLp_of_hasCompactSupport hc).toLp f |
| 19 | |
| 20 | def compactDerivative (f : Space → V) (hc : HasCompactSupport f) (hf : ContDiff ℝ ∞ f) : |
| 21 | L2Space (Space →L[ℝ] V) := |
| 22 | ((hf.fderiv_right (m := ∞) (by simp)).continuous.memLp_of_hasCompactSupport |
| 23 | (hc.fderiv ℝ)).toLp (fderiv ℝ f) |
| 24 | |
| 25 | theorem compactField_ae (f : Space → V) (hc : HasCompactSupport f) (hf : ContDiff ℝ ∞ f) : |
| 26 | compactField f hc hf =ᵐ[volume] f := MemLp.coeFn_toLp _ |
| 27 | |
| 28 | theorem compactDerivative_ae (f : Space → V) (hc : HasCompactSupport f) (hf : ContDiff ℝ ∞ f) : |
| 29 | compactDerivative f hc hf =ᵐ[volume] fderiv ℝ f := MemLp.coeFn_toLp _ |
| 30 | |
| 31 | /-- A single compactly supported L² function dominates every small translation increment. -/ |
| 32 | theorem compact_increment_bound (f : Space → V) (hc : HasCompactSupport f) |
| 33 | (hf : ContDiff ℝ ∞ f) : |
| 34 | ∃ M : Space → ℝ, MemLp M 2 volume ∧ (∀ x, 0 ≤ M x) ∧ |
| 35 | ∀ a : Space, ‖a‖ ≤ 1 → ∀ x, ‖f (x+a)-f x‖ ≤ M x * ‖a‖ := by |
| 36 | obtain ⟨R, hR⟩ := hc.isBounded.subset_closedBall (0 : Space) |
| 37 | obtain ⟨C, hC⟩ := (hc.fderiv ℝ).exists_bound_of_continuous |
| 38 | (hf.fderiv_right (m := ∞) (by simp)).continuous |
| 39 | have hC0 : 0 ≤ C := (norm_nonneg _).trans (hC 0) |
| 40 | let K := Metric.closedBall (0 : Space) (|R|+1) |
| 41 | have hK : IsCompact K := isCompact_closedBall _ _ |
| 42 | have hsupport : tsupport f ⊆ K := fun _ hx => |
| 43 | Metric.closedBall_subset_closedBall (by linarith [le_abs_self R]) (hR hx) |
| 44 | refine ⟨K.indicator (fun _ => C), memLp_indicator_const 2 hK.isClosed.measurableSet C |
| 45 | (Or.inr hK.measure_ne_top), ?_, ?_⟩ |
| 46 | · intro x |
| 47 | exact Set.indicator_nonneg (fun _ _ => hC0) x |
| 48 | · intro a ha x |
| 49 | by_cases hx : x ∈ K |
| 50 | · rw [Set.indicator_of_mem hx] |
| 51 | have h := Convex.norm_image_sub_le_of_norm_fderiv_le |
| 52 | (𝕜 := ℝ) (f := f) (s := Set.univ) (fun y _ => hf.differentiable (by simp) y) |
| 53 | (fun y _ => hC y) (convex_univ : Convex ℝ (Set.univ : Set Space)) |
| 54 | (Set.mem_univ x) (Set.mem_univ (x+a)) |
| 55 | simpa only [add_sub_cancel_left] using h |
| 56 | · have hxf : x ∉ tsupport f := fun ht => hx (hsupport ht) |
| 57 | have hxa : x+a ∉ tsupport f := by |
| 58 | intro ht |
| 59 | apply hx |
| 60 | have hn : ‖x+a‖ ≤ R := by simpa only [Metric.mem_closedBall, dist_zero_right] using hR ht |
| 61 | change dist x 0 ≤ |R|+1 |
| 62 | rw [dist_zero_right] |
| 63 | have hh : ‖x‖ ≤ ‖x+a‖+‖a‖ := by |
| 64 | simpa only [add_sub_cancel_right] using norm_sub_le (x+a) a |
| 65 | linarith [le_abs_self R] |
| 66 | simp only [image_eq_zero_of_notMem_tsupport hxa, image_eq_zero_of_notMem_tsupport hxf, |
| 67 | sub_zero, norm_zero, Set.indicator_of_notMem hx, zero_mul, le_refl] |
| 68 | |
| 69 | /-- Ordinary Fréchet differentiation and L² translation differentiation agree on compact smooth fields. -/ |
| 70 | theorem compactField_hasFDerivAt (f : Space → V) (hc : HasCompactSupport f) |
| 71 | (hf : ContDiff ℝ ∞ f) : |
| 72 | HasFDerivAt (fun a : Space => translation a (compactField f hc hf)) |
| 73 | (derivativeMap volume (compactDerivative f hc hf)) 0 := by |
| 74 | obtain ⟨M, hM, hM0, hbound⟩ := compact_increment_bound f hc hf |
| 75 | apply EulerLpDerivative.hasFDerivAt_of_dominated volume |
| 76 | (fun a : Space => translation a (compactField f hc hf)) (fun a x => f (x+a)) |
| 77 | _ (compactDerivative f hc hf) _ M hM (Eventually.of_forall hM0) |
| 78 | · filter_upwards [Metric.ball_mem_nhds (0 : Space) zero_lt_one] with a ha |
| 79 | apply Eventually.of_forall |
| 80 | intro x |
| 81 | simpa only [add_zero] using hbound a |
| 82 | ((by simpa only [Metric.mem_ball, dist_zero_right] using ha : ‖a‖ < 1).le) x |
| 83 | · intro a |
| 84 | filter_upwards [translation_ae a (compactField f hc hf), |
| 85 | (measurePreserving_add_right (volume : Measure Space) a).quasiMeasurePreserving.ae |
| 86 | (compactField_ae f hc hf)] with x hx hy |
| 87 | exact hx.trans hy |
| 88 | · filter_upwards [compactDerivative_ae f hc hf] with x hx |
| 89 | rw [hx] |
| 90 | simpa only [zero_add] using |
| 91 | (hasFDerivAt_comp_add_left (f := f) x (x := (0 : Space))).mpr |
| 92 | (by simpa only [add_zero] using (hf.differentiable (by simp) x).hasFDerivAt) |
| 93 | |
| 94 | end EulerLpTranslation |