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.MeanGradientTestSpace |
| 2 | import Mathlib.MeasureTheory.Integral.Bochner.Set |
| 3 | |
| 4 | /-! Construction of the actual mean boundary operator by homogeneous-gradient |
| 5 | completion and the Hilbert adjoint. No bounded inverse Laplacian on L² is assumed. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerMeanBoundary |
| 10 | |
| 11 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerVectorCalculus |
| 12 | EulerMeanSolenoidal EulerMeanCutoffCurl EulerMeanGradientTest |
| 13 | open scoped ContDiff ENNReal NNReal |
| 14 | |
| 15 | /-- The only cutoff data: an actual compactly supported smooth scalar function. -/ |
| 16 | structure Cutoff where |
| 17 | field : Space → ℝ |
| 18 | smooth : ContDiff ℝ ∞ field |
| 19 | compact : HasCompactSupport field |
| 20 | |
| 21 | /-- Coordinate antisymmetrization of a genuine derivative. -/ |
| 22 | def curlMatrix (A : Space →L[ℝ] Space) : Space := |
| 23 | WithLp.toLp 2 (fun i : Fin 3 => |
| 24 | (A (EuclideanSpace.single (i+1) 1)) (i+2) - |
| 25 | (A (EuclideanSpace.single (i+2) 1)) (i+1)) |
| 26 | |
| 27 | theorem vectorCurl_eq_matrix (f : Space → Space) (x : Space) |
| 28 | (hf : DifferentiableAt ℝ f x) : vectorCurl f x = curlMatrix (fderiv ℝ f x) := by |
| 29 | ext i |
| 30 | simp only [vectorCurl, curl_apply, partialDerivative, fderiv_coordinate f x hf, curlMatrix] |
| 31 | |
| 32 | theorem curlMatrix_add (A B : Space →L[ℝ] Space) : |
| 33 | curlMatrix (A+B) = curlMatrix A + curlMatrix B := by |
| 34 | ext i |
| 35 | simp only [curlMatrix, add_apply, PiLp.add_apply] |
| 36 | ring |
| 37 | |
| 38 | theorem curlMatrix_smul (c : ℝ) (A : Space →L[ℝ] Space) : |
| 39 | curlMatrix (c • A) = c • curlMatrix A := by |
| 40 | ext i |
| 41 | simp only [curlMatrix, smul_apply, PiLp.smul_apply, smul_eq_mul] |
| 42 | ring |
| 43 | |
| 44 | theorem vectorCurl_add (f g : Space → Space) |
| 45 | (hf : Differentiable ℝ f) (hg : Differentiable ℝ g) : |
| 46 | vectorCurl (f+g) = vectorCurl f + vectorCurl g := by |
| 47 | funext x |
| 48 | rw [vectorCurl_eq_matrix _ x ((hf x).add (hg x)), fderiv_add (hf x) (hg x), curlMatrix_add, |
| 49 | ← vectorCurl_eq_matrix f x (hf x), ← vectorCurl_eq_matrix g x (hg x)] |
| 50 | rfl |
| 51 | |
| 52 | theorem vectorCurl_smul (c : ℝ) (f : Space → Space) (hf : Differentiable ℝ f) : |
| 53 | vectorCurl (c • f) = c • vectorCurl f := by |
| 54 | funext x |
| 55 | rw [vectorCurl_eq_matrix _ x ((hf x).const_smul c), fderiv_const_smul (hf x) c, |
| 56 | curlMatrix_smul, ← vectorCurl_eq_matrix f x (hf x)] |
| 57 | rfl |
| 58 | |
| 59 | theorem testCurl_memLp (χ : Cutoff) (f : Test) : |
| 60 | MemLp (vectorCurl (fun x => χ.field x • (f : Space → Space) x)) 2 volume := |
| 61 | vectorCurl_memLp _ (χ.smooth.smul f.smooth) (f.compact.smul_left (f := χ.field)) |
| 62 | |
| 63 | /-- The literal curl of the cutoff times a compact vector test, in ordinary L². -/ |
| 64 | def testCurl (χ : Cutoff) (f : Test) : L2 := (testCurl_memLp χ f).toLp _ |
| 65 | |
| 66 | theorem testCurl_ae (χ : Cutoff) (f : Test) : |
| 67 | testCurl χ f =ᵐ[volume] vectorCurl (fun x => χ.field x • (f : Space → Space) x) := |
| 68 | (testCurl_memLp χ f).coeFn_toLp |
| 69 | |
| 70 | theorem testCurl_add (χ : Cutoff) (f g : Test) : |
| 71 | testCurl χ (f+g) = testCurl χ f + testCurl χ g := by |
| 72 | apply Lp.ext |
| 73 | filter_upwards [testCurl_ae χ (f+g), testCurl_ae χ f, testCurl_ae χ g, |
| 74 | Lp.coeFn_add (testCurl χ f) (testCurl χ g)] with x hfg hf hg ha |
| 75 | simp only [Pi.add_apply] at ha |
| 76 | rw [hfg, ha, hf, hg] |
| 77 | have hadd : (fun y => χ.field y • (↑(f+g) : Space → Space) y) = |
| 78 | (fun y => χ.field y • (f : Space → Space) y) + |
| 79 | (fun y => χ.field y • (g : Space → Space) y) := by |
| 80 | funext y |
| 81 | exact smul_add _ _ _ |
| 82 | have hdf : Differentiable ℝ (fun y => χ.field y • (f : Space → Space) y) := |
| 83 | (χ.smooth.smul f.smooth).differentiable (by simp) |
| 84 | have hdg : Differentiable ℝ (fun y => χ.field y • (g : Space → Space) y) := |
| 85 | (χ.smooth.smul g.smooth).differentiable (by simp) |
| 86 | rw [hadd] |
| 87 | exact congrFun (vectorCurl_add _ _ hdf hdg) x |
| 88 | |
| 89 | theorem testCurl_smul (χ : Cutoff) (c : ℝ) (f : Test) : |
| 90 | testCurl χ (c • f) = c • testCurl χ f := by |
| 91 | apply Lp.ext |
| 92 | filter_upwards [testCurl_ae χ (c • f), testCurl_ae χ f, |
| 93 | Lp.coeFn_smul c (testCurl χ f)] with x hcf hf hs |
| 94 | simp only [Pi.smul_apply] at hs |
| 95 | rw [hcf, hs, hf] |
| 96 | have hsmul : (fun y => χ.field y • (↑(c • f) : Space → Space) y) = |
| 97 | c • (fun y => χ.field y • (f : Space → Space) y) := by |
| 98 | funext y |
| 99 | exact smul_comm (χ.field y) c ((f : Space → Space) y) |
| 100 | have hdf : Differentiable ℝ (fun y => χ.field y • (f : Space → Space) y) := |
| 101 | (χ.smooth.smul f.smooth).differentiable (by simp) |
| 102 | rw [hsmul] |
| 103 | exact congrFun (vectorCurl_smul c _ hdf) x |
| 104 | |
| 105 | /-- The actual linear cutoff-curl operation on vector tests. -/ |
| 106 | def testCurlLinear (χ : Cutoff) : Test →ₗ[ℝ] L2 where |
| 107 | toFun := testCurl χ |
| 108 | map_add' := testCurl_add χ |
| 109 | map_smul' := testCurl_smul χ |
| 110 | |
| 111 | /-- The proved cutoff-dependent bound on the homogeneous space. -/ |
| 112 | def cutoffBound (χ : Cutoff) : ℝ := |
| 113 | 3 * cutoffCurlConstant * |
| 114 | (lpNorm χ.field ∞ volume + lpNorm (gradient χ.field) 3 volume) |
| 115 | |
| 116 | theorem cutoffBound_nonneg (χ : Cutoff) : 0 ≤ cutoffBound χ := by |
| 117 | unfold cutoffBound |
| 118 | exact mul_nonneg (mul_nonneg (by norm_num) cutoffCurlConstant_pos.le) |
| 119 | (add_nonneg lpNorm_nonneg lpNorm_nonneg) |
| 120 | |
| 121 | theorem testCurl_bound (χ : Cutoff) (f : Test) : |
| 122 | ‖testCurlLinear χ f‖ ≤ cutoffBound χ * ‖homogeneousGradient f‖ := by |
| 123 | change ‖testCurl χ f‖ ≤ _ |
| 124 | rw [testCurl, Lp.norm_toLp, toReal_eLpNorm (testCurl_memLp χ f).aestronglyMeasurable] |
| 125 | calc |
| 126 | _ ≤ cutoffCurlConstant * |
| 127 | (lpNorm χ.field ∞ volume + lpNorm (gradient χ.field) 3 volume) * |
| 128 | lpNorm (fderiv ℝ (f : Space → Space)) 2 volume := |
| 129 | cutoff_curl_bound χ.field f χ.smooth χ.compact f.smooth f.compact |
| 130 | _ ≤ cutoffCurlConstant * |
| 131 | (lpNorm χ.field ∞ volume + lpNorm (gradient χ.field) 3 volume) * |
| 132 | (3 * ‖testGradient f‖) := |
| 133 | mul_le_mul_of_nonneg_left (lpNorm_fderiv_le_gradient f) |
| 134 | (mul_nonneg cutoffCurlConstant_pos.le (add_nonneg lpNorm_nonneg lpNorm_nonneg)) |
| 135 | _ = cutoffBound χ * ‖homogeneousGradient f‖ := by |
| 136 | change _ = cutoffBound χ * ‖testGradient f‖ |
| 137 | unfold cutoffBound |
| 138 | ring |
| 139 | |
| 140 | /-- The bounded extension of actual cutoff-curl to the homogeneous Hilbert space. -/ |
| 141 | def cutoffCurl (χ : Cutoff) : homogeneousSpace →L[ℝ] L2 := |
| 142 | (testCurlLinear χ).extendOfNorm homogeneousGradient |
| 143 | |
| 144 | theorem cutoffCurl_on_test (χ : Cutoff) (f : Test) : |
| 145 | cutoffCurl χ (homogeneousGradient f) = testCurl χ f := |
| 146 | LinearMap.extendOfNorm_eq homogeneousGradient_dense ⟨cutoffBound χ, testCurl_bound χ⟩ f |
| 147 | |
| 148 | theorem cutoffCurl_norm_le (χ : Cutoff) : ‖cutoffCurl χ‖ ≤ cutoffBound χ := |
| 149 | LinearMap.opNorm_extendOfNorm_le homogeneousGradient_dense (cutoffBound_nonneg χ) (testCurl_bound χ) |
| 150 | |
| 151 | /-- The Riesz/weak-Newtonian representation of the cutoff curl functional. -/ |
| 152 | def weakPotential (χ : Cutoff) : L2 →L[ℝ] homogeneousSpace := (cutoffCurl χ).adjoint |
| 153 | |
| 154 | /-- The represented functional agrees exactly with the source's distributional pairing. -/ |
| 155 | theorem weakPotential_pairing (χ : Cutoff) (z : L2) (f : Test) : |
| 156 | ⟪weakPotential χ z, homogeneousGradient f⟫_ℝ = |
| 157 | ∫ x, ⟪z x, vectorCurl (fun y => χ.field y • (f : Space → Space) y) x⟫_ℝ := by |
| 158 | rw [weakPotential, ContinuousLinearMap.adjoint_inner_left, cutoffCurl_on_test, MeasureTheory.L2.inner_def] |
| 159 | apply integral_congr_ae |
| 160 | filter_upwards [testCurl_ae χ f] with x hx |
| 161 | rw [hx] |
| 162 | |
| 163 | theorem weakPotential_norm_le (χ : Cutoff) (z : L2) : |
| 164 | ‖weakPotential χ z‖ ≤ cutoffBound χ * ‖z‖ := by |
| 165 | refine ((weakPotential χ).le_opNorm z).trans ?_ |
| 166 | apply mul_le_mul_of_nonneg_right _ (norm_nonneg z) |
| 167 | change ‖(cutoffCurl χ).adjoint‖ ≤ cutoffBound χ |
| 168 | rw [LinearIsometryEquiv.norm_map] |
| 169 | exact cutoffCurl_norm_le χ |
| 170 | |
| 171 | /-- Compact vector tests determine the weak potential uniquely in the actual homogeneous space. -/ |
| 172 | theorem weakPotential_unique (χ : Cutoff) (z : L2) (u : homogeneousSpace) |
| 173 | (hu : ∀ f : Test, ⟪u, homogeneousGradient f⟫_ℝ = |
| 174 | ∫ x, ⟪z x, vectorCurl (fun y => χ.field y • (f : Space → Space) y) x⟫_ℝ) : |
| 175 | u = weakPotential χ z := by |
| 176 | apply ext_inner_right ℝ |
| 177 | intro v |
| 178 | refine homogeneousGradient_dense.induction_on v ?_ ?_ |
| 179 | · exact isClosed_eq (continuous_const.inner continuous_id) (continuous_const.inner continuous_id) |
| 180 | · intro f |
| 181 | exact (hu f).trans (weakPotential_pairing χ z f).symm |
| 182 | |
| 183 | /-- A genuine uniquely solvable weak Poisson/Riesz problem for the cutoff-curl functional. -/ |
| 184 | theorem existsUnique_weakPotential (χ : Cutoff) (z : L2) : |
| 185 | ∃! u : homogeneousSpace, ∀ f : Test, ⟪u, homogeneousGradient f⟫_ℝ = |
| 186 | ∫ x, ⟪z x, vectorCurl (fun y => χ.field y • (f : Space → Space) y) x⟫_ℝ := |
| 187 | ⟨weakPotential χ z, weakPotential_pairing χ z, fun u hu => weakPotential_unique χ z u hu⟩ |
| 188 | |
| 189 | /-- The actual bounded positive mean boundary operator `Tχ Tχ*`. -/ |
| 190 | def boundaryOperator (χ : Cutoff) : L2 →L[ℝ] L2 := (cutoffCurl χ).comp (weakPotential χ) |
| 191 | |
| 192 | theorem boundaryOperator_pairing (χ : Cutoff) (z w : L2) : |
| 193 | ⟪boundaryOperator χ z, w⟫_ℝ = ⟪weakPotential χ z, weakPotential χ w⟫_ℝ := by |
| 194 | change ⟪cutoffCurl χ (weakPotential χ z), w⟫_ℝ = _ |
| 195 | exact (ContinuousLinearMap.adjoint_inner_right (cutoffCurl χ) (weakPotential χ z) w).symm |
| 196 | |
| 197 | theorem boundaryOperator_positive (χ : Cutoff) (z : L2) : |
| 198 | 0 ≤ ⟪boundaryOperator χ z, z⟫_ℝ := by |
| 199 | rw [boundaryOperator_pairing] |
| 200 | exact real_inner_self_nonneg |
| 201 | |
| 202 | theorem boundaryOperator_energy (χ : Cutoff) (z : L2) : |
| 203 | ⟪boundaryOperator χ z, z⟫_ℝ = ‖weakPotential χ z‖ ^ 2 := by |
| 204 | rw [boundaryOperator_pairing, real_inner_self_eq_norm_sq] |
| 205 | |
| 206 | theorem boundaryOperator_norm_le (χ : Cutoff) : |
| 207 | ‖boundaryOperator χ‖ ≤ cutoffBound χ ^ 2 := by |
| 208 | refine (ContinuousLinearMap.opNorm_comp_le _ _).trans ?_ |
| 209 | change ‖cutoffCurl χ‖ * ‖(cutoffCurl χ).adjoint‖ ≤ _ |
| 210 | rw [LinearIsometryEquiv.norm_map] |
| 211 | exact (mul_le_mul (cutoffCurl_norm_le χ) (cutoffCurl_norm_le χ) |
| 212 | (norm_nonneg (cutoffCurl χ)) (cutoffBound_nonneg χ)).trans_eq (sq (cutoffBound χ)).symm |
| 213 | |
| 214 | /-- The actual test-level cutoff curl is solenoidal. -/ |
| 215 | theorem testCurl_solenoidal (χ : Cutoff) (f : Test) : |
| 216 | testCurl χ f ∈ solenoidalSpace := by |
| 217 | have hs : ContDiff ℝ ∞ (fun x => χ.field x • (f : Space → Space) x) := χ.smooth.smul f.smooth |
| 218 | exact curl_mem_solenoidal _ ((contDiff_piLp 2).mp hs) (testCurl_memLp χ f) |
| 219 | |
| 220 | /-- Closedness of the ordinary solenoidal space preserves the curl constraint under completion. -/ |
| 221 | theorem cutoffCurl_solenoidal (χ : Cutoff) (u : homogeneousSpace) : |
| 222 | cutoffCurl χ u ∈ solenoidalSpace := by |
| 223 | refine homogeneousGradient_dense.induction_on u ?_ ?_ |
| 224 | · exact EulerMeanSolenoidal.gradientSpace.isClosed_orthogonal.preimage (cutoffCurl χ).continuous |
| 225 | · intro f |
| 226 | rw [cutoffCurl_on_test] |
| 227 | exact testCurl_solenoidal χ f |
| 228 | |
| 229 | theorem boundaryOperator_solenoidal (χ : Cutoff) (z : L2) : |
| 230 | boundaryOperator χ z ∈ solenoidalSpace := |
| 231 | cutoffCurl_solenoidal χ (weakPotential χ z) |
| 232 | |
| 233 | /-- Fields supported in the cutoff's closed support, defined by actual L² restriction. -/ |
| 234 | def supportedSpace (χ : Cutoff) : Submodule ℝ L2 := |
| 235 | (LpToLpRestrictCLM Space Space ℝ volume 2 (tsupport χ.field)ᶜ).ker |
| 236 | |
| 237 | theorem supportedSpace_closed (χ : Cutoff) : IsClosed (supportedSpace χ : Set L2) := |
| 238 | (LpToLpRestrictCLM Space Space ℝ volume 2 (tsupport χ.field)ᶜ).isClosed_ker |
| 239 | |
| 240 | theorem mem_supportedSpace_iff (χ : Cutoff) (z : L2) : |
| 241 | z ∈ supportedSpace χ ↔ |
| 242 | (z : Space → Space) =ᵐ[volume.restrict (tsupport χ.field)ᶜ] 0 := by |
| 243 | change LpToLpRestrictCLM Space Space ℝ volume 2 (tsupport χ.field)ᶜ z = 0 ↔ _ |
| 244 | constructor |
| 245 | · intro h |
| 246 | have ha := LpToLpRestrictCLM_coeFn (μ := (volume : Measure Space)) (p := 2) |
| 247 | ℝ (tsupport χ.field)ᶜ z |
| 248 | rw [h] at ha |
| 249 | exact ha.symm.trans (Lp.coeFn_zero Space 2 _) |
| 250 | · intro h |
| 251 | apply Lp.ext |
| 252 | exact (LpToLpRestrictCLM_coeFn ℝ (tsupport χ.field)ᶜ z).trans |
| 253 | (h.trans (Lp.coeFn_zero Space 2 _).symm) |
| 254 | |
| 255 | /-- Multiplication by the cutoff and then curl has no support outside the cutoff support. -/ |
| 256 | theorem testCurl_supported (χ : Cutoff) (f : Test) : testCurl χ f ∈ supportedSpace χ := by |
| 257 | rw [mem_supportedSpace_iff] |
| 258 | have hs : tsupport (vectorCurl (fun x => χ.field x • (f : Space → Space) x)) ⊆ |
| 259 | tsupport χ.field := by |
| 260 | apply tsupport_curl_subset _ _ (isClosed_tsupport χ.field) |
| 261 | intro i |
| 262 | exact tsupport_mul_subset_left |
| 263 | filter_upwards [ae_restrict_of_ae (testCurl_ae χ f), |
| 264 | ae_restrict_mem (isClosed_tsupport χ.field).measurableSet.compl] with x hx hm |
| 265 | rw [hx] |
| 266 | exact image_eq_zero_of_notMem_tsupport (fun h => hm (hs h)) |
| 267 | |
| 268 | /-- Actual support is retained under homogeneous completion because L² restriction is continuous. -/ |
| 269 | theorem cutoffCurl_supported (χ : Cutoff) (u : homogeneousSpace) : |
| 270 | cutoffCurl χ u ∈ supportedSpace χ := by |
| 271 | refine homogeneousGradient_dense.induction_on u ?_ ?_ |
| 272 | · exact (supportedSpace_closed χ).preimage (cutoffCurl χ).continuous |
| 273 | · intro f |
| 274 | rw [cutoffCurl_on_test] |
| 275 | exact testCurl_supported χ f |
| 276 | |
| 277 | theorem boundaryOperator_supported (χ : Cutoff) (z : L2) : |
| 278 | boundaryOperator χ z ∈ supportedSpace χ := |
| 279 | cutoffCurl_supported χ (weakPotential χ z) |
| 280 | |
| 281 | /-- The constructed mean boundary output vanishes almost everywhere outside the cutoff support. -/ |
| 282 | theorem boundaryOperator_zero_off_support (χ : Cutoff) (z : L2) : |
| 283 | (boundaryOperator χ z : Space → Space) =ᵐ[volume.restrict (tsupport χ.field)ᶜ] 0 := |
| 284 | (mem_supportedSpace_iff χ _).mp (boundaryOperator_supported χ z) |
| 285 | |
| 286 | /-- Symmetry follows from the actual Hilbert-adjoint construction. -/ |
| 287 | theorem boundaryOperator_symmetric (χ : Cutoff) (z w : L2) : |
| 288 | ⟪boundaryOperator χ z, w⟫_ℝ = ⟪z, boundaryOperator χ w⟫_ℝ := by |
| 289 | calc |
| 290 | ⟪boundaryOperator χ z, w⟫_ℝ = ⟪weakPotential χ z, weakPotential χ w⟫_ℝ := |
| 291 | boundaryOperator_pairing χ z w |
| 292 | _ = ⟪weakPotential χ w, weakPotential χ z⟫_ℝ := real_inner_comm _ _ |
| 293 | _ = ⟪boundaryOperator χ w, z⟫_ℝ := (boundaryOperator_pairing χ w z).symm |
| 294 | _ = ⟪z, boundaryOperator χ w⟫_ℝ := real_inner_comm _ _ |
| 295 | |
| 296 | end EulerMeanBoundary |