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.H6PressureConstants |
| 2 | import Mathlib.MeasureTheory.SpecificCodomains.WithLp |
| 3 | |
| 4 | /-! Fixed H⁶ algebra estimates at every external derivative order, for actual nonlinear fields. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerH6Nonlinear |
| 9 | |
| 10 | open MeasureTheory EulerSobolev EulerCylinderSobolev EulerCylinderAlgebra |
| 11 | EulerLiftedGradientSpace EulerMetricTransport EulerTransportDerivatives EulerVectorCylinder |
| 12 | EulerJetProductBounds EulerSpatialSobolevInverse |
| 13 | open scoped ContDiff ENNReal Topology |
| 14 | |
| 15 | variable (period : ℝ) [Fact (0 < period)] |
| 16 | |
| 17 | section FieldCalculus |
| 18 | variable {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 19 | |
| 20 | omit [Fact (0 < period)] in |
| 21 | theorem fieldDerivative_add (a : LiftTangent) (f g : LiftDomain period → F) |
| 22 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 23 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) : |
| 24 | fieldDerivative period a (f + g) = fieldDerivative period a f + fieldDerivative period a g := by |
| 25 | funext x |
| 26 | have h := (((hf x).differentiable (by simp)) 0).hasFDerivAt.add |
| 27 | (((hg x).differentiable (by simp)) 0).hasFDerivAt |
| 28 | exact congrArg (fun A : LiftTangent →L[ℝ] F => A a) h.fderiv |
| 29 | |
| 30 | omit [Fact (0 < period)] in |
| 31 | theorem word_add {n : ℕ} (w : Fin n → Fin 4) (f g : LiftDomain period → F) |
| 32 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 33 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) : |
| 34 | iteratedFieldDerivative period w (f + g) = |
| 35 | iteratedFieldDerivative period w f + iteratedFieldDerivative period w g := by |
| 36 | induction n with |
| 37 | | zero => rfl |
| 38 | | succ n ih => |
| 39 | rw [iteratedFieldDerivative_succ, ih (Fin.tail w), fieldDerivative_add period _ _ _ |
| 40 | (iteratedFieldDerivative_smooth period _ f hf) (iteratedFieldDerivative_smooth period _ g hg)] |
| 41 | rfl |
| 42 | |
| 43 | omit [Fact (0 < period)] in |
| 44 | theorem word_init_last {n : ℕ} (w : Fin (n + 1) → Fin 4) (f : LiftDomain period → F) : |
| 45 | iteratedFieldDerivative period w f = iteratedFieldDerivative period (Fin.init w) |
| 46 | (fieldDerivative period (standardDirection (w (Fin.last n))) f) := by |
| 47 | induction n with |
| 48 | | zero => rfl |
| 49 | | succ n ih => |
| 50 | change fieldDerivative period (standardDirection (w 0)) |
| 51 | (iteratedFieldDerivative period (Fin.tail w) f) = |
| 52 | fieldDerivative period (standardDirection (w 0)) |
| 53 | (iteratedFieldDerivative period (Fin.tail (Fin.init w)) |
| 54 | (fieldDerivative period (standardDirection (w (Fin.last (n+1)))) f)) |
| 55 | rw [ih (Fin.tail w)] |
| 56 | rfl |
| 57 | |
| 58 | theorem derivative_all_memLp (f : LiftDomain period → F) |
| 59 | (hfL2 : ∀ j, ∀ w : Fin j → Fin 4, |
| 60 | MemLp (iteratedFieldDerivative period w f) 2 (liftMeasure period)) (i : Fin 4) : |
| 61 | ∀ j, ∀ w : Fin j → Fin 4, |
| 62 | MemLp (iteratedFieldDerivative period w (fieldDerivative period (standardDirection i) f)) |
| 63 | 2 (liftMeasure period) := by |
| 64 | intro j w |
| 65 | let v : Fin 1 → Fin 4 := fun _ => i |
| 66 | have h := word_memLp period (show 1+j ≤ 1+j by omega) w v f |
| 67 | (fun r _ z => hfL2 r z) |
| 68 | exact h |
| 69 | |
| 70 | theorem word_all_memLp {n : ℕ} (w : Fin n → Fin 4) (f : LiftDomain period → F) |
| 71 | (hfL2 : ∀ j, ∀ v : Fin j → Fin 4, |
| 72 | MemLp (iteratedFieldDerivative period v f) 2 (liftMeasure period)) : |
| 73 | ∀ j, ∀ v : Fin j → Fin 4, |
| 74 | MemLp (iteratedFieldDerivative period v (iteratedFieldDerivative period w f)) |
| 75 | 2 (liftMeasure period) := by |
| 76 | intro j v |
| 77 | exact word_memLp period (show n+j ≤ n+j by omega) v w f (fun r _ z => hfL2 r z) |
| 78 | |
| 79 | theorem sobolev_add_le (q : ℕ) (f g : LiftDomain period → F) |
| 80 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 81 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 82 | (hfL2 : ∀ j ≤ q, ∀ w : Fin j → Fin 4, |
| 83 | MemLp (iteratedFieldDerivative period w f) 2 (liftMeasure period)) |
| 84 | (hgL2 : ∀ j ≤ q, ∀ w : Fin j → Fin 4, |
| 85 | MemLp (iteratedFieldDerivative period w g) 2 (liftMeasure period)) : |
| 86 | liftSobolevNorm period q (f + g) ≤ liftSobolevNorm period q f + liftSobolevNorm period q g := by |
| 87 | unfold liftSobolevNorm |
| 88 | rw [← Finset.sum_add_distrib] |
| 89 | apply Finset.sum_le_sum |
| 90 | intro j hj |
| 91 | rw [← Finset.sum_add_distrib] |
| 92 | apply Finset.sum_le_sum |
| 93 | intro w _ |
| 94 | rw [word_add period w f g hf hg] |
| 95 | have hfj := hfL2 j (by have := Finset.mem_range.1 hj; omega) w |
| 96 | have hgj := hgL2 j (by have := Finset.mem_range.1 hj; omega) w |
| 97 | have he := ENNReal.toReal_mono (ENNReal.add_ne_top.2 ⟨hfj.eLpNorm_ne_top, hgj.eLpNorm_ne_top⟩) |
| 98 | (eLpNorm_add_le hfj.1 hgj.1 (by norm_num : (1 : ℝ≥0∞) ≤ 2)) |
| 99 | simpa only [ENNReal.toReal_add hfj.eLpNorm_ne_top hgj.eLpNorm_ne_top] using he |
| 100 | |
| 101 | /-- Sum of actual Hq norms of all external derivative words of exactly order n. -/ |
| 102 | def wordSobolevNorm (q n : ℕ) (f : LiftDomain period → F) : ℝ := |
| 103 | ∑ w : Fin n → Fin 4, liftSobolevNorm period q (iteratedFieldDerivative period w f) |
| 104 | |
| 105 | theorem wordSobolevNorm_nonneg (q n : ℕ) (f : LiftDomain period → F) : |
| 106 | 0 ≤ wordSobolevNorm period q n f := |
| 107 | Finset.sum_nonneg (fun _ _ => liftSobolevNorm_nonneg period q _) |
| 108 | |
| 109 | @[simp] theorem wordSobolevNorm_zero (q : ℕ) (f : LiftDomain period → F) : |
| 110 | wordSobolevNorm period q 0 f = liftSobolevNorm period q f := by simp [wordSobolevNorm] |
| 111 | |
| 112 | theorem wordSobolevNorm_succ (q n : ℕ) (f : LiftDomain period → F) : |
| 113 | wordSobolevNorm period q (n + 1) f = |
| 114 | ∑ i : Fin 4, wordSobolevNorm period q n (fieldDerivative period (standardDirection i) f) := by |
| 115 | unfold wordSobolevNorm |
| 116 | rw [← Fintype.sum_prod_type'] |
| 117 | exact Fintype.sum_equiv (EulerSpatialSobolevInverse.SpatialJet.wordSnocEquiv n) |
| 118 | (fun w => liftSobolevNorm period q (iteratedFieldDerivative period w f)) |
| 119 | (fun v => liftSobolevNorm period q (iteratedFieldDerivative period v.2 |
| 120 | (fieldDerivative period (standardDirection v.1) f))) |
| 121 | (fun w => by |
| 122 | change liftSobolevNorm period q (iteratedFieldDerivative period w f) = |
| 123 | liftSobolevNorm period q (iteratedFieldDerivative period (Fin.init w) |
| 124 | (fieldDerivative period (standardDirection (w (Fin.last n))) f)) |
| 125 | rw [word_init_last period w f]) |
| 126 | |
| 127 | theorem wordSobolevNorm_add_le (q n : ℕ) (f g : LiftDomain period → F) |
| 128 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 129 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 130 | (hfL2 : ∀ j, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w f) 2 (liftMeasure period)) |
| 131 | (hgL2 : ∀ j, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w g) 2 (liftMeasure period)) : |
| 132 | wordSobolevNorm period q n (f + g) ≤ wordSobolevNorm period q n f + wordSobolevNorm period q n g := by |
| 133 | unfold wordSobolevNorm |
| 134 | rw [← Finset.sum_add_distrib] |
| 135 | apply Finset.sum_le_sum |
| 136 | intro w _ |
| 137 | rw [word_add period w f g hf hg] |
| 138 | exact sobolev_add_le period q _ _ (iteratedFieldDerivative_smooth period w f hf) |
| 139 | (iteratedFieldDerivative_smooth period w g hg) |
| 140 | (fun j _ v => word_all_memLp period w f hfL2 j v) |
| 141 | (fun j _ v => word_all_memLp period w g hgL2 j v) |
| 142 | |
| 143 | end FieldCalculus |
| 144 | |
| 145 | omit [Fact (0 < period)] in |
| 146 | theorem fieldDerivative_smul {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 147 | (a : LiftTangent) (f : LiftDomain period → ℝ) (g : LiftDomain period → F) |
| 148 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 149 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) : |
| 150 | fieldDerivative period a (fun x => f x • g x) = |
| 151 | (fun x => fieldDerivative period a f x • g x) + (fun x => f x • fieldDerivative period a g x) := by |
| 152 | funext x |
| 153 | have h := (((hf x).differentiable (by simp)) 0).hasFDerivAt.smul |
| 154 | (((hg x).differentiable (by simp)) 0).hasFDerivAt |
| 155 | have he := congrArg (fun A : LiftTangent →L[ℝ] F => A a) h.fderiv |
| 156 | change fderiv ℝ (localFieldLift period f x • localFieldLift period g x) 0 a = _ |
| 157 | simpa [fieldDerivative, localFieldLift, add_comm] using he |
| 158 | |
| 159 | /-- All actual derivative words of a smooth H-infinity scalar-vector product lie in L². -/ |
| 160 | theorem product_all_memLp (q : ℕ) (f : LiftDomain period → ℝ) (g : LiftDomain period → Domain q) |
| 161 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 162 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 163 | (hfL2 : ∀ j, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w f) 2 (liftMeasure period)) |
| 164 | (hgL2 : ∀ j, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w g) 2 (liftMeasure period)) : |
| 165 | ∀ j, ∀ w : Fin j → Fin 4, |
| 166 | MemLp (iteratedFieldDerivative period w (fun x => f x • g x)) 2 (liftMeasure period) := by |
| 167 | intro j |
| 168 | induction j generalizing f g with |
| 169 | | zero => |
| 170 | intro w |
| 171 | apply MemLp.of_eval_piLp |
| 172 | intro i |
| 173 | have h := real_product_word_memLp period (show 0 ≤ 6 by omega) w f (coordinate q i ∘ g) |
| 174 | hf (postcomp_smooth period _ g hg) (fun r _ v => hfL2 r v) |
| 175 | (fun r _ v => postcomp_word_memLp period (show r ≤ r by omega) _ g hg (fun a _ z => hgL2 a z) v) |
| 176 | exact h |
| 177 | | succ j ih => |
| 178 | intro w |
| 179 | rw [word_init_last period w, fieldDerivative_smul period _ f g hf hg] |
| 180 | rw [word_add period (Fin.init w) |
| 181 | (fun x => fieldDerivative period (standardDirection (w (Fin.last j))) f x • g x) |
| 182 | (fun x => f x • fieldDerivative period (standardDirection (w (Fin.last j))) g x) |
| 183 | (fun x => (fieldDerivative_smooth period _ f hf x).smul (hg x)) |
| 184 | (fun x => (hf x).smul (fieldDerivative_smooth period _ g hg x))] |
| 185 | exact (ih _ _ (fieldDerivative_smooth period _ f hf) hg |
| 186 | (derivative_all_memLp period f hfL2 _) hgL2 (Fin.init w)).add |
| 187 | (ih _ _ hf (fieldDerivative_smooth period _ g hg) hfL2 |
| 188 | (derivative_all_memLp period g hgL2 _) (Fin.init w)) |
| 189 | |
| 190 | /-- The H⁶ algebra constant is fixed, independently of the external derivative order. -/ |
| 191 | def productConstant (q : ℕ) : ℝ := (q : ℝ) * (5461 * 128 * lowDerivativeConstant period) |
| 192 | |
| 193 | theorem productConstant_nonneg (q : ℕ) : 0 ≤ productConstant period q := |
| 194 | mul_nonneg (Nat.cast_nonneg _) (mul_nonneg (by norm_num) (lowDerivativeConstant_nonneg period)) |
| 195 | |
| 196 | /-- Exact external-order binomial convolution for actual scalar-vector products in fixed H⁶. -/ |
| 197 | theorem product_wordSobolevNorm_bound (q n : ℕ) |
| 198 | (f : LiftDomain period → ℝ) (g : LiftDomain period → Domain q) |
| 199 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 200 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 201 | (hfL2 : ∀ j, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w f) 2 (liftMeasure period)) |
| 202 | (hgL2 : ∀ j, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w g) 2 (liftMeasure period)) : |
| 203 | wordSobolevNorm period 6 n (fun x => f x • g x) ≤ |
| 204 | productConstant period q * leibnizConvolution |
| 205 | (fun l => wordSobolevNorm period 6 l f) (fun l => wordSobolevNorm period 6 l g) n := by |
| 206 | induction n generalizing f g with |
| 207 | | zero => |
| 208 | simpa [leibnizConvolution, productConstant, mul_assoc] using |
| 209 | cylinder_H6_scalar_vector_product period q f g hf hg (fun j _ w => hfL2 j w) (fun j _ w => hgL2 j w) |
| 210 | | succ n ih => |
| 211 | rw [wordSobolevNorm_succ] |
| 212 | calc |
| 213 | _ ≤ ∑ i : Fin 4, productConstant period q * |
| 214 | (leibnizConvolution |
| 215 | (fun l => wordSobolevNorm period 6 l (fieldDerivative period (standardDirection i) f)) |
| 216 | (fun l => wordSobolevNorm period 6 l g) n + |
| 217 | leibnizConvolution |
| 218 | (fun l => wordSobolevNorm period 6 l f) |
| 219 | (fun l => wordSobolevNorm period 6 l (fieldDerivative period (standardDirection i) g)) n) := by |
| 220 | apply Finset.sum_le_sum |
| 221 | intro i _ |
| 222 | rw [fieldDerivative_smul period _ f g hf hg] |
| 223 | have hdf := fieldDerivative_smooth period (standardDirection i) f hf |
| 224 | have hdg := fieldDerivative_smooth period (standardDirection i) g hg |
| 225 | have hdfL2 := derivative_all_memLp period f hfL2 i |
| 226 | have hdgL2 := derivative_all_memLp period g hgL2 i |
| 227 | exact (wordSobolevNorm_add_le period 6 n |
| 228 | (fun x => fieldDerivative period (standardDirection i) f x • g x) |
| 229 | (fun x => f x • fieldDerivative period (standardDirection i) g x) |
| 230 | (fun x => (hdf x).smul (hg x)) |
| 231 | (fun x => (hf x).smul (hdg x)) |
| 232 | (product_all_memLp period q _ g hdf hg hdfL2 hgL2) |
| 233 | (product_all_memLp period q f _ hf hdg hfL2 hdgL2)).trans |
| 234 | ((add_le_add (ih _ _ hdf hg hdfL2 hgL2) (ih _ _ hf hdg hfL2 hdgL2)).trans_eq (mul_add ..).symm) |
| 235 | _ = _ := by |
| 236 | rw [← Finset.mul_sum, Finset.sum_add_distrib, |
| 237 | sum_leibnizConvolution_left, sum_leibnizConvolution_right] |
| 238 | simp_rw [← wordSobolevNorm_succ] |
| 239 | rw [leibnizConvolution_succ, add_comm] |
| 240 | |
| 241 | end EulerH6Nonlinear |