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.MeanHarmonicLaplacian |
| 2 | import Mathlib.MeasureTheory.Function.LpSeminorm.LpNorm |
| 3 | |
| 4 | /-! The scalar R³ H² estimate used for harmonic interior control. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerMeanHarmonic |
| 9 | |
| 10 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerVectorCalculus EulerSobolev |
| 11 | EulerSmoothSobolev |
| 12 | open scoped ContDiff ENNReal SchwartzMap LineDeriv |
| 13 | |
| 14 | theorem partialDerivative_twice (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 15 | (i : Fin 3) (x : Space) : |
| 16 | partialDerivative (partialDerivative f i) i x = |
| 17 | iteratedFDeriv ℝ 2 f x (fun _ : Fin 2 => EuclideanSpace.single i 1) := by |
| 18 | have hdf : DifferentiableAt ℝ (fderiv ℝ f) x := |
| 19 | ((hf.fderiv_right (m := ∞) (by simp)).differentiable (by simp)).differentiableAt |
| 20 | rw [iteratedFDeriv_two_apply] |
| 21 | change (fderiv ℝ (fun y => fderiv ℝ f y (EuclideanSpace.single i 1)) x) |
| 22 | (EuclideanSpace.single i 1) = _ |
| 23 | rw [fderiv_clm_apply hdf (differentiableAt_const _)] |
| 24 | simp |
| 25 | |
| 26 | theorem complex_eLpNorm_toReal (f : Space → ℝ) (hf : AEStronglyMeasurable f volume) : |
| 27 | (eLpNorm (fun x => (f x : ℂ)) 2 volume).toReal = lpNorm f 2 volume := by |
| 28 | have he : eLpNorm (fun x => (f x : ℂ)) 2 volume = eLpNorm f 2 volume := |
| 29 | eLpNorm_congr_norm_ae (Filter.Eventually.of_forall fun x => by simp) |
| 30 | rw [he, toReal_eLpNorm hf] |
| 31 | |
| 32 | /-- This is the existing Fourier Sobolev estimate applied to the actual scalar |
| 33 | function and its actual twofold coordinate derivatives, with no embedding |
| 34 | estimate supplied as a hypothesis. -/ |
| 35 | theorem scalar_pointwise_le_H2 (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 36 | (hc : HasCompactSupport f) (x : Space) : |
| 37 | |f x| ≤ embeddingConstant 3 2 (by norm_num) * |
| 38 | (lpNorm f 2 volume + (2 * Real.pi) ^ (-2 : ℤ) * |
| 39 | ∑ i : Fin 3, lpNorm (partialDerivative (partialDerivative f i) i) 2 volume) := by |
| 40 | have hcF : HasCompactSupport (Complex.ofRealCLM ∘ f) := |
| 41 | hc.comp_left (g := Complex.ofRealCLM) (by simp) |
| 42 | have hsF : ContDiff ℝ ∞ (Complex.ofRealCLM ∘ f) := Complex.ofRealCLM.contDiff.comp hf |
| 43 | let F : 𝓢(Space, ℂ) := hcF.toSchwartzMap hsF |
| 44 | have hF (y : Space) : F y = (f y : ℂ) := rfl |
| 45 | have hnorm : ‖F.toLp 2‖ = lpNorm f 2 volume := by |
| 46 | rw [SchwartzMap.norm_toLp] |
| 47 | change (eLpNorm (fun y => (f y : ℂ)) 2 volume).toReal = _ |
| 48 | exact complex_eLpNorm_toReal f hf.continuous.aestronglyMeasurable |
| 49 | have hder (i : Fin 3) (y : Space) : |
| 50 | pureDerivative 3 2 (EuclideanSpace.single i 1) F y = |
| 51 | (partialDerivative (partialDerivative f i) i y : ℂ) := by |
| 52 | rw [pureDerivative, SchwartzMap.iteratedLineDerivOp_eq_iteratedFDeriv] |
| 53 | change iteratedFDeriv ℝ 2 (Complex.ofRealCLM ∘ f) y |
| 54 | (fun _ : Fin 2 => EuclideanSpace.single i 1) = _ |
| 55 | rw [Complex.ofRealCLM.iteratedFDeriv_comp_left hf.contDiffAt (by simp)] |
| 56 | rw [partialDerivative_twice f hf i y] |
| 57 | rfl |
| 58 | have hnormDer (i : Fin 3) : |
| 59 | ‖(pureDerivative 3 2 (EuclideanSpace.single i 1) F).toLp 2‖ = |
| 60 | lpNorm (partialDerivative (partialDerivative f i) i) 2 volume := by |
| 61 | rw [SchwartzMap.norm_toLp] |
| 62 | have heq : (pureDerivative 3 2 (EuclideanSpace.single i 1) F : Space → ℂ) = |
| 63 | fun y => (partialDerivative (partialDerivative f i) i y : ℂ) := funext (hder i) |
| 64 | rw [heq] |
| 65 | exact complex_eLpNorm_toReal _ |
| 66 | (contDiff_partialDerivative _ (contDiff_partialDerivative f hf i) i).continuous.aestronglyMeasurable |
| 67 | have h := pointwise_le_L2_second_derivatives F x |
| 68 | rw [hnorm, hF] at h |
| 69 | simp_rw [hnormDer] at h |
| 70 | simpa only [Complex.norm_real, Real.norm_eq_abs] using h |
| 71 | |
| 72 | theorem lpNorm_sq_eq_integral_norm_sq {V : Type*} [NormedAddCommGroup V] |
| 73 | [InnerProductSpace ℝ V] [CompleteSpace V] (f : Space → V) |
| 74 | (hf : MemLp f 2 volume) : (lpNorm f 2 volume) ^ 2 = ∫ x, ‖f x‖ ^ 2 := by |
| 75 | have hn : ‖hf.toLp f‖ = lpNorm f 2 volume := by |
| 76 | rw [Lp.norm_toLp, toReal_eLpNorm hf.aestronglyMeasurable] |
| 77 | rw [← hn, ← real_inner_self_eq_norm_sq, MeasureTheory.L2.inner_def] |
| 78 | apply integral_congr_ae |
| 79 | filter_upwards [hf.coeFn_toLp] with x hx |
| 80 | rw [hx, real_inner_self_eq_norm_sq] |
| 81 | |
| 82 | theorem lpNorm_sq_eq_integral_sq (f : Space → ℝ) (hf : MemLp f 2 volume) : |
| 83 | (lpNorm f 2 volume) ^ 2 = ∫ x, f x ^ 2 := by |
| 84 | simpa only [Real.norm_eq_abs, sq_abs] using lpNorm_sq_eq_integral_norm_sq f hf |
| 85 | |
| 86 | end EulerMeanHarmonic |