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.OrdinaryH3Products |
| 2 | import Euler.OrdinaryFieldAlgebra |
| 3 | import Euler.OrdinaryL2Integration |
| 4 | |
| 5 | /-! The actual ordinary H³ transport commutator, without derivative loss. -/ |
| 6 | |
| 7 | /-! ## From `Euler/OrdinaryTransportCancellation.lean` |
| 8 | |
| 9 | The text of `Euler/OrdinaryTransportCancellation.lean`, folded into this file, which was its only importer. -/ |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The exact ordinary transport energy cancellation on noncompact |
| 14 | smooth L² fields. Products and all required pairings are actual L²/L¹ objects. -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | namespace EulerOrdinarySobolev |
| 19 | |
| 20 | open MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerLpTranslation |
| 21 | EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerVectorCalculus Finset |
| 22 | open scoped ContDiff |
| 23 | |
| 24 | theorem field_toLp_zero (A : SmoothL2Field Space) (hA : A.field=0) : A.toLp=0 := by |
| 25 | apply Lp.ext |
| 26 | filter_upwards [A.toLp_ae,Lp.coeFn_zero Space 2 (volume : Measure Space)] with x ha hz |
| 27 | rw [ha,hA,hz] |
| 28 | |
| 29 | theorem scalarProduct_inner_shift (A : SmoothL2Field ℝ) (B C : SmoothL2Field Space) : |
| 30 | ⟪(scalarProduct A B).toLp,C.toLp⟫_ℝ = ⟪(scalarProduct A C).toLp,B.toLp⟫_ℝ := by |
| 31 | rw [field_inner,field_inner] |
| 32 | apply integral_congr_ae |
| 33 | apply Filter.Eventually.of_forall |
| 34 | intro x |
| 35 | simp only [scalarProduct_field,real_inner_smul_left] |
| 36 | rw [real_inner_comm (B.field x) (C.field x)] |
| 37 | |
| 38 | theorem scalar_transport_pair (A : SmoothL2Field ℝ) (B : SmoothL2Field Space) (v : Space) : |
| 39 | 2*⟪(scalarProduct A (B.directionalField v)).toLp,B.toLp⟫_ℝ = |
| 40 | -⟪(scalarProduct (A.directionalField v) B).toLp,B.toLp⟫_ℝ := by |
| 41 | have h := field_directional_inner (scalarProduct A B) B v |
| 42 | rw [scalarProduct_directional,toLp_addField,inner_add_left,scalarProduct_inner_shift A B] at h |
| 43 | linarith |
| 44 | |
| 45 | theorem coordinate_directional_field (A : SmoothL2Field Space) (i : Fin 3) (v x : Space) : |
| 46 | ((mapField (EuclideanSpace.proj i) A).directionalField v).field x = |
| 47 | (fderiv ℝ A.field x v) i := by |
| 48 | change fderiv ℝ (fun y => A.field y i) x v=(fderiv ℝ A.field x v) i |
| 49 | exact fderiv_coordinate A.field x (A.smooth.differentiable (by simp) x) i v |
| 50 | |
| 51 | theorem advection_inner_zero (A B : SmoothL2Field Space) |
| 52 | (hdiv : ∀ x, divergence A.field x=0) : |
| 53 | ⟪(advectionField A B).toLp,B.toLp⟫_ℝ=0 := by |
| 54 | let a := fun i : Fin 3 => mapField (EuclideanSpace.proj i) A |
| 55 | let c := fun i : Fin 3 => scalarProduct ((a i).directionalField (axis i)) B |
| 56 | have hcf : (sumField univ c).field=0 := by |
| 57 | funext x |
| 58 | simp only [sumField_field,c,scalarProduct_field,← Finset.sum_smul] |
| 59 | have hs : (∑ i : Fin 3, ((a i).directionalField (axis i)).field x)=0 := by |
| 60 | simp only [a,coordinate_directional_field] |
| 61 | simpa only [divergence_eq_coordinate_sum,axis] using hdiv x |
| 62 | rw [hs,zero_smul] |
| 63 | rfl |
| 64 | have hc : (∑ i : Fin 3, ⟪(c i).toLp,B.toLp⟫_ℝ)=0 := by |
| 65 | rw [← sum_inner,← toLp_sumField,field_toLp_zero _ hcf,inner_zero_left] |
| 66 | have hp (i : Fin 3) := scalar_transport_pair (a i) B (axis i) |
| 67 | have hsum := congrArg (fun f : Fin 3 → ℝ => ∑ i, f i) (funext hp) |
| 68 | simp only [← Finset.mul_sum,Finset.sum_neg_distrib] at hsum |
| 69 | change 2*(∑ i : Fin 3, ⟪(coordinateProduct i A (B.directionalField (axis i))).toLp,B.toLp⟫_ℝ)= |
| 70 | -(∑ i : Fin 3, ⟪(c i).toLp,B.toLp⟫_ℝ) at hsum |
| 71 | rw [hc] at hsum |
| 72 | rw [advectionField,toLp_sumField,sum_inner] |
| 73 | linarith |
| 74 | |
| 75 | end EulerOrdinarySobolev |
| 76 | end |
| 77 | |
| 78 | end |
| 79 | |
| 80 | noncomputable section |
| 81 | |
| 82 | namespace EulerOrdinarySobolev |
| 83 | |
| 84 | open MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerLpTranslation |
| 85 | EulerLpTranslation.SmoothL2Field EulerTransportDerivatives Finset |
| 86 | open scoped ContDiff |
| 87 | |
| 88 | theorem advection_directional (A B : SmoothL2Field Space) (v : Space) : |
| 89 | (advectionField A B).directionalField v = |
| 90 | addField (advectionField A (B.directionalField v)) |
| 91 | (advectionField (A.directionalField v) B) := by |
| 92 | apply field_ext |
| 93 | funext x |
| 94 | have he : (advectionField A B).field=transport A.field B.field := |
| 95 | funext (advectionField_field A B) |
| 96 | rw [directionalField_field,he,addField_field,advectionField_field,advectionField_field] |
| 97 | exact directional_transport_commutator v A.field B.field A.smooth B.smooth x |
| 98 | |
| 99 | def transportCommutator (A B : SmoothL2Field Space) {n : ℕ} (w : Fin n → Fin 3) : SmoothL2Field Space := |
| 100 | fieldSub (wordField (advectionField A B) w) (advectionField A (wordField B w)) |
| 101 | |
| 102 | theorem transportCommutator_zero (A B : SmoothL2Field Space) (w : Fin 0 → Fin 3) : |
| 103 | (transportCommutator A B w).toLp=0 := by |
| 104 | rw [transportCommutator,toLp_fieldSub,wordField_zero,wordField_zero,sub_self] |
| 105 | |
| 106 | theorem transportCommutator_snoc (A B : SmoothL2Field Space) |
| 107 | {n : ℕ} (w : Fin n → Fin 3) (j : Fin 3) : |
| 108 | transportCommutator A B (Fin.snoc w j) = |
| 109 | addField (wordField (advectionField (A.directionalField (axis j)) B) w) |
| 110 | (transportCommutator A (B.directionalField (axis j)) w) := by |
| 111 | apply field_ext |
| 112 | funext x |
| 113 | simp only [transportCommutator,wordField_snoc,advection_directional,wordField_add, |
| 114 | fieldSub_field,addField_field] |
| 115 | abel |
| 116 | |
| 117 | theorem gradient_advection_outer (A B : SmoothL2Field Space) (M N : ℝ) |
| 118 | (hA : WordBound 3 M A) (hB : WordBound 3 N B) |
| 119 | {n k l : ℕ} (hk : 1 ≤ k) (horder : n+k+l ≤ 3) |
| 120 | (a : Fin n → Fin 3) (w : Fin k → Fin 3) (v : Fin l → Fin 3) : |
| 121 | ‖(wordField (advectionField (wordField A w) (wordField B v)) a).toLp‖ ≤ |
| 122 | 3*(2 : ℝ)^n*h3ProductConstant*M*N := by |
| 123 | rw [advectionField,wordField_sum,toLp_sumField] |
| 124 | apply (norm_sum_le _ _).trans |
| 125 | calc |
| 126 | _ ≤ ∑ _i : Fin 3, (2 : ℝ)^n*h3ProductConstant*M*N := by |
| 127 | apply sum_le_sum |
| 128 | intro i _ |
| 129 | simpa only [wordField_cons] using gradient_outer_product A B M N hA hB hk |
| 130 | (by omega : 1 ≤ l+1) (by omega : n+k+(l+1) ≤ 4) a w (Fin.cons i v) i |
| 131 | _ = _ := by simp only [sum_const,card_univ,Fintype.card_fin,nsmul_eq_mul]; ring |
| 132 | |
| 133 | theorem source_advection_outer (A B : SmoothL2Field Space) (M N : ℝ) |
| 134 | (hA : WordBound 3 M A) (hB : WordBound 4 N B) |
| 135 | {n : ℕ} (hn : n ≤ 3) (a : Fin n → Fin 3) : |
| 136 | ‖(wordField (advectionField A B) a).toLp‖ ≤ |
| 137 | 3*(2 : ℝ)^n*h3ProductConstant*M*N := by |
| 138 | rw [advectionField,wordField_sum,toLp_sumField] |
| 139 | apply (norm_sum_le _ _).trans |
| 140 | calc |
| 141 | _ ≤ ∑ _i : Fin 3, (2 : ℝ)^n*h3ProductConstant*M*N := by |
| 142 | apply sum_le_sum |
| 143 | intro i _ |
| 144 | simpa only [wordField_cons,wordField_zero] using source_outer_product A B M N hA hB |
| 145 | (by omega : n+0 ≤ 3) (by norm_num : 1 ≤ 1) (by omega : n+0+1 ≤ 4) |
| 146 | a Fin.elim0 (Fin.cons i Fin.elim0) i |
| 147 | _ = _ := by simp only [sum_const,card_univ,Fintype.card_fin,nsmul_eq_mul]; ring |
| 148 | |
| 149 | theorem transportCommutator_word_bound (A B : SmoothL2Field Space) (M N : ℝ) |
| 150 | (hA : WordBound 3 M A) (hB : WordBound 3 N B) |
| 151 | {n l : ℕ} (horder : n+l ≤ 3) (a : Fin n → Fin 3) (v : Fin l → Fin 3) : |
| 152 | ‖(transportCommutator A (wordField B v) a).toLp‖ ≤ |
| 153 | 3*((2 : ℝ)^n-1)*h3ProductConstant*M*N := by |
| 154 | induction n generalizing l with |
| 155 | | zero => simp only [transportCommutator_zero,norm_zero,pow_zero,sub_self,mul_zero,zero_mul,le_refl] |
| 156 | | succ n ih => |
| 157 | have he : transportCommutator A (wordField B v) a = |
| 158 | addField |
| 159 | (wordField (advectionField (A.directionalField (axis (a (Fin.last n)))) (wordField B v)) (Fin.init a)) |
| 160 | (transportCommutator A (wordField B (Fin.cons (a (Fin.last n)) v)) (Fin.init a)) := by |
| 161 | simpa only [Fin.snoc_init_self,wordField_cons] using |
| 162 | transportCommutator_snoc A (wordField B v) (Fin.init a) (a (Fin.last n)) |
| 163 | rw [he,toLp_addField] |
| 164 | apply (norm_add_le _ _).trans |
| 165 | have h1 := gradient_advection_outer A B M N hA hB (by norm_num : 1 ≤ 1) |
| 166 | (by omega : n+1+l ≤ 3) (Fin.init a) (Fin.cons (a (Fin.last n)) Fin.elim0) v |
| 167 | have h2 := ih (by omega : n+(l+1) ≤ 3) (Fin.init a) (Fin.cons (a (Fin.last n)) v) |
| 168 | simp only [wordField_cons,wordField_zero] at h1 |
| 169 | exact (add_le_add h1 h2).trans_eq (by rw [pow_succ]; ring) |
| 170 | |
| 171 | theorem transportCommutator_bound (A B : SmoothL2Field Space) (M N : ℝ) |
| 172 | (hA : WordBound 3 M A) (hB : WordBound 3 N B) |
| 173 | {n : ℕ} (hn : n ≤ 3) (w : Fin n → Fin 3) : |
| 174 | ‖(transportCommutator A B w).toLp‖ ≤ 3*((2 : ℝ)^n-1)*h3ProductConstant*M*N := by |
| 175 | simpa only [wordField_zero] using transportCommutator_word_bound A B M N hA hB |
| 176 | (by simpa only [Nat.add_zero] using hn) w Fin.elim0 |
| 177 | |
| 178 | end EulerOrdinarySobolev |