File size: 4,959 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | import OAI.Dynamics.StandardMap.BridgeAggregate
namespace OAI
open MeasureTheory Set
open scoped ENNReal BigOperators
open MeasureTheory Set Filter Metric
open scoped ENNReal Topology Classical
namespace StandardMapEntropy
lemma integral_torusShortfall (k : β) (hk : 0β€ k) (a : β€) (m : β) :
(β«z,torusShortfall k z a m βarea)=meanDeficit k m := by
have hz (z : Torus) : torusShortfall k z a m=torusShortfall k (torusIter k a z) 0 m := by rw [torusShortfall_shift,zero_add]
simp_rw [hz]
rw [integral_torusIter k a (fun z => torusShortfall k z 0 m),βmeanDeficit_eq_integral_shortfall k hk m]
lemma lipschitz_sum_nonneg {R : β} (F : (Fin R β β) β β) (L : NNReal)
(hF : LipschitzWith L F) (hFz : F 0=0) (x : Fin R β β) (hx : βj,0β€ x j) :
F xβ€ L*βj,x j := by
have hh := hF.dist_le_mul x 0
simp only [hFz,dist_zero_right] at hh
have hb : βxββ€βj,x j := by
apply (pi_norm_le_iff_of_nonneg (Finset.sum_nonneg (fun j _ => hx j))).mpr
intro j
rw [Real.norm_eq_abs,abs_of_nonneg (hx j)]
exact Finset.single_le_sum (fun j _ => hx j) (Finset.mem_univ j)
exact (le_abs_self _).trans (hh.trans (mul_le_mul_of_nonneg_left hb L.coe_nonneg))
lemma integral_observation_bound {R : β} (k : β) (hk : 0β€ k)
(a : Fin R β β€) (m : Fin R β β) (hm : βj,0< m j)
(F : (Fin R β β) β β) (L : NNReal) (hF : LipschitzWith L F) (hFz : F 0=0) :
(β«z,shortfallObservation k a m F z βarea)β€ L*βj,meanDeficit k (m j) := by
have hi (j) : Integrable (fun z => torusShortfall k z (a j) (m j)) area :=
(continuous_torusShortfall k hk _ _).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)
have his := integrable_finsetSum Finset.univ (fun j _ => hi j)
have hh : (β«z,shortfallObservation k a m F z βarea)β€
β«z,(L:β)*βj,torusShortfall k z (a j) (m j) βarea := by
apply integral_mono ((continuous_shortfall_observation k hk a m F hF.continuous).integrable_of_hasCompactSupport
(HasCompactSupport.of_compactSpace _)) (his.const_mul L)
intro z
exact lipschitz_sum_nonneg F L hF hFz _ (fun j => (torusShortfall_mem k hk z (a j) (m j) (hm j)).1)
rw [integral_const_mul,integral_finsetSum _ (fun j _ => hi j)] at hh
simpa only [integral_torusShortfall k hk] using hh
lemma deficit_fixed_scaled (k : β) (hk : 0β€ k) (m p l H q : β) (hm : 0< m)
(hmp : mβ€ 2^(p+H)) (hq : p+lβ€ q) :
meanDeficit k (m*2^l)β€ (2:β)^(p+H)*meanDeficit k (2^(q+H)) := by
have hn : m*2^lβ€ 2^(p+l+H) := by
calc
_ β€ 2^(p+H)*2^l := Nat.mul_le_mul_right _ hmp
_ = _ := by rw [βpow_add]; congr 1; omega
have hr : ((2^(p+l+H):β):β)/((m*2^l:β):β)β€ (2:β)^(p+H) := by
apply (div_le_iffβ (by positivity : (0:β)<((m*2^l:β):β))).mpr
have hmR : (1:β)β€ m := by exact_mod_cast hm
push_cast
rw [show p+l+H=(p+H)+l by omega,pow_add]
nlinarith [mul_le_mul_of_nonneg_left hmR (show (0:β)β€ 2^(p+H)*2^l by positivity)]
exact (meanDeficit_ratio k hk _ _ (by positivity) hn).trans
((mul_le_mul_of_nonneg_right hr (meanDeficit_bounds k hk _ (by positivity)).1).trans
(mul_le_mul_of_nonneg_left (meanDeficit_pow_mono k hk (Nat.add_le_add_right hq H)) (by positivity)))
namespace CriticalScaleSequence
lemma observation_scaled_bound (S : CriticalScaleSequence) {R : β}
(p : β) (a : Fin R β β€) (m : Fin R β β) (hm : βj,0< m j)
(F : (Fin R β β) β β) (L : NNReal) (hF : LipschitzWith L F) (hFz : F 0=0) :
β C : β,0β€ C β§ βi l,p+lβ€ S.exponent i β
(β«z,shortfallObservation (S.parameter i) (fun j => a j*2^l) (fun j => m j*2^l) F z βarea)β€ C*S.epsilon i := by
obtain β¨H,hHβ© := exists_nat_gt (βj,m j)
have hmH (j) : m jβ€ 2^(p+H) := by
have hh : m jβ€ βj,m j := Finset.single_le_sum (fun j _ => Nat.zero_le _) (Finset.mem_univ j)
have hpow : Hβ€ 2^H := Nat.le_of_lt (Nat.lt_two_pow_self (n := H))
exact hh.trans (hH.le.trans (hpow.trans (Nat.pow_le_pow_right (by omega) (by omega))))
have hdc := doublingConstant_pos
refine β¨L*(R:β)*((2:β)^(p+H)*(2*(2*doublingConstant)^H)),by positivity,?_β©
intro i l hl
apply (integral_observation_bound (S.parameter i) (S.positive i).le _ _
(fun j => Nat.mul_pos (hm j) (by positivity)) F L hF hFz).trans
have hb (j) : meanDeficit (S.parameter i) (m j*2^l)β€
((2:β)^(p+H)*(2*(2*doublingConstant)^H))*S.epsilon i := by
exact (deficit_fixed_scaled _ (S.positive i).le (m j) p l H (S.exponent i) (hm j) (hmH j) hl).trans
((mul_le_mul_of_nonneg_left (S.terminal i H) (by positivity)).trans_eq (by dsimp [epsilon]; ring))
have hh := Finset.sum_le_sum (s := Finset.univ) (fun j _ => hb j)
have hmul := mul_le_mul_of_nonneg_left hh L.coe_nonneg
simpa only [Finset.sum_const,Finset.card_univ,Fintype.card_fin,nsmul_eq_mul,mul_assoc] using hmul
end CriticalScaleSequence
end StandardMapEntropy
end OAI
|