Learners with any states: what a state tells apart, and the count billed by the fibers #
[Discovery] §3.4 Proposition 3.11 prices the error count of a deterministic learner by what
one state cannot tell apart. This file states the learner over any type of states
(Learner), the relation behind the proposition (Learner.Reaches: a candidate reaches a state
from a state when the state errs against it at some vector and moves to that state at the
outcome the candidate gives), and the proposition's first clause (Learner.ForgettingBound):
from a state, among at least two candidates, one state is reached by all but max 1 ⌈log₂ m⌉ of
them, m the size of any finset holding the reached states. The clause is proved
(Learner.forgettingBound), from Erdős (1963, Theorem 1) on the property B of families of sets.
Main results #
Learner.forgettingBound— [Discovery] §3.4 Proposition 3.11(i), the first clause, at every number of candidates: a state tells apart all but a logarithm of the candidates that reach it. The sets of candidates a state leaves out at the states it can move to have property B when there are few enough of them, and a set meeting each and containing none colours the candidates so that one colour all reach the same successor.Learner.exists_missCount_ge_of_fibers— [Discovery] §3.4 Proposition 3.12(i), the fiber bill: a learner whose states at timetlie in a finsetΩ t, the finsets carried along by the transitions, has over some realizable stream a count of at leastK + 1, whenever the sizes of the finsets, as the logarithms they contribute (max 1 ⌈log₂ |Ω (i + 1)|⌉), sum overi < Kto less thanC - 1. Each step of the run appliesLearner.forgettingBoundat the current state with the finset of the next time.Learner.exists_missCount_ge_of_fibers_card_le_pow— [Discovery] §3.4 Proposition 3.12(ii), the fiber bill when|Ω t| ≤ 2 ^ (n + 2 t): a count of at leastK + 1wheneverK * (K + 1 + n) + 1 < C.Learner.exists_missCount_ge_of_branching— [Discovery] §3.4 Proposition 3.23, the branching bill: a learner each statesof which has a finsetR sof at mostm ≥ 2states holding every state it moves to has over some realizable stream, at some horizon, a count withC ≤ ⌈log₂ m⌉ * count + 1, with no hypothesis on the start. The induction of the fiber bill, withR sin place of the fiber of the next time.Learner.exists_missCount_ge_of_branching_nonvacuous— the hypotheses hold together, at three candidates and a learner with two states, each moving to either.FiniteLearner.exists_missCount_mul_clog_ge— [Discovery] §3.4 Proposition 3.11(ii): a finite-state learner withS ≥ 2states has over some realizable stream a countmwithC ≤ ⌈log₂ S⌉ * m + 1, that is, a count of at least(C - 1) / ⌈log₂ S⌉.FiniteLearner.exists_missCount_ge_of_card_le_add— [Discovery] §3.4 Proposition 3.11(iii): a learner with at mostC + tstates has over some realizable stream a countmwithC ≤ m + 1 + t * (⌈log₂ (C + t)⌉ - 1). The states that dictate no candidate are thetfurther ones; at a state that dictates a candidate a miss removes one candidate, and at a further stateLearner.ForgettingBoundleaves all but⌈log₂ (C + t)⌉candidates together, while the number of further states a surviving candidate can still reach falls by one, since a candidate that returns to a further state along its misses forces arbitrarily many misses.
A deterministic learner over C candidates, with any type of states. The type of states
with a start state, a prediction from the state and the vector of the candidates' predictions,
and a transition from the state, that vector and the outcome. A FiniteLearner is one whose
states are finitely many (FiniteLearner.toLearner).
- S : Type
The type of states.
- start : self.S
The state a run starts in.
The prediction of a state on the vector of the candidates' predictions.
The transition on the vector of the candidates' predictions and the outcome.
Instances For
A candidate reaches a state. From the state s, the candidate c reaches σ when at some
vector the state errs against the candidate, its prediction differing from the candidate's value,
and moves to σ at the outcome the candidate gives ([Discovery] §3.4 Proposition 3.11).
Instances For
A state tells apart all but a logarithm of the candidates that reach it
([Discovery] §3.4 Proposition 3.11(i)), in the form the counting arguments use. For every learner
L, state s, finset R of states that holds every state some member of U reaches from s,
and set U of at least two candidates, some state σ of R is reached from s by all but
max 1 ⌈log₂ |R|⌉ members of U. The max 1 is needed: a state dictating one candidate
has one successor and leaves that candidate out. It is proved as Learner.forgettingBound.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A state tells apart all but a logarithm of the candidates that reach it
([Discovery] §3.4 Proposition 3.11(i)), from Erdős (1963, Theorem 1). Suppose every state of R
leaves out at least p = max 1 ⌈log₂ |R|⌉ + 1 members of U from those that reach it. The sets
left out number at most 2 ^ (p - 1) and have at least p ≥ 2 members each, so some set B of
candidates meets each and contains none (PropertyB.of_card_le_two_pow). At the vector true on
B and outside U, false on U outside B, the state errs against every member of U in one
colour at the outcome they share, so they reach one successor, which lies in R, and the set
left out at it misses that colour, a contradiction.
The fiber bill. Let Ω t be finsets of states, holding the start at time 0 and carried
into Ω (t + 1) by every transition. Over some realizable stream the count reaches K + 1 at some
horizon whenever the logarithms of the fibers, max 1 ⌈log₂ |Ω (i + 1)|⌉ for i < K, sum to less
than C - 1. Run along a candidate: at each step Learner.forgettingBound at the current state,
with the fiber of the next time as the finset of states, gives a state reached by all but
max 1 ⌈log₂ |Ω (i + 1)|⌉ of the candidates still in play, and the run goes on from it; this
applies [Discovery] §3.4 Proposition 3.11(i) step by step.
The fiber bill for fibers of at most 2 ^ (n + 2 t) states. If the finsets carrying the
start satisfy |Ω t| ≤ 2 ^ (n + 2 t) at every time, then the count reaches K + 1 at some
horizon over some realizable stream whenever K * (K + 1 + n) + 1 < C: the logarithm of the fiber
at time i + 1 is at most n + 2 (i + 1), and those sum to K * n + K * (K + 1).
The fiber bill applies beyond the finite-state learners. A learner over three candidates
whose type of states is infinite, with fibers that grow with the time, and a count to bill for
K = 1: the hypotheses of the fiber bill hold together, so the bill is not vacuous.
The fiber bill for fibers of at most 2 ^ (n + 2 t) states applies beyond the finite-state
learners. A learner over four candidates whose type of states is infinite, with fibers that grow
with the time and satisfy |Ω t| ≤ 2 ^ (0 + 2 t), at n = 0 and K = 1, where
K * (K + 1 + n) + 1 < C: the hypotheses hold together.
The branching bill ([Discovery] §3.4 Proposition 3.23). If every state s of a learner has
a finset R s of at most m ≥ 2 states holding every state it moves to, at every vector and
outcome, then over some realizable stream the count reaches C ≤ ⌈log₂ m⌉ * count + 1 at some
horizon, with no hypothesis on the start. The induction of the fiber bill, with R s in place of
the fiber of the next time: at each step Learner.forgettingBound at the current state, with
R s as the finset of states, gives a state reached by all but ⌈log₂ m⌉ of the candidates still
in play.
The branching bill applies to a learner. Over three candidates, the learner that moves to
the outcome it sees has two states, each of which moves to either: the finsets of successors hold
every transition and have at most m = 2 members, so the hypotheses of the bill hold together.
Proposition 3.11(ii): at every number of states ([Discovery] §3.4 Proposition 3.11(ii)),
from the first clause (Learner.forgettingBound). A learner with S ≥ 2 states has, over some
realizable stream and at some horizon, a count m with C ≤ ⌈log₂ S⌉ * m + 1, that is, a
count of at least (C - 1) / ⌈log₂ S⌉: the fiber bill with every fiber the whole set of states,
each of the first K fibers costing ⌈log₂ S⌉.
Proposition 3.11(iii): past C states ([Discovery] §3.4 Proposition 3.11(iii)), from the
first clause (Learner.forgettingBound). A learner with at most C + t states has, over some
realizable stream and at some horizon, a count m with
C ≤ m + 1 + t * (⌈log₂ (C + t)⌉ - 1). A learner some candidate of which has no state dictating it
misses at every step of a realizable stream (exists_adversary). Otherwise at most t states
dictate no candidate. A state dictating a candidate removes at most that candidate from the ones
still in play at one miss, and at a state dictating none the first clause leaves all but
⌈log₂ (C + t)⌉ of them together; the further states a surviving candidate reaches along its
misses number one fewer after such a step, since a candidate that returns to a further state
along its misses has arbitrarily many misses from it.
The bound at every number of states applies to a learner. At three candidates, the trio chain with one trio has four states, so the hypotheses of the bound hold together.
The bound past C states applies to a learner. At three candidates and one state past
them, the trio chain with one trio has C + 1 states, so the hypotheses of the bound hold
together.