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.LpSmoothFieldAlgebra |
| 2 | import Euler.ParameterWordHigher |
| 3 | import Euler.SmoothL2Gevrey |
| 4 | |
| 5 | /-! Actual finite coordinate derivatives of ordinary smooth L² fields. |
| 6 | The word fields retain all genuine L² derivatives; no Sobolev regularity |
| 7 | or distributional derivative is postulated. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerOrdinarySobolev |
| 12 | |
| 13 | open MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLpTranslation |
| 14 | EulerLpTranslation.SmoothL2Field EulerParameterWordGevrey Finset |
| 15 | open scoped ContDiff ENNReal |
| 16 | |
| 17 | def axis (i : Fin 3) : Space := EuclideanSpace.single i 1 |
| 18 | |
| 19 | @[simp] theorem axis_norm (i : Fin 3) : ‖axis i‖ = 1 := by |
| 20 | simp [axis] |
| 21 | |
| 22 | variable {V W : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 23 | [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 24 | |
| 25 | theorem field_ext {A B : SmoothL2Field V} (h : A.field = B.field) : A = B := by |
| 26 | cases A |
| 27 | cases B |
| 28 | cases h |
| 29 | rfl |
| 30 | |
| 31 | def wordField (A : SmoothL2Field V) : {n : ℕ} → (Fin n → Fin 3) → SmoothL2Field V |
| 32 | | 0, _ => A |
| 33 | | _+1, w => (wordField A (Fin.tail w)).directionalField (axis (w 0)) |
| 34 | |
| 35 | @[simp] theorem wordField_zero (A : SmoothL2Field V) (w : Fin 0 → Fin 3) : |
| 36 | wordField A w = A := rfl |
| 37 | |
| 38 | @[simp] theorem wordField_cons (A : SmoothL2Field V) {n : ℕ} |
| 39 | (w : Fin n → Fin 3) (i : Fin 3) : |
| 40 | wordField A (Fin.cons i w) = (wordField A w).directionalField (axis i) := by |
| 41 | simp only [wordField,Fin.tail_cons,Fin.cons_zero] |
| 42 | |
| 43 | theorem wordField_field (A : SmoothL2Field V) {n : ℕ} (w : Fin n → Fin 3) : |
| 44 | (wordField A w).field = wordDerivative axis A.field w := by |
| 45 | induction n with |
| 46 | | zero => exact (funext (wordDerivative_zero axis A.field w)).symm |
| 47 | | succ n ih => |
| 48 | funext x |
| 49 | change fderiv ℝ (wordField A (Fin.tail w)).field x (axis (w 0)) = _ |
| 50 | rw [ih] |
| 51 | have h := (A.smooth.differentiable_iteratedFDeriv |
| 52 | (show (n : ℕ∞ω) < (∞ : ℕ∞ω) by exact_mod_cast ENat.natCast_lt_top n) x).iteratedFDeriv_succ_apply_left' (m := axis ∘ w) |
| 53 | change fderiv ℝ (fun y => iteratedFDeriv ℝ n A.field y |
| 54 | (fun j => axis (w j.succ))) x (axis (w 0)) = |
| 55 | iteratedFDeriv ℝ (n+1) A.field x (fun j => axis (w j)) |
| 56 | exact h.symm |
| 57 | |
| 58 | theorem wordField_snoc (A : SmoothL2Field V) {n : ℕ} |
| 59 | (w : Fin n → Fin 3) (i : Fin 3) : |
| 60 | wordField A (Fin.snoc w i) = wordField (A.directionalField (axis i)) w := by |
| 61 | apply field_ext |
| 62 | rw [wordField_field,wordField_field] |
| 63 | exact funext (wordDerivative_snoc axis A.field A.smooth w i) |
| 64 | |
| 65 | theorem wordField_map (L : V →L[ℝ] W) (A : SmoothL2Field V) |
| 66 | {n : ℕ} (w : Fin n → Fin 3) : |
| 67 | wordField (mapField L A) w = mapField L (wordField A w) := by |
| 68 | apply field_ext |
| 69 | funext x |
| 70 | rw [wordField_field,mapField_field,wordField_field] |
| 71 | exact wordDerivative_comp_clm axis L A.field A.smooth w x |
| 72 | |
| 73 | theorem wordField_add (A B : SmoothL2Field V) {n : ℕ} (w : Fin n → Fin 3) : |
| 74 | wordField (addField A B) w = addField (wordField A w) (wordField B w) := by |
| 75 | apply field_ext |
| 76 | funext x |
| 77 | rw [wordField_field,addField_field,wordField_field,wordField_field] |
| 78 | exact wordDerivative_add axis A.field B.field A.smooth B.smooth w x |
| 79 | |
| 80 | theorem wordField_toLp_norm_le (A : SmoothL2Field V) {n : ℕ} (w : Fin n → Fin 3) : |
| 81 | ‖(wordField A w).toLp‖ ≤ ‖A.jetLp n‖ := by |
| 82 | rw [Lp.norm_def,eLpNorm_congr_ae (wordField A w).toLp_ae, |
| 83 | norm_jetLp] |
| 84 | apply ENNReal.toReal_mono (A.integrable n).eLpNorm_ne_top |
| 85 | apply eLpNorm_mono |
| 86 | intro x |
| 87 | rw [wordField_field] |
| 88 | have h := (iteratedFDeriv ℝ n A.field x).le_opNorm (fun i => axis (w i)) |
| 89 | simpa only [wordDerivative,axis_norm,prod_const_one,mul_one] using h |
| 90 | |
| 91 | def wordSize (s : ℕ) (A : SmoothL2Field V) : ℝ := |
| 92 | ∑ n ∈ range (s+1), ∑ w : Fin n → Fin 3, ‖(wordField A w).toLp‖ |
| 93 | |
| 94 | def wordEnergy (s : ℕ) (A : SmoothL2Field V) : ℝ := |
| 95 | ∑ n ∈ range (s+1), ∑ w : Fin n → Fin 3, ‖(wordField A w).toLp‖^2 |
| 96 | |
| 97 | def WordBound (s : ℕ) (M : ℝ) (A : SmoothL2Field V) : Prop := |
| 98 | ∀ n ≤ s, ∀ w : Fin n → Fin 3, ‖(wordField A w).toLp‖ ≤ M |
| 99 | |
| 100 | theorem wordEnergy_nonneg (s : ℕ) (A : SmoothL2Field V) : 0 ≤ wordEnergy s A := |
| 101 | sum_nonneg (fun _ _ => sum_nonneg (fun _ _ => sq_nonneg _)) |
| 102 | |
| 103 | theorem word_norm_sq_le_energy (A : SmoothL2Field V) {n s : ℕ} (hn : n ≤ s) |
| 104 | (w : Fin n → Fin 3) : ‖(wordField A w).toLp‖^2 ≤ wordEnergy s A := by |
| 105 | apply (single_le_sum (fun _ _ => sq_nonneg _) (mem_univ w)).trans |
| 106 | exact single_le_sum (f := fun n => ∑ w : Fin n → Fin 3, ‖(wordField A w).toLp‖^2) |
| 107 | (fun _ _ => sum_nonneg (fun _ _ => sq_nonneg _)) (mem_range.mpr (by omega)) |
| 108 | |
| 109 | theorem wordBound_sqrt_energy (s : ℕ) (A : SmoothL2Field V) : |
| 110 | WordBound s (Real.sqrt (wordEnergy s A)) A := by |
| 111 | intro n hn w |
| 112 | exact (Real.le_sqrt (norm_nonneg _) (wordEnergy_nonneg s A)).mpr |
| 113 | (word_norm_sq_le_energy A hn w) |
| 114 | |
| 115 | theorem wordBound_wordField {s k : ℕ} {M : ℝ} {A : SmoothL2Field V} |
| 116 | (h : WordBound (k+s) M A) (w : Fin k → Fin 3) : WordBound s M (wordField A w) := by |
| 117 | induction k generalizing A with |
| 118 | | zero => simpa only [wordField_zero,Nat.zero_add] using h |
| 119 | | succ k ih => |
| 120 | have hd : WordBound (k+s) M (A.directionalField (axis (w (Fin.last k)))) := by |
| 121 | intro n hn v |
| 122 | rw [← wordField_snoc] |
| 123 | exact h (n+1) (by omega) (Fin.snoc v (w (Fin.last k))) |
| 124 | have he : wordField A w = wordField (A.directionalField (axis (w (Fin.last k)))) (Fin.init w) := by |
| 125 | simpa only [Fin.snoc_init_self] using wordField_snoc A (Fin.init w) (w (Fin.last k)) |
| 126 | rw [he] |
| 127 | exact ih hd (Fin.init w) |
| 128 | |
| 129 | theorem field_norm (A : SmoothL2Field V) : |
| 130 | ‖A.toLp‖ = (eLpNorm A.field 2 (volume : Measure Space)).toReal := by |
| 131 | rw [Lp.norm_def,eLpNorm_congr_ae A.toLp_ae] |
| 132 | |
| 133 | theorem mapField_norm_le (L : V →L[ℝ] W) (A : SmoothL2Field V) : |
| 134 | ‖(mapField L A).toLp‖ ≤ ‖L‖*‖A.toLp‖ := by |
| 135 | rw [toLp_mapField] |
| 136 | exact ((L.compLpL 2 volume).le_opNorm A.toLp).trans |
| 137 | (mul_le_mul_of_nonneg_right (L.norm_compLpL_le (p := 2) (μ := volume)) (norm_nonneg _)) |
| 138 | |
| 139 | end EulerOrdinarySobolev |