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 Mathlib.Analysis.Calculus.FDeriv.Prod |
| 2 | import Mathlib.Analysis.Calculus.Deriv.Basic |
| 3 | import Mathlib.Analysis.Asymptotics.Lemmas |
| 4 | |
| 5 | /-! Joint differentiation through uniformly bounded evaluation operators. |
| 6 | Strong continuity on the derivative vector suffices; operator-norm continuity |
| 7 | or differentiability of the whole family of evaluation maps is unnecessary. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerBoundedEvaluation |
| 12 | |
| 13 | open Filter Asymptotics ContinuousLinearMap |
| 14 | open scoped Topology |
| 15 | |
| 16 | variable {X H V : Type*} |
| 17 | [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 18 | [NormedAddCommGroup H] [NormedSpace ℝ H] |
| 19 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 20 | |
| 21 | theorem hasFDerivAt (E : X → H →L[ℝ] V) (C : ℝ) (hE : ∀ x, ‖E x‖ ≤ C) |
| 22 | (u : ℝ → H) (u' : H) (t : ℝ) (x : X) |
| 23 | (hu : HasDerivAt u u' t) (D : X →L[ℝ] V) |
| 24 | (hx : HasFDerivAt (fun y => E y (u t)) D x) |
| 25 | (hc : ContinuousAt (fun y => E y u') x) : |
| 26 | HasFDerivAt (fun q : ℝ × X => E q.2 (u q.1)) |
| 27 | (((toSpanSingleton ℝ (E x u')).comp (fst ℝ ℝ X)) + D.comp (snd ℝ ℝ X)) (t,x) := by |
| 28 | let l : Filter (ℝ × X) := 𝓝 (t,x) |
| 29 | have htend : Tendsto (Prod.fst : ℝ × X → ℝ) l (𝓝 t) := continuous_fst.tendsto (t,x) |
| 30 | have hxend : Tendsto (Prod.snd : ℝ × X → X) l (𝓝 x) := continuous_snd.tendsto (t,x) |
| 31 | have hfst : (fun q : ℝ × X => q.1-t) =O[l] fun q => q-(t,x) := by |
| 32 | apply IsBigO.of_bound 1 |
| 33 | exact Filter.Eventually.of_forall (fun q => by |
| 34 | change ‖(q-(t,x)).1‖ ≤ 1*‖q-(t,x)‖ |
| 35 | rw [one_mul] |
| 36 | exact norm_fst_le (q-(t,x))) |
| 37 | have hsnd : (fun q : ℝ × X => q.2-x) =O[l] fun q => q-(t,x) := by |
| 38 | apply IsBigO.of_bound 1 |
| 39 | exact Filter.Eventually.of_forall (fun q => by |
| 40 | change ‖(q-(t,x)).2‖ ≤ 1*‖q-(t,x)‖ |
| 41 | rw [one_mul] |
| 42 | exact norm_snd_le (q-(t,x))) |
| 43 | have hr : (fun q : ℝ × X => u q.1-u t-(q.1-t) • u') =o[l] fun q => q-(t,x) := |
| 44 | (hu.isLittleO.comp_tendsto htend).trans_isBigO hfst |
| 45 | have hbound : (fun q : ℝ × X => E q.2 (u q.1-u t-(q.1-t) • u')) =O[l] |
| 46 | fun q => u q.1-u t-(q.1-t) • u' := by |
| 47 | apply IsBigO.of_bound C |
| 48 | exact Filter.Eventually.of_forall (fun q => |
| 49 | ((E q.2).le_opNorm _).trans (mul_le_mul_of_nonneg_right (hE q.2) (norm_nonneg _))) |
| 50 | have hfirst := hbound.trans_isLittleO hr |
| 51 | have hcont : Tendsto (fun q : ℝ × X => E q.2 u'-E x u') l (𝓝 0) := by |
| 52 | simpa only [sub_self,Function.comp_def] using |
| 53 | (hc.tendsto.comp hxend).sub_const (E x u') |
| 54 | have hsmall : (fun q : ℝ × X => E q.2 u'-E x u') =o[l] fun _ => (1 : ℝ) := |
| 55 | (isLittleO_one_iff ℝ).mpr hcont |
| 56 | have hsecond : (fun q : ℝ × X => (q.1-t) • (E q.2 u'-E x u')) =o[l] |
| 57 | fun q => q-(t,x) := by |
| 58 | have h := (isBigO_refl (fun q : ℝ × X => q.1-t) l).smul_isLittleO hsmall |
| 59 | simp only [smul_eq_mul,mul_one] at h |
| 60 | exact h.trans_isBigO hfst |
| 61 | have hthird : (fun q : ℝ × X => E q.2 (u t)-E x (u t)-D (q.2-x)) =o[l] |
| 62 | fun q => q-(t,x) := |
| 63 | (hx.isLittleO.comp_tendsto hxend).trans_isBigO hsnd |
| 64 | apply hasFDerivAt_iff_isLittleO.mpr |
| 65 | apply ((hfirst.add hsecond).add hthird).congr_left |
| 66 | intro q |
| 67 | simp only [map_sub,map_smul,add_apply,comp_apply,toSpanSingleton_apply,coe_fst',coe_snd',smul_sub] |
| 68 | module |
| 69 | |
| 70 | end EulerBoundedEvaluation |