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.SmoothFieldSobolevTime |
| 2 | import Euler.LpSmoothCoefficientContinuity |
| 3 | |
| 4 | /-! The classical Euler equation supplies strong evolution in every |
| 5 | Sobolev norm once the actual velocity and pressure-gradient L² jets are |
| 6 | continuous. The advection field and its regularity are constructed here. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerSmoothEulerEvolution |
| 11 | |
| 12 | open Set Filter MeasureTheory EulerSmoothLimit EulerLpTranslation |
| 13 | EulerLpTranslation.SmoothL2Field EulerLpSmoothCoefficientProduct |
| 14 | EulerMeanSobolevBoundedField EulerSmoothFieldSobolevTime EulerVolterraConvolution |
| 15 | open scoped ContDiff Topology |
| 16 | |
| 17 | variable {K : Type*} [TopologicalSpace K] [CompactSpace K] |
| 18 | |
| 19 | def advection (U : K → SmoothL2Field Space) |
| 20 | (hU : ∀ n, Continuous (fun t => (U t).jetLp n)) (t : K) : SmoothL2Field Space := |
| 21 | product (coefficientPath (fun s => (U s).derivative) (continuous_jetLp_derivative U hU)) t (U t) |
| 22 | |
| 23 | theorem advection_field (U : K → SmoothL2Field Space) |
| 24 | (hU : ∀ n, Continuous (fun t => (U t).jetLp n)) (t : K) (x : Space) : |
| 25 | (advection U hU t).field x = fderiv ℝ (U t).field x ((U t).field x) := by |
| 26 | rw [advection,product_field,coefficientPath_apply] |
| 27 | rfl |
| 28 | |
| 29 | theorem advection_jet_continuous (U : K → SmoothL2Field Space) |
| 30 | (hU : ∀ n, Continuous (fun t => (U t).jetLp n)) (n : ℕ) : |
| 31 | Continuous (fun t => (advection U hU t).jetLp n) := |
| 32 | continuous_product_jet _ U hU n |
| 33 | |
| 34 | def rhs (U : K → SmoothL2Field Space) |
| 35 | (hU : ∀ n, Continuous (fun t => (U t).jetLp n)) |
| 36 | (G : K → SmoothL2Field Space) (t : K) : SmoothL2Field Space := |
| 37 | mapField (-(ContinuousLinearMap.id ℝ Space)) (addField (advection U hU t) (G t)) |
| 38 | |
| 39 | theorem rhs_field (U : K → SmoothL2Field Space) |
| 40 | (hU : ∀ n, Continuous (fun t => (U t).jetLp n)) |
| 41 | (G : K → SmoothL2Field Space) (t : K) (x : Space) : |
| 42 | (rhs U hU G t).field x = -fderiv ℝ (U t).field x ((U t).field x)-(G t).field x := by |
| 43 | rw [rhs,mapField_field,addField_field,advection_field, |
| 44 | neg_apply,ContinuousLinearMap.id_apply] |
| 45 | abel |
| 46 | |
| 47 | theorem rhs_jet_continuous (U : K → SmoothL2Field Space) |
| 48 | (hU : ∀ n, Continuous (fun t => (U t).jetLp n)) |
| 49 | (G : K → SmoothL2Field Space) (hG : ∀ n, Continuous (fun t => (G t).jetLp n)) (n : ℕ) : |
| 50 | Continuous (fun t => (rhs U hU G t).jetLp n) := |
| 51 | continuous_jetLp_mapField _ _ |
| 52 | (continuous_jetLp_addField _ _ (advection_jet_continuous U hU) hG) n |
| 53 | |
| 54 | variable (T : ℝ) (hT : 0 ≤ T) |
| 55 | (U G : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 56 | (hU : ∀ n, Continuous (fun t => (U t).jetLp n)) |
| 57 | (hG : ∀ n, Continuous (fun t => (G t).jetLp n)) |
| 58 | |
| 59 | theorem sobolev_evolution |
| 60 | (hd : ∀ t (ht : t ∈ Ioo 0 T) x, |
| 61 | HasDerivAt (fun r => (U (projIcc 0 T hT r)).field x) |
| 62 | (-fderiv ℝ (U ⟨t,ht.1.le,ht.2.le⟩).field x ((U ⟨t,ht.1.le,ht.2.le⟩).field x)- |
| 63 | (G ⟨t,ht.1.le,ht.2.le⟩).field x) t) |
| 64 | (q : ℕ) (t : Icc (0 : ℝ) T) : |
| 65 | HasDerivWithinAt (extendPath T hT (sobolevPath U hU q)) |
| 66 | (sobolevPath (rhs U hU G) (rhs_jet_continuous U hU G hG) q t) |
| 67 | (Icc (0 : ℝ) T) t := by |
| 68 | apply sobolevPath_hasDerivWithinAt T hT U (rhs U hU G) hU (rhs_jet_continuous U hU G hG) |
| 69 | intro r hr x |
| 70 | rw [rhs_field] |
| 71 | exact hd r hr x |
| 72 | |
| 73 | theorem pointwise_time_derivative_of_classical |
| 74 | (u : ℝ × Space → Space) (p : ℝ × Space → ℝ) |
| 75 | (hmatch : ∀ (t : Icc (0 : ℝ) T) x, u (t,x)=(U t).field x) |
| 76 | (hgradient : ∀ (t : Icc (0 : ℝ) T) x, gradient (fun y => p (t,y)) x=(G t).field x) |
| 77 | (hdiff : ∀ t ∈ Ioo 0 T, ∀ x, DifferentiableAt ℝ u (t,x)) |
| 78 | (heuler : ∀ t ∈ Ioo 0 T, ∀ x, EulerLagrangian.momentumResidual u p (t,x)=0) |
| 79 | (t : ℝ) (ht : t ∈ Ioo 0 T) (x : Space) : |
| 80 | HasDerivAt (fun r => (U (projIcc 0 T hT r)).field x) |
| 81 | (-fderiv ℝ (U ⟨t,ht.1.le,ht.2.le⟩).field x ((U ⟨t,ht.1.le,ht.2.le⟩).field x)- |
| 82 | (G ⟨t,ht.1.le,ht.2.le⟩).field x) t := by |
| 83 | let s : Icc (0 : ℝ) T := ⟨t,ht.1.le,ht.2.le⟩ |
| 84 | have hu := (hdiff t ht x).hasFDerivAt |
| 85 | have hv := hu.comp_hasDerivAt t ((hasDerivAt_id t).prodMk (hasDerivAt_const t x)) |
| 86 | have hs : (fun y => u (t,y))=(U s).field := funext (hmatch s) |
| 87 | have hx : fderiv ℝ u (t,x) (0,(U s).field x) = |
| 88 | fderiv ℝ (U s).field x ((U s).field x) := by |
| 89 | have h := (hu.comp x (hasFDerivAt_prodMk_right t x)).fderiv |
| 90 | simp only [Function.comp_def] at h |
| 91 | rw [hs] at h |
| 92 | exact (congrArg (fun A : Space →L[ℝ] Space => A ((U s).field x)) h).symm |
| 93 | have he := heuler t ht x |
| 94 | change fderiv ℝ u (t,x) (1,u (t,x))+gradient (fun y => p (t,y)) x=0 at he |
| 95 | have hp : ((1 : ℝ),u (t,x)) = (1,0)+(0,u (t,x)) := by simp |
| 96 | rw [hp,map_add,hmatch s x,hx,hgradient s x] at he |
| 97 | have htval : fderiv ℝ u (t,x) (1,0) = |
| 98 | -fderiv ℝ (U s).field x ((U s).field x)-(G s).field x := by |
| 99 | have h := eq_neg_of_add_eq_zero_left (show fderiv ℝ u (t,x) (1,0)+ |
| 100 | (fderiv ℝ (U s).field x ((U s).field x)+(G s).field x)=0 from by |
| 101 | simpa only [add_assoc] using he) |
| 102 | rw [h] |
| 103 | abel |
| 104 | have hv' : HasDerivAt (fun r => u (r,x)) |
| 105 | (-fderiv ℝ (U s).field x ((U s).field x)-(G s).field x) t := by |
| 106 | simpa only [Function.comp_def,id_eq,htval] using hv |
| 107 | apply hv'.congr_of_eventuallyEq |
| 108 | filter_upwards [Ioo_mem_nhds ht.1 ht.2] with r hr |
| 109 | rw [projIcc_of_mem hT ⟨hr.1.le,hr.2.le⟩] |
| 110 | exact (hmatch ⟨r,hr.1.le,hr.2.le⟩ x).symm |
| 111 | |
| 112 | theorem sobolev_evolution_of_classical |
| 113 | (u : ℝ × Space → Space) (p : ℝ × Space → ℝ) |
| 114 | (hmatch : ∀ (t : Icc (0 : ℝ) T) x, u (t,x)=(U t).field x) |
| 115 | (hgradient : ∀ (t : Icc (0 : ℝ) T) x, gradient (fun y => p (t,y)) x=(G t).field x) |
| 116 | (hdiff : ∀ t ∈ Ioo 0 T, ∀ x, DifferentiableAt ℝ u (t,x)) |
| 117 | (heuler : ∀ t ∈ Ioo 0 T, ∀ x, EulerLagrangian.momentumResidual u p (t,x)=0) |
| 118 | (q : ℕ) (t : Icc (0 : ℝ) T) : |
| 119 | HasDerivWithinAt (extendPath T hT (sobolevPath U hU q)) |
| 120 | (sobolevPath (rhs U hU G) (rhs_jet_continuous U hU G hG) q t) |
| 121 | (Icc (0 : ℝ) T) t := |
| 122 | sobolev_evolution T hT U G hU hG |
| 123 | (pointwise_time_derivative_of_classical T hT U G u p hmatch hgradient hdiff heuler) q t |
| 124 | |
| 125 | end EulerSmoothEulerEvolution |