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.SmoothBanachFlow |
| 2 | import Euler.FinitePathTensorIntegral |
| 3 | |
| 4 | /-! |
| 5 | # Actual time identities for all spatial jets of the constructed flow |
| 6 | |
| 7 | The spatial derivative is taken in the full continuous-path Banach space. |
| 8 | The bounded time integral commutes with it at every order. Reassembling |
| 9 | the tensor paths therefore gives genuine within-time derivatives of all |
| 10 | jets, without assuming differentiability of an ODE solution family. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | |
| 16 | open scoped ContDiff BoundedContinuousFunction |
| 17 | |
| 18 | namespace EulerSmoothBanachFlow |
| 19 | |
| 20 | open Set EulerContinuousTimeIntegral EulerVolterraConvolution EulerFinitePathTensor |
| 21 | |
| 22 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 23 | (T : ℝ) (hT : 0 ≤ T) (A : SmoothTimeField (Icc (0 : ℝ) T) E E) |
| 24 | |
| 25 | def velocityFamily (x : E) : C(Icc (0 : ℝ) T,E) := |
| 26 | A.superposition (pathFamily T hT A x) |
| 27 | |
| 28 | theorem velocityFamily_contDiff : ContDiff ℝ ∞ (velocityFamily T hT A) := |
| 29 | A.superposition_contDiff.comp (pathFamily_contDiff T hT A) |
| 30 | |
| 31 | def displacementFamily (x : E) : C(Icc (0 : ℝ) T,E) := |
| 32 | pathFamily T hT A x - (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)) x |
| 33 | |
| 34 | theorem displacementFamily_contDiff : ContDiff ℝ ∞ (displacementFamily T hT A) := by |
| 35 | exact (pathFamily_contDiff T hT A).sub |
| 36 | (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) (E := E) |
| 37 | (F := C(Icc (0 : ℝ) T,E)) (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T))) |
| 38 | |
| 39 | theorem displacementFamily_integral (x : E) : |
| 40 | displacementFamily T hT A x = integral T hT (velocityFamily T hT A x) := by |
| 41 | unfold displacementFamily velocityFamily |
| 42 | exact sub_eq_iff_eq_add.mpr (by |
| 43 | simpa only [add_comm] using pathFamily_integral T hT A x) |
| 44 | |
| 45 | def jetPath (n : ℕ) (x : E) : C(Icc (0 : ℝ) T,E [×n]→L[ℝ] E) := |
| 46 | tensorPathMap n (iteratedFDeriv ℝ n (pathFamily T hT A) x) |
| 47 | |
| 48 | def velocityJetPath (n : ℕ) (x : E) : C(Icc (0 : ℝ) T,E [×n]→L[ℝ] E) := |
| 49 | tensorPathMap n (iteratedFDeriv ℝ n (velocityFamily T hT A) x) |
| 50 | |
| 51 | def displacementJetPath (n : ℕ) (x : E) : C(Icc (0 : ℝ) T,E [×n]→L[ℝ] E) := |
| 52 | tensorPathMap n (iteratedFDeriv ℝ n (displacementFamily T hT A) x) |
| 53 | |
| 54 | theorem jetPath_apply (n : ℕ) (x : E) (t : Icc (0 : ℝ) T) : |
| 55 | jetPath T hT A n x t = iteratedFDeriv ℝ n |
| 56 | (fun y => (flowData T hT A).forward t y) x := |
| 57 | tensorPath_iteratedFDeriv _ (pathFamily_contDiff T hT A) n x t |
| 58 | |
| 59 | theorem velocityJetPath_apply (n : ℕ) (x : E) (t : Icc (0 : ℝ) T) : |
| 60 | velocityJetPath T hT A n x t = iteratedFDeriv ℝ n |
| 61 | (fun y => A.field t ((flowData T hT A).forward t y)) x := |
| 62 | tensorPath_iteratedFDeriv _ (velocityFamily_contDiff T hT A) n x t |
| 63 | |
| 64 | theorem displacementJetPath_integral (n : ℕ) (x : E) : |
| 65 | displacementJetPath T hT A n x = integral T hT (velocityJetPath T hT A n x) := by |
| 66 | have he : displacementFamily T hT A = |
| 67 | (integral T hT) ∘ velocityFamily T hT A := |
| 68 | funext (displacementFamily_integral T hT A) |
| 69 | unfold displacementJetPath |
| 70 | rw [he, (integral T hT).iteratedFDeriv_comp_left |
| 71 | (velocityFamily_contDiff T hT A).contDiffAt (by simp)] |
| 72 | exact tensorPath_integral T hT n _ |
| 73 | |
| 74 | theorem displacementJetPath_hasDerivWithinAt (n : ℕ) (x : E) (t : Icc (0 : ℝ) T) : |
| 75 | HasDerivWithinAt (extendPath T hT (displacementJetPath T hT A n x)) |
| 76 | (velocityJetPath T hT A n x t) (Icc (0 : ℝ) T) t := by |
| 77 | rw [displacementJetPath_integral] |
| 78 | exact integral_hasDerivWithinAt T hT _ t |
| 79 | |
| 80 | /-- The clamped extension is used only to state derivatives on the closed |
| 81 | time interval; there it is exactly the constructed flow minus its label. -/ |
| 82 | def displacement (t : ℝ) (x : E) : E := |
| 83 | extendPath T hT (displacementFamily T hT A x) t |
| 84 | |
| 85 | theorem displacement_eq (t : Icc (0 : ℝ) T) (x : E) : |
| 86 | displacement T hT A t x = (flowData T hT A).forward t x - x := by |
| 87 | simp only [displacement, extendPath, projIcc_of_mem hT t.property] |
| 88 | rfl |
| 89 | |
| 90 | theorem displacement_contDiff (t : ℝ) : ContDiff ℝ ∞ (displacement T hT A t) := by |
| 91 | change ContDiff ℝ ∞ ((ContinuousMap.evalCLM ℝ (projIcc 0 T hT t)) ∘ |
| 92 | displacementFamily T hT A) |
| 93 | exact (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 94 | (E := C(Icc (0 : ℝ) T,E)) (F := E) |
| 95 | (ContinuousMap.evalCLM ℝ (projIcc 0 T hT t))).comp |
| 96 | (displacementFamily_contDiff T hT A) |
| 97 | |
| 98 | theorem displacement_zero : displacement T hT A 0 = 0 := by |
| 99 | funext x |
| 100 | rw [show (0 : ℝ) = (⟨0,le_rfl,hT⟩ : Icc (0 : ℝ) T).val from rfl, displacement_eq] |
| 101 | simp only [EulerBoundedLipschitzFlow.Data.forward_zero, sub_self, Pi.zero_apply] |
| 102 | |
| 103 | theorem displacementJetPath_apply (n : ℕ) (x : E) (t : ℝ) : |
| 104 | extendPath T hT (displacementJetPath T hT A n x) t = |
| 105 | iteratedFDeriv ℝ n (displacement T hT A t) x := |
| 106 | tensorPath_iteratedFDeriv _ (displacementFamily_contDiff T hT A) n x (projIcc 0 T hT t) |
| 107 | |
| 108 | theorem velocityJetPath_displacement (n : ℕ) (x : E) (t : Icc (0 : ℝ) T) : |
| 109 | velocityJetPath T hT A n x t = |
| 110 | iteratedFDeriv ℝ n (fun y => A.field t (y + displacement T hT A t y)) x := by |
| 111 | rw [velocityJetPath_apply] |
| 112 | congr 1 |
| 113 | funext y |
| 114 | rw [displacement_eq] |
| 115 | congr 1 |
| 116 | abel |
| 117 | |
| 118 | /-- Every actual spatial tensor has the differentiated ODE as its genuine |
| 119 | time derivative, including one-sided derivatives at both endpoints. -/ |
| 120 | theorem displacement_jet_hasDerivWithinAt (n : ℕ) (x : E) (t : Icc (0 : ℝ) T) : |
| 121 | HasDerivWithinAt (fun s => iteratedFDeriv ℝ n (displacement T hT A s) x) |
| 122 | (iteratedFDeriv ℝ n (fun y => A.field t (y + displacement T hT A t y)) x) |
| 123 | (Icc (0 : ℝ) T) t := by |
| 124 | have he : (fun s => iteratedFDeriv ℝ n (displacement T hT A s) x) = |
| 125 | extendPath T hT (displacementJetPath T hT A n x) := |
| 126 | funext (fun s => (displacementJetPath_apply T hT A n x s).symm) |
| 127 | rw [he, ← velocityJetPath_displacement] |
| 128 | exact displacementJetPath_hasDerivWithinAt T hT A n x t |
| 129 | |
| 130 | theorem displacement_jet_continuous (n : ℕ) (x : E) : |
| 131 | Continuous (fun t => iteratedFDeriv ℝ n (displacement T hT A t) x) := by |
| 132 | have he : (fun t => iteratedFDeriv ℝ n (displacement T hT A t) x) = |
| 133 | extendPath T hT (displacementJetPath T hT A n x) := |
| 134 | funext (fun t => (displacementJetPath_apply T hT A n x t).symm) |
| 135 | rw [he] |
| 136 | exact extendPath_continuous T hT _ |
| 137 | |
| 138 | theorem velocity_jet_continuous (n : ℕ) (x : E) : |
| 139 | Continuous (fun t : Icc (0 : ℝ) T => iteratedFDeriv ℝ n |
| 140 | (fun y => A.field t (y + displacement T hT A t y)) x) := by |
| 141 | have he : (fun t : Icc (0 : ℝ) T => iteratedFDeriv ℝ n |
| 142 | (fun y => A.field t (y + displacement T hT A t y)) x) = |
| 143 | velocityJetPath T hT A n x := |
| 144 | funext (fun t => (velocityJetPath_displacement T hT A n x t).symm) |
| 145 | rw [he] |
| 146 | exact (velocityJetPath T hT A n x).continuous |
| 147 | |
| 148 | end EulerSmoothBanachFlow |