File size: 4,081 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 | import OAI.Dynamics.StandardMap.BridgeLinear
namespace OAI
open MeasureTheory Set
open scoped ENNReal BigOperators
open MeasureTheory Set Filter Metric
open scoped Topology ENNReal
namespace StandardMapEntropy
lemma geometric_Ico_bound (q : β) (hq : 0 β€ q) (hqhalf : q β€ 1/2) (l B : β) :
β i β Finset.Ico l B, q^i β€ 2*q^l := by
rw [Finset.sum_Ico_eq_sum_range]
simp_rw [pow_add,mul_comm (q^l)]
rw [β Finset.sum_mul]
have hs : β i β Finset.range (B-l), q^i β€ 2 := by
calc
_ β€ β i β Finset.range (B-l), (1/2:β)^i := by gcongr
_ β€ 2 := sum_geometric_two_le (B-l)
exact mul_le_mul_of_nonneg_right hs (pow_nonneg hq _)
lemma stable_error_sum (M c : β) (D : β β β) (l B : β) (hM : 1 < M)
(_hc : 0 < c) (hq : M ^ (-2*c) β€ 1/2) (_hl : 1 β€ l) (_hlB : l β€ B)
(hD : β i, l β€ i β i β€ B β M^(c*(i:β)) β€ D i) :
β i β Finset.Ico l B, M/(D i*D (i+1)) β€ 2*M^(1-c-2*c*(l:β)) := by
have hpos : 0 < M := by linarith
have hqpos : 0 β€ M ^ (-2*c) := Real.rpow_nonneg hpos.le _
have hpoint (i : β) (hi : i β Finset.Ico l B) :
M/(D i*D (i+1)) β€ M^(1-c)*(M^(-2*c))^i := by
obtain β¨hli,hiBβ©:=Finset.mem_Ico.mp hi
have hDi := hD i hli (by omega)
have hDi' := hD (i+1) (by omega) (by omega)
have hi0 : 0 < D i := (Real.rpow_pos_of_pos hpos _).trans_le hDi
have hi1 : 0 < D (i+1) := (Real.rpow_pos_of_pos hpos _).trans_le hDi'
calc
_ β€ M/(M^(c*(i:β))*M^(c*((i+1:β):β))) := by
apply div_le_div_of_nonneg_left hpos.le (by positivity)
exact mul_le_mul hDi hDi' (Real.rpow_nonneg hpos.le _) hi0.le
_ = _ := by
conv_lhs => lhs; rw [β Real.rpow_one M]
rw [β Real.rpow_add hpos,β Real.rpow_sub hpos,β Real.rpow_mul_natCast,β Real.rpow_add hpos]
Β· congr 1
push_cast
ring
Β· exact hpos.le
calc
_ β€ β i β Finset.Ico l B, M^(1-c)*(M^(-2*c))^i := Finset.sum_le_sum hpoint
_ = M^(1-c)*β i β Finset.Ico l B, (M^(-2*c))^i := by rw [Finset.mul_sum]
_ β€ M^(1-c)*(2*(M^(-2*c))^l) :=
mul_le_mul_of_nonneg_left (geometric_Ico_bound _ hqpos hq l B) (Real.rpow_nonneg hpos.le _)
_ = _ := by
rw [β Real.rpow_mul_natCast hpos.le]
have hh:=Real.rpow_add hpos (1-c) ((-2*c)*(l:β))
rw [show 1-c-2*c*(l:β)=1-c+(-2*c)*(l:β) by ring,hh]
ring
lemma stable_prefix_power_bound (M : β) (D : β β β) (l B : β)
(hM : 1 < M) (hq : M^(-(49/25:β)) β€ 1/2) (hl : 1 β€ l) (hlB : l β€ B)
(hD : β i, l β€ i β i β€ B β M^((49/50:β)*(i:β)) β€ D i)
(hu : D l β€ M^(l:β)) :
(D l)β»ΒΉ+D l*β i β Finset.Ico l B, M/(D i*D (i+1)) β€ 3*M^(-(47/50:β)*(l:β)) := by
have hp : 0 < M := by linarith
have hlR : (1:β) β€ l := by exact_mod_cast hl
have hsum:=stable_error_sum M (49/50) D l B hM (by norm_num) (by convert hq using 1 ; norm_num) hl hlB hD
have hDl :=hD l le_rfl hlB
have hDpos : 0 < D l := (Real.rpow_pos_of_pos hp _).trans_le hDl
have hinv : (D l)β»ΒΉ β€ M^(-(49/50:β)*(l:β)) := by
rw [neg_mul,Real.rpow_neg hp.le]
exact inv_le_invβ hDpos (Real.rpow_pos_of_pos hp _) |>.mpr hDl
have hi : M^(-(49/50:β)*(l:β)) β€ M^(-(47/50:β)*(l:β)) :=
Real.rpow_le_rpow_of_exponent_le hM.le (by nlinarith)
have hmul : D l*(β i β Finset.Ico l B, M/(D i*D (i+1))) β€ 2*M^(-(47/50:β)*(l:β)) := by
calc
_ β€ M^(l:β)*(2*M^(1-49/50-2*(49/50)*(l:β))) :=
mul_le_mul hu hsum (Finset.sum_nonneg fun i hi => by
have hi':=Finset.mem_Ico.mp hi
have h0 := (Real.rpow_pos_of_pos hp _).trans_le (hD i hi'.1 (by omega))
have h1 := (Real.rpow_pos_of_pos hp _).trans_le (hD (i+1) (by omega) (by omega))
positivity) (Real.rpow_nonneg hp.le _)
_ = 2*M^((l:β)+(1-49/50-2*(49/50)*(l:β))) := by rw [Real.rpow_add hp]; ring
_ β€ _ := mul_le_mul_of_nonneg_left (Real.rpow_le_rpow_of_exponent_le hM.le (by linarith)) (by norm_num)
nlinarith
end StandardMapEntropy
end OAI
|