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.MeanCylinderWordBounds |
| 2 | import Euler.MeanPacketHomogeneity |
| 3 | import Euler.MeanPacketOrbitForcing |
| 4 | import Euler.MeanSourceTimeSobolev |
| 5 | import Euler.MeanSourcePressureSobolev |
| 6 | import Euler.ParameterSobolevScaling |
| 7 | import Euler.MeanPathLpBlocks |
| 8 | import Euler.MeanPacketPressureForcing |
| 9 | import Euler.MeanPacketJets |
| 10 | import Euler.PacketCylinderCoefficientBounds |
| 11 | |
| 12 | /-! |
| 13 | Source-only budgets for the actual mean solver on the cylinder. The radius |
| 14 | and inverse guards are fixed before the forcing amplitude, shift, or grade. |
| 15 | The output fields are the genuine velocity, time derivative, and gradient |
| 16 | of the normalized scalar pressure constructed by the source solver. |
| 17 | -/ |
| 18 | |
| 19 | /-! ## From `Euler/MeanPacketSobolevData.lean` |
| 20 | |
| 21 | The text of `Euler/MeanPacketSobolevData.lean`, folded into this file, which was its only importer. -/ |
| 22 | |
| 23 | section |
| 24 | |
| 25 | /-! |
| 26 | # Fixed coefficient budgets for the actual mean packet inverse |
| 27 | |
| 28 | These data contain only bounds on the prescribed coefficients and their |
| 29 | fixed inverse costs. The external radius is chosen before the forcing grade |
| 30 | or its scalar envelope, which is restored separately by homogeneity. |
| 31 | -/ |
| 32 | |
| 33 | noncomputable section |
| 34 | |
| 35 | namespace EulerMeanPacketProvider |
| 36 | |
| 37 | open Set EulerSmoothLimit EulerMeanSolenoidal EulerMeanBoundary |
| 38 | EulerMeanSourceFixedInverse EulerMeanFixedSobolevGevrey EulerParameterWordGevrey |
| 39 | EulerTimeLpGramSobolev EulerMeanStrongContinuousGevrey EulerMeanTimeTranslation |
| 40 | EulerMeanTimeContinuousTranslation EulerGevrey |
| 41 | open scoped ContDiff |
| 42 | |
| 43 | /-- Fixed coefficient and inverse budgets, with no conclusion about a solution. -/ |
| 44 | structure SobolevData (D : Data) (ι : Type*) [Fintype ι] (q : ℕ) (R : ℝ) where |
| 45 | Rc : ℝ |
| 46 | M : ℝ |
| 47 | CF : ℝ |
| 48 | CF₁ : ℝ |
| 49 | CH : ℝ |
| 50 | CM : ℝ |
| 51 | Cf : ℝ |
| 52 | radius_lower : 1024 ≤ Rc |
| 53 | inverse_cost_lower : 1 ≤ M |
| 54 | CF_nonneg : 0 ≤ CF |
| 55 | CF₁_nonneg : 0 ≤ CF₁ |
| 56 | CH_nonneg : 0 ≤ CH |
| 57 | CM_nonneg : 0 ≤ CM |
| 58 | Cf_nonneg : 0 ≤ Cf |
| 59 | operator_budget : |
| 60 | sobolevInverseCost (sourceFixedCoercivity D.T D.F D.F₁ D.opInv)⁻¹ |
| 61 | (operatorBlockAmplitude ι q D.T Rc CF CF₁ CH CM scaledBoundaryOperatorAmplitude D.L) q * |
| 62 | operatorBlockAmplitude ι q D.T Rc CF CF₁ CH CM scaledBoundaryOperatorAmplitude D.L ≤ M |
| 63 | forcing_budget : |
| 64 | sobolevInverseCost (sourceFixedCoercivity D.T D.F D.F₁ D.opInv)⁻¹ |
| 65 | (operatorBlockAmplitude ι q D.T Rc CF CF₁ CH CM scaledBoundaryOperatorAmplitude D.L) q * |
| 66 | forcingBlockAmplitude ι q D.T Rc CF CF₁ Cf ≤ M |
| 67 | radius_budget : 2*M*(sobolevCoefficientRadius ι Rc+1) ≤ R |
| 68 | acceleration_budget : |
| 69 | 2*gramBlockCost ι q D.frameLower Rc CF |
| 70 | (accelerationBlockAmplitude ι q Rc CF CF₁ Cf 1)*(sobolevCoefficientRadius ι Rc+1) ≤ R |
| 71 | continuous_acceleration_budget : |
| 72 | 2*gramBlockCost ι q D.frameLower Rc CF |
| 73 | (accelerationBlockAmplitude ι q Rc CF CF₁ Cf (coordinateTraceCost D.T))* |
| 74 | (sobolevCoefficientRadius ι Rc+1) ≤ R |
| 75 | frame_bound : ∀ n t x, |
| 76 | ‖iteratedFDeriv ℝ n (D.F.field t : Space → Space →L[ℝ] Space) x‖ ≤ CF*majorant Rc 0 n |
| 77 | frame_derivative_bound : ∀ n t x, |
| 78 | ‖iteratedFDeriv ℝ n (D.F₁.field t : Space → Space →L[ℝ] Space) x‖ ≤ CF₁*majorant Rc 0 n |
| 79 | curvature_bound : ∀ n t x, |
| 80 | ‖iteratedFDeriv ℝ n (D.H.field t : Space → Space →L[ℝ] Space) x‖ ≤ CH*majorant Rc 0 n |
| 81 | initial_strain_bound : ∀ n x, |
| 82 | ‖iteratedFDeriv ℝ n (D.M0.field : Space → Space →L[ℝ] Space) x‖ ≤ CM*majorant Rc 0 n |
| 83 | |
| 84 | namespace SobolevData |
| 85 | |
| 86 | variable {D : Data} {ι : Type*} [Fintype ι] {q : ℕ} {R : ℝ} |
| 87 | (E : SobolevData D ι q R) |
| 88 | |
| 89 | def velocityAmplitude : ℝ := |
| 90 | 3*sobolevCoefficientAmplitude ι q E.Rc E.CF*coordinateTraceCost D.T |
| 91 | |
| 92 | def derivativeAmplitude : ℝ := |
| 93 | 3*(sobolevCoefficientAmplitude ι q E.Rc E.CF₁*coordinateTraceCost D.T+ |
| 94 | sobolevCoefficientAmplitude ι q E.Rc E.CF) |
| 95 | |
| 96 | def pressureAmplitude : ℝ := |
| 97 | E.Cf+3*sobolevCoefficientAmplitude ι q E.Rc E.CF+ |
| 98 | 6*sobolevCoefficientAmplitude ι q E.Rc E.CF₁*coordinateTraceCost D.T |
| 99 | |
| 100 | /-- The concrete source estimates at the fixed budgets above. -/ |
| 101 | theorem normalized_bounds (directions : ι → Space) (hd : ∀ i, ‖directions i‖ ≤ 1) |
| 102 | {raw : EulerPacketProfileRecursion.VectorField} (G : Forcing D raw) (d : ℕ) |
| 103 | (hfb : ∀ n a, block directions q (fun b : Space => timeTranslation D.T b G.lp) n a ≤ |
| 104 | E.Cf*majorant R d n) |
| 105 | (hfCb : ∀ n a, block directions q (fun b : Space => pathTranslation D.T b G.path) n a ≤ |
| 106 | E.Cf*majorant R d n) : |
| 107 | (∀ n a, block directions q (fun b : Space => pathTranslation D.T b G.velocityPath) n a ≤ |
| 108 | E.velocityAmplitude*majorant R (d+2) n) ∧ |
| 109 | (∀ n a, block directions q (fun b : Space => pathTranslation D.T b G.derivativePath) n a ≤ |
| 110 | E.derivativeAmplitude*majorant R (d+3) n) ∧ |
| 111 | (∀ n a, block directions q (fun b : Space => pathTranslation D.T b G.pressureForcePath) n a ≤ |
| 112 | E.pressureAmplitude*majorant R (d+3) n) := by |
| 113 | have ht := EulerMeanSourceTimeSobolev.source_strong_time_block_bounds directions hd q |
| 114 | D.T D.T_pos.le D.ℓ D.ℓ_pos D.ℓ_le_one D.F D.F₁ D.H D.M0 D.opInv |
| 115 | D.Be D.Bc D.L D.r D.Be_nonneg D.Bc_nonneg D.L_lower D.r_nonneg D.r_le_quarter |
| 116 | D.exterior_lower D.core_lower D.opInv_left D.opF_time D.opInv_right |
| 117 | D.K D.K_nonneg D.opInv_initial D.curvature_upper D.small G.lp G.solution G.lp_orbit |
| 118 | E.Rc R E.M E.CF E.CF₁ E.CH E.CM E.Cf E.radius_lower E.CF_nonneg E.CF₁_nonneg |
| 119 | E.CH_nonneg E.CM_nonneg E.Cf_nonneg E.inverse_cost_lower E.operator_budget E.forcing_budget |
| 120 | E.radius_budget E.frame_bound E.frame_derivative_bound E.curvature_bound E.initial_strain_bound |
| 121 | d hfb E.acceleration_budget E.continuous_acceleration_budget D.T_pos |
| 122 | G.path G.lp_rep G.path_orbit hfCb |
| 123 | have hp := EulerMeanSourcePressureSobolev.source_pressure_block_bounds directions hd q |
| 124 | D.T D.T_pos.le D.ℓ D.ℓ_pos D.ℓ_le_one D.F D.F₁ D.H D.M0 D.opInv |
| 125 | D.Be D.Bc D.L D.r D.Be_nonneg D.Bc_nonneg D.L_lower D.r_nonneg D.r_le_quarter |
| 126 | D.exterior_lower D.core_lower D.opInv_left D.opF_time D.opInv_right |
| 127 | D.K D.K_nonneg D.opInv_initial D.curvature_upper D.small G.lp G.solution G.lp_orbit |
| 128 | E.Rc R E.M E.CF E.CF₁ E.CH E.CM E.Cf E.radius_lower E.CF_nonneg E.CF₁_nonneg |
| 129 | E.CH_nonneg E.CM_nonneg E.Cf_nonneg E.inverse_cost_lower E.operator_budget E.forcing_budget |
| 130 | E.radius_budget E.frame_bound E.frame_derivative_bound E.curvature_bound E.initial_strain_bound |
| 131 | d hfb E.acceleration_budget E.continuous_acceleration_budget D.T_pos |
| 132 | G.path G.path_orbit hfCb |
| 133 | exact ⟨ht.1, ht.2.1, hp.2⟩ |
| 134 | |
| 135 | end SobolevData |
| 136 | end EulerMeanPacketProvider |
| 137 | end |
| 138 | |
| 139 | end |
| 140 | |
| 141 | /-! ## From `Euler/MeanPacketZeroForcing.lean` |
| 142 | |
| 143 | The text of `Euler/MeanPacketZeroForcing.lean`, folded into this file, which was its only importer. -/ |
| 144 | |
| 145 | section |
| 146 | |
| 147 | /-! Zero forcing produces the actual zero velocity, derivative, and pressure force. -/ |
| 148 | |
| 149 | noncomputable section |
| 150 | |
| 151 | namespace EulerMeanPacketProvider.Forcing |
| 152 | |
| 153 | open Set MeasureTheory EulerSmoothLimit EulerMeanSolenoidal EulerPacketProfileRecursion |
| 154 | |
| 155 | variable {D : Data} {raw : VectorField} (G : Forcing D raw) |
| 156 | |
| 157 | theorem raw_zero_of_path_zero (hp : G.path = 0) (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 158 | raw (t,(x,θ)) = 0 := by |
| 159 | have hpt : G.path t = 0 := congrArg (fun p : C(Icc (0 : ℝ) D.T,L2) => p t) hp |
| 160 | have hz : (G.path t : Space → Space) =ᵐ[volume] (fun _ => (0 : Space)) := by |
| 161 | rw [hpt] |
| 162 | exact Lp.coeFn_zero Space 2 volume |
| 163 | have hc : Continuous (fun y => raw (t,(y,θ))) := by |
| 164 | have he : (fun y => raw (t,(y,θ))) = (G.slices t).field := funext (fun y => G.raw_eq t y θ) |
| 165 | rw [he] |
| 166 | exact (G.slices t).smooth.continuous |
| 167 | exact congrFun (Measure.eq_of_ae_eq ((G.path_ae_raw t θ).symm.trans hz) hc continuous_const) x |
| 168 | |
| 169 | theorem paths_zero_of_raw_zero |
| 170 | (hz : ∀ (t : Icc (0 : ℝ) D.T) x θ, raw (t,(x,θ)) = 0) : |
| 171 | G.velocityPath = 0 ∧ G.derivativePath = 0 ∧ G.pressureForcePath = 0 := by |
| 172 | have hs : ∀ (t : Icc (0 : ℝ) D.T) x θ, raw (t,(x,θ)) = (0 : ℝ) • raw (t,(x,θ)) := by |
| 173 | intro t x θ |
| 174 | rw [hz t x θ, zero_smul] |
| 175 | exact ⟨by simpa only [zero_smul] using velocityPath_smul G G 0 hs, |
| 176 | by simpa only [zero_smul] using derivativePath_smul G G 0 hs, |
| 177 | by simpa only [zero_smul] using pressureForcePath_smul G G 0 hs⟩ |
| 178 | |
| 179 | theorem paths_zero_of_path_zero (hp : G.path = 0) : |
| 180 | G.velocityPath = 0 ∧ G.derivativePath = 0 ∧ G.pressureForcePath = 0 := |
| 181 | paths_zero_of_raw_zero G (raw_zero_of_path_zero G hp) |
| 182 | |
| 183 | end EulerMeanPacketProvider.Forcing |
| 184 | end |
| 185 | |
| 186 | end |
| 187 | |
| 188 | /-! ## From `Euler/MeanPacketEnvelopeBounds.lean` |
| 189 | |
| 190 | The text of `Euler/MeanPacketEnvelopeBounds.lean`, folded into this file, which was its only importer. -/ |
| 191 | |
| 192 | section |
| 193 | |
| 194 | /-! |
| 195 | # Mean inverse estimates with an external forcing envelope |
| 196 | |
| 197 | The scalar amplitude is normalized before the actual solve and restored by |
| 198 | proved homogeneity. Every radius condition depends only on the fixed source |
| 199 | data and the fixed normalized forcing scale, never on the recursive grade |
| 200 | or its forcing envelope. Zero envelope is treated by actual zero forcing. |
| 201 | -/ |
| 202 | |
| 203 | noncomputable section |
| 204 | |
| 205 | namespace EulerMeanPacketProvider.SobolevData |
| 206 | |
| 207 | open Set EulerSmoothLimit EulerMeanSolenoidal EulerMeanTimeTranslation |
| 208 | EulerMeanTimeContinuousTranslation EulerParameterWordGevrey EulerGevrey |
| 209 | EulerPacketProfileRecursion |
| 210 | open scoped ContDiff |
| 211 | |
| 212 | variable {D : Data} {ι : Type*} [Fintype ι] {q : ℕ} {R : ℝ} |
| 213 | |
| 214 | /-- The fixed-Hq mean inverse preserves one external radius for arbitrary |
| 215 | nonnegative scalar forcing envelopes. -/ |
| 216 | theorem envelope_bounds (E : SobolevData D ι q R) |
| 217 | (directions : ι → Space) (hd : ∀ i, ‖directions i‖ ≤ 1) |
| 218 | {raw : VectorField} (G : Forcing D raw) (d : ℕ) (A : ℝ) (hA : 0 ≤ A) |
| 219 | (hfb : ∀ n a, block directions q (fun b : Space => timeTranslation D.T b G.lp) n a ≤ |
| 220 | A*(E.Cf*majorant R d n)) |
| 221 | (hfCb : ∀ n a, block directions q (fun b : Space => pathTranslation D.T b G.path) n a ≤ |
| 222 | A*(E.Cf*majorant R d n)) : |
| 223 | (∀ n a, block directions q (fun b : Space => pathTranslation D.T b G.velocityPath) n a ≤ |
| 224 | A*(E.velocityAmplitude*majorant R (d+2) n)) ∧ |
| 225 | (∀ n a, block directions q (fun b : Space => pathTranslation D.T b G.derivativePath) n a ≤ |
| 226 | A*(E.derivativeAmplitude*majorant R (d+3) n)) ∧ |
| 227 | (∀ n a, block directions q (fun b : Space => pathTranslation D.T b G.pressureForcePath) n a ≤ |
| 228 | A*(E.pressureAmplitude*majorant R (d+3) n)) := by |
| 229 | rcases eq_or_lt_of_le hA with hzero | hpos |
| 230 | · subst A |
| 231 | have hv := value_zero_of_block_zero_bound directions q |
| 232 | (fun b : Space => pathTranslation D.T b G.path) 0 (by simpa only [zero_mul] using hfCb 0 0) |
| 233 | have he : pathTranslation D.T 0 G.path = G.path := by |
| 234 | apply ContinuousMap.ext |
| 235 | intro t |
| 236 | exact translation_zero (G.path t) |
| 237 | have hp : G.path = 0 := he.symm.trans hv |
| 238 | have hzero := G.paths_zero_of_path_zero hp |
| 239 | simp only [hzero.1, hzero.2.1, hzero.2.2, map_zero, block_zero_function, zero_mul, |
| 240 | le_refl, implies_true, and_self] |
| 241 | · let H : Forcing D (A⁻¹ • raw) := G.smul A⁻¹ |
| 242 | have hscale : ∀ (t : Icc (0 : ℝ) D.T) x θ, |
| 243 | (A⁻¹ • raw) (t,(x,θ)) = A⁻¹ • raw (t,(x,θ)) := fun _ _ _ => rfl |
| 244 | have hLp : (fun b : Space => timeTranslation D.T b H.lp) = |
| 245 | fun b : Space => A⁻¹ • timeTranslation D.T b G.lp := by |
| 246 | funext b |
| 247 | exact (congrArg (timeTranslation D.T b) (Forcing.lp_smul G H A⁻¹ hscale)).trans |
| 248 | ((timeTranslation D.T b).map_smul A⁻¹ G.lp) |
| 249 | have hPath : (fun b : Space => pathTranslation D.T b H.path) = |
| 250 | fun b : Space => A⁻¹ • pathTranslation D.T b G.path := by |
| 251 | funext b |
| 252 | exact (congrArg (pathTranslation D.T b) (Forcing.path_smul G H A⁻¹ hscale)).trans |
| 253 | ((pathTranslation D.T b).map_smul A⁻¹ G.path) |
| 254 | have hn : ∀ n a, block directions q (fun b : Space => timeTranslation D.T b H.lp) n a ≤ |
| 255 | E.Cf*majorant R d n := by |
| 256 | intro n a |
| 257 | refine (congrArg (fun g : Space → EulerTimeLp.TimeLp D.T L2 => |
| 258 | block directions q g n a) hLp).trans_le ?_ |
| 259 | exact block_normalize_bound directions q _ G.lp_orbit A hpos R E.Cf d n a (hfb n a) |
| 260 | have hnC : ∀ n a, block directions q (fun b : Space => pathTranslation D.T b H.path) n a ≤ |
| 261 | E.Cf*majorant R d n := by |
| 262 | intro n a |
| 263 | refine (congrArg (fun g : Space → C(Icc (0 : ℝ) D.T,L2) => |
| 264 | block directions q g n a) hPath).trans_le ?_ |
| 265 | exact block_normalize_bound directions q _ G.path_orbit A hpos R E.Cf d n a (hfCb n a) |
| 266 | have hbounds := E.normalized_bounds directions hd H d hn hnC |
| 267 | have hback : ∀ (t : Icc (0 : ℝ) D.T) x θ, |
| 268 | raw (t,(x,θ)) = A • (A⁻¹ • raw) (t,(x,θ)) := by |
| 269 | intro t x θ |
| 270 | simp only [Pi.smul_apply, smul_smul, mul_inv_cancel₀ hpos.ne', one_smul] |
| 271 | have hVB := Forcing.velocityPath_smul H G A hback |
| 272 | have hVD := Forcing.derivativePath_smul H G A hback |
| 273 | have hVP := Forcing.pressureForcePath_smul H G A hback |
| 274 | refine ⟨?_, ?_, ?_⟩ |
| 275 | · intro n a |
| 276 | apply block_restore_bound directions q _ _ H.velocityPath_orbit A hpos.le |
| 277 | (fun b => (congrArg (pathTranslation D.T b) hVB).trans |
| 278 | ((pathTranslation D.T b).map_smul A H.velocityPath)) R E.velocityAmplitude (d+2) n a (hbounds.1 n a) |
| 279 | · intro n a |
| 280 | apply block_restore_bound directions q _ _ H.derivativePath_orbit A hpos.le |
| 281 | (fun b => (congrArg (pathTranslation D.T b) hVD).trans |
| 282 | ((pathTranslation D.T b).map_smul A H.derivativePath)) R E.derivativeAmplitude (d+3) n a (hbounds.2.1 n a) |
| 283 | · intro n a |
| 284 | apply block_restore_bound directions q _ _ H.pressureForcePath_orbit A hpos.le |
| 285 | (fun b => (congrArg (pathTranslation D.T b) hVP).trans |
| 286 | ((pathTranslation D.T b).map_smul A H.pressureForcePath)) R E.pressureAmplitude (d+3) n a (hbounds.2.2 n a) |
| 287 | |
| 288 | end EulerMeanPacketProvider.SobolevData |
| 289 | end |
| 290 | |
| 291 | end |
| 292 | |
| 293 | /-! ## From `Euler/MeanPacketPathEnvelope.lean` |
| 294 | |
| 295 | The text of `Euler/MeanPacketPathEnvelope.lean`, folded into this file, which was its only importer. -/ |
| 296 | |
| 297 | section |
| 298 | |
| 299 | /-! A single uniform-time forcing bound suffices for the normalized mean estimates. -/ |
| 300 | |
| 301 | noncomputable section |
| 302 | |
| 303 | namespace EulerMeanPacketProvider.SobolevData |
| 304 | |
| 305 | open EulerSmoothLimit EulerMeanTimeTranslation EulerMeanTimeContinuousTranslation |
| 306 | EulerParameterWordGevrey EulerGevrey EulerPacketProfileRecursion |
| 307 | open scoped ContDiff |
| 308 | |
| 309 | variable {D : Data} {ι : Type*} [Fintype ι] {q : ℕ} {R : ℝ} |
| 310 | |
| 311 | theorem radius_nonneg (E : SobolevData D ι q R) : 0 ≤ R := by |
| 312 | have hr : 0 ≤ E.Rc := (by norm_num : (0 : ℝ) ≤ 1024).trans E.radius_lower |
| 313 | have hrc := sobolevCoefficientRadius_nonneg (ι := ι) E.Rc hr |
| 314 | have hm : 0 ≤ E.M := (by norm_num : (0 : ℝ) ≤ 1).trans E.inverse_cost_lower |
| 315 | exact (mul_nonneg (mul_nonneg (by norm_num) hm) (by linarith)).trans E.radius_budget |
| 316 | |
| 317 | /-- The fixed normalized time factor may be chosen as max(1,sqrt(T)); it |
| 318 | does not depend on the forcing grade or scalar envelope. -/ |
| 319 | theorem path_envelope_bounds (E : SobolevData D ι q R) |
| 320 | (hCf1 : 1 ≤ E.Cf) (hCfT : Real.sqrt D.T ≤ E.Cf) |
| 321 | (directions : ι → Space) (hd : ∀ i, ‖directions i‖ ≤ 1) |
| 322 | {raw : VectorField} (G : Forcing D raw) (d : ℕ) (A : ℝ) (hA : 0 ≤ A) |
| 323 | (hb : ∀ n a, block directions q (fun b : Space => pathTranslation D.T b G.path) n a ≤ |
| 324 | A*majorant R d n) : |
| 325 | (∀ n a, block directions q (fun b : Space => pathTranslation D.T b G.velocityPath) n a ≤ |
| 326 | A*(E.velocityAmplitude*majorant R (d+2) n)) ∧ |
| 327 | (∀ n a, block directions q (fun b : Space => pathTranslation D.T b G.derivativePath) n a ≤ |
| 328 | A*(E.derivativeAmplitude*majorant R (d+3) n)) ∧ |
| 329 | (∀ n a, block directions q (fun b : Space => pathTranslation D.T b G.pressureForcePath) n a ≤ |
| 330 | A*(E.pressureAmplitude*majorant R (d+3) n)) := by |
| 331 | apply E.envelope_bounds directions hd G d A hA |
| 332 | · intro n a |
| 333 | have h := (pathLp_block_le directions q D.T D.T_pos.le G.path G.path_orbit n a).trans |
| 334 | (mul_le_mul_of_nonneg_left (hb n a) (Real.sqrt_nonneg D.T)) |
| 335 | have hm := mul_nonneg hA (majorant_nonneg R E.radius_nonneg d n) |
| 336 | have hc := mul_le_mul_of_nonneg_right hCfT hm |
| 337 | exact h.trans (by linarith) |
| 338 | · intro n a |
| 339 | have hm := mul_nonneg hA (majorant_nonneg R E.radius_nonneg d n) |
| 340 | have hc := mul_le_mul_of_nonneg_right hCf1 hm |
| 341 | exact (hb n a).trans (by linarith) |
| 342 | |
| 343 | end EulerMeanPacketProvider.SobolevData |
| 344 | end |
| 345 | |
| 346 | end |
| 347 | |
| 348 | noncomputable section |
| 349 | |
| 350 | namespace EulerMeanPacketProvider |
| 351 | |
| 352 | open Set Real ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerMeanSolenoidal |
| 353 | EulerMeanCoefficients EulerMeanTimeContinuousTranslation EulerParameterWordGevrey EulerGevrey |
| 354 | EulerMeanStrongContinuousGevrey EulerLiftedGradientSpace EulerLpCylinderTranslation |
| 355 | EulerPacketPointJets EulerPacketProfileRecursion EulerPacketCylinderField |
| 356 | open scoped ContDiff BoundedContinuousFunction |
| 357 | |
| 358 | /-- All quantitative inputs concern the source coefficients and their inverse. |
| 359 | The fixed normalized forcing factor only accounts for time-L² inclusion. -/ |
| 360 | structure Budget (D : Data) (q : ℕ) (R : ℝ) extends SobolevData D (Fin 4) q R where |
| 361 | forcing_one : 1 ≤ Cf |
| 362 | forcing_time : sqrt D.T ≤ Cf |
| 363 | |
| 364 | def Data.frameCoefficient (D : Data) : MatrixCoefficient D.T |
| 365 | (fun z => D.F.field (D.clamp z.1) z.2.1) where |
| 366 | path := D.F.field |
| 367 | orbit := D.F.translation_contDiff |
| 368 | raw_eq t x θ := by rw [Data.clamp_coe] |
| 369 | |
| 370 | namespace Forcing |
| 371 | |
| 372 | variable {D : Data} {raw : VectorField} (G : Forcing D raw) |
| 373 | (P : ℝ) [Fact (0 < P)] |
| 374 | |
| 375 | def pressureForceCylinderField : EulerPacketCylinderField.Field P D.T G.pressureForce := |
| 376 | G.pressureForceForcing.toCylinderField P |
| 377 | |
| 378 | /-- This witness represents the literal spatial gradient encoded by the |
| 379 | packet pressure jet, not merely the projected physical pressure force. -/ |
| 380 | def pressureGradientCylinderField : EulerPacketCylinderField.Field P D.T (pressureGradient G.scalar) := |
| 381 | (D.frameCoefficient.adjoint.multiply (G.pressureForceCylinderField P)).congr (by |
| 382 | intro t x θ |
| 383 | change pressureGradient G.scalar (t,(x,θ)) = |
| 384 | (D.F.field (D.clamp t) x).adjoint (G.pressureForce (t,(x,θ))) |
| 385 | rw [Data.clamp_coe] |
| 386 | change (toDual ℝ Space).symm ((pressureJet G.scalar (t,(x,θ))).2.comp spatialInjection) = _ |
| 387 | rw [pressureJet_spatial_derivative G.scalar t x θ |
| 388 | ((G.scalar_spatial_smooth t).differentiable (by simp) (x,θ))] |
| 389 | exact G.scalarGradient_eq t x θ) |
| 390 | |
| 391 | theorem restore_cylinder_word_bound {q d : ℕ} {R A C : ℝ} |
| 392 | (hb : ∀ n a, block spatialDirection q (fun b : Space => pathTranslation D.T b G.path) n a ≤ |
| 393 | ((P⁻¹*sqrt P)*A)*(C*majorant R d n)) : |
| 394 | (G.toCylinderField P).WordBound q R (A*C) d := by |
| 395 | have hh := G.toCylinderField_word_bound P (A := ((P⁻¹*sqrt P)*A)*C) (fun n a => |
| 396 | (hb n a).trans_eq (by ring)) |
| 397 | have hC : sqrt P*(((P⁻¹*sqrt P)*A)*C) = A*C := by |
| 398 | calc |
| 399 | _ = (sqrt P*(P⁻¹*sqrt P))*(A*C) := by ring |
| 400 | _ = _ := by rw [embedding_mean_norm_product, one_mul] |
| 401 | simpa only [hC] using hh |
| 402 | |
| 403 | end Forcing |
| 404 | |
| 405 | namespace Budget |
| 406 | |
| 407 | variable {D : Data} {q : ℕ} {R : ℝ} (B : Budget D q R) |
| 408 | |
| 409 | def velocityCost : ℝ := B.toSobolevData.velocityAmplitude |
| 410 | def derivativeCost : ℝ := B.toSobolevData.derivativeAmplitude |
| 411 | def pressureForceCost : ℝ := B.toSobolevData.pressureAmplitude |
| 412 | def pressureGradientCost : ℝ := 3*sobolevCoefficientAmplitude (Fin 4) q B.Rc B.CF*B.pressureForceCost |
| 413 | |
| 414 | theorem coefficient_radius_nonneg : 0 ≤ B.Rc := |
| 415 | (by norm_num : (0:ℝ) ≤ 1024).trans B.radius_lower |
| 416 | |
| 417 | theorem radius_bounds : 1 ≤ R ∧ sobolevCoefficientRadius (Fin 4) B.Rc ≤ R := by |
| 418 | have hr := sobolevCoefficientRadius_nonneg (ι := Fin 4) B.Rc B.coefficient_radius_nonneg |
| 419 | have hm := B.inverse_cost_lower |
| 420 | have h := B.radius_budget |
| 421 | constructor <;> nlinarith only [hr, hm, h] |
| 422 | |
| 423 | theorem costs_nonneg : 0 ≤ B.velocityCost ∧ 0 ≤ B.derivativeCost ∧ |
| 424 | 0 ≤ B.pressureForceCost ∧ 0 ≤ B.pressureGradientCost := by |
| 425 | have hF := sobolevCoefficientAmplitude_nonneg (ι := Fin 4) q B.Rc B.CF |
| 426 | B.coefficient_radius_nonneg B.CF_nonneg |
| 427 | have hF₁ := sobolevCoefficientAmplitude_nonneg (ι := Fin 4) q B.Rc B.CF₁ |
| 428 | B.coefficient_radius_nonneg B.CF₁_nonneg |
| 429 | have hT := coordinateTraceCost_nonneg D.T D.T_pos.le |
| 430 | have hf := B.Cf_nonneg |
| 431 | unfold velocityCost derivativeCost pressureGradientCost pressureForceCost |
| 432 | SobolevData.velocityAmplitude SobolevData.derivativeAmplitude SobolevData.pressureAmplitude |
| 433 | constructor |
| 434 | · positivity |
| 435 | constructor |
| 436 | · positivity |
| 437 | constructor <;> positivity |
| 438 | |
| 439 | theorem frameCoefficient_bound (n : ℕ) (a : Space) : |
| 440 | ‖iteratedFDeriv ℝ n (translateCoefficientPath D.frameCoefficient.path) a‖ ≤ |
| 441 | B.CF*majorant B.Rc 0 n := |
| 442 | D.F.norm_iteratedFDeriv_translation_le n (B.CF*majorant B.Rc 0 n) |
| 443 | (mul_nonneg B.CF_nonneg (majorant_nonneg B.Rc B.coefficient_radius_nonneg 0 n)) |
| 444 | (B.frame_bound n) a |
| 445 | |
| 446 | /-- Same-radius bounds on the three actual physical output paths. The |
| 447 | period factors from averaging and constant extension cancel exactly. -/ |
| 448 | theorem physical_word_bounds (P : ℝ) [Fact (0 < P)] {raw : VectorField} |
| 449 | (G : Forcing D raw) (d : ℕ) (A : ℝ) (hA : 0 ≤ A) |
| 450 | (hG : (G.toCylinderField P).WordBound q R A d) : |
| 451 | (G.vectorCylinderField P).WordBound q R (A*B.velocityCost) (d+2) ∧ |
| 452 | (G.vectorDerivativeCylinderField P).WordBound q R (A*B.derivativeCost) (d+3) ∧ |
| 453 | (G.pressureForceCylinderField P).WordBound q R (A*B.pressureForceCost) (d+3) := by |
| 454 | have hA' : 0 ≤ (P⁻¹*sqrt P)*A := by |
| 455 | have hp := (Fact.out : 0 < P) |
| 456 | positivity |
| 457 | obtain ⟨hv, hd, hp⟩ := B.toSobolevData.path_envelope_bounds B.forcing_one B.forcing_time |
| 458 | spatialDirection spatialDirection_norm G d ((P⁻¹*sqrt P)*A) hA' |
| 459 | (G.ordinary_word_bound P hG) |
| 460 | exact ⟨G.vectorForcing.restore_cylinder_word_bound P hv, |
| 461 | G.vectorDerivativeForcing.restore_cylinder_word_bound P hd, |
| 462 | G.pressureForceForcing.restore_cylinder_word_bound P hp⟩ |
| 463 | |
| 464 | /-- The mean solver consumes at most three shifts, with a linear forcing |
| 465 | amplitude and the identical radius. The third output is d(bar q). -/ |
| 466 | theorem word_bounds (P : ℝ) [Fact (0 < P)] {raw : VectorField} |
| 467 | (G : Forcing D raw) (d : ℕ) (A : ℝ) (hA : 0 ≤ A) |
| 468 | (hG : (G.toCylinderField P).WordBound q R A d) : |
| 469 | (G.vectorCylinderField P).WordBound q R (A*B.velocityCost) (d+2) ∧ |
| 470 | (G.vectorDerivativeCylinderField P).WordBound q R (A*B.derivativeCost) (d+3) ∧ |
| 471 | (G.pressureGradientCylinderField P).WordBound q R (A*B.pressureGradientCost) (d+3) := by |
| 472 | obtain ⟨hv, hd, hp⟩ := B.physical_word_bounds P G d A hA hG |
| 473 | have hprod := hp.multiply D.frameCoefficient.adjoint B.Rc B.CF |
| 474 | B.coefficient_radius_nonneg B.CF_nonneg (mul_nonneg hA B.costs_nonneg.2.2.1) B.radius_bounds.2 |
| 475 | (D.frameCoefficient.adjoint_bound B.Rc B.CF B.frameCoefficient_bound) |
| 476 | refine ⟨hv, hd, ?_⟩ |
| 477 | change (D.frameCoefficient.adjoint.multiply (G.pressureForceCylinderField P)).WordBound q R |
| 478 | (A*B.pressureGradientCost) (d+3) |
| 479 | convert! hprod using 1 |
| 480 | unfold pressureGradientCost |
| 481 | ring |
| 482 | |
| 483 | /-- Any actual cylinder witness of the input raw forcing can supply the |
| 484 | bound; the provider's canonical choice is immaterial. -/ |
| 485 | theorem word_bounds_of_field (P : ℝ) [Fact (0 < P)] {raw : VectorField} |
| 486 | (G : Forcing D raw) (F : EulerPacketCylinderField.Field P D.T raw) |
| 487 | (d : ℕ) (A : ℝ) (hA : 0 ≤ A) (hF : F.WordBound q R A d) : |
| 488 | (G.vectorCylinderField P).WordBound q R (A*B.velocityCost) (d+2) ∧ |
| 489 | (G.vectorDerivativeCylinderField P).WordBound q R (A*B.derivativeCost) (d+3) ∧ |
| 490 | (G.pressureGradientCylinderField P).WordBound q R (A*B.pressureGradientCost) (d+3) := |
| 491 | B.word_bounds P G d A hA (hF.transfer (G.toCylinderField P)) |
| 492 | |
| 493 | /-- A common three-shift budget also covers the velocity, and is therefore |
| 494 | within the source allowance of ten shifts. -/ |
| 495 | theorem three_shift_bounds (P : ℝ) [Fact (0 < P)] {raw : VectorField} |
| 496 | (G : Forcing D raw) (F : EulerPacketCylinderField.Field P D.T raw) |
| 497 | (d : ℕ) (A : ℝ) (hA : 0 ≤ A) (hF : F.WordBound q R A d) : |
| 498 | (G.vectorCylinderField P).WordBound q R (A*B.velocityCost) (d+3) ∧ |
| 499 | (G.vectorDerivativeCylinderField P).WordBound q R (A*B.derivativeCost) (d+3) ∧ |
| 500 | (G.pressureGradientCylinderField P).WordBound q R (A*B.pressureGradientCost) (d+3) := by |
| 501 | obtain ⟨hv, hd, hp⟩ := B.word_bounds_of_field P G F d A hA hF |
| 502 | exact ⟨hv.mono_shift B.radius_bounds.1 (mul_nonneg hA B.costs_nonneg.1) (by omega), hd, hp⟩ |
| 503 | |
| 504 | /-- The mean profile H₀^(2p−2) is a constant scalar envelope. The same |
| 505 | fixed source budget applies at every grade and every derivative shift. -/ |
| 506 | theorem grade_profile_bounds (P : ℝ) [Fact (0 < P)] {raw : VectorField} |
| 507 | (G : Forcing D raw) (F : EulerPacketCylinderField.Field P D.T raw) |
| 508 | (p d : ℕ) (A H₀ : ℝ) (hA : 0 ≤ A) (hH₀ : 0 ≤ H₀) |
| 509 | (hF : F.WordBound q R (A*H₀^(2*p-2)) d) : |
| 510 | (G.vectorCylinderField P).WordBound q R ((A*B.velocityCost)*H₀^(2*p-2)) (d+3) ∧ |
| 511 | (G.vectorDerivativeCylinderField P).WordBound q R ((A*B.derivativeCost)*H₀^(2*p-2)) (d+3) ∧ |
| 512 | (G.pressureGradientCylinderField P).WordBound q R ((A*B.pressureGradientCost)*H₀^(2*p-2)) (d+3) := by |
| 513 | have hh := B.three_shift_bounds P G F d (A*H₀^(2*p-2)) (mul_nonneg hA (pow_nonneg hH₀ _)) hF |
| 514 | simpa only [mul_assoc, mul_left_comm, mul_comm] using hh |
| 515 | |
| 516 | end Budget |
| 517 | end EulerMeanPacketProvider |