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.WholeSpaceGaussianTimeKernel |
| 2 | import Euler.WholeSpaceGaussianIntegration |
| 3 | import Euler.WholeSpaceGaussianScale |
| 4 | |
| 5 | /-! The true heat-time evolution of Gaussian averaging on ordinary space. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerWholeSpaceGaussian |
| 10 | |
| 11 | open MeasureTheory InnerProductSpace EulerSmoothLimit Filter Set ContinuousLinearMap |
| 12 | open scoped ContDiff ENNReal RealInnerProductSpace Topology |
| 13 | |
| 14 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 15 | |
| 16 | /-- Differentiating the explicit kernel under its ordinary Bochner integral. -/ |
| 17 | theorem average_hasDerivAt_kernel {t : ℝ} (ht : 0 < t) |
| 18 | (f : Space → V) (hf : Continuous f) (C₀ : ℝ) |
| 19 | (h₀ : ∀ x, ‖f x‖ ≤ C₀) (x : Space) : |
| 20 | HasDerivAt (fun s : ℝ => average s f x) |
| 21 | (∫ y : Space, timeKernel t y • f (x+y)) t := by |
| 22 | have hC₀ : 0 ≤ C₀ := (norm_nonneg (f x)).trans (h₀ x) |
| 23 | let F : ℝ → Space → V := fun s y => kernel s y • f (x+y) |
| 24 | let F' : ℝ → Space → V := fun s y => timeKernel s y • f (x+y) |
| 25 | have hF (s : ℝ) : AEStronglyMeasurable (F s) volume := |
| 26 | ((kernel_smooth s).continuous.smul (hf.comp (continuous_const.add continuous_id))).aestronglyMeasurable |
| 27 | have hFd : AEStronglyMeasurable (F' t) volume := |
| 28 | ((timeKernel_continuous t).smul (hf.comp (continuous_const.add continuous_id))).aestronglyMeasurable |
| 29 | have hb (y : Space) (s : ℝ) (hs : s ∈ Ioo (t/2) (2*t)) : |
| 30 | ‖F' s y‖ ≤ timeEnvelope t y*C₀ := by |
| 31 | change ‖timeKernel s y • f (x+y)‖ ≤ _ |
| 32 | rw [norm_smul] |
| 33 | apply mul_le_mul (timeKernel_local_bound ht s hs y) (h₀ (x+y)) (norm_nonneg _) |
| 34 | unfold timeEnvelope |
| 35 | have hp := normalization_pos (by positivity : 0 < t/2) |
| 36 | positivity |
| 37 | have hd (y : Space) (s : ℝ) (hs : s ∈ Ioo (t/2) (2*t)) : |
| 38 | HasDerivAt (fun r => F r y) (F' s y) s := |
| 39 | (kernel_hasDerivAt (by linarith [hs.1] : 0 < s) y).smul_const (f (x+y)) |
| 40 | have h := hasDerivAt_integral_of_dominated_loc_of_deriv_le |
| 41 | (F := F) (F' := F') (bound := fun y : Space => timeEnvelope t y*C₀) |
| 42 | (Ioo_mem_nhds (by linarith : t/2 < t) (by linarith : t < 2*t)) |
| 43 | (Eventually.of_forall hF) (average_integrable_of_bound ht f hf C₀ h₀ x) hFd |
| 44 | (Eventually.of_forall hb) ((timeEnvelope_integrable ht).mul_const C₀) |
| 45 | (Eventually.of_forall hd) |
| 46 | exact h.2 |
| 47 | |
| 48 | def secondAverage (t : ℝ) (f : Space → V) (x : Space) : V := |
| 49 | ∑ i : Fin 3, average t (fun z => |
| 50 | fderiv ℝ (fun y => fderiv ℝ f y (EuclideanSpace.single i 1)) z |
| 51 | (EuclideanSpace.single i 1)) x |
| 52 | |
| 53 | /-- The explicit time-kernel integral equals one quarter of the sum of |
| 54 | the actual second spatial derivatives averaged against the same Gaussian. -/ |
| 55 | theorem timeIntegral_eq_secondAverage {t : ℝ} (ht : 0 < t) |
| 56 | (f : Space → V) (hf : ContDiff ℝ ∞ f) (C₀ C₁ C₂ : ℝ) |
| 57 | (h₀ : ∀ x, ‖f x‖ ≤ C₀) (h₁ : ∀ x, ‖fderiv ℝ f x‖ ≤ C₁) |
| 58 | (h₂ : ∀ x, ‖fderiv ℝ (fderiv ℝ f) x‖ ≤ C₂) (x : Space) : |
| 59 | (∫ y : Space, timeKernel t y • f (x+y)) = (1/4:ℝ) • secondAverage t f x := by |
| 60 | have hi (i : Fin 3) : Integrable (fun y : Space => |
| 61 | secondKernel t (EuclideanSpace.single i 1) (EuclideanSpace.single i 1) y • f (x+y)) := |
| 62 | integrable_kernel_smul _ (secondKernel_integrable ht _ _) _ |
| 63 | (hf.continuous.comp (continuous_const.add continuous_id)) C₀ (fun y => h₀ (x+y)) |
| 64 | simp_rw [timeKernel_second_sum, mul_smul, Finset.sum_smul] |
| 65 | rw [integral_smul, integral_finsetSum Finset.univ (fun i _ => hi i)] |
| 66 | congr 1 |
| 67 | apply Finset.sum_congr rfl |
| 68 | intro i _ |
| 69 | exact (average_second_identity ht f hf C₀ C₁ C₂ h₀ h₁ h₂ _ _ x).symm |
| 70 | |
| 71 | theorem average_hasDerivAt {t : ℝ} (ht : 0 < t) |
| 72 | (f : Space → V) (hf : ContDiff ℝ ∞ f) (C₀ C₁ C₂ : ℝ) |
| 73 | (h₀ : ∀ x, ‖f x‖ ≤ C₀) (h₁ : ∀ x, ‖fderiv ℝ f x‖ ≤ C₁) |
| 74 | (h₂ : ∀ x, ‖fderiv ℝ (fderiv ℝ f) x‖ ≤ C₂) (x : Space) : |
| 75 | HasDerivAt (fun s : ℝ => average s f x) ((1/4:ℝ) • secondAverage t f x) t := by |
| 76 | rw [← timeIntegral_eq_secondAverage ht f hf C₀ C₁ C₂ h₀ h₁ h₂ x] |
| 77 | exact average_hasDerivAt_kernel ht f hf.continuous C₀ h₀ x |
| 78 | |
| 79 | end EulerWholeSpaceGaussian |