Manuscript Offprint
arXiv:2610.23641No-Regret Language Generation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We introduce no-regret generation, which requires a generator to make a sublinear number of mistakes uniformly over all demonstration sequences and compatible target languages. We also formulate an agnostic variant that allows arbitrary demonstrations that may not be compatible with any languages. For both settings, we introduce tree-based mistake-forcing dimensions that exactly characterize finite-horizon minimax complexity and establish necessary and sufficient conditions for no-regret generation. Our characterizations reveal a rich spectrum of generation rates: up to constant rescaling, every admissible nondecreasing profile is attainable in both the realizable and agnostic settings. Finally, we connect generation complexity to online prediction: for language classes of finite Littlestone dimension , we obtain realizable mistake bounds of and agnostic regret bounds of . The realizable bound is optimal up to universal constants.
Contents
1 Introduction 3
1.1 Main contributions 5
1.2 Related work 6
2 Preliminaries 7
2.1 Language classes 7
2.2 Generation game and trajectories 7
2.3 Realizable and agnostic generation 9
2.4 Success criteria 10
3 Realizable No-Regret Generation 10
3.1 Mistake-forcing dimension 10
3.2 Characterizations of realizable no-regret generation 12
3.3 Finite-horizon versus uniform mistake bounds 13
3.4 The spectrum of realizable no-regret rates 14
4 Agnostic No-Regret Generation 15
4.1 Signed mistake-forcing dimension 15
4.2 Characterizations of agnostic no-regret generation 16
4.3 Realizable versus agnostic generation 17
4.4 The spectrum of agnostic no-regret rates 17
5 Comparison with Other Generation Criteria 18
5.1 Comparison of realizable generation criteria 18
5.2 Noisy generation versus agnostic generation 19
5.3 Finite and countable classes 19
6 From Prediction to Generation 20
6.1 Online prediction and Littlestone dimension 20
6.2 Upper bounds from finite Littlestone dimension 21
6.3 Sharpness in the realizable setting 22
7 Conclusion and Future Work 22
A Proofs for Section 3 25
A.1 Proofs for Section 3.2 25
A.2 Proofs for Section 3.3 30
A.3 Proofs for Section 3.4 31
B Proofs for Section 4 33
B.1 Proofs for Section 4.2 33
B.2 Proofs for Section 4.3 37
B.3 Proofs for Section 4.4 39
C Proofs for Section 5 41
C.1 Definitions of the generation criteria 41
C.2 Proofs for Section 5.1 41
C.3 Proofs for Section 5.2 44
C.4 Proofs for Section 5.3 45
D Proofs of Theorems 6.1 and 6.2 47
D.1 Weighted sequential leaf capacity 47
D.2 Proof of the realizable upper bound 48
D.3 Proof of the agnostic upper bound 51
E Proof of Theorem 6.3 54
F Finite VC Dimension Does Not Imply No-Regret Generation 62
In an usual generation game studied in these works, an unknown target language is fixed before the interaction. At every round, the generator observes a new example from and must produce a new example that has not been demonstrated. The generator succeeds if, for every target and every enumeration of its positive examples, all of its outputs are valid after some finite time.
Requiring a finite last mistake may be too rigid for evaluating generation over a long interaction. A generator may continue to make occasional mistakes at arbitrarily late times while their frequency converges to zero. This behavior is fundamentally different from making mistakes at a constant rate and therefore motivates a distinct criterion for successful generation.
Motivating example 1. Requiring a finite last mistake can exclude classes with strong finite-horizon behavior. To see this, consider an example space
where each block contains different elements and are pairwise disjoint. For every set satisfying
let be the language with
and let be the collection of all such languages. Intuitively, each block is a pool of candidate outputs containing at most one invalid point. If the generator knows that the interaction will last T rounds, it can choose one sufficiently large block and remain there throughout the interaction, and will eventually make at most one mistake.
The infinite interaction behaves differently. Because every block is finite, an anytime generator cannot rely on one block forever. As it moves through new blocks, a target can exclude one of its outputs in each block, causing mistakes at arbitrarily late times. As we will prove later, is not generatable in the limit. Nevertheless, it admits one generator whose worst-case number of mistakes through time T is . Thus, has strong finite-horizon generation performance even though no generator can guarantee a finite last mistake.
This example suggests replacing eventual perfect validity with a rate-sensitive criterion. Panigrahi, Wei, and Zhang pursue this direction in their study of hallucination rates [PWZ26]. Their framework permits infinitely many invalid outputs and instead controls their asymptotic frequency. It therefore distinguishes sparse hallucinations from persistent ones and captures the desirable behavior exhibited by .
Their guarantee, however, is evaluated separately for each target and each enumeration, so the resulting convergence rate may depend on both. This evaluation is from the perspective of the adversary. From the generator's perspective, the target remains unknown: after any finite number of rounds, many different languages may still be compatible with the demonstrations. This motivates requiring a finite-horizon guarantee that holds uniformly over all compatible targets.
Motivating example 2. This lack of finite-horizon control can occur even for a class that is generatable in the limit. Consider the cofinite class
Each language in this class contains every example except those in a finite exceptional set. The class is countable and is therefore generatable in the limit. Consequently, for every fixed target and enumeration, the generator can eventually produce only valid examples and hence achieve a vanishing hallucination rate.
From the generator’s viewpoint, however, the exceptional set F is unknown. After any finite number of demonstrations, many different choices of F remain possible. Indeed, for any horizon T, the language can be chosen such that it contains none of the generator’s outputs. Thus, among the targets compatible with the generator’s observations, there is always one under which it makes T mistakes in T rounds.
Motivated by these examples, we study a finite-horizon minimax formulation of language generation. For a deterministic generator G, demonstrations , and a compatible target
let
denote the number of invalid outputs through time T. We call a class realizable no-regret generatable if one deterministic anytime generator G satisfies
The no-regret criterion is well established in online learning. In online prediction, sublinear regret requires the learner's cumulative loss to approach that of the best comparator [CBL06, RST15]. This viewpoint also extends to partial-feedback problems such as apple tasting, where the learner observes feedback only after taking certain actions [HLL00, RSRT24]. Language generation presents a related feedback limitation: the generator never observes whether its own output is valid.
The realizable framework still assumes that the demonstrations observed through time T share a common explanation in H. In many applications, however, the demonstrations may contain noise or may not be jointly consistent with any candidate language. In that case, there is no distinguished target relative to which mistakes can be counted.
We therefore also introduce an agnostic framework. For every comparator , we compare the number of generated examples that are invalid under with the number of demonstrations that are invalid under the same hypothesis. Writing
the resulting regret is
A class is agnostically no-regret generatable if one deterministic anytime generator satisfies
Thus the generator must asymptotically perform at least as well as every language in H, measured on the same sequence of demonstrations and generated examples. When h contains every demonstration, its demonstration loss is zero and the regret reduces exactly to the realizable mistake count.
Remark: Our definition is one possible formulation of agnostic language generation. Other possibilities include competing only with hypotheses that best explain the demonstrations, or having a budget on the corrupted demonstrations. Studying these alternatives remains open. The framework developed here provides a general starting point that can be adapted to such settings by modifying the comparator class or the loss function.
1.1 Main contributions
Our main contributions are as follows.
• No-regret and agnostic language generation. We introduce no-regret generation as a new success criterion that measures how the cumulative number of mistakes grows with the horizon. We introduce the mistake-forcing dimensions and for realizable generation and the signed mistake-forcing dimension for agnostic generation. These dimensions exactly capture the optimal realizable mistake count, the optimal uniform total-mistake bound, and the optimal agnostic regret, respectively. In particular, gives an answer to the first open question posed by Kleinberg, Peale, and Reingold [KPR26].
Theorem (Informal). A UUS class H is realizably no-regret generatable if and only if , and it is agnostically no-regret generatable if and only if . Moreover, H is uniformly mistake-bounded generatable if and only if .
• The spectrum of generation rates. Our characterizations reveal that no-regret generation admits a much richer range of behavior than a bounded-versus-unbounded classification suggests. Essentially every admissible sublinear rate can arise in both the realizable and agnostic settings.
Theorem (Informal). Up to constant factors, essentially every admissible nondecreasing profile can occur as the optimal realizable mistake rate, and also as the optimal agnostic regret rate, for suitable UUS classes. In particular, logarithmic, polynomial, and arbitrarily slow sublinear rates are all attainable.
• From prediction to generation. Previous work showed that online predictability and generatability are qualitatively incomparable [RLT25]. We show that a quantitative comparison emerges when introducing this no-regret generation.
Theorem (Informal). If , then
and
Hence every UUS class of finite Littlestone dimension is both realizably and agnostically no-regret generatable.
We also construct classes for which the realizable bound is , showing that its dependence on and is optimal up to universal constants.
1.2 Related work
Language identification and generation. Gold introduced identification in the limit [Gol67], and Angluin characterized identification from positive data [Ang80]. Kleinberg and Mullainathan showed that every countable collection of infinite languages is generatable in the limit and established uniform guarantees for finite collections [KM24]. Li, Raman, and Tewari formalized uniform and non-uniform generation, characterized them using closure-based dimensions, and compared generation with prediction [RLT25]. Charikar and Pabbaraju studied non-uniform generation and its variants [CP25, CP26]. Other work examines generation under unions [HKMV25, BPZ26].
Breadth, density, and representation. Generation in the limit guarantees validity but may cover only a small part of the target language. Prior work studies validity and breadth [KMV25, KMV26], output density [KW25, KW26], and representation of prescribed groups [PRR25]. These works study which valid examples are generated; we study how mistakes accumulate over time.
Noise, contamination, and feedback. Prior work studies generation with finitely many noisy demonstrations [RR25], missing examples and feedback [BPZ26], infinitely many corruptions [MVYZ26], and mistake and query feedback [HKMV26]. These models retain a target language and restrict deviations from it. Our agnostic model assumes neither a target nor a noise budget. Instead, it compares output loss with demonstration loss under each . Section 5.2 makes this connection quantitative.
Høgsgaard and Pabbaraju also study agnostic generation, but in a statistical setting with i.i.d. samples [HP26]. They evaluate whether an output belongs to the unseen support of the sampling distribution. We study adversarial sequences and measure regret against candidate languages.
Mistake bounds and resource limits. Kleinberg, Peale, and Reingold studied mistake-bounded generation, including logarithmic mistake bounds for finite classes and extensions to noisy demonstrations [KPR26]. We instead study how the worst-case mistake count grows with the horizon and give an exact combinatorial characterization. Other work studies sample and computational complexity [ABCK25], space efficiency [FPP 26], and memory constraints [KMSV26].
Online prediction. Littlestone dimension characterizes realizable mistake bounds in online binary prediction [Lit88]. We show that it also controls realizable and agnostic generation rates, even though a generator chooses its outputs and never observes their labels. This provides a quantitative connection between prediction and generation.
2 Preliminaries
2.1 Language classes
Let be a countable example space, and let be a nonempty binary hypothesis class. In the language-generation interpretation, each represents a language, with
denoting its set of valid examples.
Write . For , write , with , and abbreviate a finite sequence by . For an infinite sequence, write . Throughout, log denotes the base-two logarithm. For a finite sequence , define its positive version space by
For an infinite sequence , define
Throughout the paper, we impose the following nondegeneracy condition.
Assumption 1 (Uniformly unbounded support). A hypothesis class satisfies the uniformly unbounded support (UUS) condition if
The UUS condition ensures that after any finite sequence of distinct positive demonstrations from a language , another unseen positive example from remains available.
2.2 Generation game and trajectories
The generation game proceeds in rounds. Before round t, the observed history consists of distinct demonstrations
Throughout, we adopt the convention that every demonstration sequence in the generation game, whether finite or infinite , consists of pairwise distinct examples unless stated otherwise.
At round t:
- the generator selects an example
- after observing , the adversary reveals a fresh demonstration
Following [KPR26], we adopt the convention that the generator moves before the adversary in each round. Generated examples need not be distinct: the generator may reuse an example until that example is revealed as a demonstration. Thus only previously demonstrated examples are unavailable. The adversary may also reveal .
Definition 2.1 (Trajectory). A trajectory of length T is a sequence
Its set of revealed demonstrations is
We denote the empty trajectory by . The trajectory is legal if, for every ,
Unless stated otherwise, every trajectory considered in this paper is understood to be legal.
If , we write
for the trajectory obtained by extending by one round, with generated example and revealed example .
Definition 2.2 (Generator). A deterministic anytime generator G assigns to every finite sequence of distinct demonstrations an output
At round t, the generator outputs
A horizon-T generator is defined analogously, but only for histories of length less than T. It may depend on the horizon T.
Our formulation builds on the standard language-generation frameworks of [KM24, RLT25, KPR26]. In this setting, a target language is fixed, and the adversary reveals distinct demonstrations . At round , the generator incurs the mistake loss , which it does not observe because the target language is unknown.
2.3 Realizable and agnostic generation
We study two extensions of this framework. First, we introduce a finite-horizon analysis of realizable generation. A length-T play remains realizable only when some language contains all T demonstrations. Second, we introduce an agnostic game in which the demonstrations need not be jointly realized by any language in H. The finite-horizon viewpoint leads naturally to no-regret generation, which requires the corresponding cumulative loss to grow sublinearly in T.
We define the two settings formally. Fix a horizon T, a deterministic generator G, and distinct demonstrations . The generated examples are determined recursively by
For and , define the invalidity loss by
Definition 2.3 (Realizable generation). The resulting length-T trajectory is realizable by if
The generator’s realizable mistake count with respect to h is
For an infinite realizable trajectory and , the total mistake count of an anytime generator G is
Definition 2.4 (Agnostic generation). In the agnostic game, the demonstrations need not be realized by any language in H. For , the generator's regret with respect to h is
Thus agnostic regret compares the number of generated examples outside h with the number of demonstrations outside h. Positive regret means that the generator has produced more invalid examples than the adversary has demonstrated, as measured with respect to h.
If realizes the demonstrations, then for every , and hence
Realizable generation is therefore the special case of agnostic generation.
2.4 Success criteria
We first formalize the uniform total-mistake criterion, which is introduced by [KPR26].
Definition 2.5 (Uniform mistake-bounded generation). A class H is uniformly mistake-bounded generatable if there exist a deterministic anytime generator G and a finite constant such that
We next define the weaker no-regret criteria. All asymptotic bounds below are uniform over the indicated targets and demonstration sequences.
Definition 2.6 (Realizable no-regret generation). A class H is realizable no-regret generatable if there exists one deterministic anytime generator G such that
Definition 2.7 (Agnostic no-regret generation). A class H is agnostically no-regret generatable if there exists one deterministic anytime generator G such that
A uniform finite mistake bound immediately implies realizable no-regret generation. Moreover, because agnostic regret reduces to the realizable mistake count whenever h contains every demonstration, agnostic no-regret generation implies realizable no-regret generation. The converse implications need not hold.
3 Realizable No-Regret Generation
3.1 Mistake-forcing dimension
We introduce a tree-based dimension that measures how many mistakes an adversary can force, regardless of the generator's strategy. As with Littlestone dimension [Lit88], the tree represents adaptive interaction. The branching structure here reflects the move order of the generation game: the generator moves first, and the adversary chooses a response after observing the generated example.
Definition 3.1 (Trajectory tree). A trajectory tree rooted at a legal trajectory is a rooted directed tree with the following labels:
-
The root r carries , and every node u carries a legal trajectory extending .
-
Every edge is labeled by a legal generator output .
-
The child v is labeled by a legal adversary response and carries the trajectory
The tree is generator-complete if, for every nonleaf u and every legal output , at least one outgoing edge from u is labeled by .
A trajectory tree has horizon T if it has depth T and every leaf has depth T. It is well-founded if it has no infinite branch. Thus, a well-founded tree may have unbounded finite depth, but every maximal path is finite and ends at a leaf.
A trajectory tree can be viewed as an adversarial strategy. At a node u, the generator may choose any legal output . Generator-completeness guarantees that the tree contains at least one outgoing edge with this label, and the adversary may select one of the corresponding responses. Consequently, the game can be determined by a path through the tree.
Definition 3.2 (Mistake pattern). Let be nonempty, and let
be a legal trajectory. A mistake pattern for is a set , where indicates that is a mistake.
The subclass compatible with the mistake pattern I is
We call I feasible if , meaning that some language in realizes the indicated pattern. The set of feasible mistake patterns for is
In particular, .
Definition 3.3 (m-bad trajectory). Let . A legal trajectory is m-bad for if it admits a feasible mistake pattern containing at least m mistakes; equivalently,
Thus, a feasible mistake pattern certifies that the entire trajectory can be explained by a single language in H, and an m-bad trajectory further certifies that the generator may have committed at least m mistakes.
Definition 3.4 (Mistake-forcing tree). Let , and let be a legal trajectory.
An m-mistake-forcing tree of horizon T for H rooted at is a generator-complete trajectory tree of horizon T rooted at such that every leaf v satisfies
A well-founded m-mistake-forcing tree for H rooted at is defined analogously, with the horizon-T requirement replaced by well-foundedness.
The two forms of forcing trees capture different guarantees. A horizon-T tree forces m mistakes by the common terminal time T. A well-founded tree allows the terminal time to depend on the path, but guarantees that every interaction reaches a leaf after finitely many rounds. Its depth may therefore be unbounded across different paths even though no individual path is infinite.
Definition 3.5 (Mistake-forcing dimensions). For , the horizon-T mistake-forcing dimension of is
The uniform mistake-forcing dimension of H is
We set when the forceable integers are unbounded.
In summary, is the largest number of mistakes that the adversary can guarantee by horizon , whereas is the largest uniform number of mistakes it can guarantee at some finite, path-dependent stopping time. The next subsection shows that these combinatorial quantities exactly characterize finite-horizon and uniform realizable mistake complexity, respectively, and that the growth of characterizes realizable no-regret generation.
In the next chapter, we will show that the mistake-forcing dimension plays a central role in characterizing no-regret generation.
3.2 Characterizations of realizable no-regret generation
We now show that the mistake-forcing dimensions characterize three notions of realizable generation. The finite-horizon dimension gives the optimal worst-case mistake count at horizon , while the uniform dimension characterizes the existence of a uniform bound on the total number of mistakes. We then use the entire profile to characterize realizable no-regret generation.
Theorem 3.1. For every nonempty UUS class H and every ,
For each T, the minimum is attained by a generator , which may depend on T.
The intuition behind the proof is that a generator-complete tree describes an adversarial response to every possible output of the generator. Thus, after fixing any generator, the adversary can follow the corresponding path to a leaf and then choose a compatible target language witnessing at least mistakes. Conversely, if the adversary cannot force one more mistake from the current trajectory, the generator can choose an output that keeps this impossible after every legal response. The complete proof appears in Appendix A.
Similarly, we have a characterization for uniform total-mistake bounds, whose proof is also in Appendix A.
Theorem 3.2. For every nonempty UUS class H,
The minimum is taken over deterministic anytime generators.
Consequently, if and only if there exists a generator with a finite uniform bound on the total number of mistakes over all complete realizable plays. This characterization resolves Open Problem 1 posed by [KPR26].
A finite uniform mistake bound immediately implies no-regret generation, but no-regret generation only requires the cumulative number of mistakes to grow sublinearly. The natural candidate characterization is therefore . The challenge is that optimizes separately at each horizon and may be attained by a different generator , whereas no-regret generation requires a single anytime generator. The following theorem shows that this distinction does not create a gap.
Theorem 3.3 (Characterization of realizable no-regret generation). For every nonempty UUS class H, the following are equivalent:
-
H is realizable no-regret generatable;
-
as .
Moreover, let be nondecreasing and unbounded. If
then there exists one deterministic anytime generator G such that, simultaneously for every ,
The proof of this theorem combines a sequence of horizon-dependent generators to obtain one anytime generator. The proof can be found in Appendix A.
3.3 Finite-horizon versus uniform mistake bounds
Every finite-horizon mistake-forcing tree is well-founded, and therefore
It is natural to ask whether equality always holds. In classical online prediction, Littlestone dimension characterizes both finite-horizon and uniform mistake complexity: if at most d mistakes can be forced at every finite horizon, the standard optimal algorithm makes at most d mistakes over the entire interaction. Thus, horizon-dependent guarantees combine into a single uniform guarantee.
Language generation behaves differently. The following theorem shows that the gap between finite-horizon and uniform mistake forcing can be arbitrarily large.
Theorem 3.4. For every , there exists a countable UUS class such that
For every finite k,
whereas
The construction partitions the example space into disjoint finite blocks whose sizes grow without bound. For any fixed horizon T, the generator can remain inside a sufficiently large block and make at most one mistake. An anytime generator, however, must eventually exhaust each finite block and move to new ones, allowing the adversary to reserve one mistaken output from each visited block. Thus, mistakes may accumulate without bound even though the finite-horizon mistake count is always at most one. The whole construction is provided in Appendix A.
3.4 The spectrum of realizable no-regret rates
Theorem 3.3 characterizes realizable no-regret generation through the condition , but it does not restrict how slowly or quickly this sublinear profile may grow. We now show that the range of possible behaviors is remarkably broad. We first examine the bounded endpoint and then construct language classes with essentially arbitrary finite-horizon profiles.
Suppose first that remains bounded. Although the generator attaining may depend on T, the corresponding horizon-dependent strategies can be combined into one anytime generator whose mistakes grow as slowly as any prescribed unbounded function.
Theorem 3.5. Suppose . For every nondecreasing unbounded function satisfying , there exists one anytime generator such that
The intuition is to run fixed-horizon generators over increasingly long phases. Each phase contributes at most d mistakes, and the phase lengths can be chosen so that the number of phases completed by time T grows no faster than . The complete proof appears in Appendix A.
The bounded case is only one endpoint of a much richer spectrum. Our next result shows that, up to constant rescaling of the horizon, essentially every admissible nondecreasing function can occur as a finite-horizon mistake-forcing profile.
Theorem 3.6 (Arbitrary finite-horizon profiles). Let be nondecreasing and satisfy
There exists a countable UUS class such that, for every ,
Consequently, if f is stable under constant rescaling, in the sense that, for every fixed c > 0,
where the implicit constants may depend on c, then
The complete proof appears in Appendix A. The following corollary records several familiar rates obtained from the theorem.
Corollary 3.7. Each of the following asymptotic profiles is attained by for some realizable no-regret generatable class :
where and .
This spectrum is richer than those of several classical online-learning problems. For example, realizable online prediction has minimax mistake rates or [Lit88]; randomized realizable apple tasting has minimax expected mistake rates , , or [RSRT24]; and adversarial multi-armed bandits have minimax regret for a fixed number of arms [ACBFS02]. In contrast, realizable language generation admits essentially every admissible sublinear profile, reflecting its unusual combination of generator-chosen outputs and indirect adversarial feedback.
4 Agnostic No-Regret Generation
In the realizable setting, every revealed example belongs to one target language, so the generator is evaluated by counting its invalid outputs. In the agnostic setting, no language need contain all demonstrations. Instead, for each language , we compare the invalid outputs of the generator with the invalid demonstrations revealed by the adversary. This comparison is signed: invalid generated examples increase regret, whereas invalid demonstrations decrease it.
4.1 Signed mistake-forcing dimension
We use the same trajectory trees as in the realizable setting, but replace the mistake pattern at each leaf by a signed pattern that records both positive and negative contributions to regret.
Definition 4.1 (Signed mistake pattern). Let
be a legal trajectory. A signed mistake pattern for is a pair with , where records the rounds on which the generated example is invalid and records the rounds on which the revealed demonstration is invalid.
The subclass compatible with is
We call feasible if , and write
for the set of feasible signed mistake patterns. In particular,
The signed score of a pattern is
Definition 4.2 (Signed-bad trajectory). For a legal trajectory , define
For , the trajectory is m-signed-bad for if
The realizable mistake patterns from Definition 3.2 are recovered by setting . More precisely,
For such patterns, the signed score reduces to the ordinary mistake count .
Definition 4.3 (Signed mistake-forcing dimension). Let . An m-signed-mistake-forcing tree of horizon for is a generator-complete trajectory tree of horizon , rooted at , whose leaves are all m-signed-bad for .
The horizon-T signed mistake-forcing dimension of H is
Unlike in the realizable setting, we do not introduce a well-founded analogue of the signed mistake-forcing dimension. Under realizability, every revealed example is valid, so the generator's cumulative number of mistakes is nondecreasing: once a leaf certifies m mistakes, later rounds cannot invalidate that certificate. Agnostic regret, however, is the difference between the generator's mistakes and the comparator's mistakes on the revealed examples. Its value may increase or decrease from one round to the next, so it may not converge in the end. A common finite horizon is therefore essential to the signed-tree characterization.
4.2 Characterizations of agnostic no-regret generation
Similarly as in the realizable setting, we next show that is exactly the optimal worst-case agnostic regret at horizon , and the entire profile can be used to characterize agnostic no-regret generation.
Theorem 4.1. For every nonempty UUS class H and every ,
For each T, the minimum is attained by a generator , which may depend on T.
The intuition is the same as in the realizable characterization. The complete proof appears in Appendix B.
The preceding theorem allows the optimal generator to depend on T, but agnostic no-regret generation requires one anytime generator. As in the realizable setting, this distinction does not create a gap.
Theorem 4.2 (Characterization of agnostic no-regret generation). For every nonempty UUS class H, the following are equivalent:
-
H is agnostically no-regret generatable;
-
as .
Moreover, let be nondecreasing and unbounded. If
then there exists one deterministic anytime generator G such that, simultaneously for every ,
The proof combines horizon-dependent generators over a sequence of doubling epochs. A new issue arises because agnostic regret increments may be negative, so the regret incurred during one step cannot be bounded by simply viewing that step as part of a longer run. The proof resolves this using a virtual simulation in which skipped rounds are assigned , producing zero signed increment for every language. The complete construction appears in Appendix B.
4.3 Realizable versus agnostic generation
Every realizable play is a special case of an agnostic play. This relation is also reflected by the two forcing dimensions.
Proposition 4.3. For every nonempty UUS class H and every ,
Indeed, if realizes the demonstrations, then on every round. Its negative-regret set is empty, and its signed score equals the number of generated examples outside . Consequently, agnostic no-regret generation implies realizable no-regret generation.
Finite classes admit both realizable and agnostic guarantees, as shown later in Theorem 5.3. For infinite classes, the converse implication from realizable to agnostic no-regret generation can fail completely. We now give a class with a constant realizable mistake bound but linear agnostic regret.
Theorem 4.4. There exists a countable UUS class satisfies
whereas
The witness class is designed so that, in the realizable game, two positive demonstrations identify infinitely many safe outputs. In the agnostic game, however, a comparator chosen after the trajectory can reject every generated example while accepting enough demonstrations to yield regret at least T/3. Thus, a class may be realizably mistake-bounded but not agnostically no-regret generatable. The construction and proof appear in Appendix B.
4.4 The spectrum of agnostic no-regret rates
Theorem 4.2 reduces agnostic no-regret generation to the growth of . As in the realizable setting, the possible sublinear profiles are remarkably rich. Indeed, the same block construction used for realizable generation produces essentially arbitrary agnostic profiles.
Theorem 4.5. Let be nondecreasing and satisfy
There exists a countable UUS class such that, for every ,
Consequently, if f is stable under constant rescaling, then

Figure 1: Implications among generation criteria. An arrow denotes implication. Every displayed implication is strict, and no additional implication holds except by transitivity.
The lower bound follows from Proposition 4.3 and the realizable profile of . The upper bound uses the same block structure to control the generator's loss and the comparator's demonstration loss simultaneously. The complete construction appears in Appendix B.
Similarly as in the realizable setting, there is a wide range of rates for a single anytime generator.
Corollary 4.6. Each of the following asymptotic profiles is attained by for some agnostically no-regret generatable class :
where and .
The results in Section 4.3 and 4.4 reveal two sharply different relationships between realizable and agnostic generation. For the block classes , the realizable and agnostic profiles have the same asymptotic order, even across essentially arbitrary rates. For the class , by contrast, the realizable mistake bound is constant while the agnostic regret is linear. Thus, the cost of moving from realizable to agnostic generation can range from no asymptotic loss to the largest possible separation.
5 Comparison with Other Generation Criteria
5.1 Comparison of realizable generation criteria
Existing realizable generation criteria differ along two axes. First, they control different aspects of mistakes: the time of the last mistake, the total number of mistakes, or their asymptotic frequency. Second, they differ in whether the guarantee holds uniformly or separately for different targets and demonstration sequences. We present the different definitions in Figure 1 and leave the formal definition in Appendix C.1.
Theorem 5.1 (Informal). For every nonempty UUS class, the implication diagram in Figure 1 is complete: every arrow represents a strict implication, and two criteria are incomparable whenever neither can be reached from the other by a directed path.
The strictness statements are witnessed by a small collection of examples developed earlier in the paper and in the appendix. In Appendix C, we formally present the theorem, and justify all strictness and incomparability statements.
5.2 Noisy generation versus agnostic generation
We clarify that noisy generation and agnostic generation relax realizability in different ways. A noisy model retains a target language and constrains the demonstrations that fall outside it. The agnostic model imposes no such target or constraint and instead compares the generator with every . Nevertheless, the regret identity gives a direct transfer from an agnostic guarantee to any contamination bound in the noisy setting.
Proposition 5.2. Suppose a deterministic generator G and a function satisfy
Then, for every and every demonstration sequence,
Consequently, if and the demonstrations contain invalid examples relative to a target , then the generator produces invalid examples relative to the same target.
The proof of the transfer statement appears in Appendix C.
5.3 Finite and countable classes
Previous work [KM24, RLT25] established that every finite UUS hypothesis class is uniformly generatable and every countable UUS hypothesis class is non-uniformly generatable; see Appendix C.1 for the formal definitions. We now compare their quantitative guarantees. Finite classes admit a uniform bound on total realizable mistakes and a sublinear agnostic regret bound. Countability alone, however, does not guarantee sublinear worst-case mistakes or regret: a countable class can have both profiles equal to T at every horizon T.
We first record the quantitative guarantees available for finite classes. Both bounds follow from results of [KPR26]: the realizable bound from their Theorem 5.1 and the agnostic bound from their Lemma 7.1.
Theorem 5.3 (Finite-class bounds). If , then
and
Theorem 5.3 shows that every finite nonempty UUS class is uniformly mistake-bounded in the realizable setting and agnostically no-regret generatable. The situation changes sharply for countably infinite classes. Every countable UUS class is non-uniformly generatable [RLT25]: there exists one generator such that, for each fixed target , all sufficiently late outputs are valid for . This is a target-by-target guarantee, however. The last-mistake bound may depend arbitrarily on , and countability alone gives no uniform control of the finite-horizon mistake profile. The following proposition makes this limitation explicit.
Proposition 5.4. There exists a class which is countable, UUS, and non-uniformly generatable. Nevertheless,
Consequently, is neither realizable nor agnostically no-regret generatable.
The complete proof appears in Appendix C.
6 From Prediction to Generation
Previous work [RLT25] has showed that online learnability and generatability are incomparable as qualitative properties. We show that a quantitative comparison nevertheless emerges when generation is measured through our setting. Using Littlestone dimension as the prediction complexity and our mistake-forcing dimensions as the corresponding generation complexities, we establish explicit prediction-to-generation bounds in both the realizable and agnostic settings. We further show that the realizable bound we derived is optimal.
6.1 Online prediction and Littlestone dimension
We briefly recall online prediction and Littlestone dimension. In binary online prediction, at each round , the learner observes an example , predicts a label , and then observes the true label . A mistake occurs when . In the realizable setting, the labels satisfy
for some fixed target . In the agnostic setting, the labels are arbitrary, and the learner is evaluated by its expected excess number of mistakes relative to the best hypothesis in .
Definition 6.1 (Littlestone dimension). A binary instance tree of depth is a complete binary tree whose internal nodes are labeled by examples from and whose two outgoing edges are labeled by 0 and 1. The tree is shattered by if every root-to-leaf sequence of edge labels is realized by some on the corresponding node labels.
The Littlestone dimension is the largest depth of a binary instance tree shattered by , or infinity if such trees exist at every finite depth.
Classical results show that Littlestone dimension characterizes both realizable and agnostic online prediction [Lit88, BDPSS09]. The optimal uniform number of realizable prediction mistakes is exactly . Moreover, agnostic online prediction admits sublinear regret if and only if . In particular, if , then its minimax regret is at most
Surprisingly, although generation provides different feedback, we show that Littlestone dimension also controls the generation complexities and .
6.2 Upper bounds from finite Littlestone dimension
We begin with realizable generation. Finite Littlestone dimension limits the number of distinct membership patterns that the adversary can maintain along a trajectory. This yields the following finite-horizon bound.
Theorem 6.1. Let H be nonempty and UUS, and suppose
Then for every T,
Consequently, for fixed d,
Moreover, there exists one deterministic anytime generator G such that, simultaneously for every ,
The intuition is that forcing m mistakes requires the class to support at least distinguishable membership patterns along an associated binary tree. Finite Littlestone dimension bounds the number of such patterns, and taking the logarithm gives the stated mistake bound. The complete proof appears in Appendix D. A similar conclusion holds in the agnostic setting. Here the language may also make mistakes on the adversary's demonstrations, so the argument must control the difference between the two mistake counts. A weighted version of the realizable potential gives the following result.
Theorem 6.2. Let H be nonempty and UUS, and suppose
For every T and every , there is a deterministic generator such that
Consequently, for fixed d,
Moreover, there exists one deterministic anytime generator G such that, simultaneously for every ,
The two terms in the bound reflect a familiar tradeoff as in Lemma 7.1 in [KPR26]. A smaller value of reduces the cost accumulated over the T rounds but increases the cost of maintaining the compatible membership patterns. Balancing the two terms gives the displayed sublinear rate. The complete proof appears in Appendix D. Together with the characterizations in Theorems 3.3 and 4.2, these results show that every UUS class of finite Littlestone dimension is both realizable and agnostically no-regret generatable.
We emphasize that the finite-Littlestone assumption in Theorems 6.1 and 6.2 cannot be replaced by finite VC dimension. Indeed, there exists a countable UUS class H such that
Thus even VC dimension one permits linear generation regret. Appendix F gives the construction and proof.
6.3 Sharpness in the realizable setting
The next theorem shows that the preceding realizable upper bound captures the optimal dependence on both parameters.
Theorem 6.3 (Sharpness of the realizable finite-Littlestone bound). For every integer , there exists a countable UUS class satisfying
such that, for every ,
where the implicit constants are universal.
The construction combines several independent finite blocks. Within each block, the adversary can repeatedly force the generator to distinguish among many candidate languages, producing logarithmically many mistakes. Combining such components makes these costs accumulate while keeping the Littlestone dimension equal to . The complete construction and a more precise quantitative statement appear in Appendix E. Thus the realizable upper bound is optimal, up to universal constants, as a function of and . For agnostic generation, we do not presently have a corresponding sharp lower bound for fixed finite Littlestone dimension. Determining the optimal dependence of on and remains an open problem.
7 Conclusion and Future Work
Our results separate the number of mistakes a generator makes from the time at which it stops making them. A class may admit at most one mistake at every fixed horizon while admitting no finite bound on total mistakes for any single anytime generator. Nevertheless, sublinear finite-horizon mistake bounds suffice for anytime no-regret generation. The agnostic setting introduces a further distinction: even a constant realizable mistake bound need not imply sublinear agnostic regret. These separations show why qualitative generation guarantees alone do not determine quantitative performance.
Several questions remain open. First, the trajectory-tree characterizations give exact minimax values, but evaluating them for concrete hypothesis classes may be difficult. Second, when having a class with Littlestone dimension , the optimal bound of on and remains open. Finally, the present results impose no computational constraints; understanding when the minimax guarantees can be achieved efficiently is a separate challenge.
AI Disclosure
The main technical ideas underlying this work emerged through an extensive, iterative process involving the authors and ChatGPT 5.6 Sol. ChatGPT 5.6 Sol also assisted with writing the paper. The authors take full responsibility for all content in the paper.
References
[ABCK25] Marcelo Arenas, Pablo Barceló, Luis Cofré, and Alexander Kozachinskiy. Language generation: Complexity barriers and implications for learning. arXiv preprint arXiv:2511.05759, 2025.
[ACBFS02] Peter Auer, Nicolo Cesa-Bianchi, Yoav Freund, and Robert E Schapire. The non-stochastic multiarmed bandit problem. SIAM journal on computing, 32(1):48–77, 2002.
[Ang80] Dana Angluin. Inductive inference of formal languages from positive data. Information and control, 45(2):117–135, 1980.
[BDPSS09] Shai Ben-David, Dávid Pál, and Shai Shalev-Shwartz. Agnostic online learning. In COLT, volume 3, page 1, 2009.
[Bha21] Siddharth Bhaskar. Thicket density. The Journal of Symbolic Logic, 86(1):110–127, 2021.
[BPZ26] Yannan Bai, Debmalya Panigrahi, and Ian Zhang. Language generation in the limit: Noise, loss, and feedback. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms, pages 794–816. SIAM, 2026.
[Car79] Yair Caro. New results on the independence number. Technical report, Tel-Aviv University, 1979.
[CBL06] Nicolo Cesa-Bianchi and Gábor Lugosi. Prediction, learning, and games. Cambridge university press, 2006.
[CP25] Moses Charikar and Chirag Pabbaraju. Exploring facets of language generation in the limit. In Proceedings of the Thirty-Eighth Conference on Learning Theory, volume 291 of Proceedings of Machine Learning Research, pages 854–887. PMLR, 2025.
[CP26] Moses Charikar and Chirag Pabbaraju. Pareto-optimal non-uniform language generation. In Proceedings of the 37th International Conference on Algorithmic Learning Theory, volume 313 of Proceedings of Machine Learning Research, pages 1–27. PMLR, 2026.
[FPP 26] Nicolas Flammarion, Chirag Pabbaraju, Hristo Papazov, Miltiadis Stouras, and Ola Svensson. Space-efficient language generation in the limit. In Proceedings of the Thirty-Ninth Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 2477–2502. PMLR, 2026.
[Gol67] E Mark Gold. Language identification in the limit. Information and control, 10(5):447–474, 1967.
[HKMV25] Steve Hanneke, Amin Karbasi, Anay Mehrotra, and Grigoris Velegkas. On union-closedness of language generation. In Advances in Neural Information Processing Systems, volume 38, 2025.
[HKMV26] Steve Hanneke, Amin Karbasi, Anay Mehrotra, and Grigoris Velegkas. Language generation with feedback: Queries and mistakes. In Proceedings of the 43rd International Conference on Machine Learning, 2026. ICML 2026.
[HLL00] David P Helmbold, Nicholas Littlestone, and Philip M Long. Apple tasting. Information and Computation, 161(2):85–139, 2000.
[HP26] Mikael Møller Høgsgaard and Chirag Pabbaraju. Agnostic language identification and generation. arXiv preprint arXiv:2601.23258, 2026.
[KM24] Jon Kleinberg and Sendhil Mullainathan. Language generation in the limit. Advances in Neural Information Processing Systems, 37:66058–66079, 2024.
[KMSV26] Jon Kleinberg, Anay Mehrotra, Amin Saberi, and Grigoris Velegkas. On language generation in the limit with bounded memory. arXiv preprint arXiv:2605.30324, 2026.
[KMV25] Alkis Kalavasis, Anay Mehrotra, and Grigoris Velegkas. On the limits of language generation: Trade-offs between hallucination and mode-collapse. In Proceedings of the 57th Annual ACM Symposium on Theory of Computing, pages 1732–1743, 2025.
[KMV26] Alkis Kalavasis, Anay Mehrotra, and Grigoris Velegkas. On characterizations for language generation: Interplay of hallucinations, breadth, and stability. In Proceedings of the 37th International Conference on Algorithmic Learning Theory, volume 313 of Proceedings of Machine Learning Research, pages 1–49. PMLR, 2026.
[KPR26] Jon Kleinberg, Charlotte Peale, and Omer Reingold. Mistake-bounded language generation, 2026.
[KW25] Jon Kleinberg and Fan Wei. Density measures for language generation. arXiv preprint arXiv:2504.14370, 2025.
[KW26] Jon Kleinberg and Fan Wei. Language generation and identification from partial enumeration: Tight density bounds and topological characterizations. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing, pages 1684–1691. ACM, 2026.
[Lit88] Nick Littlestone. Learning quickly when irrelevant attributes abound: A new linear-threshold algorithm. Machine learning, 2:285–318, 1988.
[MVYZ26] Anay Mehrotra, Grigoris Velegkas, Xifan Yu, and Felix Zhou. Language generation with infinite contamination. In Proceedings of the Thirty-Ninth Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 5053–5112. PMLR, 2026.
[PRR25] Charlotte Peale, Vinod Raman, and Omer Reingold. Representative language generation. arXiv preprint arXiv:2505.21819, 2025.
[PWZ26] Debmalya Panigrahi, Fan Wei, and Ian Zhang. Hallucination rates in language generation, 2026.
[RLT25] Vinod Raman, Jiaxun Li, and Ambuj Tewari. Generation through the lens of learning theory. In Nika Haghtalab and Ankur Moitra, editors, Proceedings of Thirty Eighth Conference on Learning Theory, volume 291 of Proceedings of Machine Learning Research, pages 4740–4776. PMLR, 30 Jun–04 Jul 2025.
[RR25] Ananth Raman and Vinod Raman. Generation from noisy examples. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 51079–51093. PMLR, 2025.
[RSRT24] Vinod Raman, Unique Subedi, Ananth Raman, and Ambuj Tewari. Apple tasting: Combinatorial dimensions and minimax rates, 2024.
[RST15] Alexander Rakhlin, Karthik Sridharan, and Ambuj Tewari. Online learning via sequential complexities. J. Mach. Learn. Res., 16(1):155–186, 2015.
[Wei81] V. K. Wei. A lower bound on the stability number of a simple graph. Technical Report 81-11217-9, Bell Laboratories, Murray Hill, NJ, 1981.
A Proofs for Section 3
A.1 Proofs for Section 3.2
Theorem (Restatement of Theorem 3.1). For every nonempty UUS class H and every ,
For each T, the minimum is attained by a generator , which may depend on T.
Proof. We first prove the lower bound. Let , fix a corresponding -mistake-forcing tree rooted at , and fix an arbitrary horizon- generator . Suppose that the interaction has reached a node . Generator-completeness supplies at least one outgoing edge with precisely this output label. The adversary selects one such edge and reveals its response label. Repeating this procedure reaches a leaf after exactly rounds.
Let be the resulting trajectory at that leaf. Since the leaf is -bad, there is an with . Feasibility of means that is nonempty, so we can choose . Consequently,
This proves the desiring lower bound.
For the reverse inequality, put . Say that a legal trajectory of length at most is forcing if it roots a generator-complete trajectory tree whose leaves have total trajectory length and are all -bad. If has length , the attached tree has further rounds. The empty trajectory is not forcing, since otherwise it would root a horizon- tree forcing mistakes, contrary to the definition of .
At every non-forcing trajectory of length less than , we claim there is a legal output such that every legal response produces a non-forcing successor. Indeed, suppose that no such output existed. Then, for each legal output , one could choose a legal response for which is forcing. Attach one forcing subtree below the edge labeled by and response . The result is generator-complete, all its leaves have total length , and all those leaves are -bad. It would therefore make forcing, a contradiction.
We now define recursively. On each demonstration history reached before time T, choose one of the safe outputs that is non-forcing. This output is legal, and every legal adversarial response preserves the non-forcing invariant.
Now fix a length-T realizable play with target . Every trajectory reached by is non-forcing, so the terminal trajectory is not -bad. Moreover, witnesses the actual mistake pattern
Since is not -bad, we have
Thus has worst-case realizable loss at most , which proves the reverse inequality. Together with the lower bound, this also shows that the displayed minimum is attained by .
Theorem (Restatement of Theorem 3.2). For every nonempty UUS class H,
The minimum is taken over deterministic anytime generators.
Proof idea. We use the same safe-move strategy as in the finite-horizon proof. The only difference is that there is no common deadline. A well-founded forcing tree may stop at a different finite time on each interaction path. At every history, the generator chooses an output such that, regardless of the next demonstration, the adversary cannot still force mistakes before the interaction eventually stops. If no such output existed, the corresponding forcing subtrees could be joined to form a well-founded tree forcing mistakes from the current history.
Proof. We begin with the lower bound. Suppose that a well-founded tree forces m mistakes, and fix an anytime generator G. At each node, the demonstration history determines a legal output of G, and generator-completeness provides an edge carrying that output. Let the adversary follow one such edge. This process cannot produce an infinite branch, so well-foundedness ensures that it reaches a leaf after some finite number of rounds.
At the leaf, choose a feasible mistake pattern with and a witness . The forcing tree gives only a finite adversarial path, but we can extend it to an infinite realizable sequence: Because is infinite while the current prefix is finite, there is always another positive example that has not appeared before. Repeatedly choosing such examples produces an infinite sequence of distinct positive demonstrations.
The generator has already made at least mistakes along the original finite path. Therefore,
For the reverse inequality, assume . We use the same trick as in the proceeding proof here. Call a legal trajectory forcing if it roots a well-founded generator-complete tree whose leaves are all -bad. The empty trajectory is non-forcing by the definition of .
We claim that every non-forcing trajectory admits a legal output for which every legal response-successor remains non-forcing. Otherwise, for each legal output, choose one response leading to a forcing successor, and attach one witnessing well-founded subtree below that edge. This union is generator-complete. It is also well-founded. Indeed, after leaving the new root, every branch remains inside one attached subtree. Since each attached subtree has no infinite branch, the resulting tree has no infinite branch either. Since all leaves are -bad, the union would make the current trajectory forcing, a contradiction.
Define G recursively to choose such a safe output on every finite demonstration history. As in the finite-horizon proof, every adversarial response preserves the non-forcing invariant. A -bad trajectory would itself be a one-node well-founded forcing tree, so every finite trajectory reached by G is not -bad.
Now fix an infinite realizable play with target . At every finite time , witnesses the actual mistake pattern, so the fact that the length-T trajectory is not -bad gives . Hence
This proves the upper bound and its attainment by an anytime generator. If , the lower-bound argument already shows that every generator has infinite worst-case total mistake count, so the equality also holds in that case.
We establish the regularity of as a useful tool in proving the next theorem.
Lemma A.1 (Regularity of the realizable profile). For every nonempty UUS class and every ,
Proof. Fix an arbitrary horizon- generator and restrict its decision rules to histories of length less than . By Theorem 3.1, there are demonstrations and on which this restriction makes at least mistakes. UUS supplies a fresh , so the same realizes the extended play. The nonnegative loss on round cannot erase an earlier mistake, thus .
For the second inequality, take a horizon-T generator attaining . Use its decision rules for the first rounds and choose any legal output on round . On every length- realizable play, the first rounds contribute at most mistakes and the last round contributes at most one. Applying the characterization at horizon yields .
Theorem (Restatement of Theorem 3.3). For every nonempty UUS class H, the following are equivalent:
-
H is realizable no-regret generatable;
-
as .
Moreover, let be nondecreasing and unbounded. If
then there exists one deterministic anytime generator G such that, simultaneously for every ,
Proof idea. Think of as the mistake allowance available by time T. We divide the whole generation process into epochs. During epoch j, we follow a finite-horizon generator whose total mistake bound is , choosing the epoch so that is already at this scale. Since the budgets double across epochs, the total cost of all completed epochs is dominated by the most recent one. Thus, combining the horizon-dependent generators into one anytime generator increases the mistake bound by only a constant factor.
Proof. Suppose first that one anytime generator has worst-case realizable mistake count . Restricting to its first decision rules gives a horizon- generator, so Theorem 3.1 implies that is at most this worst-case count. Hence .
We next prove the quantitative assertion. Let be nondecreasing and unbounded, with for every . Put
and, for every , define
Each is well-defined because is unbounded and nondecreasing. Moreover, from our definition, the sequence is also unbounded and nondecreasing.
For each , Theorem 3.1 supplies a horizon- generator whose worst-case realizable mistake count is
Define the anytime generator G as follows. On round t, let
and set
The index exists because . We show has the desired upper bound for its mistakes.
For any , demonstration sequence , and target , let be the least index with . We can divide the rounds into epochs, with epoch consists of the rounds
Here we assume . For a completed epoch , the loss incurred during is at most the total loss of on the realizable prefix , and is therefore at most . For the possibly partial final epoch , UUS property lets us extend to distinct demonstrations in , so its loss through time is again at most . Summing the epoch bounds gives
If , minimality of gives , which by the definition of implies . If , then the definition give . Consequently,
The pair was arbitrary, so this proves the asserted uniform bound.
Finally, if , Lemma A.1 shows that the profile is nondecreasing. Hence
is nondecreasing. The term makes unbounded even when the mistake-forcing profile is bounded, and all three terms are , so . Applying the quantitative assertion produces one anytime generator with worst-case realizable mistake count at most . Thus is realizably no-regret generatable.
Theorem (Restatement of Theorem 3.5). Suppose . For every nondecreasing unbounded function satisfying , there exists one anytime generator such that
Proof. Let . Choose epoch endpoints
as follows. Having chosen , choose sufficiently large that
Such a choice is possible because r is unbounded.
For each , Theorem 3.1 supplies a horizon- generator with worst-case realizable mistake count at most . During the epoch , let the anytime generator use the decision rule of on the complete demonstration history .
For any , demonstration sequence , and target , let be the least index such that . The rounds are divided into epochs, with epoch consisting of the rounds
For a completed epoch , the loss incurred during is at most the total loss of on the realizable prefix , and is therefore at most . For the possibly partial final epoch , the UUS property lets us extend to distinct demonstrations in . The loss is also at most . Summing the epoch bounds gives
By the minimality of , we have . Therefore, monotonicity of and the choice of the epoch endpoints give
Consequently,
29
☐
A.2 Proofs for Section 3.3
Partition the example space into finite blocks of unbounded size:
We now construct our hypothesis class such that each language have at most one invalid point in each block. Formally, for , define hypotheses by
and set
The classes are countable and UUS because every support is cofinite.
Theorem (Restatement of Theorem 3.4). For every , there exists a countable UUS class such that
For every finite k,
whereas
Proof idea. Intuitively, at a fixed horizon, the generator can choose distinct outputs from one sufficiently large block. Since each target has at most one invalid point in that block, the generator makes at most one mistake. An anytime generator, however, cannot rely on a single finite block forever and must eventually move to new blocks. The adversary can then reserve an invalid output in each newly visited block, allowing the uniform mistake-forcing dimension to be much larger than one.
Proof. Fix and choose a block with . Define a horizon-T generator that outputs points from , always avoiding the demonstrations already revealed. Before round , at most points in the block are excluded. Since , an admissible point remains. Every contains at most one point of , so on every realizable play this generator makes at most one mistake relative to . Therefore
This construction uses only the fact that each admissible set contains at most one point of , which also holds for every member of . Hence the same upper bound holds for .
For the reverse inequality, fix an arbitrary horizon-T generator and write for its first output. Reveal a point , and then reveal distinct points outside for all remaining rounds. These choices are possible because is infinite. The hypothesis , which belongs to every class under consideration, realizes all the demonstrations and makes the first output a mistake. Thus every generator has worst-case realizable loss at least one. Applying Theorem 3.1 gives
for all and all .
We now prove the property for . For any finite since every has at most invalid points, every generator that does not repeat its outputs can make at most mistakes. Thus
For the matching lower bounds, fix an arbitrary anytime generator and a desired finite mistake count m. We construct a finite realizable prefix on which it makes m mistakes. Maintain a reserve R, initially empty, containing at most one point from each block, and ensure that every demonstration lies outside the current reserve. When the generator outputs y, respond as follows:
-
If the block of y has no reserved point, add y to R, count this output as a mistake, and reveal a fresh point outside both R and the previous demonstrations.
-
If y is already the reserved point of its block, count this mistake and again reveal a fresh point outside R and the previous demonstrations.
-
Otherwise, reveal y itself, making that nonreserved point unavailable as a future output.
The fresh responses in the first two cases exist because R and the set of previous demonstrations are finite. A point added to R cannot have been demonstrated earlier, since it is the generator's current legal output. It follows inductively that every demonstration remains outside the eventual reserve.
Stop after m counted mistakes. We claim that the stopping time is finite. Indeed, before m outputs have been counted, the generator can visit at most m - 1 blocks, because its first output in each new block is reserved and counted. These blocks contain only finitely many points. Every further output is either counted or immediately revealed as a demonstration and hence becomes unavailable. Thus the interaction cannot continue indefinitely without reaching m counted outputs.
Now choose the target , whose invalid points are exactly the reserved points in . By construction, the adversary never reveals a point in , so every demonstration is positive for and the play is realizable. For finite , take ; then . For , the finite reserve is allowed for every finite . Combing the lower bound, we therefore have
☐
A.3 Proofs for Section 3.4
Theorem (Restatement of Theorem 3.6). Let be nondecreasing and satisfy
There exists a countable UUS class such that, for every ,
Consequently, if f is stable under constant rescaling, in the sense that, for every fixed c > 0,
where the implicit constants may depend on c, then
Proof idea. This construction reuses the block-and-reserve proof idea from Theorem 3.4. The earlier construction allowed one reserved invalid point per block. Here block has size and allows reserved points. A generator confined to one suitable block then pays at most , while the adversary fills block reserves to force the corresponding number of mistakes.
Proof. Partition a countably infinite example space into blocks
and put . For every finite satisfying for every , define by , and let
There are only countably many finite subsets of the countable space , so is countable. Moreover, each is finite and therefore is infinite. Thus satisfies UUS.
We first prove the upper bound. Fix , and let be the least index with . Use the horizon-T generator that outputs pairwise distinct points of and avoids all earlier demonstrations. Before round , at most previous outputs and previous demonstrations in are excluded. Since this is fewer than , a legal choice always remains. Fix a target . A generated point is a mistake only if it lies in . The outputs are distinct and , so the generator makes at most mistakes. By Theorem 3.1,
Minimality of n gives , and hence . Monotonicity of f now yields
For the lower bound, retain this fixed T, and set
Fix an arbitrary horizon-T generator. We use the reserve idea from the previous proof, with capacity in block . Maintain a finite reserve and a counter , initially and . Given an output , respond according to the following rules until :
-
If , increase by one and reveal a fresh point outside and all previous demonstrations.
-
If and , add to , increase by one, and reveal a fresh point outside and all previous demonstrations.
-
If and , reveal itself.
It remains to show that the counter reaches m before horizon T.
Before the m-th counted output, we have and . Therefore, rule 3 can be used in block only if
because that rule requires to contain reserved points. Moreover, every use of rule 3 reveals the current output as a demonstration, so that point cannot be output again. Since contains points, rule 3 can be used at most times in that block.
Thus, before the m-th counted output, the total number of rounds is at most
Recall that and . By monotonicity of ,
Consequently,
Since and , the m-th counted output occurs by round
At that time, R is finite and satisfies
Hence belongs to . By construction, no point of has been demonstrated, so all demonstrations are positive for . Every counted output, however, belongs to and is therefore a mistake for .
Extend the demonstration sequence through round T using fresh points from . The m mistakes already made remain in the cumulative loss. Thus every horizon-T generator admits a realizable play on which it makes at least m mistakes. By Theorem 3.1,
Finally, if is stable under constant rescaling, then both and are within constant factors of , with constants depending only on the fixed rescaling factors. The two bounds just proved therefore imply .
Corollary (Restatement of Corollary 3.7). Each of the following asymptotic profiles is attained by for some realizable no-regret generatable class :
where and .
Proof. Apply Theorem 3.6 to the displayed functions. Each resulting function is nondecreasing, lies between one and T, sublinear in T and is stable under constant rescaling. Therefore the theorem constructs a countable UUS class whose mistake-forcing profile has the asserted asymptotic order.
B Proofs for Section 4
B.1 Proofs for Section 4.2
Theorem (Restatement of Theorem 4.1). For every nonempty UUS class H and every ,
For each T, the minimum is attained by a generator , which may depend on T.
Proof idea. The proof adapts the safe-move idea from the proof of Theorem 3.1. We just replace the score recorded by the leaf: A realizable leaf records only the rounds on which the generator makes mistakes, here a leaf records a signed pair , with score being exactly the regret.
Proof. We first prove the lower bound. Suppose that an m-signed-mistake-forcing tree of horizon T is given, and fix an arbitrary horizon-T generator . Starting at the root, query on the demonstrations already seen. Generator-completeness says that the current node has an outgoing edge whose generated-example label is the output of . Select one such edge and use its response label as the next demonstration. Repeating this procedure produces a root-to-leaf trajectory
that is consistent with .
The leaf is m-signed-bad, so there is a feasible pattern such that . Choose . By the definition of compatibility, is exactly the set of rounds on which , and is exactly the set of rounds on which . Consequently,
Since was arbitrary, taking the largest forceable m gives
For the reverse inequality, put . For a legal trajectory of length at most , call forcing if it roots a generator-complete continuation tree all of whose leaves have total length and are -signed-bad. The empty trajectory is not forcing, since otherwise that continuation tree would be a -signed-mistake-forcing tree of horizon , contradicting the definition of .
We claim that every non-forcing trajectory of length less than admits a safe legal output: an output for which every legal response makes non-forcing. If no such output existed, then for every legal we could choose a legal response whose successor is forcing. Attach below the edge a forcing continuation tree for that successor. Doing this for every legal output creates a generator-complete forcing tree rooted at , a contradiction. This proves the claim.
Starting from , let recursively choose a safe output. Induction on the number of rounds shows that every trajectory reached by this generator is non-forcing. At length , a trajectory consisting of a single leaf would itself be a forcing continuation tree if that leaf were -signed-bad. Hence every terminal trajectory reached by satisfies .
For any , its behavior on determines a feasible signed pattern . As in the lower bound, its regret equals the signed score of that pattern. Therefore
on every legal demonstration sequence. Thus the minimax value is at most d. Together with the lower bound, this proves equality, and the safe generator constructed above attains the minimum.
Similar as in the realizable setting, we prove the regularity of .
Lemma B.1 (Regularity of the agnostic profile). For every nonempty UUS class and every ,
Proof. First note that, in each round, since generator always outputs an first, the adversary can always choose to output . Using this adversarial strategy, every language class then has increment
on every round. Hence the worst-case regret of every generator is nonnegative, and Theorem 4.1 gives .
To prove monotonicity, fix a horizon- generator and restrict it to its first rounds. Any legal length- play can be extended by responding on round with the generator's output. This final round has zero increment for every comparator, so the worst-case regret of the restriction is no larger than that of the original generator. Minimizing the two quantities and applying Theorem 4.1 yields
For the last inequality, use a minimizing horizon-T generator for the first T rounds, whose existence follows from Theorem 4.1, and choose any legal output on the last round. The last signed increment belongs to , and in particular is at most one. The resulting horizon- generator has worst-case regret at most . Another application of the characterization proves .
Theorem (Restatement of Theorem 4.2). For every nonempty UUS class H, the following are equivalent:
-
H is agnostically no-regret generatable;
-
as .
Moreover, let be nondecreasing and unbounded. If
then there exists one deterministic anytime generator G such that, simultaneously for every ,
Proof idea. We adapt the value-doubling construction from the proof of Theorem 3.3. The realizable argument does not extend directly because cumulative mistakes never decrease, whereas agnostic regret can. We overcome this difficulty using a virtual-generator construction, described in the proof below.
Proof. Suppose first that one anytime generator has worst-case agnostic regret . Restricting to its first decision rules gives a horizon- generator. By Theorem 4.1, is at most the horizon- worst-case regret of this generator, and hence
We now prove the quantitative assertion. Let be nondecreasing and unbounded, with for every . Put
and, for every , define
These maxima are finite, the sequence is nondecreasing, and .
For each , Theorem 4.1 supplies a minimizing horizon- generator , whose worst-case regret is at most
We now combine the horizon-dependent generators into one anytime generator . We divide the rounds into epochs. For each , epoch consists of the rounds
We cannot directly use the argument from the realizable proof. There, all mistake increments are nonnegative, so the horizon guarantee for controls both its contribution during an epoch and every prefix of that epoch. Agnostic regret has signed increments: negative regret before an epoch may hide a large positive contribution during it.
We therefore start a fresh copy of in each epoch, so that its regret records only the contribution of that epoch. Two details remain. First, this fresh copy has not seen the demonstrations from earlier epochs and may propose one of them, which would be illegal in the real interaction. Second, its guarantee of regrets applies at the end of horizon , whereas the current epoch may stop earlier. We handle both issues using zero-regret virtual rounds.
We address the first point by using virtual rounds. At the beginning of epoch j, start a fresh copy of and let
be the set of earlier real demonstrations. Query until it proposes a point outside . If it proposes , return as its virtual response without advancing the real interaction. This round is legal in the virtual interaction because has not previously appeared in its virtual history. It also contributes zero regret for every , since
After receiving z, the virtual generator cannot propose z again.
Once proposes , use as the next real output. After the adversary reveals the real response, feed that response to the virtual generator. The output is legal in the real interaction: it does not belong to , and the legality of ensures that it is different from all demonstrations made during the current epoch.
This simulation fits within the horizon of . There are real rounds in epoch j. In addition, each point of can produce at most one skipped virtual round, so there are at most such rounds. Therefore the total number of virtual rounds is at most
We next extend its virtual to rounds, in which the regret of is guaranteed to be bounded above by . Let be the number of virtual rounds used in its simulation. Extend this virtual play to rounds by setting on each remaining round. Each response is legal because 's output avoids all previous virtual demonstrations, and contributes zero regret for every . The padded play therefore has the same regret as the real prefix because all inserted simulation rounds also contribute zero regret. Applying the horizon- guarantee for to the padded play bounds the regret on the chosen prefix by for every .
Now fix a horizon T, and let J be the least index such that . The regret through time T is the sum of the regret from the completed epochs and the regret from the current prefix of epoch J. Thus
If , then the minimality of gives . Definition of implies . If , then . Therefore, in both cases,
This proves the quantitative assertion.
Finally, suppose that . Define
Lemma B.1 implies that is nondecreasing. The term makes it unbounded, and . Applying the quantitative assertion gives one anytime generator with worst-case regret at most
Hence H is agnostically no-regret generatable.
B.2 Proofs for Section 4.3
Proposition (Restatement of Proposition 4.3). For every nonempty UUS class H and every ,
Proof. Let a leaf of an ordinary m-mistake-forcing tree be witnessed by and , with . Because on every round, the pair is a feasible signed pattern and has signed score . Thus every ordinary m-mistake-forcing tree is also an m-signed-mistake-forcing tree.
Theorem (Restatement of Theorem 4.4). There exists a countable UUS class satisfies
whereas
Proof. Let
We call the base point associated with index , and the -th pair point associated with the pair .
For every cofinite , define
where , and let
We first construct a realizable anytime generator. Fix a realizable play with target . Every index appearing in a demonstration belongs to . A pair point reveals two distinct indices in . If no pair point appears among the first two demonstrations, then those demonstrations are distinct base points and , and hence reveal two distinct indices . Thus, after at most two rounds, the generator knows two distinct indices .
From then on, the generator outputs points with fresh indices . Such a point is always available and belongs to . Therefore, only the first two outputs can be mistakes. By Theorem 3.2,
For the signed lower bound, fix an arbitrary deterministic horizon-T generator G. Our goal is to construct a legal demonstration sequence and then choose a comparator such that every generated point is invalid for , while at most 2T/3 demonstrations are invalid. This will give regret at least T/3.
After observing the output on round , choose an index that has not appeared among and has not been mentioned by any generator output up to that round, and reveal
Only finitely many indices are excluded at each round, so such an always exists. The resulting demonstrations are pairwise distinct and form a legal stream.
Let
By our construction of , no generated base point has its index in . Now form a simple graph with vertex set . Add the edge whenever the generator outputs a pair point associated with . Since at most one edge is added per round, has vertices and at most edges. By Lemma B.2, has a vertex cover , meaning that every edge has at least one endpoint in , such that
We now choose the comparator. Construct a finite set F by including:
-
every index in C;
-
the index of every generated base point;
-
for every generated pair point with , one index from .
Every index added in the second item lies outside D, because no generated base point has its index in D. Every index added in the third item also lies outside D by construction. Therefore, the only elements of D included in F are those in C, and hence
Set . Then is cofinite, so .
Every generated point is invalid for . A generated base point has its index in . A generated pair point contained in meets the vertex cover , while a generated pair not contained in has one index explicitly included in . On the other hand, a demonstration is invalid exactly when . Therefore,
Since G was arbitrary, Theorem 4.1 gives
The next lemma is the classical Caro–Wei bound [Car79, Wei81].
Lemma B.2 (Caro–Wei bound). Let be a finite simple graph. A set is independent if no edge has both endpoints in , and a set is a vertex cover if every edge has at least one endpoint in .
The graph contains an independent set I satisfying
Consequently, if , then has a vertex cover satisfying
Proof. Choose a uniformly random ordering of V, and include a vertex v in I if it precedes all of its neighbors. No two adjacent vertices can both be selected, so I is independent. Moreover, v is selected with probability . Therefore,
where the inequality follows from Cauchy–Schwarz. Hence some ordering produces an independent set of the stated size.
If , then . Its complement is a vertex cover, because no edge can have both endpoints in . Thus
B.3 Proofs for Section 4.4
Theorem (Restatement of Theorem 4.5). Let be nondecreasing and satisfy
There exists a countable UUS class such that, for every ,
Consequently, if f is stable under constant rescaling, then
Proof idea. We use the class already constructed in the proof of Theorem 3.6. For the lower bound, we invoke the result . For the agnostic upper bound, we adapt the finite-block generator from that theorem's proof and use a new observation: if the generator stays inside one sufficiently large block, the regret is at most the generator's number of mistakes.
Proof. Let be the block class constructed in the proof of Theorem 3.6: the example space is partitioned into blocks satisfying
and exactly when is finite, , and for every . That construction also proves that is countable and UUS.
We first invoke two earlier results. The lower bound from Theorem 3.6, followed by Proposition 4.3, gives
It remains to prove the agnostic upper bound. We adapt the finite-block generator from the proof of Theorem 3.6; the agnostic regret comparison below is the only new ingredient. Fix , and let be the least index with . On every round, output a point of that has appeared neither as an earlier output nor as a demonstration. Before round , at most earlier outputs and at most demonstrations are unavailable. Their total is less than , so such an output always exists and is legal. Minimality of gives
Now fix an arbitrary legal demonstration stream and comparator . The comparator's loss on the demonstrations is nonnegative, so discarding it can only increase regret. All generated points are distinct and lie in ; hence precisely those belonging to can be mistakes. Therefore
The displayed bound holds simultaneously for every stream and comparator. Theorem 4.1 and monotonicity of f therefore give
If is stable under constant rescaling, then both and have order . The lower and upper bounds just proved consequently imply .
Corollary (Restatement of Corollary 4.6). Each of the following asymptotic profiles is attained by for some agnostically no-regret generatable class :
where and .
The proof is essentially the same as Corollary 3.7.
C Proofs for Section 5
C.1 Definitions of the generation criteria
Throughout this subsection, is nonempty and UUS. All generators are deterministic and anytime, all demonstration sequences consist of pairwise distinct points, and . An infinite play is realizable by if for every . Such a sequence need not exhaust . We call it an enumeration of if it additionally satisfies
Definition C.1 (Uniform generation [KM24, RLT25]). A class H is uniformly generatable if there exist a generator G and such that, for every , every infinite play realizable by h, and every ,
Definition C.2 (Non-uniform generation [RLT25]). A class H is non-uniformly generatable if there exists a generator G such that, for every , there is a for which every infinite play realizable by h satisfies
Definition C.3 (Generation in the limit [KM24]). A class H is generatable in the limit if there exists a generator G such that, for every and every enumeration of supp(h), there is a satisfying
Definition C.4 (Zero-rate generation in the limit [PWZ26]). A class H is zero-rate generatable in the limit if there exists a generator G such that, for every and every enumeration of supp(h),
We also recall the two criteria defined earlier. A class is uniformly mistake-bounded generatable if there exist a generator and such that
for every and every infinite play realizable by . It is realizably no-regret generatable if there exists a generator satisfying
In the latter display, the supremum ranges over all pairs consisting of a length-T demonstration sequence and a language realizing that sequence.
C.2 Proofs for Section 5.1
For the theorem and its proof, abbreviate the six properties as follows:
U : uniform generation,
M : uniform mistake-bounded generation,
N : non-uniform generation,
R : realizable no-regret generation,
L : generation in the limit,
Z : zero-rate generation in the limit.
An implication between two properties means that every nonempty UUS class satisfying the first also satisfies the second.
Theorem (Formal statement of Theorem 5.1). The following implications hold:
These implications are complete: for any distinct properties , if there is no directed path from to using the displayed arrows, there exists a nonempty UUS class satisfying but not . In particular, each displayed implication is strict, and any two properties with no directed path in either direction are incomparable.
Proof. We prove the implications, their strictness, and the incomparability claims in turn.
Implications. If witnesses with cutoff , then it makes at most mistakes on every realizable play, proving . The same cutoff works for each target separately, proving .
Suppose witnesses with bound . Fix , a demonstration sequence , and . Since is infinite, this prefix extends to an infinite play realizable by the same . Therefore
The bound is uniform in the prefix and target, so it proves . On each enumeration of a target, the same generator makes finitely many mistakes, hence has a finite last-mistake cutoff. This proves .
Every enumeration of a target is an infinite realizable play for that target. Thus a target-dependent cutoff also applies to each enumeration, proving . A uniform mistake bound applies to every fixed target enumeration, proving . Finally, finitely many mistakes have asymptotic frequency zero, proving .
Strictness of the implications. The classes and from Theorem 3.4 satisfy
By Theorems 3.2 and 3.3, satisfies M, whereas satisfies R but not M. Both classes consist of cofinite languages and are subclasses of the cofinite class in Proposition 5.4. The non-uniform generator from that proposition therefore witnesses N for each of these subclasses.
The class does not satisfy . To prove this, fix any generator and any proposed cutoff . Choose distinct demonstrations and put , using the empty history if . Legality gives . The language with support belongs to , realizes this prefix, and makes the output on round invalid. Extend the prefix to an infinite realizable play for this language. Thus no pair witnesses .
By Proposition 5.4, satisfies N and
Theorem 3.3 rules out R. The implications proved above give the remaining positive properties used below.
The class satisfies M and N but not U, so both implications from U are strict. The class satisfies R and L but not M, so and are strict.
Lemma C.1 below constructs a nonempty UUS class satisfying M but not N. Since , this proves that is strict. The class satisfies N, hence Z, but not R, proving that is strict. Finally, Lemma C.2 below constructs a nonempty UUS class satisfying R but not L. It satisfies Z by , so is strict as well.
Incomparable criteria. Exactly three unordered pairs have no directed path in either direction. For M and N, the class satisfies M but not N, whereas satisfies N but not M. For N and R, the class satisfies N but not R, whereas satisfies R but not N. For R and L, the class satisfies R but not L, whereas satisfies L but not R.
Combining all these arguments, the proofs are complete.
Lemma C.1 (A uniform mistake bound without non-uniform generation). There exists a nonempty UUS class that admits a uniform bound of two mistakes but is not non-uniformly generatable.
Proof. Let
For each nonempty and each function , define
This class is nonempty and UUS, since each language contains an infinite row with one point removed.
To obtain a uniform mistake bound, output any point on the first round. If the first demonstration lies in , subsequently output points of avoiding all previous outputs and demonstrations. Such points always exist. For any target realizing the demonstrations, , so only one point of this row is invalid. There is at most one mistake after the first round, and hence at most two mistakes in total.
To disprove N, fix a generator G. We construct a single target for which no cutoff works uniformly over its realizable plays. For every , let
If , write ; legality implies . Form a simple undirected graph on by adding the edge whenever and . Each edge can be oriented from one of the indices that generated it, so that every vertex has outdegree at most one. Every finite subgraph therefore has at most as many edges as vertices. Consequently, each connected component has at most one cycle: two cycles in one component, together with a finite connecting path, would give a finite subgraph with more edges than vertices. Each component is thus a tree or a unicyclic graph and admits a proper three-coloring. Choose an infinite color class . If and with , then .
Define by
For every , the prefix is positive for this same , since . Its next output is negative: either it is the excluded point of , or it belongs to a row outside . Given any , choose with and extend to an infinite play realizable by . The output on round is invalid. Thus for this fixed target there is no valid cutoff, and cannot witness . Since was arbitrary, satisfies but not .
Lemma C.2 (Realizable no-regret generation without generation in the limit). There exists a nonempty UUS class that is realizably no-regret generatable but is not generatable in the limit. Moreover, for every horizon , it admits a generator making at most one mistake on every realizable play of length T.
Proof. Partition a countably infinite space into finite blocks
and define
The class is nonempty and UUS, since every language contains at least one point from each block. Unlike , this class allows R to be infinite, which lets the construction below reserve an invalid point in each new block visited by the generator while keeping a single target in the class.
For a fixed horizon T, choose a block with at least 2T points and output distinct points of that block, avoiding all previous demonstrations. Before round , at most points are excluded, so this strategy is legal. Every target excludes at most one point of the block; hence the strategy makes at most one mistake. Theorems 3.1 and 3.3 give R.
Now we show it is not generatable in the limit. Fix an arbitrary generator and an enumeration of . Starting with , construct the play recursively. On round , let . If its block has no point in , set ; otherwise set . Reveal the first point in the fixed enumeration that does not belong to
This point exists because the displayed set is finite. Put . At most one point is reserved in each block, so belongs to . A demonstration is outside the reserve when revealed and cannot be reserved later: any later addition is a legal generator output and hence is not a previous demonstration. Thus all demonstrations belong to .
They also enumerate the entire support. Indeed, fix . Until it is demonstrated, it is always eligible for selection. The priority rule can select a point ahead of it at most times, since demonstrations are distinct. Therefore is eventually demonstrated.
Suppose, for a contradiction, that makes only finitely many mistakes on this enumeration. The first output in each new block is reserved and is a mistake under ; therefore only finitely many blocks are visited. After the last mistake, every output must be a nonreserved point in their finite union. All such points are eventually demonstrated, after which none is a legal output. This is a contradiction. Thus makes infinitely many mistakes on an enumeration of the single target . Since was arbitrary, fails for .
C.3 Proofs for Section 5.2
Proposition (Restatement of Proposition 5.2). Suppose a deterministic generator G and a function satisfy
Then, for every and every demonstration sequence,
Consequently, if and the demonstrations contain invalid examples relative to a target , then the generator produces invalid examples relative to the same target.
Proof. For every comparator h, the definition of regret gives the exact identity
The assumed regret bound proves the displayed inequality. If both terms on its right-hand side are , then their sum is also , which proves the final assertion.
C.4 Proofs for Section 5.3
Theorem (Restatement of Theorem 5.3). If , then
and
Proof. If N = 1, both claims are immediate, so suppose N > 1.
Identify each hypothesis with its support . Theorem 5.1 of [KPR26] provides an anytime generator whose total number of realizable mistakes is at most . The uniform total-mistake characterization, Theorem 3.2, therefore gives
For the agnostic bound, Lemma 7.1 of [KPR26] shows that, for every , there exists a generator such that, for every demonstration sequence and every ,
Subtracting the comparator's loss on the demonstrations gives
If , take
Then
If , the trivial bound
is already smaller than . The finite-horizon agnostic characterization, Theorem 4.1, therefore yields
for every .
Proposition (Restatement of Proposition 5.4). There exists a class which is countable, UUS, and non-uniformly generatable. Nevertheless,
Consequently, is neither realizable nor agnostically no-regret generatable.
Proof. Fix an enumeration
For every finite , define by
and let
The set of finite subsets of a countable set is countable, so is countable. Every cofinite subset of the infinite space is infinite, and hence the class is UUS.
We next give an explicit non-uniform generator. At round , after seeing the demonstrations , let
and output . This is a legal output, and the minimum exists because only finitely many points have been demonstrated. Fix a target , and put
For every , we have , so . Thus no mistake occurs after round , proving non-uniform generatability.
Now we prove this class is not no-regret generatable. Fix now a horizon T and an arbitrary horizon-T generator. Construct the demonstrations recursively. After the generator outputs , choose
Such a point exists because X is infinite. At the end of the play, let
Set . The construction ensures that every demonstration lies in , while every generated example lies outside it. The play is therefore realizable by , and the generator makes mistakes. Since no length- play can contain more than mistakes, the finite-horizon characterization yields
Finally,
where the first inequality is Proposition 4.3. The two linear profiles rule out realizable and agnostic no-regret generation.
D Proofs of Theorems 6.1 and 6.2
D.1 Weighted sequential leaf capacity
A class of finite Littlestone dimension cannot maintain many competing possibilities indefinitely: after sufficiently many binary splits, some of those possibilities must merge or disappear. We turn this limitation into a quantity that measures the remaining complexity of the class. Later we will construct a generator that chooses its outputs so that this quantity cannot grow too quickly. This controls both the number of realizable mistakes and the agnostic regret.
For a class , a bounded weight function , a point , and , write
Define the weighted sequential leaf capacity recursively by
The empty class has capacity zero.
The recursion can be represented by an adaptive binary tree. At each internal node, choose a point and split the current hypothesis class into those satisfying and those satisfying . The point chosen at the next node may depend on the labels encountered earlier, so different branches may use different points.
After such splits, every leaf contains the hypotheses consistent with the labels along its path. The value of a leaf is the largest weight of a hypothesis reaching it. Then is the largest possible sum of the leaf values over all adaptive trees of depth . In particular, when , it is simply the largest possible number of nonempty leaves.
The capacity is positively homogeneous: for every ,
where . This follows directly by induction on : the identity holds for the supremum at depth zero, and the recursive sum preserves multiplication by at every later depth.
It is also subadditive over disjoint unions: if , then
Indeed, the claim for follows from . For , we just need to apply the induction hypothesis to the two label restrictions at each possible root query and then take the supremum over that query.
The following lemma is the sequential analogue of the classical Sauer–Shelah lemma; see [Bha21]. We include its proof because its recursive structure will also be used below.
Lemma D.1 (Sequential Sauer–Shelah bound). If , then
Proof. Let
We prove the assertion by induction on . If is empty, there is nothing to prove. If , then . If , no point can induce two nonempty label restrictions; otherwise that point would itself form a depth-one shattered tree. Consequently each query has at most one nonempty child, and induction on gives .
Now suppose , and fix a possible root query . Splitting according to the label assigned to gives the two subclasses
Each subclass has Littlestone dimension at most . Moreover, they cannot both have dimension . Otherwise, each subclass would shatter a tree of depth ; placing at the root and attaching these two trees to its zero and one branches would give a depth- tree shattered by . After interchanging the labels if necessary, we may therefore write
The induction hypothesis applies to both depth- capacities, so Pascal's identity yields
This bound holds for every z. Taking the supremum in the definition of completes the induction.
D.2 Proof of the realizable upper bound
The next lemma captures the main one-round guarantee. One generation round corresponds to two levels of the capacity tree: one for the generated point and one for the demonstration. The lemma shows that the generator can choose its output so that, regardless of the adversary's response, the remaining capacity does not increase after these two levels are removed.
Lemma D.2. Let , let be nonempty, and suppose that takes only finitely many values. Then the maximum below is attained. Choose
For any , let
and define, for every ,
In other words, the update doubles the weight of every surviving hypothesis that labels negative and leaves all other surviving weights unchanged. Then
Proof. For , define
The surviving class consists of two disjoint parts: , whose hypotheses label negative, and , whose hypotheses label positive. The weights of hypotheses in double because they regard as a mistake, while the weights in remain unchanged. Subadditivity and homogeneity of the capacity therefore give
It remains to show that the original capacity is at least this quantity.
Consider the branch consisting of hypotheses that label negative, namely , and split this subclass according to their labels on . The two resulting subclasses are and . Therefore, the capacity recursion gives
Next, maximality of over , together with , implies
Now split the subclass according to the hypotheses' labels on . The two resulting subclasses are and , so the capacity recursion gives
Finally, use as the root query in the depth-n capacity. Adding the preceding bounds yields
which proves the claim.
We now combine the preceding two lemmas. At horizon T, begin with a capacity tree of depth 2T. Each generation round uses two levels of this tree, and Lemma D.2 ensures that the remaining capacity does not increase. After T rounds, a compatible hypothesis on which the generator has made m mistakes has weight . Its weight is therefore bounded by the initial capacity, which the sequential Sauer–Shelah bound controls through the Littlestone dimension. Taking logarithms then gives the desired mistake bound.
Theorem (Restatement of Theorem 6.1). Let H be nonempty and UUS, and suppose
Then for every T,
Consequently, for fixed d,
Moreover, there exists one deterministic anytime generator G such that, simultaneously for every ,
Proof. Fix a horizon T. We construct a horizon-T generator use Lemma D.2. After t rounds, the version space is
Initially, , and every hypothesis has weight one. In each round, we discard hypotheses inconsistent with the new demonstration and double the weight of each remaining hypothesis for which the generated point is a mistake, leaving all other weights unchanged. Consequently, for every ,
At the start of round , define
Choose
Now consider any realizable response . The update is
Since for , Lemma D.2 applies with and , giving
Because , these inequalities telescope over the T rounds. At the terminal time the remaining capacity has depth zero, so
Applying Lemma D.1 shows that every satisfies
This proves the desired upper bound. It remains to simplify the binomial expression. If , the standard estimate gives
whose base-two logarithm is . If , the binomial sum is ; in this regime , and the elementary lower bound shows that . Therefore
For fixed , this is .
Finally, choose a sufficiently large universal constant C and set
The preceding estimate makes an upper bound on . It is also nondecreasing and unbounded. We therefore can use the quantitative conclusion of Theorem 3.3: that result converts this finite-horizon envelope into one deterministic anytime generator with loss at most simultaneously for all . This is the asserted anytime rate.
D.3 Proof of the agnostic upper bound
The agnostic setting has the same two-level structure: one level corresponds to the generated point and the other to the demonstration. The difference is that the demonstration need not be positive for a comparator, so no hypothesis can be removed. Instead, we increase the weights of comparators that outperform the generator and decrease the weights of those that do worse. The next lemma shows that this update can again be controlled by two levels of the capacity tree.
Lemma D.3. Let , let be nonempty, and let . Suppose that takes only finitely many values. Then the maximum below is attained. Choose
For every , define
Thus the weight of h increases when h outperforms the generator, decreases when it performs worse, and otherwise remains unchanged.
Then
Proof. For , let
The weight update leaves the weights unchanged on and , multiplies them by on , and multiplies them by on . Since these four subclasses are disjoint, subadditivity and homogeneity give
To compare this expression with the old capacity, we derive two lower bounds on . The first counts every subclass once, while the second gives an additional copy of . Their convex combination will reproduce the coefficients in the updated capacity.
For the first bound, we split V according to the hypotheses' labels on , and then split each of the two resulting subclasses according to their labels on x. The four resulting subclasses are , and . Applying the capacity recursion twice gives
For the second bound, again split V according to the label on . Within , splitting according to the label on x gives
For the other subclass, the maximizing choice of gives
Splitting according to the label on gives
Adding these bounds yields
Finally,
Since , this convex combination is at most , proving the lemma.
We now apply the same capacity framework to agnostic regret. No comparator is removed after a demonstration; instead, its weight records how well it has performed relative to the generator. The preceding lemma ensures that the total weighted complexity remains controlled, while a comparator with large regret would acquire a large weight. Combining these observations with the sequential Sauer–Shelah bound yields the following result.
Theorem (Restatement of Theorem 6.2). Let H be nonempty and UUS, and suppose
For every T and every , there is a deterministic generator such that
Consequently, for fixed d,
Moreover, there exists one deterministic anytime generator G such that, simultaneously for every ,
Proof. Fix and , and put
Since log is base two, , and hence . For each , define
The signed increment is exactly the one-round regret
Thus a comparator with positive cumulative advantage tends to acquire a large weight. All factors lie in , so the weights are positive and, at each fixed time , take only finitely many values.
As in the realizable proof, put
and choose
The same finite-range argument used above shows that the maximizer exists. The UUS assumption ensures that is nonempty.
The point at which this argument differs from the realizable one is the update: the adversary's response does not remove any comparator. Instead, for every ,
Lemma D.3, used with parameter , therefore gives, for every legal response ,
Since , the potential telescopes exactly as in the realizable argument:
We now convert this multiplicative estimate into regret. For , the base-two logarithm satisfies
Applying this inequality to every factor in gives, for each comparator h,
Here we used and . Combining the lower bound on with the capacity upper bound and dividing by yields
Because is nonempty, . Moreover, Lemma D.1 gives
Substituting this estimate into the preceding regret bound yields, together with Theorem 4.1, gives
The binomial estimate from the realizable proof gives
Choose
Substituting this choice into the preceding bound gives
For fixed d, the second term is eventually dominated by the first, so
Finally, after increasing the implicit constant if necessary, the right-hand side defines a non-decreasing and unbounded finite-horizon envelope. The quantitative conclusion of Theorem 4.2 converts this envelope into one anytime generator, proving the last assertion simultaneously for all horizons.
E Proof of Theorem 6.3
This appendix proves the sharpness result Theorem 6.3 in three steps. We first construct a basic class of Littlestone dimension one that can force logarithmically many mistakes. We then combine several independent copies of this construction so that both the number of forced mistakes and the Littlestone dimension add. Finally, we place constructions of all relevant sizes into one countable class, allowing the adversary to select the scale appropriate for the given horizon. This gives the desired lower bound, and the matching upper bound follows from Appendix D.
Lemma E.1. For every integer , there is a finite UUS class such that
Proof. Put . Let , and let be pairwise disjoint countably infinite sets, all disjoint from . On the example space , define
We call a point to be a core point. Every hypothesis has infinite support, so is UUS.
We first calculate its Littlestone dimension. A core point has zero restriction , while a point in has one restriction . These are the only nonconstant types of split, so every nonconstant split has a singleton child. Consequently no query can have two children of Littlestone dimension at least one, and no depth-two tree is shattered. On the other hand, two distinct hypotheses differ on a core point, so a depth-one tree is shattered. Hence .
It remains to prove the generation lower bound. Fix an arbitrary deterministic horizon- generator. The adversary maintains a set of hypotheses that remain possible targets.
Initially . Whenever the adversary reveals a core point , the hypothesis , which labels negative, is removed from . Hence precisely when has not yet been revealed, and every hypothesis indexed by labels all demonstrations so far positive. Assign each remaining candidate the weight
where is the number of mistakes made so far relative to . Thus the weight of a candidate doubles whenever the generator makes another mistake for that candidate. We construct an adversary strategy that will maintain
Initially, all K candidates remain and have weight one, so . As candidates are eliminated, this invariant forces their weight to concentrate on the surviving candidates. The adversary stops as soon as some surviving candidate has weight at least K. Until then, every surviving weight is a power of two strictly smaller than K.
The adversary always responds with a fresh core point, thereby removing one candidate from S. We choose this response so that the invariant is preserved. Every legal generator output is either a core point or a point in one of the private tails, leading to the following four cases.
Case 1. Suppose the generator outputs a core point , and there exists with . Reveal . This removes candidate , while candidate remains and its weight doubles because . Hence
Case 2. Suppose the generator outputs , but is the unique smallest weight in S. Reveal , thereby removing candidate i.
Every other weight is a power of two strictly larger than , and is therefore a multiple of . Consequently, is odd. On the other hand, , so is even. Thus . Since and both quantities are multiples of ,
It follows that
Case 3. Suppose the generator outputs a point in with . This output is invalid for every surviving candidate. Choose an index of minimum weight and reveal . Candidate is removed, while the weights of all remaining candidates double. Therefore
Before the stopping condition is reached, contains at least two indices; otherwise its only remaining weight would equal . Thus , and hence
Case 4. Suppose the generator outputs a point in with . Let
We claim that . Otherwise,
where the last inequality follows because is a power of two strictly smaller than . This contradicts .
Reveal , removing the only surviving candidate for which the generated tail point is valid. Every remaining candidate regards that output as a mistake, so all remaining weights double. Therefore
These four cases cover every possible generator output and show that the invariant is preserved after every round.
It remains to show that the stopping condition is reached within rounds. Each round removes one candidate. If the process had not stopped after rounds, only one candidate would remain. Its weight would equal , contradicting the assumption that the stopping condition had not been reached. Hence some surviving index reaches
within rounds, and therefore . By construction, every response is positive for . If the process stops early, use fresh points of as demonstrations to pad the play to horizon ; the mistakes already forced are unaffected. The generator was arbitrary. The finite-horizon characterization in Theorem 3.1 therefore gives , which is the desired conclusion.
We now combine independent copies of the construction from Lemma E.1. This makes both the Littlestone dimension and the number of forced mistakes add across components.
Lemma E.2. For every , there is a finite UUS class such that
Proof. Put . Take pairwise disjoint core components
and, for every vector , a countably infinite private tail , with all these sets pairwise disjoint. Define
The class is finite, and every member has an infinite private tail, so it is UUS. We first prove that
For the lower bound, consider the depth-q tree whose query at level is . Given any root-to-leaf label sequence, choose
The resulting hypothesis realizes the chosen path. Thus the tree is shattered, and
For the upper bound, consider the following realizable online prediction rule. On a core point from , predict one until the unique omitted point is observed with label zero. This can cause at most one mistake and then identifies . Hence core points cause at most one mistake per coordinate.
On a private-tail point, predict zero unless the complete target vector is already known. A negative label is predicted correctly, whereas a positive label identifies the target hypothesis immediately, because each private tail belongs to exactly one hypothesis. If this positive label causes a mistake after r coordinates have already been identified, then , and the total number of mistakes is at most
Once the target is known, every subsequent label is predicted correctly. Thus the rule makes at most q mistakes on every realizable sequence. If a depth- tree were shattered, choosing at every node the label opposite to the rule's prediction would give a realizable path on which the rule makes mistakes, a contradiction. Therefore
which proves the equality.
We now prove the generation lower bound by running the single-component strategy from Lemma E.1 independently in each coordinate.
Fix an arbitrary deterministic horizon- generator. For each coordinate , maintain a nonempty candidate set and weights
Initially,
As long as coordinate is unresolved, maintain
with every a power of two strictly smaller than K.
The weights have the same interpretation as in Lemma E.1: doubling records a generated point that is invalid for every maintained target whose -th coordinate equals i.
A coordinate becomes resolved as soon as some surviving weight reaches . At that moment, choose an index satisfying
replace permanently by the singleton
and never update this coordinate again. Thus, once a coordinate resolves, its eventual value is frozen.
At every time, let
be the pool of target vectors that the adversary continues to maintain. This need not contain every hypothesis consistent with the demonstrations, because freezing a coordinate may discard additional consistent hypotheses. We maintain the invariant that every demonstration revealed so far is positive for every with . Freezing only shrinks , so it preserves this invariant.
While at least one coordinate remains unresolved, respond to the generator as follows.
Case 1. Suppose the generator outputs a core point from an unresolved coordinate . Apply the corresponding core-point response from the proof of Lemma E.1 to coordinate .
That response reveals a core point , removes j from , doubles precisely the surviving weights corresponding to coordinate values for which is invalid, and preserves
If a surviving weight reaches K, immediately freeze coordinate at one such index.
Case 2. Suppose the generator outputs a point from , where
Choose any unresolved coordinate , reveal , and remove from .
The generated tail point is valid only for , and this hypothesis is eliminated by the response. Consequently, the generated point is invalid for every target vector that remains in . Charge this mistake to coordinate by doubling all remaining weights in that coordinate.
The calculation from Case 4 in the proof of Lemma E.1 shows that the updated weights still satisfy
Indeed, writing
that calculation gives
If a surviving weight reaches K, freeze coordinate .
Case 3. Suppose the generated point is invalid for every with . Choose any unresolved coordinate and apply Case 3 from the proof of Lemma E.1: choose an index of minimum weight, reveal , remove , and double all remaining weights in that coordinate.
An unresolved coordinate has at least two candidates; otherwise its single weight would equal , and it would already be resolved. Thus
and the updated total satisfies
Freeze coordinate if a surviving weight reaches K.
Case 4. The remaining possibility is that the generator outputs a core point from a resolved coordinate , with
This point is positive for every target remaining in P. Reveal itself, after which it becomes unavailable for future output.
Notice that the omitted point is invalid for every maintained target and therefore belongs to Case 3, not Case 4.
These cases are exhaustive. A core point from an unresolved coordinate belongs to Case 1. A private-tail point belongs to Case 2 if its vector is in P; otherwise it is invalid for every maintained target and belongs to Case 3. For a resolved coordinate, its omitted core point belongs to Case 3, while every other available core point belongs to Case 4.
Moreover, every response is positive for every target remaining in P. Thus the target-consistency invariant is preserved.
The same argument remains valid when the construction is embedded in a larger disjoint example space and every hypothesis is extended by zero outside its own component. Any generated point outside the component is invalid for every maintained target and therefore falls under Case 3.
Call a round in Cases 1–3 a progress round. Every progress round removes one candidate from an unresolved coordinate. A coordinate can undergo at most such removals before it resolves: after removals, only one candidate would remain, and its weight would equal
Hence there are at most
progress rounds.
Case 4 can occur at most times for each resolved coordinate, because there are only core points with , and each such point is immediately revealed and becomes unavailable. Thus there are at most another
Case 4 rounds. Consequently, every coordinate resolves within
rounds.
Let
be the final frozen vector. For each coordinate , the weight started at one and reached at least
It therefore doubled at least m times.
Every doubling of this final surviving weight occurred on a round whose generated point is invalid for . In Case 1, the weight doubles only when the generated core point is invalid for coordinate value . In Cases 2 and 3, the generated point is invalid for every target remaining in P, including .
Only one coordinate is updated on each progress round. Therefore, the m doublings in each of the q coordinates occur on qm distinct rounds. It follows that the generator makes at least
qm
mistakes relative to .
By the target-consistency invariant, every demonstration is positive for . If all coordinates resolve before round , complete the trajectory using fresh demonstrations from . The mistakes already forced are unaffected. Therefore,
Since , this becomes
as claimed.
Next, we combine independent copies of the construction from Lemma E.2 to obtain the desired lower bound. This makes both the Littlestone dimension and the number of forced mistakes add across components.
Theorem (Restatement of Theorem 6.3). For every integer , there exists a countable UUS class satisfying
such that, for every ,
where the implicit constants are universal.
Proof. Fix . For every and , take a disjoint copy of from Lemma E.2 and add a new marker . Extend every to the common disjoint example space by
and let
There are countably many pairs , and every component contains finitely many hypotheses, so is countable. Each hypothesis retains its countably infinite private tail, so the class is UUS.
We next verify . A single marked component has the same Littlestone dimension as : its marker is constant one on that component, and every point outside its component is constant zero, so the extension introduces no new nonconstant split within the component.
For the lower bound, select a component with and use its marker as the root query. The positive restriction contains that component and has Littlestone dimension . The negative restriction contains a different component with , because all hypotheses in the second component label the selected marker zero. It too has dimension at least . Placing the marker above shattered trees of depth in these two restrictions gives a shattered tree of depth . Hence .
For the upper bound, observe that every point is either a unique marker or belongs to the universe of a unique component. Its positive restriction is therefore contained in a single marked component, of dimension at most . If a point rooted a shattered tree of depth , both of its label restrictions would have Littlestone dimension at least , which is impossible for the positive restriction. Thus .
We now prove the generation lower bound. Fix , and choose any parameters satisfying
Against an arbitrary horizon-T generator, reveal on the first round. This response restricts the eventual target to the selected component. During the next rounds, use the product adversary from Lemma E.2. The first-round marker is disjoint from the component universe and does not interfere with the construction. The product adversary forces mistakes, and fresh points in the final target's private tail pad the trajectory to length . Hence
It remains to select and . First suppose . Set
Then , the horizon constraint holds, and . Since the base-two logarithm satisfies for ,
Thus is at least a universal constant multiple of the desired quantity.
Now suppose . Set
The definition of gives , so the horizon constraint holds. Put . Since , we have , and
The logarithm inside the floor is at least one. For every , ; therefore
It follows that is at least a universal constant multiple of . Combining the two regimes proves
For the matching upper bound, we use Theorem 6.1, proved in Appendix D, together with the already established identity . It gives
The lower and upper estimates complete the proof.
F Finite VC Dimension Does Not Imply No-Regret Generation
We show that the finite-Littlestone assumption in Theorems 6.1 and 6.2 cannot be replaced by finite VC dimension. The example is a countable class of infinite paths in a binary tree. Although no pair of examples is shattered, the adversary can extend the demonstrated path so that every generated example is invalid.
Proposition F.1. There exists a countable UUS class H such that
and
Consequently, finite VC dimension does not imply either realizable or agnostic no-regret generation.
Proof. Let the example space consist of all nonempty finite binary strings:
For an infinite binary sequence , define by
Thus, an example is valid under precisely when it is a nonempty prefix of b. Consider the class
Every eventually-zero sequence is determined by a finite binary prefix followed by zeros, so is countable. Each support contains one string of every positive length and is therefore infinite. Hence is UUS.
VC dimension. The singleton consisting of the one-bit string 0 is shattered: the sequence 000… gives label one, whereas 1000… gives label zero.
To see that no pair is shattered, take distinct strings . If neither is a prefix of the other, no infinite sequence has both as prefixes, so the labeling is impossible. Otherwise, suppose without loss of generality that is a proper prefix of . Every hypothesis satisfies
so the labeling , is impossible. Thus .
Forcing a mistake on every round. Fix a horizon and an arbitrary deterministic horizon-T generator . We construct a legal demonstration sequence and a single hypothesis satisfying
where
We construct a binary path one bit at a time. Let be the empty string. At round , extend by one bit to obtain a string of length , and reveal
In particular, before round t, every nonempty prefix of has already been demonstrated.
Call two finite strings incompatible if neither is a prefix of the other. We choose so that is incompatible with . Because the generator's output is fresh, it cannot be a nonempty prefix of . There are therefore two cases:
-
If is incompatible with , set . The output remains incompatible with this extension.
-
Otherwise, strictly extends . Let be its next bit, so that for some possibly empty string . Set
The strings and now disagree at position , and hence are incompatible.
Here juxtaposition denotes concatenation. At the first round, every possible output strictly extends the empty string, so the second case applies.
The demonstrations are pairwise distinct because . Moreover, incompatibility persists under extension. Consequently, after round , every output is incompatible with . Every has an eventually-zero infinite extension, so the demonstrations remain jointly realizable throughout the construction.
After rounds, let be the infinite sequence obtained by appending zeros to , and set . Then . Each demonstration is a prefix of , whereas every generated output is incompatible with and therefore cannot be a prefix of . Thus
Since all demonstrations are valid under , we also have
Although is specified at the end of the construction, it is one hypothesis witnessing every round of the trajectory. For fixed and , the entire construction can be simulated in advance, yielding a fixed target and demonstration sequence. The finite sequence can also be extended to a complete enumeration of by revealing the remaining prefixes of .
Because was arbitrary, the minimax characterizations in Theorems 3.1 and 4.1 imply
The reverse inequalities follow because each round contributes at most one mistake and at most one unit of regret. This proves the claimed equalities for every .