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.MeanMollifierLimit |
| 2 | |
| 3 | /-! Scalar test functions and component energies for actual R³ vector fields. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerMeanHarmonic |
| 8 | |
| 9 | open MeasureTheory InnerProductSpace Laplacian EulerSmoothLimit |
| 10 | open scoped ContDiff |
| 11 | |
| 12 | theorem scalar_component_memLp (u : Space → Space) (hu : MemLp u 2 volume) |
| 13 | (i : Fin 3) : MemLp (fun x => u x i) 2 volume := |
| 14 | (EuclideanSpace.proj i : Space →L[ℝ] ℝ).comp_memLp' hu |
| 15 | |
| 16 | theorem laplacian_scalar_smul_vector (φ : Space → ℝ) (hφ : ContDiff ℝ ∞ φ) |
| 17 | (v : Space) (x : Space) : |
| 18 | Δ (fun y => φ y • v) x = Δ φ x • v := by |
| 19 | let L : ℝ →L[ℝ] Space := (ContinuousLinearMap.id ℝ ℝ).smulRight v |
| 20 | exact ((hφ.of_le (by simp)).contDiffAt).laplacian_CLM_comp_left (l := L) |
| 21 | |
| 22 | /-- Testing a vector distribution along each fixed coordinate gives scalar weak harmonicity. -/ |
| 23 | theorem scalarWeakHarmonicOn_of_vector_tests (U : Set Space) (u : Space → Space) |
| 24 | (hu : ∀ φ : Space → Space, HasCompactSupport φ → ContDiff ℝ ∞ φ → tsupport φ ⊆ U → |
| 25 | (∫ x, ⟪u x, Δ φ x⟫_ℝ) = 0) (i : Fin 3) : |
| 26 | ScalarWeakHarmonicOn U (fun x => u x i) := by |
| 27 | intro φ hc hs ht |
| 28 | let e : Space := EuclideanSpace.single i 1 |
| 29 | have hcs : HasCompactSupport (fun x => φ x • e) := hc.smul_right (f' := fun _ => e) |
| 30 | have hss : ContDiff ℝ ∞ (fun x => φ x • e) := hs.smul contDiff_const |
| 31 | have hts : tsupport (fun x => φ x • e) ⊆ U := |
| 32 | (tsupport_smul_subset_left φ (fun _ => e)).trans ht |
| 33 | have H := hu (fun x => φ x • e) hcs hss hts |
| 34 | calc |
| 35 | _ = ∫ x, ⟪u x, Δ (fun y => φ y • e) x⟫_ℝ := by |
| 36 | apply integral_congr_ae |
| 37 | filter_upwards [] with x |
| 38 | rw [laplacian_scalar_smul_vector φ hs e x] |
| 39 | simp only [inner_smul_right, e, EuclideanSpace.inner_single_right, one_mul, |
| 40 | RCLike.conj_to_real] |
| 41 | ring |
| 42 | _ = 0 := H |
| 43 | |
| 44 | theorem sum_component_energy (u : Space → Space) (hu : MemLp u 2 volume) : |
| 45 | (∑ i : Fin 3, lpNorm (fun x => u x i) 2 volume ^ 2) = lpNorm u 2 volume ^ 2 := by |
| 46 | simp_rw [lpNorm_sq_eq_integral_sq _ (scalar_component_memLp u hu _)] |
| 47 | rw [lpNorm_sq_eq_integral_norm_sq u hu, |
| 48 | ← integral_finsetSum _ (fun i _ => (memLp_two_iff_integrable_sq |
| 49 | (scalar_component_memLp u hu i).aestronglyMeasurable).1 (scalar_component_memLp u hu i))] |
| 50 | apply integral_congr_ae |
| 51 | filter_upwards [] with x |
| 52 | exact (EuclideanSpace.real_norm_sq_eq (u x)).symm |
| 53 | |
| 54 | /-- Uniform component bounds combine without a dimension-dependent loss in the energy. -/ |
| 55 | theorem ae_vector_bound_of_component_bounds (u : Space → Space) (hu : MemLp u 2 volume) |
| 56 | (U : Set Space) (C : ℝ) |
| 57 | (hc : ∀ i : Fin 3, ∀ᵐ x ∂volume, |
| 58 | x ∈ U → u x i ^ 2 ≤ C * lpNorm (fun y => u y i) 2 volume ^ 2) : |
| 59 | ∀ᵐ x ∂volume, x ∈ U → ‖u x‖ ^ 2 ≤ C * lpNorm u 2 volume ^ 2 := by |
| 60 | have hall : ∀ᵐ x ∂volume, ∀ i : Fin 3, |
| 61 | x ∈ U → u x i ^ 2 ≤ C * lpNorm (fun y => u y i) 2 volume ^ 2 := |
| 62 | ae_all_iff.2 hc |
| 63 | filter_upwards [hall] with x hx |
| 64 | intro hxU |
| 65 | rw [EuclideanSpace.real_norm_sq_eq, ← sum_component_energy u hu, Finset.mul_sum] |
| 66 | exact Finset.sum_le_sum (fun i _ => hx i hxU) |
| 67 | |
| 68 | end EulerMeanHarmonic |