math / data /lean /OAI /Geometry /IsometricImmersion /Energy /MovingIntervalSourceL2.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
12.8 kB
import OAI.Geometry.IsometricImmersion.Energy.MovingIntervalSobolev
import OAI.Geometry.IsometricImmersion.Energy.FiniteSumL2
namespace OAI
noncomputable section
open Set Filter MeasureTheory
open scoped ContDiff Topology Interval BigOperators ENNReal NNReal
namespace SmoothLocal.Hyperbolic
open SmoothLocal.Geometry SmoothLocal.Weighted SmoothLocal.ODE SmoothLocal.Analytic
def spatialProduct {ΞΉ : Type*} {n : β„•} (F : ΞΉ β†’ Coord β†’ ℝ)
(slot : Fin n β†’ ΞΉ) (order : Fin n β†’ β„•) (p : Coord) : ℝ :=
∏ i, spatialJet (F (slot i)) (order i) p
def spatialSourceTerm {ΞΉ : Type*} {n : β„•} (coeff : Coord β†’ ℝ) (F : ΞΉ β†’ Coord β†’ ℝ)
(slot : Fin n β†’ ΞΉ) (order : Fin n β†’ β„•) (p : Coord) : ℝ :=
coeff p * spatialProduct F slot order p
def spatialLowFactorBound (lengthFloor : ℝ) (H : ℝβ‰₯0) : ℝ :=
max 1 (Real.sqrt (2 + 1 / lengthFloor) * (H : ℝ))
def spatialProductL2Budget (lengthFloor left right : ℝ) (H : ℝβ‰₯0) (n : β„•) : ℝβ‰₯0∞ :=
β€–spatialLowFactorBound lengthFloor H ^ nβ€–β‚‘ *
((H : ℝβ‰₯0∞) + (volume (Icc left right)) ^ (1 / (2 : ℝ)))
theorem spatialProductL2Budget_lt_top (lengthFloor left right : ℝ) (H : ℝβ‰₯0) (n : β„•) :
spatialProductL2Budget lengthFloor left right H n < (⊀ : ℝβ‰₯0∞) := by
unfold spatialProductL2Budget
rw [Real.volume_Icc]
finiteness
theorem spatialProduct_contDiffOn
{ΞΉ : Type*} {n : β„•} {F : ΞΉ β†’ Coord β†’ ℝ} {U : Set Coord}
(hU : IsOpen U) (hF : βˆ€ i, ContDiffOn ℝ ∞ (F i) U)
(slot : Fin n β†’ ΞΉ) (order : Fin n β†’ β„•) :
ContDiffOn ℝ ∞ (spatialProduct F slot order) U := by
apply contDiffOn_prod
intro index _
exact spatialJet_contDiffOn hU (hF (slot index)) (order index)
theorem spatialProduct_eLpNorm_two
{ΞΉ : Type*} {n N : β„•} {F : ΞΉ β†’ Coord β†’ ℝ} {U : Set Coord}
{theta left right lengthFloor : ℝ} {H : ℝβ‰₯0}
(hU : IsOpen U) (hF : βˆ€ i, ContDiffOn ℝ ∞ (F i) U)
(hseg : βˆ€ x ∈ Icc left right, coordinatePoint x theta ∈ U)
(hlength : 0 < lengthFloor) (hwidth : lengthFloor ≀ right - left)
(hL2 : SpatialSliceL2Bound F theta left right N H)
(slot : Fin n β†’ ΞΉ) (order : Fin n β†’ β„•)
(horder : βˆ€ i, order i ≀ N)
(hunique : βˆ€ i j, order i = N β†’ order j = N β†’ i = j) :
eLpNorm (fun x => spatialProduct F slot order (coordinatePoint x theta)) 2
(volume.restrict (Icc left right)) ≀ spatialProductL2Budget lengthFloor left right H n := by
classical
have hmeas := (smooth_slice_memLp_two
(spatialProduct_contDiffOn hU hF slot order).continuousOn hseg).aestronglyMeasurable
let B := spatialLowFactorBound lengthFloor H
have hB1 : 1 ≀ B := le_max_left _ _
have hB0 : 0 ≀ B := zero_le_one.trans hB1
have hlow (i : Fin n) (hi : order i + 1 ≀ N) (x : ℝ) (hx : x ∈ Icc left right) :
β€–spatialJet (F (slot i)) (order i) (coordinatePoint x theta)β€– ≀ B := by
rw [Real.norm_eq_abs]
exact (hL2.pointwise_below_top hU hF hseg hlength hwidth (slot i) (order i) hi hx).trans
(le_max_right _ _)
by_cases hh : βˆƒ j, order j = N
· obtain ⟨j, hj⟩ := hh
have hb (i : Fin n) (hi : i ∈ (Finset.univ : Finset (Fin n)).erase j)
(x : ℝ) (hx : x ∈ Icc left right) :
β€–spatialJet (F (slot i)) (order i) (coordinatePoint x theta)β€– ≀ B := by
apply hlow i _ x hx
have hi_ne : i β‰  j := (Finset.mem_erase.mp hi).1
have hnot : order i β‰  N := fun hie => hi_ne (hunique i j hie hj)
have hoi := horder i
omega
have hprod := finite_product_eLpNorm_two_of_aestronglyMeasurable (ΞΌ := volume) Finset.univ
(fun i x => spatialJet (F (slot i)) (order i) (coordinatePoint x theta))
(Finset.mem_univ j) hB0 measurableSet_Icc hb hmeas
have hcard : ((Finset.univ : Finset (Fin n)).erase j).card ≀ n := by
simpa only [Finset.card_univ, Fintype.card_fin] using
Finset.card_le_card (Finset.erase_subset j (Finset.univ : Finset (Fin n)))
have hpow : β€–B ^ ((Finset.univ : Finset (Fin n)).erase j).cardβ€–β‚‘ ≀ β€–B ^ nβ€–β‚‘ := by
rw [enorm_le_iff_norm_le, Real.norm_of_nonneg (pow_nonneg hB0 _),
Real.norm_of_nonneg (pow_nonneg hB0 _)]
exact pow_le_pow_rightβ‚€ hB1 hcard
calc
_ ≀ β€–B ^ ((Finset.univ : Finset (Fin n)).erase j).cardβ€–β‚‘ *
eLpNorm (fun x => spatialJet (F (slot j)) (order j) (coordinatePoint x theta)) 2
(volume.restrict (Icc left right)) := hprod
_ ≀ β€–B ^ nβ€–β‚‘ * (H : ℝβ‰₯0∞) := mul_le_mul' hpow (hL2 (slot j) (order j) (horder j))
_ ≀ _ := mul_le_mul' le_rfl (le_add_of_nonneg_right (by positivity))
· have hb (i : Fin n) (_ : i ∈ (Finset.univ : Finset (Fin n)))
(x : ℝ) (hx : x ∈ Icc left right) :
β€–spatialJet (F (slot i)) (order i) (coordinatePoint x theta)β€– ≀ B := by
apply hlow i _ x hx
have hnot : order i β‰  N := fun hie => hh ⟨i, hie⟩
have hoi := horder i
omega
have hprod := finite_product_bounded_eLpNorm_two_of_aestronglyMeasurable
(ΞΌ := volume) Finset.univ
(fun i x => spatialJet (F (slot i)) (order i) (coordinatePoint x theta))
hB0 measurableSet_Icc hb hmeas
calc
_ ≀ β€–B ^ nβ€–β‚‘ * (volume (Icc left right)) ^ (1 / (2 : ℝ)) := by
simpa only [spatialProduct, Finset.card_univ, Fintype.card_fin] using hprod
_ ≀ _ := mul_le_mul' le_rfl (le_add_of_nonneg_left (by positivity))
theorem real_interval_coefficient_eLpNorm_two
{a f : ℝ β†’ ℝ} {left right C : ℝ} (hC : 0 ≀ C)
(ha : βˆ€ x ∈ Icc left right, |a x| ≀ C) :
eLpNorm' (fun x => a x * f x) (2 : ℝ) (volume.restrict (Icc left right)) ≀
β€–Cβ€–β‚‘ * eLpNorm' f (2 : ℝ) (volume.restrict (Icc left right)) := by
have hdom : βˆ€α΅ x βˆ‚volume.restrict (Icc left right), β€–a x * f xβ€– ≀ β€–C * f xβ€– := by
filter_upwards [ae_restrict_mem measurableSet_Icc] with x hx
simp only [norm_mul, Real.norm_eq_abs, abs_of_nonneg hC]
exact mul_le_mul_of_nonneg_right (ha x hx) (abs_nonneg _)
calc
_ ≀ eLpNorm' (fun x => C * f x) (2 : ℝ) (volume.restrict (Icc left right)) :=
eLpNorm'_mono_ae (by norm_num) hdom
_ = _ := eLpNorm'_const_smul (π•œ := ℝ) (F := ℝ) (f := f) C (by norm_num)
theorem real_interval_coefficient_eLpNorm_two_of_aestronglyMeasurable
{coefficient factor : ℝ β†’ ℝ} {left right bound : ℝ} (hbound : 0 ≀ bound)
(hcoefficient : βˆ€ point ∈ Icc left right, |coefficient point| ≀ bound)
(hmeas : AEStronglyMeasurable (fun point => coefficient point * factor point)
(volume.restrict (Icc left right))) :
eLpNorm (fun point => coefficient point * factor point) 2
(volume.restrict (Icc left right)) ≀
β€–boundβ€–β‚‘ * eLpNorm factor 2 (volume.restrict (Icc left right)) := by
have hfactor : eLpNorm' factor (2 : ℝ) (volume.restrict (Icc left right)) ≀
eLpNorm factor 2 (volume.restrict (Icc left right)) := by
by_cases hfactorMeas : AEStronglyMeasurable factor (volume.restrict (Icc left right))
Β· rw [eLpNorm_eq_eLpNorm' (by norm_num) (by norm_num) hfactorMeas]
norm_num
Β· rw [eLpNorm_of_not_aestronglyMeasurable hfactorMeas]
exact le_top
rw [eLpNorm_eq_eLpNorm' (by norm_num) (by norm_num) hmeas, ENNReal.toReal_ofNat]
exact (real_interval_coefficient_eLpNorm_two hbound hcoefficient).trans
(mul_le_mul_right hfactor _)
theorem spatialSourceTerm_memLp_two
{ΞΉ : Type*} {n : β„•} {F : ΞΉ β†’ Coord β†’ ℝ} {coeff : Coord β†’ ℝ} {U : Set Coord}
{theta left right : ℝ}
(hU : IsOpen U) (hF : βˆ€ i, ContDiffOn ℝ ∞ (F i) U)
(hc : ContDiffOn ℝ ∞ coeff U)
(hseg : βˆ€ x ∈ Icc left right, coordinatePoint x theta ∈ U)
(slot : Fin n β†’ ΞΉ) (order : Fin n β†’ β„•) :
MemLp (fun x => spatialSourceTerm coeff F slot order (coordinatePoint x theta)) 2
(volume.restrict (Icc left right)) :=
smooth_slice_memLp_two (hc.mul (spatialProduct_contDiffOn hU hF slot order)).continuousOn hseg
theorem spatialSourceTerm_eLpNorm_two
{ΞΉ : Type*} {n N : β„•} {F : ΞΉ β†’ Coord β†’ ℝ} {coeff : Coord β†’ ℝ} {U : Set Coord}
{theta left right lengthFloor C : ℝ} {H : ℝβ‰₯0}
(hU : IsOpen U) (hF : βˆ€ i, ContDiffOn ℝ ∞ (F i) U)
(hseg : βˆ€ x ∈ Icc left right, coordinatePoint x theta ∈ U)
(hlength : 0 < lengthFloor) (hwidth : lengthFloor ≀ right - left)
(hL2 : SpatialSliceL2Bound F theta left right N H) (hC : 0 ≀ C)
(hc : βˆ€ x ∈ Icc left right, |coeff (coordinatePoint x theta)| ≀ C)
(slot : Fin n β†’ ΞΉ) (order : Fin n β†’ β„•)
(horder : βˆ€ i, order i ≀ N)
(hunique : βˆ€ i j, order i = N β†’ order j = N β†’ i = j) :
eLpNorm' (fun x => spatialSourceTerm coeff F slot order (coordinatePoint x theta)) (2 : ℝ)
(volume.restrict (Icc left right)) ≀
β€–Cβ€–β‚‘ * spatialProductL2Budget lengthFloor left right H n := by
have hproduct := spatialProduct_eLpNorm_two hU hF hseg hlength hwidth hL2
slot order horder hunique
have hmeas := (smooth_slice_memLp_two
(spatialProduct_contDiffOn hU hF slot order).continuousOn hseg).aestronglyMeasurable
rw [eLpNorm_eq_eLpNorm' (by norm_num) (by norm_num) hmeas,
ENNReal.toReal_ofNat] at hproduct
exact (real_interval_coefficient_eLpNorm_two hC hc).trans
(mul_le_mul' le_rfl hproduct)
theorem spatialSourceTerm_eLpNorm_two_of_aestronglyMeasurable
{ΞΉ : Type*} {n N : β„•} {F : ΞΉ β†’ Coord β†’ ℝ} {coeff : Coord β†’ ℝ} {U : Set Coord}
{theta left right lengthFloor C : ℝ} {H : ℝβ‰₯0}
(hU : IsOpen U) (hF : βˆ€ i, ContDiffOn ℝ ∞ (F i) U)
(hseg : βˆ€ x ∈ Icc left right, coordinatePoint x theta ∈ U)
(hlength : 0 < lengthFloor) (hwidth : lengthFloor ≀ right - left)
(hL2 : SpatialSliceL2Bound F theta left right N H) (hC : 0 ≀ C)
(hc : βˆ€ x ∈ Icc left right, |coeff (coordinatePoint x theta)| ≀ C)
(slot : Fin n β†’ ΞΉ) (order : Fin n β†’ β„•)
(horder : βˆ€ i, order i ≀ N)
(hunique : βˆ€ i j, order i = N β†’ order j = N β†’ i = j)
(hmeas : AEStronglyMeasurable
(fun x => spatialSourceTerm coeff F slot order (coordinatePoint x theta))
(volume.restrict (Icc left right))) :
eLpNorm (fun x => spatialSourceTerm coeff F slot order (coordinatePoint x theta)) 2
(volume.restrict (Icc left right)) ≀
β€–Cβ€–β‚‘ * spatialProductL2Budget lengthFloor left right H n := by
rw [eLpNorm_eq_eLpNorm' (by norm_num) (by norm_num) hmeas, ENNReal.toReal_ofNat]
exact spatialSourceTerm_eLpNorm_two hU hF hseg hlength hwidth hL2 hC hc
slot order horder hunique
def spatialSourceSum {ΞΉ : Type*} {m : β„•} (arity : Fin m β†’ β„•)
(coeff : Fin m β†’ Coord β†’ ℝ) (F : ΞΉ β†’ Coord β†’ ℝ)
(slot : (k : Fin m) β†’ Fin (arity k) β†’ ΞΉ)
(order : (k : Fin m) β†’ Fin (arity k) β†’ β„•) (p : Coord) : ℝ :=
βˆ‘ k, spatialSourceTerm (coeff k) F (slot k) (order k) p
theorem spatialSourceSum_eLpNorm_two
{ΞΉ : Type*} {m N : β„•} {F : ΞΉ β†’ Coord β†’ ℝ} {coeff : Fin m β†’ Coord β†’ ℝ} {U : Set Coord}
{theta left right lengthFloor : ℝ} {H : ℝβ‰₯0}
(hU : IsOpen U) (hF : βˆ€ i, ContDiffOn ℝ ∞ (F i) U)
(hcSmooth : βˆ€ k, ContDiffOn ℝ ∞ (coeff k) U)
(hseg : βˆ€ x ∈ Icc left right, coordinatePoint x theta ∈ U)
(hlength : 0 < lengthFloor) (hwidth : lengthFloor ≀ right - left)
(hL2 : SpatialSliceL2Bound F theta left right N H) (C : Fin m β†’ ℝ)
(hC : βˆ€ k, 0 ≀ C k)
(hc : βˆ€ k x, x ∈ Icc left right β†’ |coeff k (coordinatePoint x theta)| ≀ C k)
(arity : Fin m β†’ β„•) (slot : (k : Fin m) β†’ Fin (arity k) β†’ ΞΉ)
(order : (k : Fin m) β†’ Fin (arity k) β†’ β„•)
(horder : βˆ€ k i, order k i ≀ N)
(hunique : βˆ€ k i j, order k i = N β†’ order k j = N β†’ i = j) :
eLpNorm (fun x => spatialSourceSum arity coeff F slot order (coordinatePoint x theta)) 2
(volume.restrict (Icc left right)) ≀
βˆ‘ k, β€–C kβ€–β‚‘ * spatialProductL2Budget lengthFloor left right H (arity k) := by
exact finite_sum_eLpNorm_two (ΞΌ := volume) (U := Icc left right) Finset.univ
(fun k x => spatialSourceTerm (coeff k) F (slot k) (order k) (coordinatePoint x theta))
(fun k => β€–C kβ€–β‚‘ * spatialProductL2Budget lengthFloor left right H (arity k))
(fun k _ => (spatialSourceTerm_memLp_two hU hF (hcSmooth k) hseg
(slot k) (order k)).aestronglyMeasurable)
(fun k _ => spatialSourceTerm_eLpNorm_two_of_aestronglyMeasurable
hU hF hseg hlength hwidth hL2 (hC k)
(hc k) (slot k) (order k) (horder k) (hunique k)
(spatialSourceTerm_memLp_two hU hF (hcSmooth k) hseg
(slot k) (order k)).aestronglyMeasurable)
end SmoothLocal.Hyperbolic
end
end OAI