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