import Euler.GevreyCompactProduct import Euler.PacketPotentialRegularity import Euler.MeanSolenoidalSpace import Euler.CompactSmoothL2Bounds /-! The actual compact base datum has factorial bounds uniform in the small transverse parameter. All constants use the fixed cutoff only. -/ /-! ## From `Euler/BaseEulerDatum.lean` The text of `Euler/BaseEulerDatum.lean`, folded into this file, which was its only importer. -/ section /-! The compact initial velocity in the manuscript is constructed using the fixed factorial-bounded outer cutoff and the actual curl potential. -/ noncomputable section namespace EulerBaseDatum open Set Filter ContinuousLinearMap MeasureTheory EulerSmoothLimit EulerVectorCalculus EulerSpatialCutoffs EulerGevrey EulerGevreyFunctions EulerLpTranslation EulerMeanSolenoidal open scoped ContDiff Topology def potential (L : Space →L[ℝ] Space) (i : Fin 3) (x : Space) : ℝ := outerCutoff x*linearPotential L i x theorem potential_smooth (L : Space →L[ℝ] Space) (i : Fin 3) : ContDiff ℝ ∞ (potential L i) := outerCutoff_contDiff.mul (contDiff_linearPotential L i) theorem potential_support (L : Space →L[ℝ] Space) (i : Fin 3) : tsupport (potential L i) ⊆ Metric.closedBall (0 : Space) 2 := tsupport_mul_subset_left.trans outerCutoff_support def velocity (L : Space →L[ℝ] Space) : Space → Space := curl (potential L) theorem velocity_smooth (L : Space →L[ℝ] Space) : ContDiff ℝ ∞ (velocity L) := contDiff_curl (potential L) (potential_smooth L) theorem velocity_support (L : Space →L[ℝ] Space) : tsupport (velocity L) ⊆ Metric.closedBall (0 : Space) 2 := tsupport_curl_subset (potential L) _ Metric.isClosed_closedBall (potential_support L) theorem velocity_compact (L : Space →L[ℝ] Space) : HasCompactSupport (velocity L) := (isCompact_closedBall (0 : Space) 2).of_isClosed_subset (isClosed_tsupport _) (velocity_support L) theorem velocity_divergence (L : Space →L[ℝ] Space) (x : Space) : divergence (velocity L) x=0 := divergence_curl (potential L) (potential_smooth L) x theorem velocity_odd (L : Space →L[ℝ] Space) (x : Space) : velocity L (-x)= -velocity L x := by apply odd_curl_of_even (potential L) (fun i => (potential_smooth L i).differentiable (by simp)) intro i y simp only [potential,outerCutoff_even,linearPotential_even] theorem velocity_plateau (L : Space →L[ℝ] Space) (hL : LinearMap.trace ℝ Space L.toLinearMap=0) (x : Space) (hx : ‖x‖ < 1) : velocity L x=L x := by have he (i : Fin 3) : potential L i =ᶠ[𝓝 x] linearPotential L i := by have hx' : x ∈ Metric.ball (0 : Space) 1 := by simpa only [Metric.mem_ball,dist_zero_right] using hx filter_upwards [Metric.isOpen_ball.mem_nhds hx'] with y hy have hy' : ‖y‖ ≤ 1 := (by simpa only [Metric.mem_ball,dist_zero_right] using hy : ‖y‖ < 1).le simp only [potential,outerCutoff_one y hy',one_mul] exact (curl_congr_nhds _ _ x he).trans (curl_linearPotential_of_trace_zero L hL x) theorem velocity_fderiv_plateau (L : Space →L[ℝ] Space) (hL : LinearMap.trace ℝ Space L.toLinearMap=0) (x : Space) (hx : ‖x‖ < 1) : fderiv ℝ (velocity L) x=L := by have he : velocity L =ᶠ[𝓝 x] (L : Space → Space) := by have hx' : x ∈ Metric.ball (0 : Space) 1 := by simpa only [Metric.mem_ball,dist_zero_right] using hx filter_upwards [Metric.isOpen_ball.mem_nhds hx'] with y hy exact velocity_plateau L hL y (by simpa only [Metric.mem_ball,dist_zero_right] using hy) exact he.fderiv_eq.trans L.fderiv def field (L : Space →L[ℝ] Space) : SmoothL2Field Space where field := velocity L smooth := velocity_smooth L integrable n := ((velocity_smooth L).continuous_iteratedFDeriv (m := n) (by simp)).memLp_of_hasCompactSupport ((velocity_compact L).iteratedFDeriv n) def linear (β : ℝ) : Space →L[ℝ] Space := (EuclideanSpace.proj 1).smulRight (EuclideanSpace.single 0 1+β • EuclideanSpace.single 2 1) @[simp] theorem linear_apply (β : ℝ) (x : Space) : linear β x=x 1 • (EuclideanSpace.single 0 1+β • EuclideanSpace.single 2 1) := rfl theorem linear_trace (β : ℝ) : LinearMap.trace ℝ Space (linear β).toLinearMap=0 := by rw [← coordinateTrace_eq_linearTrace] simp [coordinateTrace,Fin.sum_univ_three,linear_apply,PiLp.smul_apply] theorem linear_norm (β : ℝ) : ‖linear β‖ ≤ 1+|β| := by apply opNorm_le_bound _ (by positivity) intro x rw [linear_apply,norm_smul,Real.norm_eq_abs] have hv : ‖(EuclideanSpace.single 0 1 : Space)+β • EuclideanSpace.single 2 1‖ ≤ 1+|β| := by apply (norm_add_le _ _).trans rw [norm_smul,Real.norm_eq_abs] simp exact (mul_le_mul (PiLp.norm_apply_le x 1) hv (norm_nonneg _) (norm_nonneg x)).trans_eq (mul_comm _ _) theorem linear_q (β : ℝ) : linear β (EuclideanSpace.single 1 1)=EuclideanSpace.single 0 1+β • EuclideanSpace.single 2 1 := by simp [linear_apply] end EulerBaseDatum end end noncomputable section namespace EulerBaseDatum open Set Filter ContinuousLinearMap MeasureTheory EulerSmoothLimit EulerVectorCalculus EulerSpatialCutoffs EulerGevrey EulerGevreyFunctions EulerLpTranslation EulerOperatorGevreyCalculus EulerMeanBoundary EulerMeanCutoffCurl EulerPacketPiola open scoped ContDiff Topology theorem coordinate_norm_le (i : Fin 3) : ‖(EuclideanSpace.proj i : Space →L[ℝ] ℝ)‖ ≤ 1 := by apply opNorm_le_bound _ zero_le_one intro x change ‖x i‖ ≤ 1*‖x‖ simpa only [one_mul] using PiLp.norm_apply_le x i theorem coordinate_bound_on_ball (i : Fin 3) (x : Space) (hx : ‖x‖ ≤ 2) (n : ℕ) : ‖iteratedFDeriv ℝ n (fun y : Space => y i) x‖ ≤ 2*majorant 256 0 n := by apply (linear_bound_on_ball (EuclideanSpace.proj i) 2 256 (by norm_num) (by norm_num) x hx n).trans exact mul_le_mul_of_nonneg_right (by linarith [coordinate_norm_le i]) (majorant_nonneg 256 (by norm_num) 0 n) theorem linear_coordinate_bound_on_ball (L : Space →L[ℝ] Space) (i : Fin 3) (x : Space) (hx : ‖x‖ ≤ 2) (n : ℕ) : ‖iteratedFDeriv ℝ n (fun y => L y i) x‖ ≤ (2*‖L‖)*majorant 256 0 n := by have hL : ‖(EuclideanSpace.proj i).comp L‖ ≤ ‖L‖ := by apply (opNorm_comp_le _ _).trans simpa only [one_mul] using (mul_le_mul_of_nonneg_right (coordinate_norm_le i) (norm_nonneg L)) apply (linear_bound_on_ball ((EuclideanSpace.proj i).comp L) 2 256 (by norm_num) (by norm_num) x hx n).trans exact mul_le_mul_of_nonneg_right (by linarith) (majorant_nonneg 256 (by norm_num) 0 n) theorem linearPotential_bound (L : Space →L[ℝ] Space) (i : Fin 3) (x : Space) (hx : ‖x‖ ≤ 2) (n : ℕ) : ‖iteratedFDeriv ℝ n (linearPotential L i) x‖ ≤ (24*‖L‖)*majorant 256 0 n := by let f : Space → ℝ := fun y => y (i+1)*L y (i+2) let g : Space → ℝ := fun y => y (i+2)*L y (i+1) have hs (a b : Fin 3) : ContDiff ℝ ∞ (fun y : Space => y a*L y b) := (EuclideanSpace.proj a : Space →L[ℝ] ℝ).contDiff.mul ((EuclideanSpace.proj b : Space →L[ℝ] ℝ).contDiff.comp L.contDiff) have hp (a b : Fin 3) : ‖iteratedFDeriv ℝ n (fun y : Space => y a*L y b) x‖ ≤ (12*‖L‖)*majorant 256 0 n := by have h := product_bound_at (fun y : Space => y a) (fun y => L y b) (EuclideanSpace.proj a : Space →L[ℝ] ℝ).contDiff ((EuclideanSpace.proj b : Space →L[ℝ] ℝ).contDiff.comp L.contDiff) 256 2 (2*‖L‖) (by norm_num) (by norm_num) (by positivity) x (coordinate_bound_on_ball a x hx) (linear_coordinate_bound_on_ball L b x hx) n convert h using 1 ring have hfg : ‖iteratedFDeriv ℝ n (f-g) x‖ ≤ (24*‖L‖)*majorant 256 0 n := by rw [iteratedFDeriv_sub_apply ((hs (i+1) (i+2)).contDiffAt.of_le (by simp)) ((hs (i+2) (i+1)).contDiffAt.of_le (by simp))] exact (norm_sub_le _ _).trans ((add_le_add (hp (i+1) (i+2)) (hp (i+2) (i+1))).trans_eq (by ring)) change ‖iteratedFDeriv ℝ n ((-1/3 : ℝ) • (f-g)) x‖ ≤ _ have hfgsm : ContDiff ℝ ∞ (f-g) := (hs (i+1) (i+2)).sub (hs (i+2) (i+1)) rw [iteratedFDeriv_const_smul_apply (a := (-1/3 : ℝ)) (f := f-g) (hfgsm.contDiffAt.of_le (by simp)),norm_smul] exact (mul_le_mul_of_nonneg_right (by norm_num : ‖(-1/3 : ℝ)‖ ≤ 1) (norm_nonneg _)).trans (by simpa only [one_mul] using hfg) def cutoffAmplitude : ℝ := (9*(1+3/EulerGevreyCutoff.bumpMass)^2)^3 theorem cutoffAmplitude_nonneg : 0 ≤ cutoffAmplitude := by unfold cutoffAmplitude; positivity def potentialAmplitude (L : Space →L[ℝ] Space) : ℝ := 3*cutoffAmplitude*(24*‖L‖) theorem potentialAmplitude_nonneg (L : Space →L[ℝ] Space) : 0 ≤ potentialAmplitude L := by unfold potentialAmplitude exact mul_nonneg (mul_nonneg (by norm_num) cutoffAmplitude_nonneg) (by positivity) theorem potential_bound (L : Space →L[ℝ] Space) (i : Fin 3) (n : ℕ) (x : Space) : ‖iteratedFDeriv ℝ n (potential L i) x‖ ≤ potentialAmplitude L*majorant 256 0 n := by exact compact_product_bound outerCutoff (linearPotential L i) outerCutoff_contDiff (contDiff_linearPotential L i) (Metric.closedBall 0 2) outerCutoff_support 256 cutoffAmplitude (24*‖L‖) (by norm_num) cutoffAmplitude_nonneg (by positivity) outerCutoff_gevrey (fun y hy => linearPotential_bound L i y (by simpa only [Metric.mem_closedBall,dist_zero_right] using hy)) n x def vectorPotential (L : Space →L[ℝ] Space) (x : Space) : Space := ∑ i : Fin 3, potential L i x • EuclideanSpace.single i 1 @[simp] theorem vectorPotential_apply (L : Space →L[ℝ] Space) (x : Space) (i : Fin 3) : vectorPotential L x i=potential L i x := by fin_cases i <;> simp [vectorPotential,Fin.sum_univ_three] theorem vectorPotential_smooth (L : Space →L[ℝ] Space) : ContDiff ℝ ∞ (vectorPotential L) := ContDiff.sum (fun i _ => (potential_smooth L i).smul contDiff_const) def coordinateEmbedding (i : Fin 3) : ℝ →L[ℝ] Space := (ContinuousLinearMap.id ℝ ℝ).smulRight (EuclideanSpace.single i 1) theorem coordinateEmbedding_norm (i : Fin 3) : ‖coordinateEmbedding i‖ ≤ 1 := by apply opNorm_le_bound _ zero_le_one intro x change ‖x • (EuclideanSpace.single i 1 : Space)‖ ≤ 1*‖x‖ simp [norm_smul] theorem vectorPotential_bound (L : Space →L[ℝ] Space) (n : ℕ) (x : Space) : ‖iteratedFDeriv ℝ n (vectorPotential L) x‖ ≤ (3*potentialAmplitude L)*majorant 256 0 n := by unfold vectorPotential have hs (i : Fin 3) : ContDiff ℝ ∞ (fun y => potential L i y • (EuclideanSpace.single i 1 : Space)) := (potential_smooth L i).smul contDiff_const rw [iteratedFDeriv_fun_sum_apply (f := fun i y => potential L i y • (EuclideanSpace.single i 1 : Space)) (u := Finset.univ) (fun i _ => (hs i).contDiffAt.of_le (by simp))] apply (norm_sum_le _ _).trans calc _ ≤ ∑ _i : Fin 3, potentialAmplitude L*majorant 256 0 n := by apply Finset.sum_le_sum intro i _ exact contraction_bound (coordinateEmbedding i) (coordinateEmbedding_norm i) (potential L i) (potential_smooth L i) 256 (potentialAmplitude L) (by norm_num) (potentialAmplitude_nonneg L) 0 (potential_bound L i) n x _ = _ := by simp; ring theorem velocity_eq_curlOperator (L : Space →L[ℝ] Space) : velocity L = fun x => curlOperator (fderiv ℝ (vectorPotential L) x) := by funext x rw [curlOperator_apply,← vectorCurl_eq_matrix _ x ((vectorPotential_smooth L).differentiable (by simp) x)] have he : (fun i x => vectorPotential L x i)=potential L := by funext i y exact vectorPotential_apply L y i exact congrArg (fun f => curl f x) he.symm def velocityAmplitude (L : Space →L[ℝ] Space) : ℝ := ‖curlOperator‖*(3*potentialAmplitude L*256) theorem velocityAmplitude_nonneg (L : Space →L[ℝ] Space) : 0 ≤ velocityAmplitude L := by unfold velocityAmplitude apply mul_nonneg · exact norm_nonneg curlOperator · exact mul_nonneg (mul_nonneg (by norm_num) (potentialAmplitude_nonneg L)) (by norm_num) theorem velocity_sup_bound (L : Space →L[ℝ] Space) : HasSupBound (velocity L) (velocityAmplitude L) 1024 := by have hp : HasSupBound (vectorPotential L) (3*potentialAmplitude L) 256 := by intro n x simpa only [majorant,Nat.add_zero,mul_assoc] using vectorPotential_bound L n x have hd := hp.derivative (mul_nonneg (by norm_num) (potentialAmplitude_nonneg L)) (by norm_num : (0 : ℝ) ≤ 256) rw [velocity_eq_curlOperator] intro n x have h := linear_bound curlOperator (fderiv ℝ (vectorPotential L)) ((vectorPotential_smooth L).fderiv_right (m := ∞) (by simp)) 1024 (3*potentialAmplitude L*256) 0 (fun j y => by simpa only [majorant,Nat.add_zero,mul_assoc,show 4*(256 : ℝ)=1024 by norm_num] using hd j y) n x simpa only [velocityAmplitude,majorant,Nat.add_zero,mul_assoc] using h def volumeFactor : ℝ := (volume (Metric.closedBall (0 : Space) 2)).toReal^(1/2 : ℝ) theorem volumeFactor_nonneg : 0 ≤ volumeFactor := Real.rpow_nonneg (ENNReal.toReal_nonneg) _ theorem field_jet_bound (L : Space →L[ℝ] Space) : (field L).HasJetBound (velocityAmplitude L*volumeFactor) 1024 := SmoothL2Field.hasJetBound_of_support_sup (field L) (Metric.closedBall 0 2) (isCompact_closedBall (0 : Space) 2).measure_lt_top.ne (velocity_support L) (velocityAmplitude L) 1024 (velocityAmplitude_nonneg L) (by norm_num) (velocity_sup_bound L) end EulerBaseDatum