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.SmoothTimeSuperposition |
| 2 | import Mathlib.Analysis.Calculus.FDeriv.Partial |
| 3 | |
| 4 | /-! Actual time derivatives and the genuine spatial jets give joint C¹ |
| 5 | regularity on the interior of the time interval. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | |
| 10 | open scoped ContDiff Topology BoundedContinuousFunction |
| 11 | |
| 12 | namespace SmoothTimeField |
| 13 | |
| 14 | open Set Filter EulerVolterraConvolution |
| 15 | |
| 16 | variable {E V : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 17 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 18 | (T : ℝ) (hT : 0 ≤ T) (A A₁ : SmoothTimeField (Icc (0 : ℝ) T) E V) |
| 19 | |
| 20 | def realField (t : ℝ) (x : E) : V := extendPath T hT A.field t x |
| 21 | |
| 22 | @[simp] theorem realField_apply (t : Icc (0 : ℝ) T) (x : E) : |
| 23 | A.realField T hT t x = A.field t x := by |
| 24 | simp only [realField, extendPath, projIcc_of_mem hT t.property] |
| 25 | |
| 26 | theorem realField_joint_continuous : Continuous (Function.uncurry (A.realField T hT)) := by |
| 27 | have hc := extendPath_continuous T hT A.field |
| 28 | change Continuous (fun p : ℝ × E => extendPath T hT A.field p.1 p.2) |
| 29 | fun_prop |
| 30 | |
| 31 | def TimeDerivative : Prop := ∀ t : Icc (0 : ℝ) T, ∀ x : E, |
| 32 | HasDerivWithinAt (fun s => A.realField T hT s x) (A₁.field t x) (Icc (0 : ℝ) T) t |
| 33 | |
| 34 | def jointDerivative (t : ℝ) (x : E) : (ℝ × E) →L[ℝ] V := |
| 35 | (ContinuousLinearMap.toSpanSingleton ℝ (A₁.realField T hT t x)).coprod |
| 36 | (A.derivative.realField T hT t x) |
| 37 | |
| 38 | theorem jointDerivative_continuous : |
| 39 | Continuous (Function.uncurry (jointDerivative T hT A A₁)) := by |
| 40 | have h₁ : Continuous (fun p : ℝ × E => |
| 41 | ContinuousLinearMap.toSpanSingleton ℝ (A₁.realField T hT p.1 p.2)) := |
| 42 | (ContinuousLinearMap.toSpanSingletonLIE ℝ V).continuous.comp |
| 43 | (A₁.realField_joint_continuous T hT) |
| 44 | exact h₁.continuousLinearMapCoprod (A.derivative.realField_joint_continuous T hT) |
| 45 | |
| 46 | theorem realField_hasFDerivAt (htime : TimeDerivative T hT A A₁) |
| 47 | (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : |
| 48 | HasFDerivAt (Function.uncurry (A.realField T hT)) (jointDerivative T hT A A₁ t x) (t,x) := by |
| 49 | have hloc : ∀ᶠ p : ℝ × E in 𝓝 (t,x), p.1 ∈ Ioo 0 T := |
| 50 | (continuous_fst.tendsto (t,x)).eventually (Ioo_mem_nhds ht.1 ht.2) |
| 51 | apply HasStrictFDerivAt.hasFDerivAt |
| 52 | apply hasStrictFDerivAt_uncurry_coprod |
| 53 | (f := A.realField T hT) (u := (t,x)) |
| 54 | (f₁ := fun s y => ContinuousLinearMap.toSpanSingleton ℝ (A₁.realField T hT s y)) |
| 55 | (f₂ := A.derivative.realField T hT) |
| 56 | · filter_upwards [hloc] with p hp |
| 57 | have hd := (htime ⟨p.1,hp.1.le,hp.2.le⟩ p.2).hasDerivAt (Icc_mem_nhds hp.1 hp.2) |
| 58 | change HasFDerivAt (fun s => A.realField T hT s p.2) |
| 59 | (ContinuousLinearMap.toSpanSingleton ℝ (A₁.realField T hT p.1 p.2)) p.1 |
| 60 | simpa only [realField, extendPath, projIcc_of_mem hT ⟨hp.1.le,hp.2.le⟩] |
| 61 | using hd.hasFDerivAt |
| 62 | · apply Eventually.of_forall |
| 63 | intro p |
| 64 | change HasFDerivAt (A.field (projIcc 0 T hT p.1) : E → V) |
| 65 | (A.derivativeField (projIcc 0 T hT p.1) p.2) p.2 |
| 66 | rw [A.derivativeField_eq] |
| 67 | have hd := ((A.smooth (projIcc 0 T hT p.1)).differentiable (by simp) p.2).hasFDerivAt |
| 68 | exact hd |
| 69 | · exact ((ContinuousLinearMap.toSpanSingletonLIE ℝ V).continuous.comp |
| 70 | (A₁.realField_joint_continuous T hT)).continuousAt |
| 71 | · exact (A.derivative.realField_joint_continuous T hT).continuousAt |
| 72 | |
| 73 | theorem realField_contDiffAt_one (htime : TimeDerivative T hT A A₁) |
| 74 | (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : |
| 75 | ContDiffAt ℝ 1 (Function.uncurry (A.realField T hT)) (t,x) := by |
| 76 | rw [contDiffAt_one_iff] |
| 77 | refine ⟨Function.uncurry (jointDerivative T hT A A₁), |
| 78 | {p : ℝ × E | p.1 ∈ Ioo 0 T}, ?_, |
| 79 | (jointDerivative_continuous T hT A A₁).continuousOn, ?_⟩ |
| 80 | · exact (continuous_fst.tendsto (t,x)).eventually (Ioo_mem_nhds ht.1 ht.2) |
| 81 | · intro p hp |
| 82 | exact realField_hasFDerivAt T hT A A₁ htime p.1 hp p.2 |
| 83 | |
| 84 | end SmoothTimeField |