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.FinitePathTensorIntegral |
| 2 | |
| 3 | /-! An actual smooth family of time paths carries the differentiated time |
| 4 | equation at every spatial order. This is proved by the bounded Bochner |
| 5 | integral identity, rather than assumed commutation of derivatives. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | |
| 10 | open scoped ContDiff |
| 11 | |
| 12 | namespace EulerSmoothPathTimeJets |
| 13 | |
| 14 | open Set EulerContinuousTimeIntegral EulerVolterraConvolution EulerFinitePathTensor |
| 15 | |
| 16 | variable {E V : Type*} |
| 17 | [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 18 | [NormedAddCommGroup V] [NormedSpace ℝ V] [FiniteDimensional ℝ V] |
| 19 | (T : ℝ) (hT : 0 ≤ T) (f q : E → C(Icc (0 : ℝ) T,V)) |
| 20 | (hf : ContDiff ℝ ∞ f) (hq : ContDiff ℝ ∞ q) |
| 21 | |
| 22 | def jetFamily (n : ℕ) (x : E) : C(Icc (0 : ℝ) T,E [×n]→L[ℝ] V) := |
| 23 | tensorPathMap n (iteratedFDeriv ℝ n f x) |
| 24 | |
| 25 | include hf in |
| 26 | theorem jetFamily_contDiff (n : ℕ) : ContDiff ℝ ∞ (jetFamily T f n) := by |
| 27 | exact (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 28 | (E := E [×n]→L[ℝ] C(Icc (0 : ℝ) T,V)) |
| 29 | (F := C(Icc (0 : ℝ) T,E [×n]→L[ℝ] V)) (tensorPathMap n)).comp |
| 30 | (hf.iteratedFDeriv_right (by simp)) |
| 31 | |
| 32 | include hf in |
| 33 | theorem jetFamily_apply (n : ℕ) (x : E) (t : Icc (0 : ℝ) T) : |
| 34 | jetFamily T f n x t = iteratedFDeriv ℝ n (fun y => f y t) x := |
| 35 | tensorPath_iteratedFDeriv f hf n x t |
| 36 | |
| 37 | variable (hd : ∀ x (t : Icc (0 : ℝ) T), |
| 38 | HasDerivWithinAt (extendPath T hT (f x)) (q x t) (Icc (0 : ℝ) T) t) |
| 39 | |
| 40 | include hf hq hd in |
| 41 | theorem jetFamily_integral (n : ℕ) (x : E) : |
| 42 | jetFamily T f n x = |
| 43 | (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)) |
| 44 | ((ContinuousMap.evalCLM ℝ (⟨0,le_rfl,hT⟩ : Icc (0 : ℝ) T)).compContinuousMultilinearMap |
| 45 | (iteratedFDeriv ℝ n f x)) + integral T hT (jetFamily T q n x) := by |
| 46 | let K : C(Icc (0 : ℝ) T,V) →L[ℝ] C(Icc (0 : ℝ) T,V) := |
| 47 | (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)).comp |
| 48 | (ContinuousMap.evalCLM ℝ ⟨0,le_rfl,hT⟩) |
| 49 | let J : C(Icc (0 : ℝ) T,V) →L[ℝ] C(Icc (0 : ℝ) T,V) := integral T hT |
| 50 | have hfun : f = (K ∘ f) + (J ∘ q) := by |
| 51 | funext y |
| 52 | apply ContinuousMap.ext |
| 53 | intro t |
| 54 | have h := eq_initial_add_integral T hT (q y) (extendPath T hT (f y)) (hd y) t |
| 55 | change f y t = f y ⟨0,le_rfl,hT⟩ + integral T hT (q y) t |
| 56 | simpa only [extendPath, projIcc_of_mem hT t.property, |
| 57 | projIcc_of_mem hT ⟨le_rfl,hT⟩] using h |
| 58 | have hKf : ContDiff ℝ ∞ (K ∘ f) := K.contDiff.comp hf |
| 59 | have hJq : ContDiff ℝ ∞ (J ∘ q) := J.contDiff.comp hq |
| 60 | have hD := congrArg (fun g : E → C(Icc (0 : ℝ) T,V) => iteratedFDeriv ℝ n g x) hfun |
| 61 | have hs := iteratedFDeriv_add_apply (i := n) (x := x) |
| 62 | (hKf.contDiffAt.of_le (by simp)) (hJq.contDiffAt.of_le (by simp)) |
| 63 | have hK := K.iteratedFDeriv_comp_left (x := x) hf.contDiffAt (by simp : (n : ℕ∞) ≤ ∞) |
| 64 | have hJ := J.iteratedFDeriv_comp_left (x := x) hq.contDiffAt (by simp : (n : ℕ∞) ≤ ∞) |
| 65 | have hjets := hD.trans (hs.trans (congrArg₂ (fun A B : E [×n]→L[ℝ] C(Icc (0 : ℝ) T,V) => A+B) hK hJ)) |
| 66 | have hp := congrArg (tensorPathMap n) hjets |
| 67 | rw [map_add] at hp |
| 68 | have hKi : tensorPathMap n (K.compContinuousMultilinearMap (iteratedFDeriv ℝ n f x)) = |
| 69 | (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)) |
| 70 | ((ContinuousMap.evalCLM ℝ (⟨0,le_rfl,hT⟩ : Icc (0 : ℝ) T)).compContinuousMultilinearMap |
| 71 | (iteratedFDeriv ℝ n f x)) := |
| 72 | tensorPath_const (E := E) (V := V) (K := Icc (0 : ℝ) T) n |
| 73 | ((ContinuousMap.evalCLM ℝ (⟨0,le_rfl,hT⟩ : Icc (0 : ℝ) T)).compContinuousMultilinearMap |
| 74 | (iteratedFDeriv ℝ n f x)) |
| 75 | exact hp.trans (congrArg₂ (fun a b : C(Icc (0 : ℝ) T,E [×n]→L[ℝ] V) => a+b) |
| 76 | hKi (tensorPath_integral T hT n _)) |
| 77 | |
| 78 | include hf hq hd in |
| 79 | theorem jetFamily_hasDerivWithinAt (n : ℕ) (x : E) (t : Icc (0 : ℝ) T) : |
| 80 | HasDerivWithinAt (extendPath T hT (jetFamily T f n x)) |
| 81 | (jetFamily T q n x t) (Icc (0 : ℝ) T) t := by |
| 82 | have he := jetFamily_integral T hT f q hf hq hd n x |
| 83 | have hfun := congrArg (fun p : C(Icc (0 : ℝ) T,E [×n]→L[ℝ] V) => extendPath T hT p) he |
| 84 | rw [hfun] |
| 85 | exact (integral_hasDerivWithinAt T hT (jetFamily T q n x) t).const_add _ |
| 86 | |
| 87 | end EulerSmoothPathTimeJets |