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.MeanPathSpatialRepresentative |
| 2 | import Euler.MeanSpatialTimeDerivative |
| 3 | import Euler.ContinuousTimeIntegral |
| 4 | |
| 5 | /-! |
| 6 | # Commuting actual spatial derivatives with the time derivative |
| 7 | |
| 8 | The time integral is a fixed bounded linear map on continuous L² paths. |
| 9 | Differentiating its exact identity in the translation parameter therefore |
| 10 | commutes every spatial jet with the time integral. The resulting finite |
| 11 | Sobolev arrays transfer the actual time derivative to the smooth spatial |
| 12 | representatives. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | namespace EulerMeanPathTimeDerivative |
| 18 | |
| 19 | open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerMeanSolenoidal |
| 20 | EulerMeanTimeContinuousTranslation EulerContinuousTimeIntegral EulerVolterraConvolution |
| 21 | EulerMeanSmoothRepresentative EulerMeanOrdinaryLift EulerCylinderSobolevSpace |
| 22 | EulerSobolevPointEvaluation |
| 23 | open scoped ContDiff |
| 24 | |
| 25 | private local instance : NormedAddCommGroup L2 := inferInstance |
| 26 | private local instance : NormedSpace ℝ L2 := inferInstance |
| 27 | private local instance : AddCommGroup L2 := (inferInstance : NormedAddCommGroup L2).toAddCommGroup |
| 28 | private local instance : Module ℝ L2 := (inferInstance : NormedSpace ℝ L2).toModule |
| 29 | private local instance (T : ℝ) : NormedAddCommGroup C(Icc (0 : ℝ) T,L2) := inferInstance |
| 30 | private local instance (T : ℝ) : NormedSpace ℝ C(Icc (0 : ℝ) T,L2) := inferInstance |
| 31 | |
| 32 | /-- The constant path with the same initial value, as an actual bounded linear map. -/ |
| 33 | def initialValueMap (T : ℝ) (hT : 0 ≤ T) : |
| 34 | C(Icc (0 : ℝ) T,L2) →L[ℝ] C(Icc (0 : ℝ) T,L2) := |
| 35 | (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)).comp |
| 36 | (ContinuousMap.evalCLM ℝ (⟨0, le_rfl, hT⟩ : Icc (0 : ℝ) T)) |
| 37 | |
| 38 | variable (T : ℝ) (hT : 0 ≤ T) (p q : C(Icc (0 : ℝ) T,L2)) |
| 39 | (hder : ∀ t : Icc (0 : ℝ) T, |
| 40 | HasDerivWithinAt (extendPath T hT p) (q t) (Icc (0 : ℝ) T) t) |
| 41 | |
| 42 | include hder in |
| 43 | /-- The exact time-integral identity holds after every actual spatial translation. -/ |
| 44 | theorem path_integral_identity (a : Space) : |
| 45 | pathTranslation T a p = initialValueMap T hT (pathTranslation T a p) + |
| 46 | integral T hT (pathTranslation T a q) := by |
| 47 | have hd (t : Icc (0 : ℝ) T) : |
| 48 | HasDerivWithinAt (extendPath T hT (pathTranslation T a p)) |
| 49 | (pathTranslation T a q t) (Icc (0 : ℝ) T) t := |
| 50 | (translation a).toContinuousLinearMap.hasFDerivAt.comp_hasDerivWithinAt (t : ℝ) (hder t) |
| 51 | apply ContinuousMap.ext |
| 52 | intro t |
| 53 | have h := eq_initial_add_integral T hT (pathTranslation T a q) |
| 54 | (extendPath T hT (pathTranslation T a p)) hd t |
| 55 | change pathTranslation T a p t = pathTranslation T a p ⟨0, le_rfl, hT⟩ + |
| 56 | integral T hT (pathTranslation T a q) t |
| 57 | simpa only [extendPath, projIcc_of_mem hT t.property, |
| 58 | projIcc_of_mem hT ⟨le_rfl, hT⟩] using h |
| 59 | |
| 60 | variable (hp : ContDiff ℝ ∞ (fun a : Space => pathTranslation T a p)) |
| 61 | (hq : ContDiff ℝ ∞ (fun a : Space => pathTranslation T a q)) |
| 62 | |
| 63 | include hder hp hq in |
| 64 | /-- Every genuine spatial jet satisfies the same exact bounded time-integral identity. -/ |
| 65 | theorem spatialJetPath_integral_identity (n : ℕ) (v : Fin n → Space) : |
| 66 | iteratedFDeriv ℝ n (fun a : Space => pathTranslation T a p) 0 v = |
| 67 | initialValueMap T hT (iteratedFDeriv ℝ n (fun a : Space => pathTranslation T a p) 0 v) + |
| 68 | integral T hT (iteratedFDeriv ℝ n (fun a : Space => pathTranslation T a q) 0 v) := by |
| 69 | let P := fun a : Space => pathTranslation T a p |
| 70 | let Q := fun a : Space => pathTranslation T a q |
| 71 | let K := initialValueMap T hT |
| 72 | let J := integral (E := L2) T hT |
| 73 | have hKP : ContDiff ℝ ∞ (K ∘ P) := K.contDiff.comp hp |
| 74 | have hJQ : ContDiff ℝ ∞ (J ∘ Q) := J.contDiff.comp hq |
| 75 | have hfun : P = (K ∘ P)+(J ∘ Q) := |
| 76 | funext (fun a => path_integral_identity T hT p q hder a) |
| 77 | have hD := congrArg (fun g : Space → C(Icc (0 : ℝ) T,L2) => iteratedFDeriv ℝ n g 0 v) hfun |
| 78 | have hs := congrArg (fun D : Space [×n]→L[ℝ] C(Icc (0 : ℝ) T,L2) => D v) |
| 79 | (iteratedFDeriv_add_apply (x := (0 : Space)) |
| 80 | (hKP.contDiffAt.of_le (by simp)) (hJQ.contDiffAt.of_le (by simp))) |
| 81 | have hK := congrArg (fun D : Space [×n]→L[ℝ] C(Icc (0 : ℝ) T,L2) => D v) |
| 82 | (K.iteratedFDeriv_comp_left (x := (0 : Space)) hp.contDiffAt (by simp)) |
| 83 | have hJ := congrArg (fun D : Space [×n]→L[ℝ] C(Icc (0 : ℝ) T,L2) => D v) |
| 84 | (J.iteratedFDeriv_comp_left (x := (0 : Space)) hq.contDiffAt (by simp)) |
| 85 | exact hD.trans (hs.trans (congrArg₂ (fun x y : C(Icc (0 : ℝ) T,L2) => x+y) hK hJ)) |
| 86 | |
| 87 | include hder hp hq in |
| 88 | /-- Every actual spatial jet has the time derivative obtained by differentiating q. -/ |
| 89 | theorem spatialJetPath_hasDerivWithinAt (n : ℕ) (v : Fin n → Space) (t : Icc (0 : ℝ) T) : |
| 90 | HasDerivWithinAt |
| 91 | (extendPath T hT (iteratedFDeriv ℝ n (fun a : Space => pathTranslation T a p) 0 v)) |
| 92 | (iteratedFDeriv ℝ n (fun a : Space => pathTranslation T a q) 0 v t) (Icc (0 : ℝ) T) t := by |
| 93 | let P := iteratedFDeriv ℝ n (fun a : Space => pathTranslation T a p) 0 v |
| 94 | let Q := iteratedFDeriv ℝ n (fun a : Space => pathTranslation T a q) 0 v |
| 95 | have heq : P = initialValueMap T hT P + integral T hT Q := |
| 96 | spatialJetPath_integral_identity T hT p q hder hp hq n v |
| 97 | have hd := (integral_hasDerivWithinAt T hT Q t).const_add (P ⟨0, le_rfl, hT⟩) |
| 98 | have hfun : extendPath T hT P = |
| 99 | fun r => P ⟨0, le_rfl, hT⟩+extendPath T hT (integral T hT Q) r := by |
| 100 | funext r |
| 101 | exact congrArg (fun f : C(Icc (0 : ℝ) T,L2) => f (projIcc 0 T hT r)) heq |
| 102 | rw [hfun] |
| 103 | exact hd |
| 104 | |
| 105 | private theorem hasDerivWithinAt_submodule_iff {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 106 | (S : Submodule ℝ E) (f : ℝ → S) (v : S) (U : Set ℝ) (t : ℝ) : |
| 107 | HasDerivWithinAt f v U t ↔ HasDerivWithinAt (fun s => (f s : E)) (v : E) U t := by |
| 108 | rw [hasDerivWithinAt_iff_tendsto, hasDerivWithinAt_iff_tendsto] |
| 109 | rfl |
| 110 | |
| 111 | private local instance : Fact (0 < (1 : ℝ)) := ⟨by norm_num⟩ |
| 112 | |
| 113 | include hder hp hq in |
| 114 | /-- The complete finite Sobolev array has the actual time derivative; no |
| 115 | separate mixed-jet assumption is needed. -/ |
| 116 | theorem ordinarySobolev_hasDerivWithinAt (k : ℕ) (t : Icc (0 : ℝ) T) : |
| 117 | HasDerivWithinAt |
| 118 | (fun r => ordinarySobolev k (extendPath T hT p r) |
| 119 | (pathTranslation_evaluation_contDiff T p hp (projIcc 0 T hT r))) |
| 120 | (ordinarySobolev k (q t) (pathTranslation_evaluation_contDiff T q hq t)) |
| 121 | (Icc (0 : ℝ) T) t := by |
| 122 | apply (hasDerivWithinAt_submodule_iff (sobolevSubspace 1 k).toSubmodule _ _ _ _).mpr |
| 123 | apply hasDerivWithinAt_pi.mpr |
| 124 | intro w |
| 125 | have hd := ordinaryLift.toContinuousLinearMap.hasFDerivAt.comp_hasDerivWithinAt (t : ℝ) |
| 126 | (spatialJetPath_hasDerivWithinAt T hT p q hder hp hq w.1.val (coordinateTuple w.2) t) |
| 127 | simpa only [ordinarySobolev_coordinate, extendPath, |
| 128 | path_orbit_tensor_evaluation T p hp, path_orbit_tensor_evaluation T q hq, |
| 129 | ContinuousLinearMap.compContinuousMultilinearMap_coe, ContinuousMap.evalCLM_apply, |
| 130 | Function.comp_def, LinearIsometry.coe_toContinuousLinearMap] using hd |
| 131 | |
| 132 | include hder hp hq in |
| 133 | /-- The smooth ordinary-space representative has the actual classical time |
| 134 | derivative represented by q, including within-interval endpoint derivatives. -/ |
| 135 | theorem representative_hasDerivWithinAt (t : Icc (0 : ℝ) T) (x : Space) : |
| 136 | HasDerivWithinAt |
| 137 | (fun r => representative (extendPath T hT p r) |
| 138 | (pathTranslation_evaluation_contDiff T p hp (projIcc 0 T hT r)) x) |
| 139 | (representative (q t) (pathTranslation_evaluation_contDiff T q hq t) x) |
| 140 | (Icc (0 : ℝ) T) t := by |
| 141 | have hd := (pointEvaluation 1 (x, 0)).hasFDerivAt.comp_hasDerivWithinAt (t : ℝ) |
| 142 | (ordinarySobolev_hasDerivWithinAt T hT p q hder hp hq 3 t) |
| 143 | convert hd using 1 <;> try rfl |
| 144 | · funext r |
| 145 | exact (pointEvaluation_ordinary _ _ _).symm |
| 146 | · exact (pointEvaluation_ordinary _ _ _).symm |
| 147 | |
| 148 | end EulerMeanPathTimeDerivative |