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.MeanHarmonicInteriorEnergy |
| 2 | import Euler.MeanScalarProductDerivatives |
| 3 | |
| 4 | /-! The actual second-derivative estimate for the localized harmonic function. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerMeanHarmonic |
| 9 | |
| 10 | open MeasureTheory InnerProductSpace Laplacian EulerSmoothLimit EulerVectorCalculus |
| 11 | open scoped ContDiff |
| 12 | |
| 13 | theorem localized_second_pointwise (h : Space → ℝ) (hh : ContDiff ℝ ∞ h) |
| 14 | (i : Fin 3) (x : Space) : |
| 15 | partialDerivative (partialDerivative (innerCutoff * h) i) i x ^ 2 ≤ |
| 16 | 3 * (innerSecondBound ^ 2 * h x ^ 2 + |
| 17 | 4 * innerDerivativeBound ^ 2 * (outerCutoff x ^ 2 * ‖gradient h x‖ ^ 2) + |
| 18 | middleCutoff x ^ 2 * ‖gradient (partialDerivative h i) x‖ ^ 2) := by |
| 19 | have hη₂ : partialDerivative (partialDerivative innerCutoff i) i x ^ 2 ≤ |
| 20 | innerSecondBound ^ 2 := by |
| 21 | have h := pow_le_pow_left₀ (abs_nonneg _) |
| 22 | (abs_secondPartial_le_derivativeBound innerCutoff inner_compact inner_smooth i x) 2 |
| 23 | simpa only [sq_abs, innerSecondBound] using h |
| 24 | have hη₁ : partialDerivative innerCutoff i x ^ 2 ≤ |
| 25 | innerDerivativeBound ^ 2 * outerCutoff x ^ 2 := |
| 26 | (partialDerivative_sq_le_gradient_sq innerCutoff i x).trans |
| 27 | (cutoff_gradient_majorant innerCutoff outerCutoff innerDerivativeBound |
| 28 | (norm_gradient_le_derivativeBound innerCutoff inner_compact inner_smooth) |
| 29 | (fun _ hx => outer_one_on_inner_support hx) x) |
| 30 | have hη₀ : innerCutoff x ^ 2 ≤ middleCutoff x ^ 2 := |
| 31 | cutoff_square_majorant innerCutoff middleCutoff abs_inner_le_one |
| 32 | (fun _ hx => middle_one_on_inner_support hx) x |
| 33 | have ha : (h x * partialDerivative (partialDerivative innerCutoff i) i x) ^ 2 ≤ |
| 34 | innerSecondBound ^ 2 * h x ^ 2 := by |
| 35 | nlinarith [mul_le_mul_of_nonneg_left hη₂ (sq_nonneg (h x))] |
| 36 | have hb : (2 * partialDerivative innerCutoff i x * partialDerivative h i x) ^ 2 ≤ |
| 37 | 4 * innerDerivativeBound ^ 2 * (outerCutoff x ^ 2 * ‖gradient h x‖ ^ 2) := by |
| 38 | have H := mul_le_mul hη₁ (partialDerivative_sq_le_gradient_sq h i x) |
| 39 | (sq_nonneg (partialDerivative h i x)) (by positivity) |
| 40 | nlinarith |
| 41 | have hc : (innerCutoff x * partialDerivative (partialDerivative h i) i x) ^ 2 ≤ |
| 42 | middleCutoff x ^ 2 * ‖gradient (partialDerivative h i) x‖ ^ 2 := by |
| 43 | have H := mul_le_mul hη₀ (partialDerivative_sq_le_gradient_sq (partialDerivative h i) i x) |
| 44 | (sq_nonneg _) (sq_nonneg _) |
| 45 | nlinarith |
| 46 | rw [secondPartial_mul innerCutoff h inner_smooth hh i x] |
| 47 | have H := sq_add_three_le |
| 48 | (h x * partialDerivative (partialDerivative innerCutoff i) i x) |
| 49 | (2 * partialDerivative innerCutoff i x * partialDerivative h i x) |
| 50 | (innerCutoff x * partialDerivative (partialDerivative h i) i x) |
| 51 | nlinarith |
| 52 | |
| 53 | def interiorSecondEnergyConstant : ℝ := |
| 54 | 3 * (innerSecondBound ^ 2 + 16 * innerDerivativeBound ^ 2 * outerDerivativeBound ^ 2 + |
| 55 | 16 * middleDerivativeBound ^ 2 * outerDerivativeBound ^ 2) |
| 56 | |
| 57 | theorem interiorSecondEnergyConstant_nonneg : 0 ≤ interiorSecondEnergyConstant := by |
| 58 | unfold interiorSecondEnergyConstant |
| 59 | positivity |
| 60 | |
| 61 | theorem localized_second_memLp (h : Space → ℝ) (hh : ContDiff ℝ ∞ h) (i : Fin 3) : |
| 62 | MemLp (partialDerivative (partialDerivative (innerCutoff * h) i) i) 2 volume := by |
| 63 | have hc : HasCompactSupport (innerCutoff * h) := inner_compact.mul_right (f' := h) |
| 64 | have hc₁ : HasCompactSupport (partialDerivative (innerCutoff * h) i) := |
| 65 | hc.fderiv_apply (𝕜 := ℝ) (EuclideanSpace.single i 1) |
| 66 | have hc₂ : HasCompactSupport (partialDerivative (partialDerivative (innerCutoff * h) i) i) := |
| 67 | hc₁.fderiv_apply (𝕜 := ℝ) (EuclideanSpace.single i 1) |
| 68 | exact (contDiff_partialDerivative _ |
| 69 | (contDiff_partialDerivative _ (inner_smooth.mul hh) i) i).continuous.memLp_of_hasCompactSupport hc₂ |
| 70 | |
| 71 | theorem localized_second_energy_le (h : Space → ℝ) (hh : ContDiff ℝ ∞ h) |
| 72 | (hLp : MemLp h 2 volume) (hharmonic : ∀ x ∈ Metric.ball 0 (1 : ℝ), Δ h x = 0) |
| 73 | (i : Fin 3) : |
| 74 | (lpNorm (partialDerivative (partialDerivative (innerCutoff * h) i) i) 2 volume) ^ 2 ≤ |
| 75 | interiorSecondEnergyConstant * (lpNorm h 2 volume) ^ 2 := by |
| 76 | have hL := localized_second_memLp h hh i |
| 77 | have hiL := (memLp_two_iff_integrable_sq hL.aestronglyMeasurable).1 hL |
| 78 | have hi₀ := (memLp_two_iff_integrable_sq hLp.aestronglyMeasurable).1 hLp |
| 79 | have hi₁ := integrable_weighted_gradient_square outerCutoff h outer_compact outer_smooth.continuous hh |
| 80 | have hi₂ := integrable_weighted_gradient_square middleCutoff (partialDerivative h i) |
| 81 | middle_compact middle_smooth.continuous (contDiff_partialDerivative h hh i) |
| 82 | have hiA := hi₀.const_mul (innerSecondBound ^ 2) |
| 83 | have hiB := hi₁.const_mul (4 * innerDerivativeBound ^ 2) |
| 84 | have hiAB : Integrable (fun x => innerSecondBound ^ 2 * h x ^ 2 + |
| 85 | 4 * innerDerivativeBound ^ 2 * (outerCutoff x ^ 2 * ‖gradient h x‖ ^ 2)) := hiA.add hiB |
| 86 | have H := integral_mono hiL ((hiAB.add hi₂).const_mul 3) |
| 87 | (fun x => localized_second_pointwise h hh i x) |
| 88 | simp only [Pi.add_apply] at H |
| 89 | rw [integral_const_mul, integral_add hiAB hi₂, integral_add hiA hiB, |
| 90 | integral_const_mul, integral_const_mul, ← lpNorm_sq_eq_integral_sq h hLp] at H |
| 91 | rw [lpNorm_sq_eq_integral_sq _ hL] |
| 92 | calc |
| 93 | _ ≤ 3 * (innerSecondBound ^ 2 * (lpNorm h 2 volume) ^ 2 + |
| 94 | 4 * innerDerivativeBound ^ 2 * |
| 95 | (∫ x, outerCutoff x ^ 2 * ‖gradient h x‖ ^ 2) + |
| 96 | ∫ x, middleCutoff x ^ 2 * ‖gradient (partialDerivative h i) x‖ ^ 2) := H |
| 97 | _ ≤ 3 * (innerSecondBound ^ 2 * (lpNorm h 2 volume) ^ 2 + |
| 98 | 4 * innerDerivativeBound ^ 2 * |
| 99 | (4 * outerDerivativeBound ^ 2 * (lpNorm h 2 volume) ^ 2) + |
| 100 | 16 * middleDerivativeBound ^ 2 * outerDerivativeBound ^ 2 * (lpNorm h 2 volume) ^ 2) := by |
| 101 | gcongr |
| 102 | · exact outer_gradient_energy_le h hh hLp hharmonic |
| 103 | · exact middle_second_energy_le h hh hLp hharmonic i |
| 104 | _ = _ := by unfold interiorSecondEnergyConstant; ring |
| 105 | |
| 106 | end EulerMeanHarmonic |