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.OrdinaryH3Commutator |
| 2 | import Euler.OrdinaryWordConstraints |
| 3 | |
| 4 | /-! The genuine spatial H³ difference-energy estimate for ordinary Euler. |
| 5 | The pressure term vanishes exactly. The constant uses only the reference |
| 6 | H⁴ norm and the H³ norm of the difference. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerOrdinarySobolev |
| 11 | |
| 12 | open MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerLpTranslation |
| 13 | EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal Finset |
| 14 | open scoped ContDiff |
| 15 | |
| 16 | theorem wordField_neg (A : SmoothL2Field Space) {n : ℕ} (w : Fin n → Fin 3) : |
| 17 | wordField (fieldNeg A) w=fieldNeg (wordField A w) := wordField_map _ A w |
| 18 | |
| 19 | theorem wordBound_add {s : ℕ} {M N : ℝ} {A B : SmoothL2Field Space} |
| 20 | (hA : WordBound s M A) (hB : WordBound s N B) : WordBound s (M+N) (addField A B) := by |
| 21 | intro n hn w |
| 22 | rw [wordField_add,toLp_addField] |
| 23 | exact (norm_add_le _ _).trans (add_le_add (hA n hn w) (hB n hn w)) |
| 24 | |
| 25 | def differenceRhs (U W P : SmoothL2Field Space) : SmoothL2Field Space := |
| 26 | fieldNeg (addField (addField (advectionField (addField U W) W) (advectionField W U)) P) |
| 27 | |
| 28 | theorem differenceRhs_field (U W P : SmoothL2Field Space) (x : Space) : |
| 29 | (differenceRhs U W P).field x = |
| 30 | -fderiv ℝ W.field x (U.field x+W.field x)-fderiv ℝ U.field x (W.field x)-P.field x := by |
| 31 | simp only [differenceRhs,fieldNeg_field,addField_field,advectionField_field] |
| 32 | abel |
| 33 | |
| 34 | theorem differenceRhs_pairing (U W P : SmoothL2Field Space) |
| 35 | (hdiv : ∀ x, divergence (addField U W).field x=0) |
| 36 | (hW : W.toLp ∈ solenoidalSpace) (hP : P.toLp ∈ gradientSpace) |
| 37 | {n : ℕ} (w : Fin n → Fin 3) : |
| 38 | ⟪(wordField W w).toLp,(wordField (differenceRhs U W P) w).toLp⟫_ℝ = |
| 39 | -⟪(transportCommutator (addField U W) W w).toLp,(wordField W w).toLp⟫_ℝ- |
| 40 | ⟪(wordField (advectionField W U) w).toLp,(wordField W w).toLp⟫_ℝ := by |
| 41 | have ht : ⟪(wordField W w).toLp,(wordField (advectionField (addField U W) W) w).toLp⟫_ℝ = |
| 42 | ⟪(transportCommutator (addField U W) W w).toLp,(wordField W w).toLp⟫_ℝ := by |
| 43 | rw [real_inner_comm,transportCommutator,toLp_fieldSub,inner_sub_left, |
| 44 | advection_inner_zero (addField U W) (wordField W w) hdiv,sub_zero] |
| 45 | have hp : ⟪(wordField W w).toLp,(wordField P w).toLp⟫_ℝ=0 := by |
| 46 | rw [real_inner_comm] |
| 47 | exact word_pressure_pairing_zero P W hP hW w |
| 48 | simp only [differenceRhs,wordField_neg,wordField_add,toLp_fieldNeg,toLp_addField, |
| 49 | inner_neg_right,inner_add_right] |
| 50 | rw [ht,hp,real_inner_comm (wordField W w).toLp (wordField (advectionField W U) w).toLp] |
| 51 | ring |
| 52 | |
| 53 | theorem differenceRhs_word_bound (U W P : SmoothL2Field Space) (M X : ℝ) |
| 54 | (hU : WordBound 4 M U) (hWb : WordBound 3 X W) |
| 55 | (hdiv : ∀ x, divergence (addField U W).field x=0) |
| 56 | (hW : W.toLp ∈ solenoidalSpace) (hP : P.toLp ∈ gradientSpace) |
| 57 | {n : ℕ} (hn : n ≤ 3) (w : Fin n → Fin 3) : |
| 58 | ⟪(wordField W w).toLp,(wordField (differenceRhs U W P) w).toLp⟫_ℝ ≤ |
| 59 | 45*h3ProductConstant*(M+X)*X^2 := by |
| 60 | have hM := wordBound_nonneg hU |
| 61 | have hX := wordBound_nonneg hWb |
| 62 | have hC := h3ProductConstant_nonneg |
| 63 | have hMX : 0 ≤ M+X := add_nonneg hM hX |
| 64 | have hv := wordBound_add (wordBound_mono hU (by norm_num : 3 ≤ 4)) hWb |
| 65 | have hk := transportCommutator_bound (addField U W) W (M+X) X hv hWb hn w |
| 66 | have hs := source_advection_outer W U X M hWb hU hn w |
| 67 | have hpow : (2 : ℝ)^n ≤ 8 := by |
| 68 | have h := pow_le_pow_right₀ (by norm_num : (1 : ℝ) ≤ 2) hn |
| 69 | norm_num at h ⊢ |
| 70 | exact h |
| 71 | have hkcoef : 3*((2 : ℝ)^n-1) ≤ 21 := by linarith |
| 72 | have hscoef : 3*(2 : ℝ)^n ≤ 24 := by linarith |
| 73 | have hkb : ‖(transportCommutator (addField U W) W w).toLp‖ ≤ |
| 74 | 21*h3ProductConstant*(M+X)*X := hk.trans |
| 75 | (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right |
| 76 | (mul_le_mul_of_nonneg_right hkcoef hC) hMX) hX) |
| 77 | have hsb : ‖(wordField (advectionField W U) w).toLp‖ ≤ |
| 78 | 24*h3ProductConstant*(M+X)*X := by |
| 79 | apply hs.trans |
| 80 | calc |
| 81 | _ ≤ 24*h3ProductConstant*X*M := mul_le_mul_of_nonneg_right |
| 82 | (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hscoef hC) hX) hM |
| 83 | _ = 24*h3ProductConstant*M*X := by ring |
| 84 | _ ≤ _ := mul_le_mul_of_nonneg_right |
| 85 | (mul_le_mul_of_nonneg_left (le_add_of_nonneg_right hX) (by positivity)) hX |
| 86 | have hsum : ‖(transportCommutator (addField U W) W w).toLp‖+ |
| 87 | ‖(wordField (advectionField W U) w).toLp‖ ≤ |
| 88 | 45*h3ProductConstant*(M+X)*X := |
| 89 | (add_le_add hkb hsb).trans_eq (by ring) |
| 90 | rw [differenceRhs_pairing U W P hdiv hW hP w] |
| 91 | calc |
| 92 | _ ≤ |⟪(transportCommutator (addField U W) W w).toLp,(wordField W w).toLp⟫_ℝ|+ |
| 93 | |⟪(wordField (advectionField W U) w).toLp,(wordField W w).toLp⟫_ℝ| := by |
| 94 | linarith [neg_le_abs ⟪(transportCommutator (addField U W) W w).toLp,(wordField W w).toLp⟫_ℝ, |
| 95 | neg_le_abs ⟪(wordField (advectionField W U) w).toLp,(wordField W w).toLp⟫_ℝ] |
| 96 | _ ≤ ‖(transportCommutator (addField U W) W w).toLp‖*‖(wordField W w).toLp‖+ |
| 97 | ‖(wordField (advectionField W U) w).toLp‖*‖(wordField W w).toLp‖ := |
| 98 | add_le_add (abs_real_inner_le_norm _ _) (abs_real_inner_le_norm _ _) |
| 99 | _ = (‖(transportCommutator (addField U W) W w).toLp‖+ |
| 100 | ‖(wordField (advectionField W U) w).toLp‖)*‖(wordField W w).toLp‖ := by ring |
| 101 | _ ≤ (45*h3ProductConstant*(M+X)*X)*X := |
| 102 | mul_le_mul hsum (hWb n hn w) (norm_nonneg _) (by positivity) |
| 103 | _ = _ := by ring |
| 104 | |
| 105 | def energyProduction (W Q : SmoothL2Field Space) : ℝ := |
| 106 | 2*(∑ n ∈ range 4, ∑ w : Fin n → Fin 3, ⟪(wordField W w).toLp,(wordField Q w).toLp⟫_ℝ) |
| 107 | |
| 108 | theorem difference_energy_bound (U W P : SmoothL2Field Space) (M : ℝ) |
| 109 | (hU : WordBound 4 M U) |
| 110 | (hdiv : ∀ x, divergence (addField U W).field x=0) |
| 111 | (hW : W.toLp ∈ solenoidalSpace) (hP : P.toLp ∈ gradientSpace) : |
| 112 | energyProduction W (differenceRhs U W P) ≤ |
| 113 | 3600*h3ProductConstant*(M+Real.sqrt (wordEnergy 3 W))*wordEnergy 3 W := by |
| 114 | let X := Real.sqrt (wordEnergy 3 W) |
| 115 | have hx : X^2=wordEnergy 3 W := Real.sq_sqrt (wordEnergy_nonneg 3 W) |
| 116 | have hh : (∑ n ∈ range 4, ∑ w : Fin n → Fin 3, |
| 117 | ⟪(wordField W w).toLp,(wordField (differenceRhs U W P) w).toLp⟫_ℝ) ≤ |
| 118 | 40*(45*h3ProductConstant*(M+X)*X^2) := by |
| 119 | calc |
| 120 | _ ≤ ∑ n ∈ range 4, ∑ _w : Fin n → Fin 3, 45*h3ProductConstant*(M+X)*X^2 := by |
| 121 | apply sum_le_sum |
| 122 | intro n hn |
| 123 | exact sum_le_sum (fun w _ => differenceRhs_word_bound U W P M X hU |
| 124 | (wordBound_sqrt_energy 3 W) hdiv hW hP (by have := mem_range.mp hn; omega) w) |
| 125 | _ = _ := by norm_num [sum_range_succ]; ring |
| 126 | apply (mul_le_mul_of_nonneg_left hh (by norm_num : (0 : ℝ) ≤ 2)).trans_eq |
| 127 | change 2*(40*(45*h3ProductConstant*(M+X)*X^2)) = |
| 128 | 3600*h3ProductConstant*(M+X)*wordEnergy 3 W |
| 129 | rw [← hx] |
| 130 | ring |
| 131 | |
| 132 | end EulerOrdinarySobolev |