Learning.IsAlgEnvSeq.condIndepFun_feedback_history_action_action
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.
condIndepFun_feedback_history_action_actionπ
Learning.IsAlgEnvSeq.condIndepFun_feedback_history_action_actionNo docstring.
Learning.IsAlgEnvSeq.condIndepFun_feedback_history_action_action.{u_1, u_2, u_3} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} {Ξ© : Type u_3} {mΞ© : MeasurableSpace Ξ©} {alg : Algorithm π π¨} {Ξ½ : ProbabilityTheory.Kernel π π¨} [ProbabilityTheory.IsMarkovKernel Ξ½] {P : MeasureTheory.Measure Ξ©} [MeasureTheory.IsProbabilityMeasure P] {A : β β Ξ© β π} {Y : β β Ξ© β π¨} [StandardBorelSpace Ξ©] [StandardBorelSpace π] [Nonempty π] [StandardBorelSpace π¨] [Nonempty π¨] (h : IsAlgEnvSeq A Y alg (stationaryEnv Ξ½) P) (n : β) : ProbabilityTheory.CondIndepFun (MeasurableSpace.comap (A (n + 1)) inferInstance) β― (Y (n + 1)) (fun Ο => (history A Y n Ο, A (n + 1) Ο)) PLearning.IsAlgEnvSeq.condIndepFun_feedback_history_action_action.{u_1, u_2, u_3} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} {Ξ© : Type u_3} {mΞ© : MeasurableSpace Ξ©} {alg : Algorithm π π¨} {Ξ½ : ProbabilityTheory.Kernel π π¨} [ProbabilityTheory.IsMarkovKernel Ξ½] {P : MeasureTheory.Measure Ξ©} [MeasureTheory.IsProbabilityMeasure P] {A : β β Ξ© β π} {Y : β β Ξ© β π¨} [StandardBorelSpace Ξ©] [StandardBorelSpace π] [Nonempty π] [StandardBorelSpace π¨] [Nonempty π¨] (h : IsAlgEnvSeq A Y alg (stationaryEnv Ξ½) P) (n : β) : ProbabilityTheory.CondIndepFun (MeasurableSpace.comap (A (n + 1)) inferInstance) β― (Y (n + 1)) (fun Ο => (history A Y n Ο, A (n + 1) Ο)) P
Code
lemma condIndepFun_feedback_history_action_action [StandardBorelSpace Ξ©]
[StandardBorelSpace π] [Nonempty π] [StandardBorelSpace π¨] [Nonempty π¨]
(h : IsAlgEnvSeq A Y alg (stationaryEnv Ξ½) P) (n : β) :
Y (n + 1) βα΅’[A (n + 1), h.measurable_action (n + 1); P]
(fun Ο β¦ (history A Y n Ο, A (n + 1) Ο))Type uses (5)
Actions: Source Β· Open Issue
Proof
IsObliviousEnv.condIndepFun_feedback_history_action_action h n
Dependency graph
Type dependencies (5)
Algorithmπ
Learning.AlgorithmA stochastic, sequential algorithm.
Learning.Algorithm.{u_4, u_5} (π : Type u_4) (π¨ : Type u_5) [MeasurableSpace π] [MeasurableSpace π¨] : Type (max u_4 u_5)Learning.Algorithm.{u_4, u_5} (π : Type u_4) (π¨ : Type u_5) [MeasurableSpace π] [MeasurableSpace π¨] : Type (max u_4 u_5)
Code
structure Algorithm (π π¨ : Type*) [MeasurableSpace π] [MeasurableSpace π¨] where /-- Policy or sampling rule: distribution of the next action. -/ policy : (n : β) β Kernel (Iic n β π Γ π¨) π /-- The policy is a Markov kernel. -/ [h_policy : β n, IsMarkovKernel (policy n)] /-- Distribution of the first action. -/ p0 : Measure π /-- The first action distribution is a probability measure. -/ [hp0 : IsProbabilityMeasure p0]
Used by (216)
Actions: Source Β· Open Issue
IsAlgEnvSeqπ
Learning.IsAlgEnvSeqAn algorithm-environment sequence: a sequence of actions and feedbacks generated by an algorithm interacting with an environment.
Learning.IsAlgEnvSeq.{u_1, u_2, u_3} {π : Type u_1} {π¨ : Type u_2} {Ξ© : Type u_3} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} {mΞ© : MeasurableSpace Ξ©} (A : β β Ξ© β π) (Y : β β Ξ© β π¨) (alg : Algorithm π π¨) (env : Environment π π¨) (P : MeasureTheory.Measure Ξ©) [MeasureTheory.IsFiniteMeasure P] : PropLearning.IsAlgEnvSeq.{u_1, u_2, u_3} {π : Type u_1} {π¨ : Type u_2} {Ξ© : Type u_3} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} {mΞ© : MeasurableSpace Ξ©} (A : β β Ξ© β π) (Y : β β Ξ© β π¨) (alg : Algorithm π π¨) (env : Environment π π¨) (P : MeasureTheory.Measure Ξ©) [MeasureTheory.IsFiniteMeasure P] : Prop
Code
structure IsAlgEnvSeq
(A : β β Ξ© β π) (Y : β β Ξ© β π¨) (alg : Algorithm π π¨) (env : Environment π π¨)
(P : Measure Ξ©) [IsFiniteMeasure P] : Prop where
/-- The action sequence is measurable. -/
measurable_action n : Measurable (A n) := by fun_prop
/-- The feedback sequence is measurable. -/
measurable_feedback n : Measurable (Y n) := by fun_prop
/-- The first action has the correct law. -/
hasLaw_action_zero : HasLaw (fun Ο β¦ (A 0 Ο)) alg.p0 P
/-- The first feedback has the correct conditional distribution. -/
hasCondDistrib_feedback_zero : HasCondDistrib (Y 0) (A 0) env.Ξ½0 P
/-- The next action has the correct conditional distribution given the history. -/
hasCondDistrib_action n :
HasCondDistrib (A (n + 1)) (history A Y n) (alg.policy n) P
/-- The next feedback has the correct conditional distribution given the history and
next action. -/
hasCondDistrib_feedback n :
HasCondDistrib (Y (n + 1)) (fun Ο β¦ (history A Y n Ο, A (n + 1) Ο))
(env.feedback n) PType uses (3)
Used by (111)
Actions: Source Β· Open Issue
stationaryEnvπ
Learning.stationaryEnvA stationary environment, in which the distribution of the next feedback depends only on the last action.
Learning.stationaryEnv.{u_1, u_2} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} (Ξ½ : ProbabilityTheory.Kernel π π¨) [ProbabilityTheory.IsMarkovKernel Ξ½] : Environment π π¨Learning.stationaryEnv.{u_1, u_2} {π : Type u_1} {π¨ : Type u_2} {mπ : MeasurableSpace π} {mπ¨ : MeasurableSpace π¨} (Ξ½ : ProbabilityTheory.Kernel π π¨) [ProbabilityTheory.IsMarkovKernel Ξ½] : Environment π π¨
Code
def stationaryEnv (Ξ½ : Kernel π π¨) [IsMarkovKernel Ξ½] : Environment π π¨ := obliviousEnv fun _ β¦ Ξ½
Type uses (1)
Body uses (1)
Used by (81)
Actions: Source Β· Open Issue
historyπ
Learning.history
History of the algorithm-environment sequence up to time n.
Learning.history.{u_1, u_2, u_3} {π : Type u_1} {π¨ : Type u_2} {Ξ© : Type u_3} (A : β β Ξ© β π) (Y : β β Ξ© β π¨) (n : β) (Ο : Ξ©) : β₯(Finset.Iic n) β π Γ π¨Learning.history.{u_1, u_2, u_3} {π : Type u_1} {π¨ : Type u_2} {Ξ© : Type u_3} (A : β β Ξ© β π) (Y : β β Ξ© β π¨) (n : β) (Ο : Ξ©) : β₯(Finset.Iic n) β π Γ π¨
Code
def history (A : β β Ξ© β π) (Y : β β Ξ© β π¨) (n : β) (Ο : Ξ©) : Iic n β π Γ π¨ := fun i β¦ (A i Ο, Y i Ο)
Actions: Source Β· Open Issue
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
All dependencies, transitively (1)
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