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.OrdinarySmoothingOperator |
| 2 | import Euler.OrdinaryAdvectionLimit |
| 3 | import Euler.HilbertQuadraticFlow |
| 4 | import Euler.OrdinaryStrongTime |
| 5 | import Euler.ContinuousTimeIntegral |
| 6 | |
| 7 | /-! The regularized L² flow has genuine smooth spatial representatives, |
| 8 | continuous jets of every order, and its true time derivative. -/ |
| 9 | |
| 10 | /-! ## From `Euler/OrdinaryRegularizedEquation.lean` |
| 11 | |
| 12 | The text of `Euler/OrdinaryRegularizedEquation.lean`, folded into this file, which was its only importer. -/ |
| 13 | |
| 14 | section |
| 15 | |
| 16 | /-! A genuine global L² solution of the symmetric regularized Euler |
| 17 | equation. The vector field is a bounded bilinear map and its actual |
| 18 | L² energy vanishes by noncompact transport cancellation. -/ |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | namespace EulerOrdinarySobolev |
| 23 | |
| 24 | open Set Filter MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 25 | EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal |
| 26 | EulerMeanClassical Finset |
| 27 | open scoped ContDiff Topology |
| 28 | |
| 29 | theorem advection_add_left (A B C : SmoothL2Field Space) : |
| 30 | advectionField (addField A B) C=addField (advectionField A C) (advectionField B C) := by |
| 31 | apply field_ext |
| 32 | exact funext (fun x => by simp only [advectionField_field,addField_field,map_add]) |
| 33 | |
| 34 | theorem advection_add_right (A B C : SmoothL2Field Space) : |
| 35 | advectionField A (addField B C)=addField (advectionField A B) (advectionField A C) := by |
| 36 | apply field_ext |
| 37 | funext x |
| 38 | have he : (addField B C).field=B.field+C.field := rfl |
| 39 | simp only [advectionField_field,addField_field,he, |
| 40 | fderiv_add (B.smooth.differentiable (by simp) x) (C.smooth.differentiable (by simp) x),add_apply] |
| 41 | |
| 42 | theorem advection_smul_left (c : ℝ) (A B : SmoothL2Field Space) : |
| 43 | advectionField (scaleField c A) B=scaleField c (advectionField A B) := by |
| 44 | apply field_ext |
| 45 | exact funext (fun x => by simp only [advectionField_field,scaleField_field,map_smul]) |
| 46 | |
| 47 | theorem advection_smul_right (c : ℝ) (A B : SmoothL2Field Space) : |
| 48 | advectionField A (scaleField c B)=scaleField c (advectionField A B) := by |
| 49 | apply field_ext |
| 50 | exact funext (fun x => by |
| 51 | simp only [advectionField_field,scaleField_field,scaleField_fderiv,smul_apply]) |
| 52 | |
| 53 | namespace SmoothingOperator |
| 54 | |
| 55 | variable (S : SmoothingOperator) |
| 56 | |
| 57 | def advectionLinear : L2 →ₗ[ℝ] L2 →ₗ[ℝ] L2 where |
| 58 | toFun u := |
| 59 | { toFun v := (advectionField (S.field u) (S.field v)).toLp |
| 60 | map_add' v w := by rw [S.field_add,advection_add_right,toLp_addField] |
| 61 | map_smul' c v := by rw [S.field_smul,advection_smul_right,scaleField_toLp]; rfl } |
| 62 | map_add' u v := by |
| 63 | apply LinearMap.ext |
| 64 | intro w |
| 65 | change (advectionField (S.field (u+v)) (S.field w)).toLp = |
| 66 | (advectionField (S.field u) (S.field w)).toLp + |
| 67 | (advectionField (S.field v) (S.field w)).toLp |
| 68 | rw [S.field_add,advection_add_left,toLp_addField] |
| 69 | map_smul' c u := by |
| 70 | apply LinearMap.ext |
| 71 | intro v |
| 72 | change (advectionField (S.field (c • u)) (S.field v)).toLp = |
| 73 | c • (advectionField (S.field u) (S.field v)).toLp |
| 74 | rw [S.field_smul,advection_smul_left,scaleField_toLp] |
| 75 | |
| 76 | def advectionCost : ℝ := S.pointwiseCost*‖S.jetMap 1‖ |
| 77 | |
| 78 | theorem advectionLinear_bound (u v : L2) : |
| 79 | ‖S.advectionLinear u v‖ ≤ S.advectionCost*‖u‖*‖v‖ := by |
| 80 | change ‖(advectionField (S.field u) (S.field v)).toLp‖ ≤ _ |
| 81 | apply (advection_norm_velocity (S.field u) (S.field v) _ (S.field_pointwise u)).trans |
| 82 | rw [← (S.field v).derivative.norm_jetLp_zero,(S.field v).norm_derivative_jetLp] |
| 83 | apply (mul_le_mul_of_nonneg_left (S.field_jet_norm v 1) |
| 84 | (mul_nonneg S.pointwiseCost_nonneg (norm_nonneg u))).trans_eq |
| 85 | dsimp [advectionCost] |
| 86 | ring |
| 87 | |
| 88 | def advection : L2 →L[ℝ] L2 →L[ℝ] L2 := |
| 89 | S.advectionLinear.mkContinuous₂ S.advectionCost S.advectionLinear_bound |
| 90 | |
| 91 | @[simp] theorem advection_apply (u v : L2) : |
| 92 | S.advection u v=(advectionField (S.field u) (S.field v)).toLp := rfl |
| 93 | |
| 94 | def quadratic : L2 →L[ℝ] L2 →L[ℝ] L2 := |
| 95 | (ContinuousLinearMap.compL ℝ L2 L2 L2 (-S.op)).comp S.advection |
| 96 | |
| 97 | @[simp] theorem quadratic_apply (u v : L2) : |
| 98 | S.quadratic u v= -S.op (advectionField (S.field u) (S.field v)).toLp := rfl |
| 99 | |
| 100 | theorem field_divergence (u : L2) (x : Space) : divergence (S.field u).field x=0 := |
| 101 | solenoidal_representative_divergence _ (S.solenoidal u) _ (S.field u).smooth |
| 102 | (by simpa only [field_toLp] using (S.field u).toLp_ae) x |
| 103 | |
| 104 | theorem quadratic_energy (u : L2) : ⟪u,S.quadratic u u⟫_ℝ=0 := by |
| 105 | rw [quadratic_apply,inner_neg_right,← S.symmetric,← field_toLp] |
| 106 | rw [real_inner_comm,advection_inner_zero (S.field u) (S.field u) (S.field_divergence u),neg_zero] |
| 107 | |
| 108 | theorem exists_global (u₀ : L2) : |
| 109 | ∃ u : ℝ → L2, u 0=u₀ ∧ (∀ t, HasDerivAt u (S.quadratic (u t) (u t)) t) ∧ |
| 110 | ∀ t, ‖u t‖=‖u₀‖ := |
| 111 | EulerHilbertQuadraticFlow.exists_global_quadratic S.quadratic S.quadratic_energy u₀ |
| 112 | |
| 113 | end SmoothingOperator |
| 114 | end EulerOrdinarySobolev |
| 115 | end |
| 116 | |
| 117 | end |
| 118 | |
| 119 | noncomputable section |
| 120 | |
| 121 | namespace EulerOrdinarySobolev |
| 122 | |
| 123 | open Set Filter MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 124 | EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal |
| 125 | EulerMeanClassical EulerVolterraConvolution EulerContinuousTimeIntegral Finset |
| 126 | open scoped ContDiff Topology |
| 127 | |
| 128 | namespace SmoothingOperator |
| 129 | |
| 130 | variable (S : SmoothingOperator) |
| 131 | |
| 132 | def rhs (u : L2) : SmoothL2Field Space := |
| 133 | fieldNeg (S.field (advectionField (S.field u) (S.field u)).toLp) |
| 134 | |
| 135 | theorem rhs_toLp (u : L2) : (S.rhs u).toLp=S.quadratic u u := by |
| 136 | simp only [rhs,toLp_fieldNeg,field_toLp,quadratic_apply] |
| 137 | |
| 138 | theorem rhs_continuous {K : Type*} [TopologicalSpace K] (u : K → L2) |
| 139 | (hu : Continuous u) (n : ℕ) : Continuous (fun t => (S.rhs (u t)).jetLp n) := by |
| 140 | apply continuous_jetLp_mapField |
| 141 | apply S.field_jet_continuous |
| 142 | exact (S.advection.continuous.comp hu).clm_apply hu |
| 143 | |
| 144 | end SmoothingOperator |
| 145 | |
| 146 | structure RegularizedEvolution (S : SmoothingOperator) (T : ℝ) (hT : 0 ≤ T) where |
| 147 | velocity : Icc (0 : ℝ) T → SmoothL2Field Space |
| 148 | velocity_continuous : ∀ n, Continuous (fun t => (velocity t).jetLp n) |
| 149 | solenoidal : ∀ t, (velocity t).toLp ∈ solenoidalSpace |
| 150 | time_law : ∀ t (ht : t ∈ Ioo 0 T), |
| 151 | HasDerivAt (fun r => (velocity (projIcc 0 T hT r)).toLp) |
| 152 | (S.quadratic (velocity ⟨t,ht.1.le,ht.2.le⟩).toLp (velocity ⟨t,ht.1.le,ht.2.le⟩).toLp) t |
| 153 | |
| 154 | namespace RegularizedEvolution |
| 155 | |
| 156 | variable {S : SmoothingOperator} {T : ℝ} {hT : 0 ≤ T} (U : RegularizedEvolution S T hT) |
| 157 | |
| 158 | def derivative (t : Icc (0 : ℝ) T) : SmoothL2Field Space := S.rhs (U.velocity t).toLp |
| 159 | |
| 160 | theorem derivative_continuous (n : ℕ) : Continuous (fun t => (U.derivative t).jetLp n) := |
| 161 | S.rhs_continuous _ (fieldPath U.velocity U.velocity_continuous).continuous n |
| 162 | |
| 163 | theorem pointwise_time (t : Icc (0 : ℝ) T) (x : Space) : |
| 164 | HasDerivWithinAt (fun r => (U.velocity (projIcc 0 T hT r)).field x) |
| 165 | ((U.derivative t).field x) (Icc (0 : ℝ) T) t := by |
| 166 | apply pointwise_derivative_of_l2 T hT U.velocity U.derivative |
| 167 | U.velocity_continuous U.derivative_continuous _ t x |
| 168 | intro r hr |
| 169 | simpa only [derivative,SmoothingOperator.rhs_toLp] using U.time_law r hr |
| 170 | |
| 171 | theorem l2_time (t : Icc (0 : ℝ) T) : |
| 172 | HasDerivWithinAt (fun r => (U.velocity (projIcc 0 T hT r)).toLp) |
| 173 | (U.derivative t).toLp (Icc (0 : ℝ) T) t := by |
| 174 | have h := ordinaryWord_hasDerivWithinAt T hT U.velocity U.derivative |
| 175 | U.velocity_continuous U.derivative_continuous |
| 176 | (fun r hr x => (U.pointwise_time ⟨r,hr.1.le,hr.2.le⟩ x).hasDerivAt (Icc_mem_nhds hr.1 hr.2)) |
| 177 | (n := 0) Fin.elim0 t |
| 178 | simpa only [wordField_zero] using h |
| 179 | |
| 180 | end RegularizedEvolution |
| 181 | |
| 182 | namespace SmoothingOperator |
| 183 | |
| 184 | variable (S : SmoothingOperator) (T : ℝ) (hT : 0 ≤ T) |
| 185 | |
| 186 | theorem exists_smooth (A : SmoothL2Field Space) (hA : A.toLp ∈ solenoidalSpace) : |
| 187 | ∃ U : RegularizedEvolution S T hT, U.velocity ⟨0,le_rfl,hT⟩=A := by |
| 188 | obtain ⟨u,hu0,hu,_huNorm⟩ := S.exists_global A.toLp |
| 189 | have huc : Continuous u := (show Differentiable ℝ u from fun t => (hu t).differentiableAt).continuous |
| 190 | let a : C(Icc (0 : ℝ) T,L2) := |
| 191 | ⟨fun t => S.advection (u t) (u t), |
| 192 | (S.advection.continuous.comp (huc.comp continuous_subtype_val)).clm_apply |
| 193 | (huc.comp continuous_subtype_val)⟩ |
| 194 | let z : C(Icc (0 : ℝ) T,L2) := -integral T hT a |
| 195 | let v : Icc (0 : ℝ) T → SmoothL2Field Space := fun t => addField A (S.field (z t)) |
| 196 | have hv : ∀ t, (v t).toLp=u t := by |
| 197 | intro t |
| 198 | have he := eq_initial_add_integral T hT |
| 199 | ((-S.op).compLeftContinuous ℝ (Icc (0 : ℝ) T) a) u |
| 200 | (fun s => by |
| 201 | change HasDerivWithinAt u (-S.op (S.advection (u s) (u s))) _ _ |
| 202 | exact (hu (s : ℝ)).hasDerivWithinAt) t |
| 203 | have hi : integral T hT ((-S.op).compLeftContinuous ℝ (Icc (0 : ℝ) T) a) t= |
| 204 | S.op (z t) := by |
| 205 | change (∫ r in (0 : ℝ)..(t : ℝ), (-S.op) (extendPath T hT a r))=S.op (z t) |
| 206 | rw [(-S.op).intervalIntegral_comp_comm |
| 207 | ((extendPath_continuous T hT a).intervalIntegrable 0 t)] |
| 208 | change -S.op (realIntegral T hT a t)=S.op (-realIntegral T hT a t) |
| 209 | rw [map_neg] |
| 210 | rw [hu0,hi] at he |
| 211 | simpa only [v,toLp_addField,field_toLp] using he.symm |
| 212 | have hvcont : ∀ n, Continuous (fun t => (v t).jetLp n) := |
| 213 | fun n => continuous_jetLp_addField _ _ (fun _ => continuous_const) |
| 214 | (S.field_jet_continuous z z.continuous) n |
| 215 | have hv0 : v ⟨0,le_rfl,hT⟩=A := by |
| 216 | apply smoothField_eq_of_toLp_eq |
| 217 | rw [hv,hu0] |
| 218 | refine ⟨{ velocity := v |
| 219 | velocity_continuous := hvcont |
| 220 | solenoidal := fun t => ?_ |
| 221 | time_law := fun t ht => ?_ },hv0⟩ |
| 222 | · simpa only [v,toLp_addField,field_toLp] using solenoidalSpace.add_mem hA (S.solenoidal (z t)) |
| 223 | · simp only [hv] |
| 224 | have he : (fun r => u (projIcc 0 T hT r : ℝ)) =ᶠ[𝓝 t] u := by |
| 225 | filter_upwards [Ioo_mem_nhds ht.1 ht.2] with r hr |
| 226 | simp only [projIcc_of_mem hT (show r ∈ Icc 0 T from ⟨hr.1.le,hr.2.le⟩)] |
| 227 | exact (hu t).congr_of_eventuallyEq he |
| 228 | |
| 229 | end SmoothingOperator |
| 230 | end EulerOrdinarySobolev |