Transport of algorithms and environments #
Main definitions #
Round.map fo fa fy,Hist.map fo fa fy: round-wise transport of a round and a history along maps of the observation, the action and the feedback, with the special casesmapObs,mapActionandmapFeedbackthat transport a single component.Algorithm.comap alg F hF: the algorithm that transforms the pair (past rounds, current observation) by the measurable mapF nat roundnbefore applying the policy ofalg.Algorithm.comapObs alg f: the algorithm that seesf owhen the observation iso, both in the current round and in the past rounds.Algorithm.comapFeedback alg g: the algorithm that seesg ywhen the feedback of a past round isy.Environment.comap env F hF f hf: the environment that reads the summaryF nof the past rounds and readsf awhen the algorithm playsain the current round.Environment.comapAction env f: the environment that readsf awhen the algorithm playsa, both in the current round and in the past rounds.Algorithm.congr alg e𝓞 e𝓐 e𝓨,Environment.congr env e𝓞 e𝓐 e𝓨: relabelling of the observations, the actions and the feedbacks of a player along measurable equivalences.
Main statements #
IsAlgEnvSeq.hasCondDistrib_action_comapObs,IsAlgEnvSeq.hasCondDistrib_action_comapFeedback: in a run ofalg.comapObs f(resp.alg.comapFeedback g) against any environment, the conditional distribution of the action given the transported history and the transported observation isalg.policy n.IsAlgEnvSeq.hasCondDistrib_obs_comapAction,IsAlgEnvSeq.hasCondDistrib_feedback_comapAction: in a run againstenv.comapAction f, the observations and feedbacks have the conditional distributions of a run ofenvon the transported actions.
Transport a history round-wise.
Equations
- Learning.Hist.map fo fa fy h i = Learning.Round.map fo fa fy (h i)
Instances For
Transport the observations of a round.
Equations
- Learning.Round.mapObs f r = Learning.Round.map f id id r
Instances For
Transport the observations of a history.
Equations
- Learning.Hist.mapObs f h = Learning.Hist.map f id id h
Instances For
Transport the actions of a round.
Equations
- Learning.Round.mapAction f r = Learning.Round.map id f id r
Instances For
Transport the actions of a history.
Equations
- Learning.Hist.mapAction f h = Learning.Hist.map id f id h
Instances For
Transport the feedback of a history.
Equations
- Learning.Hist.mapFeedback f h = Learning.Hist.map id id f h
Instances For
The algorithm with observations in 𝓞' and feedbacks in 𝓨' obtained from
alg : Algorithm 𝓞 𝓐 𝓨 by transforming the pair (past rounds, current observation) by F n at
each round n before applying the policy of alg.
This is the primitive transport operation on algorithms: Algorithm.comapObs and
Algorithm.comapFeedback are the special cases in which F n is a round-wise map of the
observation and of the feedback.
Equations
Instances For
The algorithm that sees f o when the observation is o, both in the current round and in the
past rounds.
Equations
- alg.comapObs f hf = alg.comap (fun (x : ℕ) (p : Learning.Hist 𝓞' 𝓐 𝓨 x × 𝓞') => (Learning.Hist.mapObs f p.1, f p.2)) ⋯
Instances For
The algorithm that sees g y when the feedback of a past round is y.
Equations
- alg.comapFeedback g hg = alg.comap (fun (x : ℕ) (p : Learning.Hist 𝓞 𝓐 𝓨' x × 𝓞) => (Learning.Hist.mapFeedback g p.1, p.2)) ⋯
Instances For
Transporting the observations and the feedbacks of an algorithm are independent operations.
The environment that reads the summary F n of the past rounds and reads f a when the
algorithm plays a in the current round.
This is the primitive transport operation on environments, dual to Algorithm.comap:
Environment.comapAction is the special case in which F n is the round-wise map of the actions.
Only the action can change type, since the observations and the feedbacks are outputs of the
environment; F n can nonetheless forget or summarize the past rounds, as an environment that
reads only the last round does.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The environment that reads f a when the algorithm plays a, both in the current round and in
the past rounds.
Equations
- env.comapAction f hf = env.comap (fun (x : ℕ) => Learning.Hist.mapAction f) ⋯ f hf
Instances For
Relabelling of the observations, the actions and the feedbacks of an algorithm along measurable equivalences.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Relabelling of the observations, the actions and the feedbacks of an environment along
measurable equivalences. See also Algorithm.congr.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The algorithm does not use the part of the observation that it ignores: the conditional distribution of its action given the transported history and observation is its own policy.
The algorithm does not use the part of the past feedbacks that it ignores: the conditional distribution of its action given the transported history and the observation is its own policy.
The environment does not use the part of the action that it ignores: the conditional distribution of the observation given the transported history is its own observation kernel.
The environment does not use the part of the action that it ignores: the conditional distribution of the feedback given the transported history, the observation and the transported action is its own feedback kernel.