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.MeanCurlIntegration |
| 2 | |
| 3 | /-! |
| 4 | The localized weak Newtonian potential produces the source's actual curl field `w`. |
| 5 | Its complement is distributionally harmonic wherever the cutoff is one. |
| 6 | -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerMeanHarmonic |
| 11 | |
| 12 | open MeasureTheory InnerProductSpace Laplacian EulerSmoothLimit EulerVectorCalculus |
| 13 | EulerMeanSolenoidal EulerMeanCutoffCurl EulerMeanGradientTest EulerMeanBoundary |
| 14 | EulerMeanCurlTensor EulerMeanVectorIdentities EulerMeanCurlIntegration |
| 15 | open scoped ContDiff |
| 16 | |
| 17 | /-- Distributional harmonicity of an actual ordinary L² vector field on a set. -/ |
| 18 | def WeakHarmonicOn (U : Set Space) (u : EulerMeanSolenoidal.L2) : Prop := |
| 19 | ∀ φ : Space → Space, HasCompactSupport φ → ContDiff ℝ ∞ φ → |
| 20 | tsupport φ ⊆ U → (∫ x, ⟪u x, Δ φ x⟫_ℝ) = 0 |
| 21 | |
| 22 | theorem l2_test_pairing (u : L2) (f : Test) : |
| 23 | ⟪u, testValue f⟫_ℝ = ∫ x, ⟪u x, (f : Space → Space) x⟫_ℝ := by |
| 24 | rw [MeasureTheory.L2.inner_def] |
| 25 | apply integral_congr_ae |
| 26 | filter_upwards [testValue_ae f] with x hx |
| 27 | rw [hx] |
| 28 | |
| 29 | def divergenceGradient (f : Test) : L2 := |
| 30 | EulerMeanSolenoidal.testGradient (divergence (f : Space → Space)) |
| 31 | (divergence_compact f f.smooth f.compact) (divergence_smooth f f.smooth) |
| 32 | |
| 33 | theorem divergenceGradient_ae (f : Test) : |
| 34 | divergenceGradient f =ᵐ[volume] gradient (divergence (f : Space → Space)) := |
| 35 | EulerMeanSolenoidal.testGradient_ae _ _ _ |
| 36 | |
| 37 | theorem divergenceGradient_mem (f : Test) : divergenceGradient f ∈ gradientSpace := |
| 38 | testGradient_mem _ _ _ |
| 39 | |
| 40 | theorem testValue_curlcurl (f : Test) : |
| 41 | testValue (curlTest (curlTest f)) = divergenceGradient f - testValue (laplacianTest f) := by |
| 42 | apply Lp.ext |
| 43 | filter_upwards [testValue_ae (curlTest (curlTest f)), divergenceGradient_ae f, |
| 44 | testValue_ae (laplacianTest f), Lp.coeFn_sub (divergenceGradient f) (testValue (laplacianTest f))] |
| 45 | with x hcc hg hl hs |
| 46 | rw [hcc, hs] |
| 47 | change vectorCurl (vectorCurl (f : Space → Space)) x = |
| 48 | divergenceGradient f x - testValue (laplacianTest f) x |
| 49 | rw [hg, hl, vectorCurl_vectorCurl f f.smooth] |
| 50 | rfl |
| 51 | |
| 52 | theorem solenoidal_curlcurl_pairing (z : L2) (hz : z ∈ solenoidalSpace) (f : Test) : |
| 53 | ⟪z, testValue (curlTest (curlTest f))⟫_ℝ = -⟪z, testValue (laplacianTest f)⟫_ℝ := by |
| 54 | rw [testValue_curlcurl, inner_sub_right] |
| 55 | have hg : ⟪z, divergenceGradient f⟫_ℝ = 0 := by |
| 56 | rw [real_inner_comm] |
| 57 | exact hz (divergenceGradient f) (divergenceGradient_mem f) |
| 58 | rw [hg, zero_sub] |
| 59 | |
| 60 | theorem cutoff_curlTest_eq (χ : Cutoff) (U : Set Space) |
| 61 | (hχ : ∀ x ∈ U, χ.field x = 1) (f : Test) (hf : tsupport (f : Space → Space) ⊆ U) : |
| 62 | (fun x => χ.field x • (curlTest f : Space → Space) x) = vectorCurl (f : Space → Space) := by |
| 63 | funext x |
| 64 | by_cases hx : x ∈ U |
| 65 | · change χ.field x • vectorCurl (f : Space → Space) x = _ |
| 66 | rw [hχ x hx, one_smul] |
| 67 | · have hs : x ∉ tsupport (vectorCurl (f : Space → Space)) := |
| 68 | fun h => hx (hf (vectorCurl_support f h)) |
| 69 | change χ.field x • vectorCurl (f : Space → Space) x = _ |
| 70 | rw [image_eq_zero_of_notMem_tsupport hs, smul_zero] |
| 71 | |
| 72 | /-- The actual curl tensor of any homogeneous potential remains solenoidal. -/ |
| 73 | theorem homogeneous_curl_solenoidal (u : homogeneousSpace) : |
| 74 | curlTensor (u : GradientTensor) ∈ solenoidalSpace := by |
| 75 | refine homogeneousGradient_dense.induction_on u ?_ ?_ |
| 76 | · exact gradientSpace.isClosed_orthogonal.preimage |
| 77 | (curlTensor.continuous.comp continuous_subtype_val) |
| 78 | · intro f |
| 79 | change curlTensor (EulerMeanGradientTest.testGradient f) ∈ solenoidalSpace |
| 80 | rw [curlTensor_test_eq] |
| 81 | exact curl_mem_solenoidal _ ((contDiff_piLp 2).mp f.smooth) (test_memLp (curlTest f)) |
| 82 | |
| 83 | theorem harmonicPart_solenoidal (χ : Cutoff) (z : L2) : |
| 84 | harmonicPart χ z ∈ solenoidalSpace := homogeneous_curl_solenoidal (weakPotential χ z) |
| 85 | |
| 86 | /-- The source's `z - w` is genuinely weakly harmonic where the actual cutoff equals one. -/ |
| 87 | theorem weakHarmonicOn_sub_harmonicPart (χ : Cutoff) (U : Set Space) (z : L2) |
| 88 | (hz : z ∈ solenoidalSpace) (hχ : ∀ x ∈ U, χ.field x = 1) : |
| 89 | WeakHarmonicOn U (z - harmonicPart χ z) := by |
| 90 | intro φ hc hs hsupport |
| 91 | let f : Test := ⟨φ, hs, hc⟩ |
| 92 | have h₁ : ⟪weakPotential χ z, homogeneousGradient (curlTest f)⟫_ℝ = |
| 93 | ⟪z, testValue (curlTest (curlTest f))⟫_ℝ := by |
| 94 | rw [weakPotential_pairing, cutoff_curlTest_eq χ U hχ f hsupport, l2_test_pairing] |
| 95 | rfl |
| 96 | have h₂ := homogeneous_curl_pairing (weakPotential χ z) f |
| 97 | have h₃ := solenoidal_curlcurl_pairing z hz f |
| 98 | have hi : ⟪z - harmonicPart χ z, testValue (laplacianTest f)⟫_ℝ = 0 := by |
| 99 | rw [inner_sub_left] |
| 100 | change ⟪z, testValue (laplacianTest f)⟫_ℝ - |
| 101 | ⟪curlTensor (weakPotential χ z : GradientTensor), testValue (laplacianTest f)⟫_ℝ = 0 |
| 102 | linarith |
| 103 | exact (l2_test_pairing (z - harmonicPart χ z) (laplacianTest f)).symm.trans hi |
| 104 | |
| 105 | /-- A quantitative decomposition constructed from the cutoff and the given solenoidal field. -/ |
| 106 | theorem exists_weak_harmonic_decomposition (χ : Cutoff) (U : Set Space) (z : L2) |
| 107 | (hz : z ∈ solenoidalSpace) (hχ : ∀ x ∈ U, χ.field x = 1) : |
| 108 | ∃ w : L2, w = harmonicPart χ z ∧ w ∈ solenoidalSpace ∧ |
| 109 | ‖w‖ ≤ 6 * ‖weakPotential χ z‖ ∧ WeakHarmonicOn U (z - w) := |
| 110 | ⟨harmonicPart χ z, rfl, harmonicPart_solenoidal χ z, harmonicPart_norm_le χ z, |
| 111 | weakHarmonicOn_sub_harmonicPart χ U z hz hχ⟩ |
| 112 | |
| 113 | end EulerMeanHarmonic |