File size: 3,486 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 | import OAI.Dynamics.StandardMap.BridgeRealBound
namespace OAI
open MeasureTheory Set
open scoped ENNReal BigOperators
open MeasureTheory Set Filter Metric
open scoped ENNReal Topology Classical
namespace StandardMapEntropy
noncomputable def arrayObservation {R : β} (a b : Fin R β DyadicTime)
(F : (Fin R β β) β β) (d : DistanceArray) : β := F (fun i => arrayShortfall (a i) (b i) d)
lemma continuous_arrayObservation {R : β} (a b : Fin R β DyadicTime)
(F : (Fin R β β) β β) (hF : Continuous F) : Continuous (arrayObservation a b F) :=
hF.comp (continuous_pi fun i => continuous_arrayShortfall (a i) (b i))
lemma arrayObservation_sample {R : β} (k : β) (hk : 0β€ k) (n : β) (hn : 0< n)
(a b : Fin R β DyadicTime) (A : Fin R β β€) (m : Fin R β β) (hm : βi,0< m i)
(ha : βi,(n:β)*(a i:β)=(A i:β)) (hb : βi,(n:β)*(b i:β)=(A i:β)+(m i:β))
(F : (Fin R β β) β β) (z : Torus) :
arrayObservation a b F (sampleArray k hk z n hn)=shortfallObservation k A m F z := by
unfold arrayObservation shortfallObservation
congr 1
funext i
exact shortfall_sample_aligned k hk z n hn (a i) (b i) (A i) (m i) (hm i) (ha i) (hb i)
lemma array_fast_sample (k : β) (hk : 0β€ k) (z : Torus) (n : β) (hn : 0< n)
(u v : DyadicTime) (a : β€) (N : β)
(hu : (n:β)*(u:β)=(a:β)) (hv : (n:β)*(v:β)=(a:β)+(N:β))
(hf : (999/1000:β)*((v:β)-(u:β))< (sampleArray k hk z n hn).val u v) :
torusFastBridge k (torusIter k a z) N := by
change _< rescaledDistance k z n u v at hf
rw [rescaledDistance_aligned k z n u v a (a+(N:β€)) hu (by push_cast; exact hv),
productDistance_forward] at hf
have hshift := torusSegmentTransfer_shift k z 0 a N
rw [zero_add] at hshift
unfold torusFastBridge
rw [hshift,Real.rpow_le_iff_le_log (by linarith [growthBase_ge_four k hk])
(lt_of_lt_of_le zero_lt_one (torusSegmentTransfer_norm_bounds k hk z a N).1)]
have hnp : (0:β)< n := by exact_mod_cast hn
have hg : 0< Real.log (growthBase k) := log_growthBase_pos k hk
have hl : (n:β)*((v:β)-(u:β))=N := by linarith
have he := (lt_div_iffβ hnp).mp hf
have he' := (lt_div_iffβ hg).mp he
nlinarith
lemma integral_observable_sample {R : β} (k : β) (hk : 0β€ k) (n : β) (hn : 0< n)
(a b : Fin R β DyadicTime) (A : Fin R β β€) (m : Fin R β β) (hm : βi,0< m i)
(ha : βi,(n:β)*(a i:β)=(A i:β)) (hb : βi,(n:β)*(b i:β)=(A i:β)+(m i:β))
(F : (Fin R β β) β β) (hF : Continuous F) :
(β« d,arrayObservation a b F d βsampleLaw k hk n hn)=β« z,shortfallObservation k A m F z βarea := by
rw [integral_sampleLaw k hk n hn _ (continuous_arrayObservation a b F hF)]
apply integral_congr_ae
exact Eventually.of_forall (arrayObservation_sample k hk n hn a b A m hm ha hb F)
lemma integral_supported_bound {X : Type*} [MeasurableSpace X] (ΞΌ : Measure X)
(F W : X β β) (hF : Integrable F ΞΌ) (hW : Integrable W ΞΌ) (E : Set X) (hE : MeasurableSet E)
(D : β) (_hD : 0β€ D) (_hW0 : βx,0β€ W x)
(hb : βx,xβE β F xβ€ D*W x) (hz : βx,xβE β F x=0) :
(β« x,F x βΞΌ)β€ D*(β« x in E,W x βΞΌ) := by
rw [βintegral_const_mul,βintegral_indicator hE]
apply integral_mono hF ((hW.const_mul D).indicator hE)
intro x
by_cases hx : xβE
Β· simpa only [indicator_of_mem hx] using hb x hx
Β· rw [hz x hx,indicator_of_notMem hx]
end StandardMapEntropy
end OAI
|