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.WholeSpaceGaussianHigh |
| 2 | import Euler.MeanVectorIdentities |
| 3 | |
| 4 | /-! The logarithmic middle heat scales for an actual elliptic curl equation. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerWholeSpaceGaussian |
| 9 | |
| 10 | open MeasureTheory InnerProductSpace EulerSmoothLimit Filter Set ContinuousLinearMap |
| 11 | EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerMeanSobolevBoundedField |
| 12 | EulerOrdinarySobolev EulerVectorCalculus EulerMeanHarmonic EulerMeanVectorIdentities Laplacian |
| 13 | open scoped ContDiff ENNReal RealInnerProductSpace Topology |
| 14 | |
| 15 | def middleCost : ℝ := 5*(2:ℝ)^((3:ℝ)/2) |
| 16 | |
| 17 | theorem middleCost_nonneg : 0 ≤ middleCost := by unfold middleCost; positivity |
| 18 | |
| 19 | theorem secondAverage_elliptic (A G H : SmoothL2Field ℝ) (a b j : Fin 3) |
| 20 | (hΔ : ∀ y, Δ A.field y = partialDerivative G.field a y-partialDerivative H.field b y) |
| 21 | {t : ℝ} (ht : 0 < t) (x : Space) : |
| 22 | secondAverage t (A.directionalField (axis j)).field x = |
| 23 | average t ((G.directionalField (axis a)).directionalField (axis j)).field x - |
| 24 | average t ((H.directionalField (axis b)).directionalField (axis j)).field x := by |
| 25 | rw [secondAverage_eq_laplacian ht] |
| 26 | have he : Δ (A.directionalField (axis j)).field = |
| 27 | fun y => ((G.directionalField (axis a)).directionalField (axis j)).field y - |
| 28 | ((H.directionalField (axis b)).directionalField (axis j)).field y := by |
| 29 | funext y |
| 30 | change Δ (partialDerivative A.field j) y = _ |
| 31 | rw [laplacian_partialDerivative A.field A.smooth j y, funext hΔ, |
| 32 | partialDerivative_sub _ _ (contDiff_partialDerivative G.field G.smooth a) |
| 33 | (contDiff_partialDerivative H.field H.smooth b)] |
| 34 | rfl |
| 35 | rw [he, average_sub ht _ _ ((G.directionalField (axis a)).directionalField (axis j)).memLp |
| 36 | ((H.directionalField (axis b)).directionalField (axis j)).memLp] |
| 37 | |
| 38 | theorem secondAverage_elliptic_bound (A G H : SmoothL2Field ℝ) (a b j : Fin 3) |
| 39 | (hΔ : ∀ y, Δ A.field y = partialDerivative G.field a y-partialDerivative H.field b y) |
| 40 | (W : ℝ) (hG : ∀ y, ‖G.field y‖ ≤ W) (hH : ∀ y, ‖H.field y‖ ≤ W) |
| 41 | {t : ℝ} (ht : 0 < t) (x : Space) : |
| 42 | ‖(1/4:ℝ) • secondAverage t (A.directionalField (axis j)).field x‖ ≤ |
| 43 | middleCost*t⁻¹*W := by |
| 44 | have hg := average_field_second_bound ht G W hG (axis j) (axis a) x |
| 45 | have hh := average_field_second_bound ht H W hH (axis j) (axis b) x |
| 46 | simp only [axis_norm, mul_one] at hg hh |
| 47 | rw [norm_smul, Real.norm_of_nonneg (by norm_num : (0:ℝ) ≤ 1/4), |
| 48 | secondAverage_elliptic A G H a b j hΔ ht x] |
| 49 | apply (mul_le_mul_of_nonneg_left (norm_sub_le _ _) (by norm_num : (0:ℝ) ≤ 1/4)).trans |
| 50 | have h := mul_le_mul_of_nonneg_left (add_le_add hg hh) (by norm_num : (0:ℝ) ≤ 1/4) |
| 51 | exact h.trans_eq (by unfold middleCost; ring) |
| 52 | |
| 53 | /-- Integrating the genuine 1/t estimate gives the logarithmic middle term. -/ |
| 54 | theorem derivative_elliptic_middle (A G H : SmoothL2Field ℝ) (a b j : Fin 3) |
| 55 | (hΔ : ∀ y, Δ A.field y = partialDerivative G.field a y-partialDerivative H.field b y) |
| 56 | (W : ℝ) (hG : ∀ y, ‖G.field y‖ ≤ W) (hH : ∀ y, ‖H.field y‖ ≤ W) |
| 57 | (x : Space) {ε : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1) : |
| 58 | ‖average ε (A.directionalField (axis j)).field x - |
| 59 | average 1 (A.directionalField (axis j)).field x‖ ≤ |
| 60 | middleCost*W*(-Real.log ε) := by |
| 61 | let D := A.directionalField (axis j) |
| 62 | let F : ℝ → ℝ := fun t => scaledAverage t D.field x |
| 63 | let B : ℝ → ℝ := fun t => middleCost*t⁻¹*W |
| 64 | have hc : Continuous F := scaledAverage_continuous D.field D.smooth.continuous |
| 65 | ‖finiteField D‖ (field_sup_bound D) x |
| 66 | have hd (t : ℝ) (ht : t ∈ Ioo ε 1) : |
| 67 | HasDerivAt F ((1/4:ℝ) • secondAverage t D.field x) t := |
| 68 | scaledAverage_field_hasDerivAt (hε.trans ht.1) D x |
| 69 | have hb (t : ℝ) (ht : t ∈ Ioo ε 1) : ‖deriv F t‖ ≤ B t := by |
| 70 | rw [(hd t ht).deriv] |
| 71 | exact secondAverage_elliptic_bound A G H a b j hΔ W hG hH (hε.trans ht.1) x |
| 72 | have hbi : IntervalIntegrable B volume ε 1 := by |
| 73 | apply ContinuousOn.intervalIntegrable_of_Icc hε1 |
| 74 | exact (continuousOn_const.mul (continuousOn_id.inv₀ |
| 75 | (fun t ht => (hε.trans_le ht.1).ne'))).mul continuousOn_const |
| 76 | have h := norm_sub_le_integral_of_norm_deriv_le_of_le hε1 hc.continuousOn |
| 77 | (fun t ht => (hd t ht).differentiableAt.differentiableWithinAt) |
| 78 | (Eventually.of_forall hb) hbi |
| 79 | have he : (∫ t in ε..(1:ℝ), B t) = middleCost*W*(-Real.log ε) := by |
| 80 | dsimp [B] |
| 81 | rw [intervalIntegral.integral_mul_const, intervalIntegral.integral_const_mul, |
| 82 | integral_inv_of_pos hε (by norm_num)] |
| 83 | simp only [one_div, Real.log_inv] |
| 84 | ring |
| 85 | rw [he] at h |
| 86 | change ‖scaledAverage 1 D.field x-scaledAverage ε D.field x‖ ≤ _ at h |
| 87 | rw [scaledAverage_eq (by norm_num : (0:ℝ)<1), scaledAverage_eq hε, norm_sub_rev] at h |
| 88 | exact h |
| 89 | |
| 90 | /-- The three heat scales, with every term attached to the original field. -/ |
| 91 | theorem elliptic_derivative_split (A G H : SmoothL2Field ℝ) (a b j : Fin 3) |
| 92 | (hΔ : ∀ y, Δ A.field y = partialDerivative G.field a y-partialDerivative H.field b y) |
| 93 | (W : ℝ) (hG : ∀ y, ‖G.field y‖ ≤ W) (hH : ∀ y, ‖H.field y‖ ≤ W) |
| 94 | (x : Space) {ε : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1) : |
| 95 | ‖partialDerivative A.field j x‖ ≤ |
| 96 | lowCost*‖A.toLp‖ + middleCost*W*(-Real.log ε) + 3*ε^((1:ℝ)/4)*‖A.jetLp 3‖ := by |
| 97 | have hh := derivative_high_remainder A j x hε |
| 98 | have hm := derivative_elliptic_middle A G H a b j hΔ W hG hH x hε hε1 |
| 99 | have hl := average_field_first_bound A (axis j) x |
| 100 | simp only [axis_norm, mul_one] at hl |
| 101 | let v := partialDerivative A.field j x |
| 102 | let m := average ε (A.directionalField (axis j)).field x |
| 103 | let l := average 1 (A.directionalField (axis j)).field x |
| 104 | have he : v = (v-m)+(m-l)+l := by ring |
| 105 | calc |
| 106 | ‖v‖ = ‖(v-m)+(m-l)+l‖ := congrArg norm he |
| 107 | _ ≤ (‖v-m‖+‖m-l‖)+‖l‖ := (norm_add_le _ _).trans |
| 108 | (add_le_add (norm_add_le _ _) le_rfl) |
| 109 | _ ≤ _ := by |
| 110 | change ‖v-m‖ ≤ _ at hh |
| 111 | change ‖m-l‖ ≤ _ at hm |
| 112 | change ‖l‖ ≤ _ at hl |
| 113 | linarith |
| 114 | |
| 115 | end EulerWholeSpaceGaussian |