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.MeanCutoffCurlBound |
| 2 | import Euler.MeanSolenoidalSpace |
| 3 | import Mathlib.Analysis.Normed.Operator.Extend |
| 4 | |
| 5 | /-! The actual homogeneous first-order test space on ordinary Euclidean three-space. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerMeanGradientTest |
| 10 | |
| 11 | open MeasureTheory EulerSmoothLimit EulerMeanSolenoidal EulerMeanCutoffCurl |
| 12 | open scoped ContDiff ENNReal NNReal |
| 13 | |
| 14 | /-- Smooth compactly supported vector fields, as a genuine function submodule. -/ |
| 15 | def testSpace : Submodule ℝ (Space → Space) where |
| 16 | carrier := {f | ContDiff ℝ ∞ f ∧ HasCompactSupport f} |
| 17 | zero_mem' := ⟨contDiff_const, by |
| 18 | change IsCompact (tsupport (0 : Space → Space)) |
| 19 | simp⟩ |
| 20 | add_mem' hf hg := ⟨hf.1.add hg.1, hf.2.add hg.2⟩ |
| 21 | smul_mem' c f hf := ⟨contDiff_const.smul hf.1, hf.2.smul_left⟩ |
| 22 | |
| 23 | abbrev Test := ↥testSpace |
| 24 | |
| 25 | theorem Test.smooth (f : Test) : ContDiff ℝ ∞ (f : Space → Space) := f.property.1 |
| 26 | |
| 27 | theorem Test.compact (f : Test) : HasCompactSupport (f : Space → Space) := f.property.2 |
| 28 | |
| 29 | theorem Test.column_memLp (f : Test) (i : Fin 3) : |
| 30 | MemLp (fun x => fderiv ℝ (f : Space → Space) x (EuclideanSpace.single i 1)) 2 volume := by |
| 31 | exact ((f.smooth.fderiv_right (m := ∞) (by simp)).continuous.clm_apply continuous_const).memLp_of_hasCompactSupport |
| 32 | (f.compact.fderiv_apply ℝ (EuclideanSpace.single i 1)) |
| 33 | |
| 34 | /-- A genuine distributional/classical derivative column as an L² vector field. -/ |
| 35 | def derivativeColumn (f : Test) (i : Fin 3) : L2 := |
| 36 | (f.column_memLp i).toLp _ |
| 37 | |
| 38 | theorem derivativeColumn_ae (f : Test) (i : Fin 3) : |
| 39 | derivativeColumn f i =ᵐ[volume] |
| 40 | fun x => fderiv ℝ (f : Space → Space) x (EuclideanSpace.single i 1) := |
| 41 | (f.column_memLp i).coeFn_toLp |
| 42 | |
| 43 | theorem derivativeColumn_add (f g : Test) (i : Fin 3) : |
| 44 | derivativeColumn (f + g) i = derivativeColumn f i + derivativeColumn g i := by |
| 45 | apply Lp.ext |
| 46 | filter_upwards [derivativeColumn_ae (f+g) i, derivativeColumn_ae f i, |
| 47 | derivativeColumn_ae g i, Lp.coeFn_add (derivativeColumn f i) (derivativeColumn g i)] |
| 48 | with x hfg hf hg ha |
| 49 | simp only [Pi.add_apply] at ha |
| 50 | rw [hfg, ha, hf, hg] |
| 51 | change fderiv ℝ ((f : Space → Space) + (g : Space → Space)) x _ = _ |
| 52 | rw [fderiv_add ((f.smooth.differentiable (by simp)).differentiableAt) |
| 53 | ((g.smooth.differentiable (by simp)).differentiableAt)] |
| 54 | rfl |
| 55 | |
| 56 | theorem derivativeColumn_smul (c : ℝ) (f : Test) (i : Fin 3) : |
| 57 | derivativeColumn (c • f) i = c • derivativeColumn f i := by |
| 58 | apply Lp.ext |
| 59 | filter_upwards [derivativeColumn_ae (c • f) i, derivativeColumn_ae f i, |
| 60 | Lp.coeFn_smul c (derivativeColumn f i)] with x hcf hf hs |
| 61 | simp only [Pi.smul_apply] at hs |
| 62 | rw [hcf, hs, hf] |
| 63 | change fderiv ℝ (c • (f : Space → Space)) x _ = _ |
| 64 | rw [fderiv_const_smul ((f.smooth.differentiable (by simp)).differentiableAt) c] |
| 65 | rfl |
| 66 | |
| 67 | /-- The Hilbert space of three L² derivative columns, with the Frobenius norm. -/ |
| 68 | abbrev GradientTensor := PiLp 2 (fun _ : Fin 3 => L2) |
| 69 | |
| 70 | /-- The actual gradient map on compact smooth vector tests. -/ |
| 71 | def testGradient : Test →ₗ[ℝ] GradientTensor where |
| 72 | toFun f := WithLp.toLp 2 (fun i => derivativeColumn f i) |
| 73 | map_add' f g := by ext i : 1; exact derivativeColumn_add f g i |
| 74 | map_smul' c f := by ext i : 1; exact derivativeColumn_smul c f i |
| 75 | |
| 76 | theorem testGradient_apply (f : Test) (i : Fin 3) : |
| 77 | testGradient f i = derivativeColumn f i := rfl |
| 78 | |
| 79 | /-- The operator norm is bounded by the sum of the Euclidean derivative-column norms. -/ |
| 80 | theorem opNorm_le_sum_columns (A : Space →L[ℝ] Space) : |
| 81 | ‖A‖ ≤ ∑ i : Fin 3, ‖A (EuclideanSpace.single i 1)‖ := by |
| 82 | apply A.opNorm_le_bound (Finset.sum_nonneg (fun _ _ => norm_nonneg _)) |
| 83 | intro v |
| 84 | have hv : (∑ i : Fin 3, v i • (EuclideanSpace.single i 1 : Space)) = v := by |
| 85 | simpa only [EuclideanSpace.basisFun_repr, EuclideanSpace.basisFun_apply] using |
| 86 | (EuclideanSpace.basisFun (Fin 3) ℝ).sum_repr v |
| 87 | calc |
| 88 | ‖A v‖ = ‖∑ i : Fin 3, v i • A (EuclideanSpace.single i 1)‖ := by |
| 89 | congr 1 |
| 90 | calc |
| 91 | A v = A (∑ i : Fin 3, v i • (EuclideanSpace.single i 1 : Space)) := congrArg A hv.symm |
| 92 | _ = _ := by simp only [map_sum, map_smul] |
| 93 | _ ≤ ∑ i : Fin 3, ‖v i • A (EuclideanSpace.single i 1)‖ := norm_sum_le _ _ |
| 94 | _ = ∑ i : Fin 3, ‖v i‖ * ‖A (EuclideanSpace.single i 1)‖ := by simp only [norm_smul] |
| 95 | _ ≤ ∑ i : Fin 3, ‖v‖ * ‖A (EuclideanSpace.single i 1)‖ := |
| 96 | Finset.sum_le_sum (fun i _ => mul_le_mul_of_nonneg_right |
| 97 | (PiLp.norm_apply_le v i) (norm_nonneg _)) |
| 98 | _ = (∑ i : Fin 3, ‖A (EuclideanSpace.single i 1)‖) * ‖v‖ := by |
| 99 | rw [← Finset.mul_sum, mul_comm] |
| 100 | |
| 101 | /-- The derivative norm used by the cutoff bound is controlled by the actual Hilbert gradient norm. -/ |
| 102 | theorem lpNorm_fderiv_le_gradient (f : Test) : |
| 103 | lpNorm (fderiv ℝ (f : Space → Space)) 2 volume ≤ 3 * ‖testGradient f‖ := by |
| 104 | let a : Fin 3 → Space → ℝ := fun i x => |
| 105 | ‖fderiv ℝ (f : Space → Space) x (EuclideanSpace.single i 1)‖ |
| 106 | have ha (i : Fin 3) : MemLp (a i) 2 volume := (f.column_memLp i).norm |
| 107 | have hsum : MemLp (∑ i : Fin 3, a i) 2 volume := memLp_finsetSum' Finset.univ (fun i _ => ha i) |
| 108 | calc |
| 109 | lpNorm (fderiv ℝ (f : Space → Space)) 2 volume ≤ lpNorm (∑ i : Fin 3, a i) 2 volume := |
| 110 | lpNorm_mono_real hsum (fun x => by |
| 111 | simpa [a] using (opNorm_le_sum_columns (fderiv ℝ (f : Space → Space) x))) |
| 112 | _ ≤ ∑ i : Fin 3, lpNorm (a i) 2 volume := lpNorm_sum_le (fun i _ => ha i) (by norm_num) |
| 113 | _ = ∑ i : Fin 3, ‖derivativeColumn f i‖ := by |
| 114 | apply Finset.sum_congr rfl |
| 115 | intro i _ |
| 116 | rw [derivativeColumn, Lp.norm_toLp, toReal_eLpNorm (f.column_memLp i).aestronglyMeasurable] |
| 117 | exact lpNorm_norm (f.column_memLp i).aestronglyMeasurable 2 |
| 118 | _ ≤ ∑ _i : Fin 3, ‖testGradient f‖ := |
| 119 | Finset.sum_le_sum (fun i _ => PiLp.norm_apply_le (testGradient f) i) |
| 120 | _ = 3 * ‖testGradient f‖ := by simp |
| 121 | |
| 122 | /-- Homogeneous H¹ is the closed subspace generated by actual compact test gradients. -/ |
| 123 | def homogeneousSpace : Submodule ℝ GradientTensor := testGradient.range.topologicalClosure |
| 124 | |
| 125 | instance : CompleteSpace homogeneousSpace := testGradient.range.isClosed_topologicalClosure.completeSpace_coe |
| 126 | |
| 127 | /-- The dense map from genuine tests into the homogeneous Hilbert space. -/ |
| 128 | def homogeneousGradient : Test →ₗ[ℝ] homogeneousSpace := |
| 129 | testGradient.codRestrict homogeneousSpace |
| 130 | (fun f => testGradient.range.le_topologicalClosure (LinearMap.mem_range_self _ f)) |
| 131 | |
| 132 | theorem homogeneousGradient_dense : DenseRange homogeneousGradient := by |
| 133 | rw [DenseRange, Subtype.dense_iff] |
| 134 | rw [← Set.range_comp] |
| 135 | exact fun _ hx => hx |
| 136 | |
| 137 | end EulerMeanGradientTest |