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.SobolevL2Product |
| 2 | import Euler.SobolevRestriction |
| 3 | |
| 4 | /-! Actual strong product jets from the genuine Sobolev-to-L² bilinear multiplication. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerSobolevL2Product |
| 9 | |
| 10 | open MeasureTheory EulerLiftedGradientSpace EulerPressureSpatialRegularity EulerCylinderSobolev |
| 11 | EulerCylinderSobolevSpace EulerSpatialSobolevInverse |
| 12 | open scoped Topology ENNReal |
| 13 | |
| 14 | variable (period : ℝ) [Fact (0 < period)] |
| 15 | |
| 16 | /-- Genuine L² differentiation of a pointwise product, with one Sobolev derivative on its coefficient. -/ |
| 17 | theorem scalarProduct_hasDerivAt (L : Vector3 →L[ℝ] ℝ) (i : Fin 4) |
| 18 | (u : SobolevSpace period 4) (v v' : LiftL2 period) |
| 19 | (hv : HasDerivAt (fun t => translation period (translationPath period (standardDirection i) t) v) v' 0) : |
| 20 | HasDerivAt (fun t => translation period (translationPath period (standardDirection i) t) |
| 21 | (scalarProduct period (le_refl 3) L (truncateOperator period 3 u) v)) |
| 22 | (scalarProduct period (le_refl 3) L (truncateOperator period 3 u) v' + |
| 23 | scalarProduct period (le_refl 3) L (derivativeOperator period 3 i u) v) 0 := by |
| 24 | let B := scalarProductBilinear period (le_refl 3) L |
| 25 | have hU := sobolevTranslation_hasDerivAt period i u |
| 26 | have h := B.hasDerivAt_of_bilinear (fun _ => hU) (fun _ => hv) |
| 27 | have hzero : sobolevTranslation period 3 (translationPath period (standardDirection i) 0) |
| 28 | (truncateOperator period 3 u) = truncateOperator period 3 u := by |
| 29 | apply value_injective period |
| 30 | change translation period (translationPath period (standardDirection i) 0) (value period u) = value period u |
| 31 | rw [translationPath_zero, translation_zero] |
| 32 | have he : (fun t => B (sobolevTranslation period 3 (translationPath period (standardDirection i) t) |
| 33 | (truncateOperator period 3 u)) (translation period (translationPath period (standardDirection i) t) v)) = |
| 34 | fun t => translation period (translationPath period (standardDirection i) t) |
| 35 | (scalarProduct period (le_refl 3) L (truncateOperator period 3 u) v) := by |
| 36 | funext t |
| 37 | exact scalarProduct_translation period (le_refl 3) L _ _ _ |
| 38 | change HasDerivAt (fun t => B (sobolevTranslation period 3 (translationPath period (standardDirection i) t) |
| 39 | (truncateOperator period 3 u)) (translation period (translationPath period (standardDirection i) t) v)) |
| 40 | (B (sobolevTranslation period 3 (translationPath period (standardDirection i) 0) (truncateOperator period 3 u)) v' + |
| 41 | B (derivativeOperator period 3 i u) (translation period (translationPath period (standardDirection i) 0) v)) 0 at h |
| 42 | rw [he, hzero, translationPath_zero, translation_zero] at h |
| 43 | exact h |
| 44 | |
| 45 | /-- Pointwise multiplication with q+3 coefficient derivatives produces a genuine q-jet. -/ |
| 46 | def productJet (L : Vector3 →L[ℝ] ℝ) {q : ℕ} (u : SobolevSpace period (q+3)) |
| 47 | {v : LiftL2 period} (J : SpatialJet period standardDirection q v) : |
| 48 | SpatialJet period standardDirection q |
| 49 | (scalarProduct period (le_refl 3) L (restrictOperator period (by omega : 3 ≤ q+3) u) v) := by |
| 50 | induction q generalizing v with |
| 51 | | zero => exact .zero _ |
| 52 | | succ q ih => |
| 53 | cases J with |
| 54 | | succ dv lower hd => |
| 55 | let u0 : SobolevSpace period (q+3) := truncateOperator period (q+3) u |
| 56 | let du : Fin 4 → SobolevSpace period (q+3) := fun i => derivativeOperator period (q+3) i u |
| 57 | let u3 : SobolevSpace period 3 := restrictOperator period (by omega : 3 ≤ q+1+3) u |
| 58 | let d : Fin 4 → LiftL2 period := fun i => |
| 59 | scalarProduct period (le_refl 3) L (restrictOperator period (by omega : 3 ≤ q+3) u0) (dv i) + |
| 60 | scalarProduct period (le_refl 3) L (restrictOperator period (by omega : 3 ≤ q+3) (du i)) v |
| 61 | have hbase : restrictOperator period (by omega : 3 ≤ q+3) u0 = u3 := by |
| 62 | apply value_injective period |
| 63 | rfl |
| 64 | have hlower (i : Fin 4) : SpatialJet period standardDirection q (d i) := |
| 65 | (ih u0 (lower i)).add (ih (du i) (SpatialJet.succ dv lower hd).truncate) |
| 66 | refine .succ d hlower ?_ |
| 67 | intro i |
| 68 | let u4 : SobolevSpace period 4 := restrictOperator period (by omega : 4 ≤ q+1+3) u |
| 69 | have h0 : truncateOperator period 3 u4 = u3 := by |
| 70 | apply value_injective period |
| 71 | rfl |
| 72 | have h1 : derivativeOperator period 3 i u4 = |
| 73 | restrictOperator period (by omega : 3 ≤ q+3) (du i) := by |
| 74 | apply value_injective period |
| 75 | rfl |
| 76 | have h := scalarProduct_hasDerivAt period L i u4 v (dv i) (hd i) |
| 77 | rw [h0, h1, ← hbase] at h |
| 78 | exact h |
| 79 | |
| 80 | /-- The output Sobolev array of an actual pointwise scalar-vector product. -/ |
| 81 | def productHighLow (L : Vector3 →L[ℝ] ℝ) {q : ℕ} |
| 82 | (u : SobolevSpace period (q+3)) (v : SobolevSpace period q) : SobolevSpace period q := |
| 83 | ofJet period (productJet period L u (toJet period v)) |
| 84 | |
| 85 | @[simp] theorem productHighLow_value (L : Vector3 →L[ℝ] ℝ) {q : ℕ} |
| 86 | (u : SobolevSpace period (q+3)) (v : SobolevSpace period q) : |
| 87 | value period (productHighLow period L u v) = |
| 88 | scalarProduct period (le_refl 3) L (restrictOperator period (by omega : 3 ≤ q+3) u) (value period v) := |
| 89 | value_ofJet period _ |
| 90 | |
| 91 | end EulerSobolevL2Product |