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.OrdinaryH3Energy |
| 2 | import Euler.OrdinaryWordTime |
| 3 | import Euler.SmoothEulerEvolution |
| 4 | |
| 5 | /-! Actual Euler evolutions and their genuine H³ difference-energy law. |
| 6 | The record contains only the fields, their classical Euler equation, |
| 7 | the Helmholtz constraints, and continuity of their ordinary L² jets. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerOrdinarySobolev |
| 12 | |
| 13 | open Set MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerLpTranslation |
| 14 | EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerMeanClassical |
| 15 | EulerVolterraConvolution Finset |
| 16 | open scoped ContDiff |
| 17 | |
| 18 | private local instance : NormedAddCommGroup Space := inferInstance |
| 19 | private local instance : NormedSpace ℝ Space := inferInstance |
| 20 | |
| 21 | structure Evolution (T : ℝ) (hT : 0 ≤ T) where |
| 22 | velocity : Icc (0 : ℝ) T → SmoothL2Field Space |
| 23 | pressureForce : Icc (0 : ℝ) T → SmoothL2Field Space |
| 24 | velocity_continuous : ∀ n, Continuous (fun t => (velocity t).jetLp n) |
| 25 | pressure_continuous : ∀ n, Continuous (fun t => (pressureForce t).jetLp n) |
| 26 | solenoidal : ∀ t, (velocity t).toLp ∈ solenoidalSpace |
| 27 | gradient : ∀ t, (pressureForce t).toLp ∈ gradientSpace |
| 28 | time_law : ∀ t (ht : t ∈ Ioo 0 T) x, |
| 29 | HasDerivAt (fun r => (velocity (projIcc 0 T hT r)).field x) |
| 30 | (-fderiv ℝ (velocity ⟨t,ht.1.le,ht.2.le⟩).field x |
| 31 | ((velocity ⟨t,ht.1.le,ht.2.le⟩).field x)- |
| 32 | (pressureForce ⟨t,ht.1.le,ht.2.le⟩).field x) t |
| 33 | |
| 34 | def evolutionOfClassical (T : ℝ) (hT : 0 ≤ T) |
| 35 | (U G : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 36 | (hU : ∀ n, Continuous (fun t => (U t).jetLp n)) |
| 37 | (hG : ∀ n, Continuous (fun t => (G t).jetLp n)) |
| 38 | (u : ℝ × Space → Space) (p : ℝ × Space → ℝ) |
| 39 | (hu : ∀ (t : Icc (0 : ℝ) T) x, u (t,x)=(U t).field x) |
| 40 | (hp : ∀ (t : Icc (0 : ℝ) T), Differentiable ℝ (fun x => p (t,x))) |
| 41 | (hg : ∀ (t : Icc (0 : ℝ) T) x, gradient (fun y => p (t,y)) x=(G t).field x) |
| 42 | (hdiv : ∀ t x, divergence (U t).field x=0) |
| 43 | (hdiff : ∀ t ∈ Ioo 0 T, ∀ x, DifferentiableAt ℝ u (t,x)) |
| 44 | (heuler : ∀ t ∈ Ioo 0 T, ∀ x, EulerLagrangian.momentumResidual u p (t,x)=0) : |
| 45 | Evolution T hT where |
| 46 | velocity := U |
| 47 | pressureForce := G |
| 48 | velocity_continuous := hU |
| 49 | pressure_continuous := hG |
| 50 | solenoidal t := smooth_mem_solenoidal (U t).field (U t).smooth (U t).memLp (hdiv t) |
| 51 | gradient t := gradient_mem (G t) (fun x => p (t,x)) |
| 52 | (potential_smooth (G t) _ (hp t) (fun x => (hg t x).symm)) (fun x => (hg t x).symm) |
| 53 | time_law := EulerSmoothEulerEvolution.pointwise_time_derivative_of_classical T hT U G |
| 54 | u p hu hg hdiff heuler |
| 55 | |
| 56 | theorem continuous_jet_fieldSub {K : Type*} [TopologicalSpace K] |
| 57 | (A B : K → SmoothL2Field Space) |
| 58 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) |
| 59 | (hB : ∀ n, Continuous (fun t => (B t).jetLp n)) (n : ℕ) : |
| 60 | Continuous (fun t => (fieldSub (A t) (B t)).jetLp n) := |
| 61 | continuous_jetLp_addField A (fun t => fieldNeg (B t)) hA |
| 62 | (continuous_jetLp_mapField _ B hB) n |
| 63 | |
| 64 | namespace Evolution |
| 65 | |
| 66 | variable {T : ℝ} {hT : 0 ≤ T} |
| 67 | |
| 68 | def derivative (U : Evolution T hT) : Icc (0 : ℝ) T → SmoothL2Field Space := |
| 69 | EulerSmoothEulerEvolution.rhs U.velocity U.velocity_continuous U.pressureForce |
| 70 | |
| 71 | theorem derivative_field (U : Evolution T hT) (t : Icc (0 : ℝ) T) (x : Space) : |
| 72 | (U.derivative t).field x = -fderiv ℝ (U.velocity t).field x ((U.velocity t).field x)- |
| 73 | (U.pressureForce t).field x := |
| 74 | EulerSmoothEulerEvolution.rhs_field U.velocity U.velocity_continuous U.pressureForce t x |
| 75 | |
| 76 | theorem derivative_continuous (U : Evolution T hT) (n : ℕ) : |
| 77 | Continuous (fun t => (U.derivative t).jetLp n) := |
| 78 | EulerSmoothEulerEvolution.rhs_jet_continuous U.velocity U.velocity_continuous |
| 79 | U.pressureForce U.pressure_continuous n |
| 80 | |
| 81 | def difference (U V : Evolution T hT) (t : Icc (0 : ℝ) T) : SmoothL2Field Space := |
| 82 | fieldSub (V.velocity t) (U.velocity t) |
| 83 | |
| 84 | def pressureDifference (U V : Evolution T hT) (t : Icc (0 : ℝ) T) : SmoothL2Field Space := |
| 85 | fieldSub (V.pressureForce t) (U.pressureForce t) |
| 86 | |
| 87 | def differenceDerivative (U V : Evolution T hT) (t : Icc (0 : ℝ) T) : SmoothL2Field Space := |
| 88 | fieldSub (V.derivative t) (U.derivative t) |
| 89 | |
| 90 | theorem difference_continuous (U V : Evolution T hT) (n : ℕ) : |
| 91 | Continuous (fun t => (U.difference V t).jetLp n) := |
| 92 | continuous_jet_fieldSub V.velocity U.velocity V.velocity_continuous U.velocity_continuous n |
| 93 | |
| 94 | theorem differenceDerivative_continuous (U V : Evolution T hT) (n : ℕ) : |
| 95 | Continuous (fun t => (U.differenceDerivative V t).jetLp n) := |
| 96 | continuous_jet_fieldSub V.derivative U.derivative V.derivative_continuous U.derivative_continuous n |
| 97 | |
| 98 | theorem differenceDerivative_eq (U V : Evolution T hT) (t : Icc (0 : ℝ) T) : |
| 99 | U.differenceDerivative V t = |
| 100 | differenceRhs (U.velocity t) (U.difference V t) (U.pressureDifference V t) := by |
| 101 | apply field_ext |
| 102 | funext x |
| 103 | have he : (U.difference V t).field=(V.velocity t).field-(U.velocity t).field := |
| 104 | funext (fieldSub_field (V.velocity t) (U.velocity t)) |
| 105 | rw [differenceRhs_field,he,fderiv_sub ((V.velocity t).smooth.differentiable (by simp) x) |
| 106 | ((U.velocity t).smooth.differentiable (by simp) x)] |
| 107 | simp only [differenceDerivative,pressureDifference,fieldSub_field, |
| 108 | derivative_field,Pi.sub_apply,sub_apply,map_sub] |
| 109 | abel_nf |
| 110 | |
| 111 | theorem difference_time_law (U V : Evolution T hT) : |
| 112 | ∀ t (ht : t ∈ Ioo 0 T) x, |
| 113 | HasDerivAt (fun r => (U.difference V (projIcc 0 T hT r)).field x) |
| 114 | ((U.differenceDerivative V ⟨t,ht.1.le,ht.2.le⟩).field x) t := by |
| 115 | intro t ht x |
| 116 | have h := (V.time_law t ht x).sub (U.time_law t ht x) |
| 117 | convert! h using 1 |
| 118 | simp only [differenceDerivative,fieldSub_field,derivative_field] |
| 119 | |
| 120 | def energyPath (U V : Evolution T hT) : C(Icc (0 : ℝ) T,ℝ) := |
| 121 | ⟨fun t => wordEnergy 3 (U.difference V t),wordEnergy_continuous _ (U.difference_continuous V) 3⟩ |
| 122 | |
| 123 | def energyDerivative (U V : Evolution T hT) (t : Icc (0 : ℝ) T) : ℝ := |
| 124 | energyProduction (U.difference V t) (U.differenceDerivative V t) |
| 125 | |
| 126 | theorem energy_hasDerivWithinAt (U V : Evolution T hT) (t : Icc (0 : ℝ) T) : |
| 127 | HasDerivWithinAt (extendPath T hT (U.energyPath V)) (U.energyDerivative V t) |
| 128 | (Icc (0 : ℝ) T) t := |
| 129 | wordEnergy_hasDerivWithinAt T hT (U.difference V) (U.differenceDerivative V) |
| 130 | (U.difference_continuous V) (U.differenceDerivative_continuous V) (U.difference_time_law V) 3 t |
| 131 | |
| 132 | theorem energyDerivative_bound (U V : Evolution T hT) (M : ℝ) |
| 133 | (hM : ∀ t, WordBound 4 M (U.velocity t)) (t : Icc (0 : ℝ) T) : |
| 134 | U.energyDerivative V t ≤ 3600*h3ProductConstant*(M+Real.sqrt (U.energyPath V t))*U.energyPath V t := by |
| 135 | rw [energyDerivative,differenceDerivative_eq] |
| 136 | apply difference_energy_bound _ _ _ M (hM t) |
| 137 | · have he : (addField (U.velocity t) (U.difference V t)).field=(V.velocity t).field := by |
| 138 | funext x |
| 139 | simp only [addField_field,difference,fieldSub_field] |
| 140 | abel |
| 141 | rw [he] |
| 142 | exact solenoidal_representative_divergence _ (V.solenoidal t) _ (V.velocity t).smooth |
| 143 | (V.velocity t).toLp_ae |
| 144 | · rw [difference,toLp_fieldSub] |
| 145 | exact solenoidalSpace.sub_mem (V.solenoidal t) (U.solenoidal t) |
| 146 | · rw [pressureDifference,toLp_fieldSub] |
| 147 | exact gradientSpace.sub_mem (V.gradient t) (U.gradient t) |
| 148 | |
| 149 | end Evolution |
| 150 | end EulerOrdinarySobolev |