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.MeanWeakHarmonicScaling |
| 2 | |
| 3 | /-! |
| 4 | # Compact smooth solenoidal tests determine ordinary L² solenoidal fields |
| 5 | |
| 6 | The curl-curl identity reduces the orthogonal complement of compact smooth |
| 7 | curls inside the solenoidal space to globally weakly harmonic L² fields. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace Euler.ComparatorBridge |
| 13 | |
| 14 | open Set MeasureTheory InnerProductSpace Laplacian EulerSmoothLimit EulerVectorCalculus |
| 15 | EulerMeanSolenoidal EulerMeanGradientTest EulerMeanVectorIdentities EulerMeanHarmonic |
| 16 | EulerMeanCurlIntegration EulerMeanBoundary |
| 17 | open scoped ContDiff Topology |
| 18 | open Filter |
| 19 | |
| 20 | /-- A distributionally harmonic vector field on all of ℝ³ vanishes if it lies in L². -/ |
| 21 | theorem weakHarmonicOn_univ_eq_zero (u : EulerMeanSolenoidal.L2) |
| 22 | (hu : WeakHarmonicOn Set.univ u) : u = 0 := by |
| 23 | have hball (n : ℕ) : WeakHarmonicOn |
| 24 | (Metric.ball (0 : Space) ((n + 1 : ℕ) : ℝ)) u := by |
| 25 | intro φ hc hs _ |
| 26 | exact hu φ hc hs (Set.subset_univ _) |
| 27 | have hall : ∀ᵐ x ∂volume, ∀ n : ℕ, |
| 28 | x ∈ Metric.closedBall (0 : Space) (((n + 1 : ℕ) : ℝ) / 4) → |
| 29 | ‖u x‖ ^ 2 ≤ |
| 30 | (harmonicQuarterBallConstant * (((n + 1 : ℕ) : ℝ) ^ 3)⁻¹) * ‖u‖ ^ 2 := |
| 31 | ae_all_iff.mpr (fun n => weakHarmonic_pointwise_scaled u |
| 32 | ((n + 1 : ℕ) : ℝ) (by positivity) (hball n)) |
| 33 | have hrad : Tendsto (fun n : ℕ => ((n + 1 : ℕ) : ℝ)) atTop atTop := |
| 34 | tendsto_natCast_atTop_atTop.comp (tendsto_add_atTop_nat 1) |
| 35 | have hlim : Tendsto (fun n : ℕ => |
| 36 | (harmonicQuarterBallConstant * (((n + 1 : ℕ) : ℝ) ^ 3)⁻¹) * ‖u‖ ^ 2) |
| 37 | atTop (𝓝 0) := by |
| 38 | have hi := (tendsto_inv_atTop_zero : Tendsto (fun r : ℝ => r⁻¹) atTop (𝓝 0)).comp |
| 39 | ((tendsto_pow_atTop (by decide : (3 : ℕ) ≠ 0)).comp hrad) |
| 40 | simpa using (hi.const_mul harmonicQuarterBallConstant).mul_const (‖u‖ ^ 2) |
| 41 | apply Lp.ext |
| 42 | filter_upwards [hall, Lp.coeFn_zero Space 2 volume] with x hx hz |
| 43 | rw [hz] |
| 44 | have hlarge : ∀ᶠ n : ℕ in atTop, 4 * ‖x‖ ≤ ((n + 1 : ℕ) : ℝ) := |
| 45 | hrad.eventually (eventually_ge_atTop (4 * ‖x‖)) |
| 46 | have hzero : ‖u x‖ ^ 2 ≤ 0 := ge_of_tendsto hlim (hlarge.mono (fun n hn => |
| 47 | hx n (by simpa only [Metric.mem_closedBall, dist_zero_right] using |
| 48 | (show ‖x‖ ≤ ((n + 1 : ℕ) : ℝ) / 4 by linarith)))) |
| 49 | exact norm_eq_zero.mp (sq_eq_zero_iff.mp (le_antisymm hzero (sq_nonneg _))) |
| 50 | |
| 51 | /-- Taking the L² class of a compact smooth curl is a linear operation. -/ |
| 52 | def compactCurlMap : Test →ₗ[ℝ] L2 where |
| 53 | toFun f := testValue (curlTest f) |
| 54 | map_add' f g := by |
| 55 | apply Lp.ext |
| 56 | filter_upwards [testValue_ae (curlTest (f + g)), |
| 57 | testValue_ae (curlTest f), testValue_ae (curlTest g), |
| 58 | Lp.coeFn_add (testValue (curlTest f)) (testValue (curlTest g))] |
| 59 | with x hfg hf hg ha |
| 60 | rw [hfg, ha] |
| 61 | simp only [Pi.add_apply, hf, hg] |
| 62 | exact congrFun (vectorCurl_add (f : Space → Space) (g : Space → Space) |
| 63 | (f.smooth.differentiable (by simp)) (g.smooth.differentiable (by simp))) x |
| 64 | map_smul' c f := by |
| 65 | simp only [RingHom.id_apply] |
| 66 | apply Lp.ext |
| 67 | filter_upwards [testValue_ae (curlTest (c • f)), testValue_ae (curlTest f), |
| 68 | Lp.coeFn_smul c (testValue (curlTest f))] with x hcf hf hs |
| 69 | rw [hcf, hs] |
| 70 | simp only [Pi.smul_apply, hf] |
| 71 | exact congrFun (vectorCurl_smul c (f : Space → Space) |
| 72 | (f.smooth.differentiable (by simp))) x |
| 73 | |
| 74 | /-- L² classes of curls of genuine compactly supported smooth vector fields. -/ |
| 75 | def compactCurlGenerators : Set L2 := |
| 76 | Set.range (fun f : Test => testValue (curlTest f)) |
| 77 | |
| 78 | /-- The closed linear space generated by compactly supported smooth curls. -/ |
| 79 | def compactCurlSpace : Submodule ℝ L2 := |
| 80 | (Submodule.span ℝ compactCurlGenerators).topologicalClosure |
| 81 | |
| 82 | theorem compactCurlSpace_closed : IsClosed (compactCurlSpace : Set L2) := |
| 83 | (Submodule.span ℝ compactCurlGenerators).isClosed_topologicalClosure |
| 84 | |
| 85 | instance : CompleteSpace compactCurlSpace := compactCurlSpace_closed.completeSpace_coe |
| 86 | |
| 87 | theorem compactCurl_mem_solenoidal (f : Test) : |
| 88 | testValue (curlTest f) ∈ solenoidalSpace := |
| 89 | curl_mem_solenoidal _ ((contDiff_piLp 2).mp f.smooth) (test_memLp (curlTest f)) |
| 90 | |
| 91 | theorem compactCurl_mem (f : Test) : testValue (curlTest f) ∈ compactCurlSpace := |
| 92 | (Submodule.span ℝ compactCurlGenerators).le_topologicalClosure |
| 93 | (Submodule.subset_span ⟨f, rfl⟩) |
| 94 | |
| 95 | theorem compactCurlSpace_le_solenoidal : compactCurlSpace ≤ solenoidalSpace := by |
| 96 | apply (Submodule.span ℝ compactCurlGenerators).topologicalClosure_minimal |
| 97 | _ gradientSpace.isClosed_orthogonal |
| 98 | apply Submodule.span_le.mpr |
| 99 | rintro _ ⟨f, rfl⟩ |
| 100 | exact compactCurl_mem_solenoidal f |
| 101 | |
| 102 | /-- A solenoidal field annihilating compact smooth curls is weakly harmonic. -/ |
| 103 | theorem weakHarmonicOn_univ_of_compactCurl_pairing_zero |
| 104 | (u : L2) (hu : u ∈ solenoidalSpace) |
| 105 | (htest : ∀ f : Test, ⟪u, testValue (curlTest f)⟫_ℝ = 0) : |
| 106 | WeakHarmonicOn Set.univ u := by |
| 107 | intro φ hc hs _ |
| 108 | let f : Test := ⟨φ, hs, hc⟩ |
| 109 | have h := solenoidal_curlcurl_pairing u hu f |
| 110 | rw [htest (curlTest f)] at h |
| 111 | have hz : ⟪u, testValue (laplacianTest f)⟫_ℝ = 0 := by linarith |
| 112 | exact (l2_test_pairing u (laplacianTest f)).symm.trans hz |
| 113 | |
| 114 | /-- Compact smooth curls span the entire solenoidal Hilbert space densely. -/ |
| 115 | theorem compactCurlSpace_eq_solenoidal : compactCurlSpace = solenoidalSpace := by |
| 116 | have hbot : compactCurlSpace.orthogonal ⊓ solenoidalSpace = ⊥ := by |
| 117 | apply eq_bot_iff.mpr |
| 118 | intro u hu |
| 119 | change u = 0 |
| 120 | apply weakHarmonicOn_univ_eq_zero u |
| 121 | apply weakHarmonicOn_univ_of_compactCurl_pairing_zero u hu.2 |
| 122 | intro f |
| 123 | rw [real_inner_comm] |
| 124 | exact hu.1 _ (compactCurl_mem f) |
| 125 | simpa only [hbot, sup_bot_eq] using |
| 126 | (Submodule.sup_orthogonal_inf_of_hasOrthogonalProjection compactCurlSpace_le_solenoidal) |
| 127 | |
| 128 | /-- Linearity makes the closure of the generator set itself the full solenoidal space. -/ |
| 129 | theorem closure_compactCurlGenerators : |
| 130 | closure compactCurlGenerators = (solenoidalSpace : Set L2) := by |
| 131 | have hspan : Submodule.span ℝ compactCurlGenerators = compactCurlMap.range := by |
| 132 | change Submodule.span ℝ (compactCurlMap.range : Set L2) = compactCurlMap.range |
| 133 | exact Submodule.span_eq _ |
| 134 | calc |
| 135 | closure compactCurlGenerators = (compactCurlSpace : Set L2) := by |
| 136 | rw [compactCurlSpace, hspan, Submodule.topologicalClosure_coe] |
| 137 | rfl |
| 138 | _ = (solenoidalSpace : Set L2) := by rw [compactCurlSpace_eq_solenoidal] |
| 139 | |
| 140 | /-- Compact smooth curl classes regarded as a subset of the solenoidal Hilbert space. -/ |
| 141 | def compactSolenoidalTests : Set solenoidalSpace := |
| 142 | {u | (u : L2) ∈ compactCurlGenerators} |
| 143 | |
| 144 | /-- Every member is represented by an actual compact smooth divergence-free field. -/ |
| 145 | theorem compactSolenoidalTests_representation (u : solenoidalSpace) |
| 146 | (hu : u ∈ compactSolenoidalTests) : |
| 147 | ∃ φ : Space → Space, ContDiff ℝ ∞ φ ∧ HasCompactSupport φ ∧ |
| 148 | (∀ x, divergence φ x = 0) ∧ ((u : L2) : Space → Space) =ᵐ[volume] φ := by |
| 149 | obtain ⟨f, hf⟩ := hu |
| 150 | refine ⟨(curlTest f : Space → Space), (curlTest f).smooth, (curlTest f).compact, |
| 151 | divergence_curl _ ((contDiff_piLp 2).mp f.smooth), ?_⟩ |
| 152 | rw [← hf] |
| 153 | exact testValue_ae (curlTest f) |
| 154 | |
| 155 | /-- A bundled compact smooth solenoidal test has the prescribed L² class. -/ |
| 156 | theorem compactSolenoidalTests_testValue (u : solenoidalSpace) |
| 157 | (hu : u ∈ compactSolenoidalTests) : |
| 158 | ∃ f : Test, (∀ x, divergence (f : Space → Space) x = 0) ∧ |
| 159 | testValue f = (u : L2) := by |
| 160 | obtain ⟨f, hf⟩ := hu |
| 161 | exact ⟨curlTest f, divergence_curl _ ((contDiff_piLp 2).mp f.smooth), hf⟩ |
| 162 | |
| 163 | /-- The compact test fields form a dense subset of the actual solenoidal L² space. -/ |
| 164 | theorem compactSolenoidalTests_dense : Dense compactSolenoidalTests := by |
| 165 | apply Subtype.dense_iff.mpr |
| 166 | change (solenoidalSpace : Set L2) ⊆ |
| 167 | closure (Subtype.val '' {u : solenoidalSpace | (u : L2) ∈ compactCurlGenerators}) |
| 168 | have himage : Subtype.val '' |
| 169 | {u : solenoidalSpace | (u : L2) ∈ compactCurlGenerators} = compactCurlGenerators := by |
| 170 | ext x |
| 171 | constructor |
| 172 | · rintro ⟨u, hu, rfl⟩ |
| 173 | exact hu |
| 174 | · intro hx |
| 175 | have hxS : x ∈ solenoidalSpace := by |
| 176 | change x ∈ (solenoidalSpace : Set L2) |
| 177 | rw [← closure_compactCurlGenerators] |
| 178 | exact subset_closure hx |
| 179 | exact ⟨⟨x, hxS⟩, hx, rfl⟩ |
| 180 | rw [himage, closure_compactCurlGenerators] |
| 181 | |
| 182 | /-- Pairings against compact smooth solenoidal tests determine a solenoidal field. -/ |
| 183 | theorem solenoidal_eq_zero_of_compact_test_pairing_zero |
| 184 | (u : L2) (hu : u ∈ solenoidalSpace) |
| 185 | (htest : ∀ f : Test, (∀ x, divergence (f : Space → Space) x = 0) → |
| 186 | ⟪u, testValue f⟫_ℝ = 0) : u = 0 := by |
| 187 | apply weakHarmonicOn_univ_eq_zero u |
| 188 | apply weakHarmonicOn_univ_of_compactCurl_pairing_zero u hu |
| 189 | intro f |
| 190 | exact htest (curlTest f) (divergence_curl _ ((contDiff_piLp 2).mp f.smooth)) |
| 191 | |
| 192 | end Euler.ComparatorBridge |