Download data/lean/OAI/Geometry/IsometricImmersion/Energy/MovingIntervalSourceL2.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 12.8 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Energy/MovingIntervalSourceL2.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/IsometricImmersion/Energy/MovingIntervalSourceL2.lean
-
curl -L -o MovingIntervalSourceL2.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Energy/MovingIntervalSourceL2.lean
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 | |