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.GaussianHeatGenerator |
| 2 | |
| 3 | /-! Differentiation of jointly continuous operator families without operator-norm differentiability. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerStrongOperatorDerivative |
| 8 | |
| 9 | open Filter |
| 10 | open scoped Topology |
| 11 | |
| 12 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 13 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 14 | |
| 15 | /-- The exact slope decomposition for a varying bounded linear operator and a varying input. -/ |
| 16 | theorem slope_apply (A : ℝ → E →L[ℝ] F) (u : ℝ → E) (t s : ℝ) : |
| 17 | slope (fun r => A r (u r)) t s = A s (slope u t s) + slope (fun r => A r (u t)) t s := by |
| 18 | simp only [slope, vsub_eq_sub, map_smul, map_sub] |
| 19 | rw [← smul_add] |
| 20 | congr 1 |
| 21 | abel |
| 22 | |
| 23 | /-- A product rule requiring joint strong continuity only at the limiting derivative vector. -/ |
| 24 | theorem hasDerivAt_apply (A : ℝ → E →L[ℝ] F) (u : ℝ → E) (t : ℝ) (u' : E) (a' : F) |
| 25 | (hu : HasDerivAt u u' t) (ha : HasDerivAt (fun s => A s (u t)) a' t) |
| 26 | (hc : ContinuousAt (fun p : ℝ × E => A p.1 p.2) (t, u')) : |
| 27 | HasDerivAt (fun s => A s (u s)) (A t u' + a') t := by |
| 28 | apply hasDerivAt_iff_tendsto_slope.mpr |
| 29 | have hfirst : Tendsto (fun s => A s (slope u t s)) (𝓝[≠] t) (𝓝 (A t u')) := |
| 30 | hc.tendsto.comp ((show Tendsto (fun r : ℝ => r) (𝓝[≠] t) (𝓝 t) from nhdsWithin_le_nhds).prodMk_nhds hu.tendsto_slope) |
| 31 | exact (hfirst.add ha.tendsto_slope).congr' |
| 32 | (Filter.Eventually.of_forall (fun s => (slope_apply A u t s).symm)) |
| 33 | |
| 34 | /-- The same product rule for a one-sided derivative. -/ |
| 35 | theorem hasDerivWithinAt_apply (A : ℝ → E →L[ℝ] F) (u : ℝ → E) (t : ℝ) (s : Set ℝ) (u' : E) (a' : F) |
| 36 | (hu : HasDerivWithinAt u u' s t) (ha : HasDerivWithinAt (fun r => A r (u t)) a' s t) |
| 37 | (hc : ContinuousAt (fun p : ℝ × E => A p.1 p.2) (t, u')) : |
| 38 | HasDerivWithinAt (fun r => A r (u r)) (A t u' + a') s t := by |
| 39 | apply hasDerivWithinAt_iff_tendsto_slope.mpr |
| 40 | have hfirst : Tendsto (fun r => A r (slope u t r)) (𝓝[s \ {t}] t) (𝓝 (A t u')) := |
| 41 | hc.tendsto.comp ((show Tendsto (fun r : ℝ => r) (𝓝[s \ {t}] t) (𝓝 t) from nhdsWithin_le_nhds).prodMk_nhds |
| 42 | (hasDerivWithinAt_iff_tendsto_slope.mp hu)) |
| 43 | exact (hfirst.add (hasDerivWithinAt_iff_tendsto_slope.mp ha)).congr' |
| 44 | (Filter.Eventually.of_forall (fun r => (slope_apply A u t r).symm)) |
| 45 | |
| 46 | end EulerStrongOperatorDerivative |
| 47 | |
| 48 | namespace EulerGaussianCylinderHeat |
| 49 | |
| 50 | open MeasureTheory ProbabilityTheory EulerLiftedGradientSpace EulerPressureSpatialRegularity |
| 51 | EulerLiftedWeakDerivative EulerClosedTranslationGraph EulerStrongOperatorDerivative |
| 52 | open scoped ENNReal NNReal Topology |
| 53 | |
| 54 | variable (period : ℝ) [Fact (0 < period)] |
| 55 | |
| 56 | /-- The real extension is the nonnegative-variance heat operator evaluated at the positive part. -/ |
| 57 | theorem realLineHeat_eq_toNNReal (a : LiftTangent) (t : ℝ) (f : LiftL2 period) : |
| 58 | realLineHeat period a t f = lineHeat period a t.toNNReal f := by |
| 59 | rw [realLineHeat, lineHeat_eq_standardGaussian] |
| 60 | have hs : Real.sqrt (t.toNNReal : ℝ) = Real.sqrt t := by simp only [Real.sqrt, Real.toNNReal_coe] |
| 61 | rw [hs] |
| 62 | |
| 63 | /-- Real-parameter version of the actual bounded heat operator. -/ |
| 64 | def realLineHeatOperator (a : LiftTangent) (t : ℝ) : LiftL2 period →L[ℝ] LiftL2 period := |
| 65 | lineHeatOperator period a t.toNNReal |
| 66 | |
| 67 | @[simp] theorem realLineHeatOperator_apply (a : LiftTangent) (t : ℝ) (f : LiftL2 period) : |
| 68 | realLineHeatOperator period a t f = realLineHeat period a t f := |
| 69 | (realLineHeat_eq_toNNReal period a t f).symm |
| 70 | |
| 71 | theorem realLineHeat_joint_continuous (a : LiftTangent) : |
| 72 | Continuous (fun p : ℝ × LiftL2 period => realLineHeat period a p.1 p.2) := by |
| 73 | simp_rw [realLineHeat_eq_toNNReal] |
| 74 | exact (lineHeat_joint_continuous period a).comp |
| 75 | ((continuous_real_toNNReal.comp continuous_fst).prodMk continuous_snd) |
| 76 | |
| 77 | /-- Product rule for the real heat operator applied to a differentiable input curve. -/ |
| 78 | theorem realLineHeat_varying_input (a : LiftTangent) (u : ℝ → LiftL2 period) (t : ℝ) |
| 79 | (u' g h : LiftL2 period) (ht : 0 < t) (hu : HasDerivAt u u' t) |
| 80 | (hD : HasDerivAt (lineOrbit period a (u t)) g 0) |
| 81 | (hDD : HasDerivAt (lineOrbit period a g) h 0) : |
| 82 | HasDerivAt (fun s => realLineHeat period a s (u s)) |
| 83 | (realLineHeat period a t u' + (1/2 : ℝ) • realLineHeat period a t h) t := by |
| 84 | have h := hasDerivAt_apply (realLineHeatOperator period a) u t u' |
| 85 | ((1/2 : ℝ) • realLineHeat period a t h) hu |
| 86 | (by simpa only [realLineHeatOperator_apply] using realLineHeat_generator_pos period a (u t) g h hD hDD ht) |
| 87 | (by simpa only [realLineHeatOperator_apply] using (realLineHeat_joint_continuous period a).continuousAt (x := (t,u'))) |
| 88 | simpa only [realLineHeatOperator_apply] using h |
| 89 | |
| 90 | end EulerGaussianCylinderHeat |