Learning.feedbackFun_onlineEvalEnv
This page has the declaration's own card below, then its dependency graph, then a card for each dependency (type dependencies first, then the rest of the transitive closure). For a theorem, the graph and the dependency cards only follow its statement's dependencies (its proof is replaced by sorry, so what it proves doesn't depend on how); for everything else, both the type and the body/value are followed, since their content is part of what later declarations build on.
feedbackFun_onlineEvalEnvπ
Learning.feedbackFun_onlineEvalEnvNo docstring.
Learning.feedbackFun_onlineEvalEnv.{u_1, u_2} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} {g : β β π β π¨} {hg : β (n : β), Measurable (g n)} [MeasurableSpace.SeparatesPoints π¨] (n : β) : feedbackFun (onlineEvalEnv g hg) n = fun p => g (n + 1) (Prod.snd p)Learning.feedbackFun_onlineEvalEnv.{u_1, u_2} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} {g : β β π β π¨} {hg : β (n : β), Measurable (g n)} [MeasurableSpace.SeparatesPoints π¨] (n : β) : feedbackFun (onlineEvalEnv g hg) n = fun p => g (n + 1) (Prod.snd p)
Code
lemma feedbackFun_onlineEvalEnv [MeasurableSpace.SeparatesPoints π¨] (n : β) :
feedbackFun (onlineEvalEnv g hg) n = fun p β¦ g (n + 1) p.2Type uses (3)
Body uses (7)
Used by (1)
Actions: Source Β· Open Issue
Proof
by
have h_eq := feedback_eq_deterministic (onlineEvalEnv g hg) n
simpa only [onlineEvalEnv, feedback_obliviousEnv, Kernel.prodMkLeft_deterministic,
Kernel.deterministic_inj] using h_eq.symmDependency graph
Type dependencies (3)
feedbackFunπ
Learning.feedbackFun
The feedback function of a deterministic environment at step n.
Learning.feedbackFun.{u_1, u_2} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} (env : Environment π π¨) [h_det : IsDeterministicEnv env] (n : β) : (β₯(Finset.Iic n) β π Γ π¨) Γ π β π¨Learning.feedbackFun.{u_1, u_2} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} (env : Environment π π¨) [h_det : IsDeterministicEnv env] (n : β) : (β₯(Finset.Iic n) β π Γ π¨) Γ π β π¨
Code
noncomputable
def feedbackFun (env : Environment π π¨) [h_det : IsDeterministicEnv env] (n : β) :
((Iic n β π Γ π¨) Γ π) β π¨ :=
(h_det.exists_f n).chooseType uses (2)
Used by (6)
Actions: Source Β· Open Issue
onlineEvalEnvπ
Learning.onlineEvalEnv
The evaluation environment where the feedback is given by evaluating a fixed measurable function
f at the chosen action.
Learning.onlineEvalEnv.{u_1, u_2} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} (g : β β π β π¨) (hg : β (n : β), Measurable (g n)) : Environment π π¨Learning.onlineEvalEnv.{u_1, u_2} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} (g : β β π β π¨) (hg : β (n : β), Measurable (g n)) : Environment π π¨
Code
noncomputable def onlineEvalEnv (g : β β π β π¨) (hg : β n, Measurable (g n)) := obliviousEnv (fun n β¦ Kernel.deterministic (g n) (hg n))
Type uses (1)
Body uses (1)
Used by (11)
Actions: Source Β· Open Issue
instIsDeterministicEnvOnlineEvalEnvπ
Learning.instIsDeterministicEnvOnlineEvalEnvNo docstring.
Learning.instIsDeterministicEnvOnlineEvalEnv.{u_1, u_2} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} {g : β β π β π¨} {hg : β (n : β), Measurable (g n)} : IsDeterministicEnv (onlineEvalEnv g hg)Learning.instIsDeterministicEnvOnlineEvalEnv.{u_1, u_2} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} {g : β β π β π¨} {hg : β (n : β), Measurable (g n)} : IsDeterministicEnv (onlineEvalEnv g hg)
Code
instance : IsDeterministicEnv (onlineEvalEnv g hg) where exists_f0
Type uses (2)
Body uses (1)
Actions: Source Β· Open Issue
Proof
β¨g 0, hg 0, rflβ© exists_f n := β¨fun p β¦ g (n + 1) p.2, by fun_prop, rflβ©
All dependencies, transitively (3)
Environmentπ
Learning.EnvironmentA stochastic environment.
Learning.Environment.{u_4, u_5} (π : Type u_4) (π¨ : Type u_5) [MeasurableSpace π] [MeasurableSpace π¨] : Type (max u_4 u_5)Learning.Environment.{u_4, u_5} (π : Type u_4) (π¨ : Type u_5) [MeasurableSpace π] [MeasurableSpace π¨] : Type (max u_4 u_5)
Code
structure Environment (π π¨ : Type*) [MeasurableSpace π] [MeasurableSpace π¨] where /-- Distribution of the next observation as function of the past history. -/ feedback : (n : β) β Kernel ((Iic n β π Γ π¨) Γ π) π¨ /-- The feedback kernels are Markov kernels. -/ [h_feedback : β n, IsMarkovKernel (feedback n)] /-- Distribution of the first observation given the first action. -/ Ξ½0 : Kernel π π¨ /-- The initial observation kernel is a Markov kernel. -/ [hp0 : IsMarkovKernel Ξ½0]
Actions: Source Β· Open Issue
IsDeterministicEnvπ
Learning.IsDeterministicEnvAn environment is deterministic if its initial feedbacks are determined by measurable functions (and not possibly random kernels).
Learning.IsDeterministicEnv.{u_1, u_2} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} (env : Environment π π¨) : PropLearning.IsDeterministicEnv.{u_1, u_2} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} (env : Environment π π¨) : Prop
Code
class IsDeterministicEnv (env : Environment π π¨) : Prop where
exists_f0 : β (f0 : π β π¨) (hf0 : Measurable f0), env.Ξ½0 = Kernel.deterministic f0 hf0
exists_f : β n, β (f : ((Iic n β π Γ π¨) Γ π) β π¨) (hf : Measurable f),
env.feedback n = Kernel.deterministic f hfType uses (1)
Used by (11)
Actions: Source Β· Open Issue
obliviousEnvπ
Learning.obliviousEnvAn oblivious environment, in which the distribution of the next feedback depends only on the last action, but in a possibly time-dependent manner.
Learning.obliviousEnv.{u_1, u_2} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} (Ξ½ : β β ProbabilityTheory.Kernel π π¨) [β (n : β), ProbabilityTheory.IsMarkovKernel (Ξ½ n)] : Environment π π¨Learning.obliviousEnv.{u_1, u_2} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} (Ξ½ : β β ProbabilityTheory.Kernel π π¨) [β (n : β), ProbabilityTheory.IsMarkovKernel (Ξ½ n)] : Environment π π¨
Code
def obliviousEnv (Ξ½ : β β Kernel π π¨) [β n, IsMarkovKernel (Ξ½ n)] : Environment π π¨ where feedback n := (Ξ½ (n + 1)).prodMkLeft _ Ξ½0 := Ξ½ 0
Type uses (1)
Used by (10)
Actions: Source Β· Open Issue