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 | import Euler.MeanLocalL2Energy |
| 3 | import Euler.MeanScaledCutoff |
| 4 | import Euler.MeanVariationalInverse |
| 5 | |
| 6 | /-! |
| 7 | The mean inverse with the source's actual nonlocal boundary operator. |
| 8 | The boundary lower bound is proved from the spatial hypotheses (5), not an input. |
| 9 | -/ |
| 10 | |
| 11 | /-! ## From `Euler/MeanBoundaryLocalization.lean` |
| 12 | |
| 13 | The text of `Euler/MeanBoundaryLocalization.lean`, folded into this file, which was its only importer. -/ |
| 14 | |
| 15 | section |
| 16 | |
| 17 | /-! The source localization estimate for the constructed nonlocal boundary operator. -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | namespace EulerMeanHarmonic |
| 22 | |
| 23 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerMeanSolenoidal EulerMeanBoundary |
| 24 | EulerMeanCurlTensor |
| 25 | |
| 26 | def boundaryLocalizationC1 : ℝ := 36 * (2 + 4 * weakHarmonicSmallBallConstant) |
| 27 | def boundaryLocalizationC2 : ℝ := 4 * weakHarmonicSmallBallConstant |
| 28 | |
| 29 | theorem boundaryLocalizationC1_nonneg : 0 ≤ boundaryLocalizationC1 := by |
| 30 | unfold boundaryLocalizationC1 |
| 31 | have hc := weakHarmonicSmallBallConstant_nonneg |
| 32 | positivity |
| 33 | |
| 34 | theorem boundaryLocalizationC2_nonneg : 0 ≤ boundaryLocalizationC2 := by |
| 35 | unfold boundaryLocalizationC2 |
| 36 | exact mul_nonneg (by norm_num) weakHarmonicSmallBallConstant_nonneg |
| 37 | |
| 38 | theorem norm_sub_sq_le_twice_L2 (z w : L2) : |
| 39 | ‖z-w‖^2 ≤ 2*‖z‖^2 + 2*‖w‖^2 := by |
| 40 | have h := norm_sub_le z w |
| 41 | have hz := norm_nonneg z |
| 42 | have hw := norm_nonneg w |
| 43 | have hzw := norm_nonneg (z-w) |
| 44 | nlinarith [sq_nonneg (‖z‖-‖w‖)] |
| 45 | |
| 46 | /-- The literal local mass estimate (8), with fixed dimensional constants. -/ |
| 47 | theorem boundary_localization (χ : Cutoff) (R : ℝ) (hR : 0 < R) (z : L2) |
| 48 | (hz : z ∈ solenoidalSpace) |
| 49 | (hχ : ∀ x ∈ Metric.ball (0 : Space) R, χ.field x = 1) |
| 50 | (r : ℝ) (hr : 0 ≤ r) (hrquarter : r ≤ 1/4) : |
| 51 | localL2Energy (Metric.ball (0 : Space) (R*r)) z ≤ |
| 52 | boundaryLocalizationC1 * ‖weakPotential χ z‖^2 + |
| 53 | boundaryLocalizationC2 * r^3 * ‖z‖^2 := by |
| 54 | let w := harmonicPart χ z |
| 55 | have hh : WeakHarmonicOn (Metric.ball (0 : Space) R) (z-w) := |
| 56 | weakHarmonicOn_sub_harmonicPart χ _ z hz hχ |
| 57 | have hloc := weakHarmonic_scaled_smallBall_energy (z-w) R hR hh r hr hrquarter |
| 58 | have hw : ‖w‖^2 ≤ 36 * ‖weakPotential χ z‖^2 := by |
| 59 | have H := pow_le_pow_left₀ (norm_nonneg w) (harmonicPart_norm_le χ z) 2 |
| 60 | simpa only [mul_pow, show (6:ℝ)^2 = 36 by norm_num] using H |
| 61 | have hc := weakHarmonicSmallBallConstant_nonneg |
| 62 | have hr3 : 0 ≤ r^3 := pow_nonneg hr _ |
| 63 | have hr31 : r^3 ≤ 1 := by |
| 64 | have H := pow_le_pow_left₀ hr (show r ≤ (1:ℝ) by linarith) 3 |
| 65 | simpa only [one_pow] using H |
| 66 | have hsplit := norm_sub_sq_le_twice_L2 z w |
| 67 | calc |
| 68 | _ ≤ 2 * localL2Energy (Metric.ball (0 : Space) (R*r)) (z-w) + 2 * ‖w‖^2 := |
| 69 | localL2Energy_le_of_decomposition _ z w |
| 70 | _ ≤ 2 * (weakHarmonicSmallBallConstant * r^3 * ‖z-w‖^2) + 2 * ‖w‖^2 := by |
| 71 | linarith |
| 72 | _ ≤ 2 * (weakHarmonicSmallBallConstant * r^3 * (2*‖z‖^2+2*‖w‖^2)) + |
| 73 | 2 * ‖w‖^2 := by |
| 74 | have H := mul_le_mul_of_nonneg_left hsplit (mul_nonneg hc hr3) |
| 75 | linarith only [H] |
| 76 | _ = 4 * weakHarmonicSmallBallConstant * r^3 * ‖z‖^2 + |
| 77 | (2 + 4 * weakHarmonicSmallBallConstant * r^3) * ‖w‖^2 := by ring |
| 78 | _ ≤ 4 * weakHarmonicSmallBallConstant * r^3 * ‖z‖^2 + |
| 79 | (2 + 4 * weakHarmonicSmallBallConstant) * ‖w‖^2 := by |
| 80 | have hfactor : 2 + 4 * weakHarmonicSmallBallConstant * r^3 ≤ |
| 81 | 2 + 4 * weakHarmonicSmallBallConstant := by |
| 82 | have H := mul_le_mul_of_nonneg_left hr31 |
| 83 | (show 0 ≤ 4 * weakHarmonicSmallBallConstant by positivity) |
| 84 | linarith only [H] |
| 85 | have H := mul_le_mul_of_nonneg_right hfactor (sq_nonneg ‖w‖) |
| 86 | linarith only [H] |
| 87 | _ ≤ 4 * weakHarmonicSmallBallConstant * r^3 * ‖z‖^2 + |
| 88 | (2 + 4 * weakHarmonicSmallBallConstant) * (36 * ‖weakPotential χ z‖^2) := by |
| 89 | have H := mul_le_mul_of_nonneg_left hw |
| 90 | (show 0 ≤ 2 + 4 * weakHarmonicSmallBallConstant by positivity) |
| 91 | linarith only [H] |
| 92 | _ = _ := by unfold boundaryLocalizationC1 boundaryLocalizationC2; ring |
| 93 | |
| 94 | /-- The same estimate directly in terms of the actual boundary quadratic form. -/ |
| 95 | theorem boundary_localization_form (χ : Cutoff) (R : ℝ) (hR : 0 < R) (z : L2) |
| 96 | (hz : z ∈ solenoidalSpace) |
| 97 | (hχ : ∀ x ∈ Metric.ball (0 : Space) R, χ.field x = 1) |
| 98 | (r : ℝ) (hr : 0 ≤ r) (hrquarter : r ≤ 1/4) : |
| 99 | localL2Energy (Metric.ball (0 : Space) (R*r)) z ≤ |
| 100 | boundaryLocalizationC1 * ⟪boundaryOperator χ z, z⟫_ℝ + |
| 101 | boundaryLocalizationC2 * r^3 * ‖z‖^2 := by |
| 102 | rw [boundaryOperator_energy] |
| 103 | exact boundary_localization χ R hR z hz hχ r hr hrquarter |
| 104 | |
| 105 | end EulerMeanHarmonic |
| 106 | end |
| 107 | |
| 108 | end |
| 109 | |
| 110 | /-! ## From `Euler/MeanLocalizedQuadraticBound.lean` |
| 111 | |
| 112 | The text of `Euler/MeanLocalizedQuadraticBound.lean`, folded into this file, which was its only importer. -/ |
| 113 | |
| 114 | section |
| 115 | |
| 116 | /-! Integrating the source's different lower bounds inside and outside the core. -/ |
| 117 | |
| 118 | noncomputable section |
| 119 | |
| 120 | namespace EulerMeanHarmonic |
| 121 | |
| 122 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerMeanSolenoidal EulerLiftedPressure |
| 123 | open scoped NNReal |
| 124 | |
| 125 | theorem localized_coefficient_lower (M : Space → Space →L[ℝ] Space) |
| 126 | (hM : AEStronglyMeasurable M volume) (C : ℝ≥0) (hC : ∀ x, ‖M x‖ ≤ C) |
| 127 | (s : Set Space) (hs : MeasurableSet s) (Be Bc : ℝ) (hBe : 0 ≤ Be) |
| 128 | (hext : ∀ x, x ∉ s → ∀ v : Space, -Be * ‖v‖^2 ≤ ⟪M x v, v⟫_ℝ) |
| 129 | (hcore : ∀ x, x ∈ s → ∀ v : Space, -Bc * ‖v‖^2 ≤ ⟪M x v, v⟫_ℝ) |
| 130 | (z : L2) : |
| 131 | -Be * ‖z‖^2 - Bc * localL2Energy s z ≤ |
| 132 | ⟪coefficientOperator M hM C hC z, z⟫_ℝ := by |
| 133 | have hi := integrable_norm_sq_L2 z |
| 134 | have his := hi.indicator hs |
| 135 | have hieq : (∫ x, -Be * ‖z x‖^2 - Bc * s.indicator (fun y => ‖z y‖^2) x) = |
| 136 | -Be * ‖z‖^2 - Bc * localL2Energy s z := by |
| 137 | rw [integral_sub (hi.const_mul (-Be)) (his.const_mul Bc), integral_const_mul, |
| 138 | integral_const_mul, integral_indicator hs, integral_norm_sq_L2] |
| 139 | rfl |
| 140 | rw [← hieq, MeasureTheory.L2.inner_def] |
| 141 | apply integral_mono_ae ((hi.const_mul (-Be)).sub (his.const_mul Bc)) |
| 142 | (MeasureTheory.L2.integrable_inner (coefficientOperator M hM C hC z) z) |
| 143 | filter_upwards [coefficientOperator_ae M hM C hC z] with x hx |
| 144 | change -Be * ‖z x‖^2 - Bc * s.indicator (fun y => ‖z y‖^2) x ≤ |
| 145 | ⟪(coefficientOperator M hM C hC z) x, z x⟫_ℝ |
| 146 | rw [hx] |
| 147 | by_cases hxs : x ∈ s |
| 148 | · rw [Set.indicator_of_mem hxs] |
| 149 | have H := hcore x hxs (z x) |
| 150 | linarith only [H, mul_nonneg hBe (sq_nonneg ‖z x‖)] |
| 151 | · rw [Set.indicator_of_notMem hxs, mul_zero, sub_zero] |
| 152 | exact hext x hxs (z x) |
| 153 | |
| 154 | end EulerMeanHarmonic |
| 155 | end |
| 156 | |
| 157 | end |
| 158 | |
| 159 | /-! ## From `Euler/MeanBoundaryCoercivity.lean` |
| 160 | |
| 161 | The text of `Euler/MeanBoundaryCoercivity.lean`, folded into this file, which was its only importer. -/ |
| 162 | |
| 163 | section |
| 164 | |
| 165 | /-! The concrete boundary lower bound used in the mean time-variational solve. -/ |
| 166 | |
| 167 | noncomputable section |
| 168 | |
| 169 | namespace EulerMeanHarmonic |
| 170 | |
| 171 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerMeanSolenoidal EulerMeanBoundary |
| 172 | EulerLiftedPressure |
| 173 | open scoped NNReal |
| 174 | |
| 175 | /-- The actual localized boundary operator compensates for the core's negative gradient. -/ |
| 176 | theorem mean_boundary_lower_bound (χ : Cutoff) (R : ℝ) (hR : 0 < R) |
| 177 | (hχ : ∀ x ∈ Metric.ball (0 : Space) R, χ.field x = 1) |
| 178 | (M : Space → Space →L[ℝ] Space) (hM : AEStronglyMeasurable M volume) |
| 179 | (C : ℝ≥0) (hC : ∀ x, ‖M x‖ ≤ C) |
| 180 | (Be Bc L r : ℝ) (hBe : 0 ≤ Be) (hBc : 0 ≤ Bc) |
| 181 | (hL : boundaryLocalizationC1 * Bc ≤ L) (hr : 0 ≤ r) (hrquarter : r ≤ 1/4) |
| 182 | (hext : ∀ x, x ∉ Metric.ball (0 : Space) (R*r) → |
| 183 | ∀ v : Space, -Be * ‖v‖^2 ≤ ⟪M x v, v⟫_ℝ) |
| 184 | (hcore : ∀ x, x ∈ Metric.ball (0 : Space) (R*r) → |
| 185 | ∀ v : Space, -Bc * ‖v‖^2 ≤ ⟪M x v, v⟫_ℝ) |
| 186 | (z : L2) (hz : z ∈ solenoidalSpace) : |
| 187 | -(Be + boundaryLocalizationC2 * Bc * r^3) * ‖z‖^2 ≤ |
| 188 | ⟪coefficientOperator M hM C hC z, z⟫_ℝ + L * ⟪boundaryOperator χ z, z⟫_ℝ := by |
| 189 | have hcoeff := localized_coefficient_lower M hM C hC |
| 190 | (Metric.ball (0 : Space) (R*r)) Metric.isOpen_ball.measurableSet Be Bc hBe hext hcore z |
| 191 | have hloc := mul_le_mul_of_nonneg_left |
| 192 | (boundary_localization_form χ R hR z hz hχ r hr hrquarter) hBc |
| 193 | have hcomp := mul_le_mul_of_nonneg_right hL (boundaryOperator_positive χ z) |
| 194 | linarith only [hcoeff, hloc, hcomp] |
| 195 | |
| 196 | /-- The exact cutoff and physical-label core from source (7)–(8). -/ |
| 197 | theorem scaled_mean_boundary_lower_bound (ℓ : ℝ) (hℓ : 0 < ℓ) |
| 198 | (M : Space → Space →L[ℝ] Space) (hM : AEStronglyMeasurable M volume) |
| 199 | (C : ℝ≥0) (hC : ∀ x, ‖M x‖ ≤ C) |
| 200 | (Be Bc L r : ℝ) (hBe : 0 ≤ Be) (hBc : 0 ≤ Bc) |
| 201 | (hL : boundaryLocalizationC1 * Bc ≤ L) (hr : 0 ≤ r) (hrquarter : r ≤ 1/4) |
| 202 | (hext : ∀ x, r ≤ ‖ℓ • x‖ → ∀ v : Space, -Be * ‖v‖^2 ≤ ⟪M x v, v⟫_ℝ) |
| 203 | (hcore : ∀ x, ‖ℓ • x‖ < r → ∀ v : Space, -Bc * ‖v‖^2 ≤ ⟪M x v, v⟫_ℝ) |
| 204 | (z : L2) (hz : z ∈ solenoidalSpace) : |
| 205 | -(Be + boundaryLocalizationC2 * Bc * r^3) * ‖z‖^2 ≤ |
| 206 | ⟪coefficientOperator M hM C hC z, z⟫_ℝ + |
| 207 | L * ⟪boundaryOperator (scaledCutoff ℓ hℓ) z, z⟫_ℝ := by |
| 208 | apply mean_boundary_lower_bound (scaledCutoff ℓ hℓ) ℓ⁻¹ (inv_pos.mpr hℓ) |
| 209 | (scaledCutoff_one_on_ball ℓ hℓ) M hM C hC Be Bc L r hBe hBc hL hr hrquarter |
| 210 | ?_ ?_ z hz |
| 211 | · intro x hx |
| 212 | apply hext x |
| 213 | rw [← physical_ball_eq ℓ r hℓ] at hx |
| 214 | exact le_of_not_gt hx |
| 215 | · intro x hx |
| 216 | apply hcore x |
| 217 | rw [← physical_ball_eq ℓ r hℓ] at hx |
| 218 | exact hx |
| 219 | |
| 220 | end EulerMeanHarmonic |
| 221 | end |
| 222 | |
| 223 | end |
| 224 | |
| 225 | noncomputable section |
| 226 | |
| 227 | namespace EulerMeanSourceInverse |
| 228 | |
| 229 | open MeasureTheory Set InnerProductSpace EulerSmoothLimit EulerMeanSolenoidal |
| 230 | EulerMeanHarmonic EulerMeanBoundary EulerLiftedPressure EulerTimeLp |
| 231 | EulerMeanVariationalInverse EulerTransverseVariationalInverse |
| 232 | open scoped NNReal |
| 233 | |
| 234 | def effectiveNegativeBound (Be Bc r : ℝ) : ℝ := |
| 235 | Be + boundaryLocalizationC2 * Bc * r^3 |
| 236 | |
| 237 | theorem effectiveNegativeBound_nonneg (Be Bc r : ℝ) |
| 238 | (hBe : 0 ≤ Be) (hBc : 0 ≤ Bc) (hr : 0 ≤ r) : |
| 239 | 0 ≤ effectiveNegativeBound Be Bc r := by |
| 240 | unfold effectiveNegativeBound |
| 241 | have hc := boundaryLocalizationC2_nonneg |
| 242 | positivity |
| 243 | |
| 244 | theorem source_smallness (T K Be Bc r : ℝ) |
| 245 | (hsmall : K*(T^2/2) + Be*T + boundaryLocalizationC2*Bc*r^3*T ≤ 1/2) : |
| 246 | K*(T^2/2) + effectiveNegativeBound Be Bc r * T ≤ 1/2 := by |
| 247 | calc |
| 248 | _ = K*(T^2/2) + Be*T + boundaryLocalizationC2*Bc*r^3*T := by |
| 249 | unfold effectiveNegativeBound |
| 250 | ring |
| 251 | _ ≤ _ := hsmall |
| 252 | |
| 253 | variable (T : ℝ) (hT : 0 ≤ T) (ℓ : ℝ) (hℓ : 0 < ℓ) |
| 254 | (M : Space → Space →L[ℝ] Space) (hM : AEStronglyMeasurable M volume) |
| 255 | (C : ℝ≥0) (hC : ∀ x, ‖M x‖ ≤ C) |
| 256 | (Be Bc L r : ℝ) (hBe : 0 ≤ Be) (hBc : 0 ≤ Bc) |
| 257 | (hL : boundaryLocalizationC1 * Bc ≤ L) (hr : 0 ≤ r) (hrquarter : r ≤ 1/4) |
| 258 | (hext : ∀ x, r ≤ ‖ℓ • x‖ → ∀ v : Space, -Be * ‖v‖^2 ≤ ⟪M x v, v⟫_ℝ) |
| 259 | (hcore : ∀ x, ‖ℓ • x‖ < r → ∀ v : Space, -Bc * ‖v‖^2 ≤ ⟪M x v, v⟫_ℝ) |
| 260 | (FInv H : C(Icc (0 : ℝ) T, L2 →L[ℝ] L2)) (K : ℝ) (hK : 0 ≤ K) |
| 261 | (hF0 : FInv ⟨0, le_rfl, hT⟩ = ContinuousLinearMap.id ℝ L2) |
| 262 | (hH : ∀ t z, ⟪H t z, z⟫_ℝ ≤ K*‖z‖^2) |
| 263 | (hsmall : K*(T^2/2) + Be*T + boundaryLocalizationC2*Bc*r^3*T ≤ 1/2) |
| 264 | |
| 265 | /-- This is the actual Lax–Milgram mean inverse, with spatial coercivity discharged. -/ |
| 266 | def sourceMeanSolver : TimeLp T L2 →L[ℝ] meanDerivatives T hT FInv := |
| 267 | meanSolver T hT FInv H (coefficientOperator M hM C hC) |
| 268 | (boundaryOperator (scaledCutoff ℓ hℓ)) L K (effectiveNegativeBound Be Bc r) |
| 269 | hK (effectiveNegativeBound_nonneg Be Bc r hBe hBc hr) hF0 hH |
| 270 | (scaled_mean_boundary_lower_bound ℓ hℓ M hM C hC Be Bc L r hBe hBc hL hr hrquarter hext hcore) |
| 271 | (source_smallness T K Be Bc r hsmall) |
| 272 | |
| 273 | end EulerMeanSourceInverse |