The capped-pool learner grown with its misses #
[Discovery] §3.4. The capped-pool learner (Learner.cappedPoolLearner) over C candidates keeps
its size b fixed. Here its size grows with its number of misses μ, counted up to C: with
L₂ = ⌈log₂ ((C + 1) ^ 2)⌉ and a parameter n at least L₂ + 11, the size after μ misses is
the largest power of two at most (n - L₂ + 2 μ) / 5.5 (Learner.growingCappedPoolSize), and the
age scale m is the size. The learner is Learner.growingCappedPoolLearner; its states are the
pairs of a count of misses and a state of the capped-pool learner, and it moves by
Learner.cappedPoolStep at the size that the step's miss leaves.
Main results #
Learner.growingCappedPoolLearner_start_mem,Learner.growingCappedPoolLearner_step_mem,Learner.growingCappedPoolFiber_card_le— [Discovery] §3.4 Proposition 3.19(ii), the setsLearner.growingCappedPoolFiberhold the start, are carried along by every transition, and at timethave at most(C + 1) ^ 2 * Pstates,Pthe number of sets of ages that meet the caps at the size aftertmisses. A doubling ofbloosens every cap and every age threshold, so a state of the capped-pool learner at the smaller size is one at the larger.Learner.CappedPoolProfilesEstimate— the estimateP ^ 2 ≤ 2 ^ (11 b)of the number of sets of ages atb = m, [Discovery] §3.4 Proposition 3.18(ii)'slog₂ P < 5.5 b, proved asLearner.cappedPoolProfilesEstimateinReflectiveSubsystems/CappedPoolOrder.lean. With it,Learner.growingCappedPoolFiber_card_le_powgives at most2 ^ (n + 2 t)states at timet.Learner.CappedPoolSegmentBound,Learner.cappedPoolSegmentBound— [Discovery] §3.4 Proposition 3.19(i), the count of the capped-pool learner read from any state it reaches, withb = mheld fixed, over a run segment:btimes the misses is at most12times the candidates admitted in the segment plusb * (4 + 9 * ⌊log₂ b⌋); the definition states it and the theorem proves it. The removable candidates are the ones admitted in the segment and at mostbmembers at its start, sobtimes the misses at a full pool or blocked at level0is at most4 (b + Δq); at each leveli < ⌊log₂ b⌋the blockers removed together with the mature members at the scaleL = b * 2 ^ istart at most one cap and gain one cap each time⌊q / L⌋rises, sobtimes that level's misses is at most4 Δq / 2 ^ i + 8 b; onceq = Cevery miss at least halves the pool, at most⌊log₂ b⌋misses.Learner.growingCappedPoolLearner_missCount_le— [Discovery] §3.4 Proposition 3.19(iii), over every realizable stream and at every horizon, for everyB ≥ 1,2 Btimes the count is at most11 B ^ 2 + 24 C + 2 B * ((⌊log₂ (n + 2 C)⌋ + 1) * (9 ⌊log₂ (n + 2 C)⌋ + 5)), from the segment boundLearner.cappedPoolSegmentBound. The run splits at the changes of the size into epochs; every miss removes a candidate, so the count never reaches its cap; the sizes at mostBare distinct powers of two and the epoch at the sizebholds at most(11 b + 3) / 4misses, since the size isbfor that many counts; an epoch at a size aboveBcosts the segment bound's12 Δq / B + 4 + 9 ⌊log₂ b⌋, its pointer at most the growing run's since the admission count is monotone in the size, and the pointers of the epochs sum to at mostC.Learner.growingCappedPoolLearner_missCount_le_sqrt— [Discovery] §3.4 Proposition 3.19(iii), at aBof order√C, the count is at most2 ⌊√(66 C)⌋ + (⌊log₂ (n + 2 C)⌋ + 1) * (9 ⌊log₂ (n + 2 C)⌋ + 5) + 8.Learner.exists_missCount_le_sqrt_of_fibers_card_le_pow— [Discovery] §3.4 Proposition 3.19(ii) and (iii), the learner and its fibers as a learner with finsetsΩ tof at most2 ^ (n + 2 t)states, holding the start, carried along by every transition, with that count on every realizable stream, under the one named hypothesisLearner.CappedPoolProfilesEstimate.Learner.growingCappedPoolLearner_missCount_le_sqrt_nonvacuous— at2 ^ 16candidates andn = 44the bound is7010, belowC - 1.
The size of the growing capped-pool learner after μ misses. With
L₂ = ⌈log₂ ((C + 1) ^ 2)⌉, the largest power of two at most (n - L₂ + 2 min (μ, C)) / 5.5;
once L₂ + 11 ≤ n it is a power of two at least 2, and it is monotone in μ.
Equations
Instances For
The capped-pool learner started at a given state: cappedPoolLearner C b m with its start
replaced by s.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The growing capped-pool learner. A state is the number of misses so far, capped at C,
and a state of the capped-pool learner; with b μ = growingCappedPoolSize C n μ the learner
starts at the start of the capped-pool learner at the size b 0, predicts the majority of the
voters of its state at the size b μ (CappedPoolState.predict), and at an outcome counts a miss
(up to C) and moves by cappedPoolStep at the size the count then gives.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The sets holding the states of the growing capped-pool learner: at time t, the pairs of
a count μ ≤ min (t, C) and a state of the capped-pool learner at the size
growingCappedPoolSize C n μ, with m equal to the size (mem_growingCappedPoolFiber).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Membership in the set holding the states of the growing capped-pool learner.
A doubling loosens the caps: a set that meets the caps at the size b and the age scale
b meets them at b * 2 ^ k for both. The members of age above b * 2 ^ k * 2 ^ j are those of
age above b * 2 ^ (j + k), at most b / 2 ^ (j + k + 1) ≤ b * 2 ^ k / 2 ^ (j + 1).
A doubling loosens the sets of ages: every set of ages that meets the caps at the size b
and the age scale b meets them at b * 2 ^ k for both.
The start of the growing capped-pool learner lies in the set holding its states at time
0. [Discovery] §3.4 Proposition 3.19(ii).
Every transition of the growing capped-pool learner carries the set holding its states at
time t into the set at time t + 1, at every vector and outcome: the count rises by at most
1 and stays at most C, the size at the larger count loosens the caps, and the transition is
the capped-pool learner's at that size. [Discovery] §3.4 Proposition 3.19(ii).
The set holding the states of the growing capped-pool learner at time t has at most
(C + 1) ^ 2 * P states, P the number of sets of ages that meet the caps at the size after
t misses (cappedPoolProfiles): each of the at most C + 1 counts holds at most
(C + 1) * P' states, P' that number at the size after the count, which is at most P.
[Discovery] §3.4 Proposition 3.19(ii).
The estimate of the number of sets of ages, [Discovery] §3.4 Proposition 3.18(ii)'s
log₂ P < 5.5 b: at the size b = 2 ^ k and the age scale b, the number P of sets of ages
that meet the caps (cappedPoolProfiles) has P ^ 2 ≤ 2 ^ (11 b). Proved as
Learner.cappedPoolProfilesEstimate in ReflectiveSubsystems/CappedPoolOrder.lean.
Equations
Instances For
The set holding the states of the growing capped-pool learner has at most 2 ^ (n + 2 t)
states at time t, under the estimate of the number of sets of ages
(CappedPoolProfilesEstimate) and L₂ + 11 ≤ n, L₂ = ⌈log₂ ((C + 1) ^ 2)⌉. Squaring,
(C + 1) ^ 4 ≤ 2 ^ (2 L₂) and 11 b ≤ 2 (n - L₂ + 2 min (t, C)) by the definition of the size.
[Discovery] §3.4 Proposition 3.19(ii).
A segment of a run of the capped-pool learner, with b = m held fixed: [Discovery] §3.4
Proposition 3.19(i), the count of the learner read from any state s of the learner at the size
b that is maximal (a state with a candidate left and fewer than b members is blocked) and
holds the realizing candidate p once p is admitted. b times the misses over any horizon is
at most 12 times the candidates admitted and b * (4 + 9 * ⌊log₂ b⌋). cappedPoolSegmentBound
proves it.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The segment bound of the capped-pool learner, [Discovery] §3.4 Proposition 3.19(i). From
any state of the learner at the size b, with b the age scale, that meets the caps, is blocked
wherever it has a candidate left and fewer than b members, and holds the realizing candidate
once admitted, b times the misses over any horizon is at most 12 times the candidates
admitted and b * (4 + 9 * ⌊log₂ b⌋).
The removable candidates are the ones admitted and at most b members at the start, so b times
the misses at a full pool or blocked at level 0 is at most 4 (b + Δq); at each level
i < ⌊log₂ b⌋ the blockers removed together with the mature members at the scale
L = b * 2 ^ i start at most one cap and gain one cap each time ⌊q / L⌋ rises, so b times
that level's misses is at most 4 Δq / 2 ^ i + 8 b; once q = C every miss at least halves the
pool, at most ⌊log₂ b⌋ misses.
The count of the growing capped-pool learner, from the segment bound
(cappedPoolSegmentBound). Over every
realizable stream and at every horizon, for every B ≥ 1, 2 B times the count is at most
11 B ^ 2 + 24 C + 2 B * ((⌊log₂ (n + 2 C)⌋ + 1) * (9 ⌊log₂ (n + 2 C)⌋ + 5)). The run splits at
the changes of the size into epochs; every miss removes a candidate, so the count never reaches
its cap; an epoch at the size b holds at most (11 b + 3) / 4 misses, and the sizes at most B
are distinct powers of two summing below 2 B; an epoch at a size above B costs at most
12 Δq / B + 4 + 9 ⌊log₂ b⌋ misses by the segment bound, Δq its rise of the pointer, and the
rises sum to at most C. [Discovery] §3.4 Proposition 3.19(iii).
The count of the growing capped-pool learner is of order √C: over every realizable
stream and at every horizon it is at most
2 ⌊√(66 C)⌋ + (⌊log₂ (n + 2 C)⌋ + 1) * (9 ⌊log₂ (n + 2 C)⌋ + 5) + 8, from the count at
B = ⌈2 (⌊√(66 C)⌋ + 1) / 11⌉, where 11 B ^ 2 + 24 C ≤ 4 B ⌊√(66 C)⌋ + 16 B.
[Discovery] §3.4 Proposition 3.19(iii).
The assembly of the growing capped-pool learner in the shape of the fiber bill: under the
named hypothesis CappedPoolProfilesEstimate, for n at least L₂ + 11, a learner and finsets
Ω t of at most 2 ^ (n + 2 t) states, holding the start and carried along by every
transition, whose count on every realizable stream at every horizon is at most
2 ⌊√(66 C)⌋ + (⌊log₂ (n + 2 C)⌋ + 1) * (9 ⌊log₂ (n + 2 C)⌋ + 5) + 8.
[Discovery] §3.4 Proposition 3.19(ii) and (iii).
The bound of the growing capped-pool learner is below C - 1 for some parameters meeting
its hypotheses. At 2 ^ 16 candidates and n = 44, ⌈log₂ ((C + 1) ^ 2)⌉ = 33,
⌊log₂ (n + 2 C)⌋ = 17 and the bound is 7010, below C - 1 = 65535, so the count improves on
the count C - 1 of a learner with a state for each candidate.
[Discovery] §3.4 Proposition 3.19(iii).