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.MixedWordProduct |
| 2 | |
| 3 | /-! The actual base Sobolev transport commutator with no uncontrolled extra derivative. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerBaseTransportCommutator |
| 8 | |
| 9 | open MeasureTheory EulerSobolev EulerLiftedGradientSpace EulerMetricTransport EulerTransportDerivatives |
| 10 | EulerCylinderSobolev EulerRealCylinder EulerVectorCylinder EulerGeneralCylinderAlgebra EulerH6Nonlinear |
| 11 | EulerMixedH5Product |
| 12 | open scoped ContDiff ENNReal Topology |
| 13 | |
| 14 | variable (period : ℝ) [Fact (0 < period)] |
| 15 | |
| 16 | /-- The sum of H⁵ norms of the four actual first derivatives. -/ |
| 17 | def gradientFiveNorm {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 18 | (f : LiftDomain period → F) : ℝ := |
| 19 | ∑ i : Fin 4, liftSobolevNorm period 5 (fieldDerivative period (standardDirection i) f) |
| 20 | |
| 21 | theorem gradientFiveNorm_nonneg {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 22 | (f : LiftDomain period → F) : 0 ≤ gradientFiveNorm period f := |
| 23 | Finset.sum_nonneg fun _ _ => liftSobolevNorm_nonneg period 5 _ |
| 24 | |
| 25 | theorem derivative_le_gradientFiveNorm {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 26 | (f : LiftDomain period → F) (i : Fin 4) : |
| 27 | liftSobolevNorm period 5 (fieldDerivative period (standardDirection i) f) ≤ gradientFiveNorm period f := |
| 28 | Finset.single_le_sum (f := fun j : Fin 4 => liftSobolevNorm period 5 (fieldDerivative period (standardDirection j) f)) |
| 29 | (fun j _ => liftSobolevNorm_nonneg period 5 (fieldDerivative period (standardDirection j) f)) (Finset.mem_univ i) |
| 30 | |
| 31 | /-- Six actual derivatives of a field give five derivatives of each first derivative. -/ |
| 32 | theorem derivative_memLp_five {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 33 | (f : LiftDomain period → F) |
| 34 | (hfL : ∀ j ≤ 6, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w f) 2 (liftMeasure period)) |
| 35 | (i : Fin 4) : ∀ j ≤ 5, ∀ w : Fin j → Fin 4, |
| 36 | MemLp (iteratedFieldDerivative period w (fieldDerivative period (standardDirection i) f)) 2 (liftMeasure period) := by |
| 37 | intro j hj w |
| 38 | exact word_memLp period (by omega : 1+j ≤ 6) w (fun _ : Fin 1 => i) f hfL |
| 39 | |
| 40 | /-- The literal differential commutator D^w(fg)−f D^w g. -/ |
| 41 | def scalarCommutator {n : ℕ} (w : Fin n → Fin 4) |
| 42 | (f : LiftDomain period → ℝ) (g : LiftDomain period → Vector3) : LiftDomain period → Vector3 := |
| 43 | iteratedFieldDerivative period w (fun x => f x • g x) - |
| 44 | (fun x => f x • iteratedFieldDerivative period w g x) |
| 45 | |
| 46 | omit [Fact (0 < period)] in |
| 47 | /-- Exact commutator recurrence isolates one actual derivative of the scalar coefficient. -/ |
| 48 | theorem scalarCommutator_recurrence {n : ℕ} (w : Fin (n+1) → Fin 4) |
| 49 | (f : LiftDomain period → ℝ) (g : LiftDomain period → Vector3) |
| 50 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 51 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) : |
| 52 | scalarCommutator period w f g = |
| 53 | iteratedFieldDerivative period (Fin.init w) |
| 54 | (fun x => fieldDerivative period (standardDirection (w (Fin.last n))) f x • g x) + |
| 55 | scalarCommutator period (Fin.init w) f (fieldDerivative period (standardDirection (w (Fin.last n))) g) := by |
| 56 | unfold scalarCommutator |
| 57 | rw [word_init_last period w, fieldDerivative_smul period _ f g hf hg] |
| 58 | have hleft : ∀ x, ContDiff ℝ ∞ (localFieldLift period |
| 59 | (fun x => fieldDerivative period (standardDirection (w (Fin.last n))) f x • g x) x) := |
| 60 | fun x => (fieldDerivative_smooth period _ f hf x).smul (hg x) |
| 61 | have hright : ∀ x, ContDiff ℝ ∞ (localFieldLift period |
| 62 | (fun x => f x • fieldDerivative period (standardDirection (w (Fin.last n))) g x) x) := |
| 63 | fun x => (hf x).smul (fieldDerivative_smooth period _ g hg x) |
| 64 | rw [word_add period (Fin.init w) _ _ hleft hright, word_init_last period w g] |
| 65 | funext x |
| 66 | simp only [Pi.add_apply, Pi.sub_apply] |
| 67 | abel |
| 68 | |
| 69 | /-- The commutator cancels its apparent highest derivative before the L² estimate is applied. -/ |
| 70 | theorem mixed_scalarCommutator_bound {n l : ℕ} (hnl : n+l ≤ 6) |
| 71 | (w : Fin n → Fin 4) (v : Fin l → Fin 4) |
| 72 | (f : LiftDomain period → ℝ) (g : LiftDomain period → Vector3) |
| 73 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 74 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 75 | (hfL : ∀ j ≤ 6, ∀ u : Fin j → Fin 4, MemLp (iteratedFieldDerivative period u f) 2 (liftMeasure period)) |
| 76 | (hgL : ∀ j ≤ 5, ∀ u : Fin j → Fin 4, MemLp (iteratedFieldDerivative period u g) 2 (liftMeasure period)) : |
| 77 | MemLp (scalarCommutator period w f (iteratedFieldDerivative period v g)) 2 (liftMeasure period) ∧ |
| 78 | (eLpNorm (scalarCommutator period w f (iteratedFieldDerivative period v g)) 2 (liftMeasure period)).toReal ≤ |
| 79 | ((2 : ℝ)^n-1) * mixedConstant period * gradientFiveNorm period f * liftSobolevNorm period 5 g := by |
| 80 | induction n generalizing l with |
| 81 | | zero => simp [scalarCommutator, iteratedFieldDerivative_zero] |
| 82 | | succ n ih => |
| 83 | let i := w (Fin.last n) |
| 84 | have hgV := iteratedFieldDerivative_smooth period v g hg |
| 85 | rw [scalarCommutator_recurrence period w f _ hf hgV] |
| 86 | have h1 := mixed_outer_product_bound period (by omega : n+0+l ≤ 5) (Fin.init w) Fin.elim0 v |
| 87 | (fieldDerivative period (standardDirection i) f) g (fieldDerivative_smooth period _ f hf) hg |
| 88 | (derivative_memLp_five period f hfL i) hgL |
| 89 | have h2 := ih (by omega : n+(l+1) ≤ 6) (Fin.init w) (Fin.cons i v) |
| 90 | have h3 : (eLpNorm (iteratedFieldDerivative period (Fin.init w) |
| 91 | (fun x => fieldDerivative period (standardDirection i) f x • iteratedFieldDerivative period v g x)) |
| 92 | 2 (liftMeasure period)).toReal ≤ (2 : ℝ)^n * mixedConstant period * gradientFiveNorm period f * liftSobolevNorm period 5 g := |
| 93 | h1.2.trans (mul_le_mul_of_nonneg_right |
| 94 | (mul_le_mul_of_nonneg_left (derivative_le_gradientFiveNorm period f i) |
| 95 | (mul_nonneg (pow_nonneg (by norm_num) n) (mixedConstant_nonneg period))) |
| 96 | (liftSobolevNorm_nonneg period 5 g)) |
| 97 | refine ⟨h1.1.add h2.1, ?_⟩ |
| 98 | have hh := fieldL2_add_le period _ _ h1.1 h2.1 |
| 99 | exact hh.trans ((add_le_add h3 h2.2).trans_eq (by rw [pow_succ]; ring)) |
| 100 | |
| 101 | /-- The actual base commutator through six derivatives has the source's H⁵×H⁵ bound. -/ |
| 102 | theorem scalarCommutator_bound {n : ℕ} (hn : n ≤ 6) (w : Fin n → Fin 4) |
| 103 | (f : LiftDomain period → ℝ) (g : LiftDomain period → Vector3) |
| 104 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 105 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 106 | (hfL : ∀ j ≤ 6, ∀ u : Fin j → Fin 4, MemLp (iteratedFieldDerivative period u f) 2 (liftMeasure period)) |
| 107 | (hgL : ∀ j ≤ 5, ∀ u : Fin j → Fin 4, MemLp (iteratedFieldDerivative period u g) 2 (liftMeasure period)) : |
| 108 | MemLp (scalarCommutator period w f g) 2 (liftMeasure period) ∧ |
| 109 | (eLpNorm (scalarCommutator period w f g) 2 (liftMeasure period)).toReal ≤ |
| 110 | ((2 : ℝ)^n-1) * mixedConstant period * gradientFiveNorm period f * liftSobolevNorm period 5 g := by |
| 111 | exact mixed_scalarCommutator_bound period (by omega : n+0 ≤ 6) w Fin.elim0 f g hf hg hfL hgL |
| 112 | |
| 113 | end EulerBaseTransportCommutator |