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.PacketCrossProduct |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.Operations |
| 3 | |
| 4 | /-! Smoothness and actual time differentiation of the normalized cross multiplier. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerPacketCrossProduct |
| 9 | |
| 10 | open EulerSmoothLimit InnerProductSpace Matrix WithLp |
| 11 | open scoped ContDiff |
| 12 | |
| 13 | private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance |
| 14 | private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstance |
| 15 | private local instance : AddCommGroup (Space →L[ℝ] Space) := |
| 16 | (inferInstance : NormedAddCommGroup (Space →L[ℝ] Space)).toAddCommGroup |
| 17 | private local instance : Module ℝ (Space →L[ℝ] Space) := |
| 18 | (inferInstance : NormedSpace ℝ (Space →L[ℝ] Space)).toModule |
| 19 | private local instance : TopologicalSpace (Space →L[ℝ] Space) := |
| 20 | (inferInstance : PseudoMetricSpace (Space →L[ℝ] Space)).toUniformSpace.toTopologicalSpace |
| 21 | |
| 22 | def crossOperatorLinear : Space →ₗ[ℝ] (Space →L[ℝ] Space) where |
| 23 | toFun := crossLeft |
| 24 | map_add' a b := by |
| 25 | apply ContinuousLinearMap.ext |
| 26 | intro v |
| 27 | simp [crossLeft_apply, cross, map_add] |
| 28 | map_smul' r a := by |
| 29 | apply ContinuousLinearMap.ext |
| 30 | intro v |
| 31 | simp [crossLeft_apply, cross, map_smul] |
| 32 | |
| 33 | def crossOperator : Space →L[ℝ] (Space →L[ℝ] Space) := |
| 34 | crossOperatorLinear.mkContinuous 1 (fun a => by |
| 35 | change ‖crossLeft a‖ ≤ 1*‖a‖ |
| 36 | simpa only [one_mul] using crossLeft_norm_le a) |
| 37 | |
| 38 | @[simp] theorem crossOperator_apply (a : Space) : crossOperator a = crossLeft a := rfl |
| 39 | |
| 40 | theorem potentialMultiplier_eq_inner (m : Space) : |
| 41 | potentialMultiplier m = -((⟪m,m⟫_ℝ)⁻¹) • crossOperator m := by |
| 42 | rw [real_inner_self_eq_norm_sq] |
| 43 | rfl |
| 44 | |
| 45 | variable {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 46 | |
| 47 | theorem potentialMultiplier_contDiff (m : X → Space) (hm : ContDiff ℝ ∞ m) |
| 48 | (hnz : ∀ x, m x ≠ 0) : ContDiff ℝ ∞ (fun x => potentialMultiplier (m x)) := by |
| 49 | simp_rw [potentialMultiplier_eq_inner] |
| 50 | exact ((hm.inner ℝ hm).inv (fun x => by |
| 51 | rw [real_inner_self_eq_norm_sq] |
| 52 | exact pow_ne_zero 2 (norm_ne_zero_iff.mpr (hnz x)))).neg.smul |
| 53 | (crossOperator.contDiff.comp hm) |
| 54 | |
| 55 | def potentialMultiplierDerivative (m mt : Space) : Space →L[ℝ] Space := |
| 56 | (2*⟪m,mt⟫_ℝ/(‖m‖^2)^2) • crossLeft m - ((‖m‖^2)⁻¹) • crossLeft mt |
| 57 | |
| 58 | /-- The derivative formula is valid for a time curve on its actual time set. -/ |
| 59 | theorem potentialMultiplier_hasDerivWithinAt (s : Set ℝ) (t : ℝ) |
| 60 | (m : ℝ → Space) (mt : Space) (hm : HasDerivWithinAt m mt s t) (hnz : m t ≠ 0) : |
| 61 | HasDerivWithinAt (fun r => potentialMultiplier (m r)) |
| 62 | (potentialMultiplierDerivative (m t) mt) s t := by |
| 63 | have hnorm : HasDerivWithinAt (fun r => ‖m r‖^2) (2*⟪m t,mt⟫_ℝ) s t := by |
| 64 | simpa only [real_inner_self_eq_norm_sq, real_inner_comm mt (m t), ← two_mul] using hm.inner ℝ hm |
| 65 | have hInv := hnorm.inv (pow_ne_zero 2 (norm_ne_zero_iff.mpr hnz)) |
| 66 | have hcross : HasDerivWithinAt (fun r => crossLeft (m r)) (crossLeft mt) s t := |
| 67 | crossOperator.hasFDerivAt.comp_hasDerivWithinAt t hm |
| 68 | have h := hInv.neg.smul hcross |
| 69 | simpa only [potentialMultiplier, potentialMultiplierDerivative, Pi.neg_apply, |
| 70 | Pi.inv_apply, Pi.smul_def', Pi.neg_def, neg_div, neg_neg, sub_eq_add_neg, neg_smul, add_comm] using h |
| 71 | |
| 72 | end EulerPacketCrossProduct |