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.GeneralCylinderAlgebra |
| 2 | import Mathlib.MeasureTheory.SpecificCodomains.WithLp |
| 3 | |
| 4 | /-! Actual real and scalar-vector cylinder multiplication at every fixed Sobolev order q≥6. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerGeneralCylinderAlgebra |
| 9 | |
| 10 | open MeasureTheory EulerSobolev EulerCylinderSobolev EulerLiftedGradientSpace EulerMetricTransport |
| 11 | EulerRealCylinder EulerVectorCylinder |
| 12 | open scoped ENNReal NNReal ContDiff Topology |
| 13 | |
| 14 | variable (period : ℝ) [Fact (0 < period)] |
| 15 | |
| 16 | /-- The actual real cylinder algebra estimate at every fixed order q≥6. -/ |
| 17 | theorem real_cylinder_Hq_algebra {q : ℕ} (hq : 6 ≤ q) (f g : LiftDomain period → ℝ) |
| 18 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 19 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 20 | (hfL2 : ∀ j ≤ q, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w f) 2 (liftMeasure period)) |
| 21 | (hgL2 : ∀ j ≤ q, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w g) 2 (liftMeasure period)) : |
| 22 | liftSobolevNorm period q (f * g) ≤ |
| 23 | algebraConstant period q * liftSobolevNorm period q f * liftSobolevNorm period q g := by |
| 24 | have h := cylinder_Hq_algebra period hq (complexField period f) (complexField period g) |
| 25 | (complexField_smooth period f hf) (complexField_smooth period g hg) |
| 26 | (fun j hj w => by rw [complexField_word period w f hf]; exact complexField_memLp period _ (hfL2 j hj w)) |
| 27 | (fun j hj w => by rw [complexField_word period w g hg]; exact complexField_memLp period _ (hgL2 j hj w)) |
| 28 | have he : complexField period f * complexField period g = complexField period (f * g) := by |
| 29 | ext x |
| 30 | exact (Complex.ofReal_mul _ _).symm |
| 31 | rw [he, complexField_sobolevNorm period q (f * g) (fun x => (hf x).mul (hg x)), |
| 32 | complexField_sobolevNorm period q f hf, complexField_sobolevNorm period q g hg] at h |
| 33 | exact h |
| 34 | |
| 35 | /-- Every real product derivative through order q is genuinely square-integrable. -/ |
| 36 | theorem real_product_word_memLp {q n : ℕ} (hq : 6 ≤ q) (hn : n ≤ q) (w : Fin n → Fin 4) |
| 37 | (f g : LiftDomain period → ℝ) |
| 38 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 39 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 40 | (hfL2 : ∀ j ≤ q, ∀ v : Fin j → Fin 4, MemLp (iteratedFieldDerivative period v f) 2 (liftMeasure period)) |
| 41 | (hgL2 : ∀ j ≤ q, ∀ v : Fin j → Fin 4, MemLp (iteratedFieldDerivative period v g) 2 (liftMeasure period)) : |
| 42 | MemLp (iteratedFieldDerivative period w (f * g)) 2 (liftMeasure period) := by |
| 43 | have h := product_word_memLp period hq hn w (complexField period f) (complexField period g) |
| 44 | (complexField_smooth period f hf) (complexField_smooth period g hg) |
| 45 | (fun j hj v => by rw [complexField_word period v f hf]; exact complexField_memLp period _ (hfL2 j hj v)) |
| 46 | (fun j hj v => by rw [complexField_word period v g hg]; exact complexField_memLp period _ (hgL2 j hj v)) |
| 47 | have he : complexField period f * complexField period g = complexField period (f * g) := by |
| 48 | ext x |
| 49 | exact (Complex.ofReal_mul _ _).symm |
| 50 | rw [he, complexField_word period w (f * g) (fun x => (hf x).mul (hg x))] at h |
| 51 | apply h.of_le |
| 52 | ((smoothField_continuous period _ (iteratedFieldDerivative_smooth period w (f * g) |
| 53 | (fun x => (hf x).mul (hg x)))).aestronglyMeasurable) |
| 54 | filter_upwards [] with x |
| 55 | exact (Complex.norm_real _).ge |
| 56 | |
| 57 | /-- Every scalar-vector product derivative through order q is genuinely in L². -/ |
| 58 | theorem scalar_vector_product_word_memLp {q n : ℕ} (hq : 6 ≤ q) (hn : n ≤ q) (d : ℕ) |
| 59 | (w : Fin n → Fin 4) (f : LiftDomain period → ℝ) (g : LiftDomain period → Domain d) |
| 60 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 61 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 62 | (hfL2 : ∀ j ≤ q, ∀ v : Fin j → Fin 4, MemLp (iteratedFieldDerivative period v f) 2 (liftMeasure period)) |
| 63 | (hgL2 : ∀ j ≤ q, ∀ v : Fin j → Fin 4, MemLp (iteratedFieldDerivative period v g) 2 (liftMeasure period)) : |
| 64 | MemLp (iteratedFieldDerivative period w (fun x => f x • g x)) 2 (liftMeasure period) := by |
| 65 | apply MemLp.of_eval_piLp |
| 66 | intro i |
| 67 | have h := real_product_word_memLp period hq hn w f (coordinate d i ∘ g) hf |
| 68 | (postcomp_smooth period _ g hg) hfL2 |
| 69 | (fun j hj v => postcomp_word_memLp period hj _ g hg hgL2 v) |
| 70 | rw [← coordinate_smul period d i f g] at h |
| 71 | have he : (fun x => iteratedFieldDerivative period w (fun x => f x • g x) x i) = |
| 72 | iteratedFieldDerivative period w (coordinate d i ∘ (fun x => f x • g x)) := by |
| 73 | funext x |
| 74 | exact (coordinate_word period d i w (fun x => f x • g x) (fun x => (hf x).smul (hg x)) x).symm |
| 75 | rw [he] |
| 76 | exact h |
| 77 | |
| 78 | /-- Multiplication of an actual vector field by a scalar field is bounded in every Hq, q≥6. -/ |
| 79 | theorem cylinder_Hq_scalar_vector_product {q : ℕ} (hq : 6 ≤ q) (d : ℕ) |
| 80 | (f : LiftDomain period → ℝ) (g : LiftDomain period → Domain d) |
| 81 | (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) |
| 82 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) |
| 83 | (hfL2 : ∀ j ≤ q, ∀ v : Fin j → Fin 4, MemLp (iteratedFieldDerivative period v f) 2 (liftMeasure period)) |
| 84 | (hgL2 : ∀ j ≤ q, ∀ v : Fin j → Fin 4, MemLp (iteratedFieldDerivative period v g) 2 (liftMeasure period)) : |
| 85 | liftSobolevNorm period q (fun x => f x • g x) ≤ |
| 86 | ((d : ℝ) * algebraConstant period q) * liftSobolevNorm period q f * liftSobolevNorm period q g := by |
| 87 | have hs : ∀ x, ContDiff ℝ ∞ (localFieldLift period (fun x => f x • g x) x) := |
| 88 | fun x => (hf x).smul (hg x) |
| 89 | have hcomp (i : Fin d) : ∀ j ≤ q, ∀ v : Fin j → Fin 4, |
| 90 | MemLp (iteratedFieldDerivative period v (coordinate d i ∘ g)) 2 (liftMeasure period) := |
| 91 | fun j hj v => postcomp_word_memLp period hj _ g hg hgL2 v |
| 92 | have hA := vector_sobolevNorm_le_sum_coordinates period d q (fun x => f x • g x) hs |
| 93 | (fun i j hj v => by |
| 94 | rw [coordinate_smul] |
| 95 | exact real_product_word_memLp period hq hj v f (coordinate d i ∘ g) hf |
| 96 | (postcomp_smooth period _ g hg) hfL2 (hcomp i)) |
| 97 | have hB (i : Fin d) : liftSobolevNorm period q (coordinate d i ∘ (fun x => f x • g x)) ≤ |
| 98 | algebraConstant period q * liftSobolevNorm period q f * liftSobolevNorm period q g := by |
| 99 | rw [coordinate_smul] |
| 100 | have h := real_cylinder_Hq_algebra period hq f (coordinate d i ∘ g) hf |
| 101 | (postcomp_smooth period _ g hg) hfL2 (hcomp i) |
| 102 | exact h.trans (mul_le_mul_of_nonneg_left |
| 103 | (postcomp_sobolevNorm_le period q _ (coordinate_norm_le d i) g hg hgL2) |
| 104 | (mul_nonneg (algebraConstant_nonneg period q) (liftSobolevNorm_nonneg period q f))) |
| 105 | have hC := Finset.sum_le_sum (fun i (_ : i ∈ (Finset.univ : Finset (Fin d))) => hB i) |
| 106 | simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fin, nsmul_eq_mul] at hC |
| 107 | exact hA.trans (hC.trans_eq (by ring)) |
| 108 | |
| 109 | end EulerGeneralCylinderAlgebra |