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.H5RealCylinderAlgebra |
| 2 | import Euler.ExternalTransportCommutator |
| 3 | |
| 4 | /-! Actual lower-base Sobolev bounds for the transport pressure, without an external derivative loss. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerH6Nonlinear |
| 9 | |
| 10 | open MeasureTheory EulerSobolev EulerCylinderSobolev EulerLiftedGradientSpace EulerMetricTransport |
| 11 | EulerTransportDerivatives EulerVectorCylinder EulerJetProductBounds EulerSpatialSobolevInverse |
| 12 | EulerExternalTransportCommutator |
| 13 | open scoped ContDiff ENNReal Topology |
| 14 | |
| 15 | variable (period : ℝ) [Fact (0 < period)] |
| 16 | |
| 17 | /-- The actual H⁵ algebra constant for scalar-vector fields. -/ |
| 18 | def lowerProductConstant (d : ℕ) : ℝ := (d : ℝ)*EulerGeneralCylinderAlgebra.algebraConstant period 5 |
| 19 | |
| 20 | theorem lowerProductConstant_nonneg (d : ℕ) : 0 ≤ lowerProductConstant period d := |
| 21 | mul_nonneg (Nat.cast_nonneg d) (EulerGeneralCylinderAlgebra.algebraConstant_nonneg period 5) |
| 22 | |
| 23 | /-- External derivatives of the genuine product obey the same binomial rule at base H⁵. -/ |
| 24 | theorem product_wordH5Norm_bound (q n : ℕ) |
| 25 | (f : LiftDomain period → ℝ) (g : LiftDomain period → Domain q) |
| 26 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 27 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 28 | (hfL2 : ∀ j, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w f) 2 (liftMeasure period)) |
| 29 | (hgL2 : ∀ j, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w g) 2 (liftMeasure period)) : |
| 30 | wordSobolevNorm period 5 n (fun x => f x • g x) ≤ |
| 31 | lowerProductConstant period q * leibnizConvolution |
| 32 | (fun l => wordSobolevNorm period 5 l f) (fun l => wordSobolevNorm period 5 l g) n := by |
| 33 | induction n generalizing f g with |
| 34 | | zero => |
| 35 | simpa [leibnizConvolution, lowerProductConstant, mul_assoc] using |
| 36 | EulerH5CylinderAlgebra.cylinder_Hq_scalar_vector_product period (by norm_num : 5 ≤ 5) q f g hf hg (fun j _ w => hfL2 j w) (fun j _ w => hgL2 j w) |
| 37 | | succ n ih => |
| 38 | rw [wordSobolevNorm_succ] |
| 39 | calc |
| 40 | _ ≤ ∑ i : Fin 4, lowerProductConstant period q * |
| 41 | (leibnizConvolution |
| 42 | (fun l => wordSobolevNorm period 5 l (fieldDerivative period (standardDirection i) f)) |
| 43 | (fun l => wordSobolevNorm period 5 l g) n + |
| 44 | leibnizConvolution |
| 45 | (fun l => wordSobolevNorm period 5 l f) |
| 46 | (fun l => wordSobolevNorm period 5 l (fieldDerivative period (standardDirection i) g)) n) := by |
| 47 | apply Finset.sum_le_sum |
| 48 | intro i _ |
| 49 | rw [fieldDerivative_smul period _ f g hf hg] |
| 50 | have hdf := fieldDerivative_smooth period (standardDirection i) f hf |
| 51 | have hdg := fieldDerivative_smooth period (standardDirection i) g hg |
| 52 | have hdfL2 := derivative_all_memLp period f hfL2 i |
| 53 | have hdgL2 := derivative_all_memLp period g hgL2 i |
| 54 | exact (wordSobolevNorm_add_le period 5 n |
| 55 | (fun x => fieldDerivative period (standardDirection i) f x • g x) |
| 56 | (fun x => f x • fieldDerivative period (standardDirection i) g x) |
| 57 | (fun x => (hdf x).smul (hg x)) |
| 58 | (fun x => (hf x).smul (hdg x)) |
| 59 | (product_all_memLp period q _ g hdf hg hdfL2 hgL2) |
| 60 | (product_all_memLp period q f _ hf hdg hfL2 hdgL2)).trans |
| 61 | ((add_le_add (ih _ _ hdf hg hdfL2 hgL2) (ih _ _ hf hdg hfL2 hdgL2)).trans_eq (mul_add ..).symm) |
| 62 | _ = _ := by |
| 63 | rw [← Finset.mul_sum, Finset.sum_add_distrib, |
| 64 | sum_leibnizConvolution_left, sum_leibnizConvolution_right] |
| 65 | simp_rw [← wordSobolevNorm_succ] |
| 66 | rw [leibnizConvolution_succ, add_comm] |
| 67 | |
| 68 | |
| 69 | /-- One fixed coordinate derivative in H⁵ is controlled by the actual H⁶ norm. -/ |
| 70 | theorem derivative_H5_le_H6 {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 71 | (i : Fin 4) (f : LiftDomain period → F) : |
| 72 | liftSobolevNorm period 5 (fieldDerivative period (standardDirection i) f) ≤ 1365 * liftSobolevNorm period 6 f := by |
| 73 | have h : liftSobolevNorm period 5 (fieldDerivative period (standardDirection i) f) ≤ |
| 74 | ∑ r ∈ Finset.range (5+1), ∑ _w : Fin r → Fin 4, liftSobolevNorm period 6 f := by |
| 75 | apply Finset.sum_le_sum |
| 76 | intro r hr |
| 77 | apply Finset.sum_le_sum |
| 78 | intro w _ |
| 79 | obtain ⟨v, hv⟩ := iteratedFieldDerivative_comp_exists period w (fun _ : Fin 1 => i) f |
| 80 | change (eLpNorm (iteratedFieldDerivative period w (iteratedFieldDerivative period (fun _ : Fin 1 => i) f)) 2 (liftMeasure period)).toReal ≤ _ |
| 81 | rw [hv] |
| 82 | exact word_L2_le_liftSobolevNorm period (by have := Finset.mem_range.mp hr; omega) v f |
| 83 | apply h.trans_eq |
| 84 | simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fun, Fintype.card_fin, nsmul_eq_mul] |
| 85 | norm_num [Finset.sum_range_succ] |
| 86 | ring |
| 87 | |
| 88 | /-- Raising the external count by one while lowering the fixed base index consumes no higher Sobolev norm. -/ |
| 89 | theorem lower_word_shift_le {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 90 | (n : ℕ) (f : LiftDomain period → F) |
| 91 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) : |
| 92 | wordSobolevNorm period 5 (n+1) f ≤ 5460 * wordSobolevNorm period 6 n f := by |
| 93 | rw [wordSobolevNorm_succ] |
| 94 | unfold wordSobolevNorm |
| 95 | rw [Finset.sum_comm, Finset.mul_sum] |
| 96 | apply Finset.sum_le_sum |
| 97 | intro w _ |
| 98 | have h := Finset.sum_le_sum (fun i (_ : i ∈ (Finset.univ : Finset (Fin 4))) => |
| 99 | derivative_H5_le_H6 period i (iteratedFieldDerivative period w f)) |
| 100 | simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fin, nsmul_eq_mul] at h |
| 101 | have he : (∑ i : Fin 4, liftSobolevNorm period 5 |
| 102 | (iteratedFieldDerivative period w (fieldDerivative period (standardDirection i) f))) = |
| 103 | ∑ i : Fin 4, liftSobolevNorm period 5 (fieldDerivative period (standardDirection i) (iteratedFieldDerivative period w f)) := by |
| 104 | apply Finset.sum_congr rfl |
| 105 | intro i _ |
| 106 | rw [word_derivative_comm period w (standardDirection i) f hf] |
| 107 | rw [he] |
| 108 | exact h.trans_eq (by ring) |
| 109 | |
| 110 | /-- Monotonicity in the fixed Sobolev index, at every external word order. -/ |
| 111 | theorem wordSobolevNorm_mono {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 112 | {p q : ℕ} (hpq : p ≤ q) (n : ℕ) (f : LiftDomain period → F) : |
| 113 | wordSobolevNorm period p n f ≤ wordSobolevNorm period q n f := |
| 114 | Finset.sum_le_sum fun _ _ => liftSobolevNorm_mono period hpq _ |
| 115 | |
| 116 | /-- The actual transport source in the lower fixed Sobolev norm. -/ |
| 117 | theorem transport_wordH5Norm_bound (q n : ℕ) |
| 118 | (b : LiftDomain period → Domain 4) (e : LiftDomain period → Domain q) |
| 119 | (hb : ∀ x, ContDiff ℝ ∞ (localFieldLift period b x)) |
| 120 | (he : ∀ x, ContDiff ℝ ∞ (localFieldLift period e x)) |
| 121 | (hbL2 : ∀ j, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w b) 2 (liftMeasure period)) |
| 122 | (heL2 : ∀ j, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w e) 2 (liftMeasure period)) : |
| 123 | wordSobolevNorm period 5 n (transportField period q b e) ≤ |
| 124 | lowerProductConstant period q * leibnizConvolution |
| 125 | (fun l => wordSobolevNorm period 5 l b) (fun l => wordSobolevNorm period 5 (l + 1) e) n := by |
| 126 | have hbi (i : Fin 4) := postcomp_smooth period (coordinate 4 i) b hb |
| 127 | have hbiL2 (i : Fin 4) : ∀ j, ∀ w : Fin j → Fin 4, |
| 128 | MemLp (iteratedFieldDerivative period w (coordinate 4 i ∘ b)) 2 (liftMeasure period) := |
| 129 | fun j w => postcomp_word_memLp period (show j ≤ j by omega) _ b hb (fun r _ v => hbL2 r v) w |
| 130 | have hs := wordSobolevNorm_sum_le period Finset.univ 5 n |
| 131 | (fun i x => b x i • fieldDerivative period (standardDirection i) e x) |
| 132 | (fun i _ x => (hbi i x).smul (fieldDerivative_smooth period _ e he x)) |
| 133 | (fun i _ => product_all_memLp period q (coordinate 4 i ∘ b) _ (hbi i) |
| 134 | (fieldDerivative_smooth period _ e he) (hbiL2 i) (derivative_all_memLp period e heL2 i)) |
| 135 | apply hs.trans |
| 136 | calc |
| 137 | _ ≤ ∑ i : Fin 4, lowerProductConstant period q * leibnizConvolution |
| 138 | (fun l => wordSobolevNorm period 5 l b) |
| 139 | (fun l => wordSobolevNorm period 5 l (fieldDerivative period (standardDirection i) e)) n := by |
| 140 | apply Finset.sum_le_sum |
| 141 | intro i _ |
| 142 | have hp := product_wordH5Norm_bound period q n (coordinate 4 i ∘ b) _ (hbi i) |
| 143 | (fieldDerivative_smooth period _ e he) (hbiL2 i) (derivative_all_memLp period e heL2 i) |
| 144 | apply hp.trans |
| 145 | apply mul_le_mul_of_nonneg_left _ (lowerProductConstant_nonneg period q) |
| 146 | apply Finset.sum_le_sum |
| 147 | intro l _ |
| 148 | exact mul_le_mul_of_nonneg_right |
| 149 | (mul_le_mul_of_nonneg_left |
| 150 | (wordSobolevNorm_postcomp_le period 5 l (coordinate 4 i) (coordinate_norm_le 4 i) b hb hbL2) |
| 151 | (Nat.cast_nonneg _)) (wordSobolevNorm_nonneg period 5 (n-l) _) |
| 152 | _ = _ := by |
| 153 | rw [← Finset.mul_sum, sum_leibnizConvolution_right] |
| 154 | simp_rw [← wordSobolevNorm_succ] |
| 155 | |
| 156 | /-- The pressure's H⁵ source uses only H⁶ velocity at the same external order. -/ |
| 157 | theorem transport_lower_no_loss (n : ℕ) |
| 158 | (b : LiftDomain period → Domain 4) (e : LiftDomain period → Vector3) |
| 159 | (hb : ∀ x, ContDiff ℝ ∞ (localFieldLift period b x)) |
| 160 | (he : ∀ x, ContDiff ℝ ∞ (localFieldLift period e x)) |
| 161 | (hbL : ∀ j, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w b) 2 (liftMeasure period)) |
| 162 | (heL : ∀ j, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w e) 2 (liftMeasure period)) : |
| 163 | wordSobolevNorm period 5 n (transportField period 3 b e) ≤ |
| 164 | (5460 * lowerProductConstant period 3) * leibnizConvolution |
| 165 | (fun l => wordSobolevNorm period 6 l b) (fun l => wordSobolevNorm period 6 l e) n := by |
| 166 | apply (transport_wordH5Norm_bound period 3 n b e hb he hbL heL).trans |
| 167 | have hconv : leibnizConvolution (fun l => wordSobolevNorm period 5 l b) |
| 168 | (fun l => wordSobolevNorm period 5 (l+1) e) n ≤ |
| 169 | 5460 * leibnizConvolution (fun l => wordSobolevNorm period 6 l b) (fun l => wordSobolevNorm period 6 l e) n := by |
| 170 | unfold leibnizConvolution |
| 171 | rw [Finset.mul_sum] |
| 172 | apply Finset.sum_le_sum |
| 173 | intro l _ |
| 174 | have h := mul_le_mul |
| 175 | (mul_le_mul_of_nonneg_left (wordSobolevNorm_mono period (by norm_num : 5 ≤ 6) l b) (Nat.cast_nonneg (n.choose l))) |
| 176 | (lower_word_shift_le period (n-l) e he) (wordSobolevNorm_nonneg period 5 (n-l+1) e) |
| 177 | (mul_nonneg (Nat.cast_nonneg (n.choose l)) (wordSobolevNorm_nonneg period 6 l b)) |
| 178 | exact h.trans_eq (by ring) |
| 179 | exact (mul_le_mul_of_nonneg_left hconv (lowerProductConstant_nonneg period 3)).trans_eq (by ring) |
| 180 | |
| 181 | end EulerH6Nonlinear |