File size: 4,537 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 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | import OAI.Dynamics.StandardMap.BridgeGrid
namespace OAI
open MeasureTheory Set
open scoped ENNReal BigOperators
open MeasureTheory Set Filter Metric
open scoped ENNReal Topology Classical
namespace StandardMapEntropy
lemma aligned_intervals_eventually {R : β} (s t : Fin R β DyadicTime)
(hst : β j,(s j:β)<(t j:β)) :
βαΆ p : β in atTop, β (a : Fin R β β€) (m : Fin R β β),
(β j,0< m j) β§ (β j,((2^p:β):β)*(s j:β)=(a j:β)) β§
(β j,((2^p:β):β)*(t j:β)=(a j:β)+(m j:β)) := by
have he (j : Fin R) : βαΆ p : β in atTop,β a : β€,β m : β,0< m β§
((2^p:β):β)*(s j:β)=(a:β) β§ ((2^p:β):β)*(t j:β)=(a:β)+(m:β) := by
obtain β¨pβ,hpββ© := dyadic_interval_aligned_eventually (s j) (t j) (hst j)
filter_upwards [eventually_ge_atTop pβ] with p hp
obtain β¨a,m,hm,ha,hbβ© := hpβ p hp
exact β¨a,2*m,by omega,ha,by simpa only [Nat.cast_mul,Nat.cast_ofNat] using hbβ©
filter_upwards [Filter.eventually_all.mpr he] with p hp
choose a m hm ha hb using hp
exact β¨a,m,hm,ha,hbβ©
lemma exists_bridgeGrid {Rw Rh : β} (u v : DyadicTime) (huv : (u:β)<(v:β))
(sw tw : Fin Rw β DyadicTime) (sh th : Fin Rh β DyadicTime)
(hw : βj,(sw j:β)<(tw j:β)) (hh : βj,(sh j:β)<(th j:β))
(q : β) (hq : (1:β)/(2:β)^qβ€((v:β)-(u:β))/1000)
(hwl : βj,-((1:β)/(2:β)^q)β€(sw j:β)-(u:β))
(hwr : βj,(tw j:β)-(u:β)β€(1:β)/(2:β)^q)
(hhl : βj,-((1:β)/(2:β)^q)β€(sh j:β)-(v:β))
(hhr : βj,(th j:β)-(v:β)β€(1:β)/(2:β)^q) :
β B : BridgeGrid Rw Rh,B.u=u β§ B.v=v β§ B.sw=sw β§ B.tw=tw β§ B.sh=sh β§ B.th=th := by
have hlarge : βαΆ p : β in atTop,(100:β)β€((2^p:β):β)*((v:β)-(u:β)) := by
have ht := (tendsto_pow_atTop_atTop_of_one_lt (by norm_num : (1:β)<2)).atTop_mul_const (sub_pos.mpr huv)
simpa only [Nat.cast_pow,Nat.cast_ofNat] using ht.eventually_ge_atTop 100
have huv' := aligned_intervals_eventually (fun _ : Fin 1 => u) (fun _ : Fin 1 => v) (fun _ => huv)
obtain β¨p,hpq,hpN,β¨aa,mm,hmm,haa,hmm'β©,β¨aw,nw,hnw,haw,htwβ©,β¨ah,nh,hnh,hah,hthβ©β© :=
(eventually_ge_atTop q |>.and (hlarge.and (huv'.and ((aligned_intervals_eventually sw tw hw).and
(aligned_intervals_eventually sh th hh))))).exists
let b := aa 0
let N := mm 0
let r := 2^(p-q)
have hN : (N:β)=((2^p:β):β)*((v:β)-(u:β)) := by
have h1 := haa 0
have h2 := hmm' 0
dsimp [b,N] at *
linarith
have hr : (r:β)=((2^p:β):β)*((1:β)/(2:β)^q) := by
dsimp [r]
push_cast
rw [show p=q+(p-q) from (Nat.add_sub_of_le hpq).symm,pow_add]
simp only [Nat.add_sub_cancel_left]
field_simp
have hpow : (0:β)β€((2^p:β):β) := by positivity
refine β¨{
p := p
u := u
v := v
b := b
N := N
r := r
large := ?_
narrow := ?_
hu := haa 0
hv := hmm' 0,
sw := sw
tw := tw
sh := sh
th := th
aw := fun j => aw j-b
nw := nw
ah := fun j => ah j-b
nh := nh,
pw := hnw
ph := hnh
hwleft := ?_
hwright := ?_
hhleft := ?_
hhright := ?_,
hsw := ?_
htw := ?_
hsh := ?_
hth := ?_},rfl,rfl,rfl,rfl,rfl,rflβ©
Β· exact_mod_cast (by rw [hN]; exact hpN : (100:β)β€N)
Β· rw [hr,hN]
nlinarith [mul_le_mul_of_nonneg_left hq hpow]
Β· intro j
have hb := haa 0
have hj := haw j
have h := mul_le_mul_of_nonneg_left (hwl j) hpow
rw [mul_neg,βhr] at h
exact_mod_cast (show -(r:β)β€(aw j:β)-(b:β) by dsimp [b]; nlinarith)
Β· intro j
have hb := haa 0
have hj := htw j
have h := mul_le_mul_of_nonneg_left (hwr j) hpow
rw [βhr] at h
exact_mod_cast (show (aw j:β)-(b:β)+(nw j:β)β€r by dsimp [b]; nlinarith)
Β· intro j
have hb := hmm' 0
have hj := hah j
have h := mul_le_mul_of_nonneg_left (hhl j) hpow
rw [mul_neg,βhr] at h
exact_mod_cast (show -(r:β)β€(ah j:β)-(b:β)-(N:β) by dsimp [b,N]; nlinarith)
Β· intro j
have hb := hmm' 0
have hj := hth j
have h := mul_le_mul_of_nonneg_left (hhr j) hpow
rw [βhr] at h
exact_mod_cast (show (ah j:β)-(b:β)+(nh j:β)-(N:β)β€r by dsimp [b,N]; nlinarith)
Β· intro j; simpa only [sub_add_cancel] using haw j
Β· intro j; simpa only [sub_add_cancel] using htw j
Β· intro j; simpa only [sub_add_cancel] using hah j
Β· intro j; simpa only [sub_add_cancel] using hth j
end StandardMapEntropy
end OAI
|