Manuscript Offprint
arXiv:2611.00797Private Uniform Language Generation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We study uniform language generation under approximate differential privacy. Given a uniformly bounded number of distinct examples from an unknown target language, a generator must produce infinitely many new examples from that language with probability one while protecting the privacy of its input. We introduce a new combinatorial dimension termed the nested branching dimension and prove that a language class is privately uniformly generatable if and only if both its closure dimension and nested branching dimension are finite. Previous work characterizes non-private uniform generation by the finiteness of the closure dimension alone. Our results therefore identify an additional combinatorial obstruction imposed by privacy.
*King Abdullah University of Science and Technology. di.wang@kaust.edu.sa †King Abdullah University of Science and Technology. peng.ye@kaust.edu.sa
1 Introduction
Motivated in part by the remarkable success of large language models, recent work has studied the problem of language generation [KM24], in which an algorithm observes examples from an unknown language and seeks to produce new examples from that language. This objective differs fundamentally from classical predictive learning, where the goal is to make accurate predictions on unseen instances after observing examples labeled by an unknown target.
A central goal in learning theory is to characterize which classes are learnable in terms of combinatorial parameters. Canonical examples include the VC dimension [VC71], which characterizes PAC learnability, and the Littlestone dimension [Lit88], which characterizes online learnability. Such characterizations do more than establish the existence of learning algorithms: they identify the structural properties that govern learnability and often yield quantitative bounds on the amount of data required.
Such combinatorial characterization has also been identified for a language generation task called uniform language generation. Let be a collection of languages, each of which is an infinite subset of a countable universe. We say is uniformly generatable if there exists an algorithm and a finite such that for every language , it takes as input a dataset of distinct examples from and produces an infinite subset of . Here, “uniform” means only depends on the entire class and is the same for every . Raman, Li, and Tewari [RLT25] give a complete combinatorial characterization of this property in terms of a parameter called the closure dimension, and further show that uniform generatability is incomparable with both PAC and online learnability. Thus, although learning and generation admit parallel characterization questions, the structural conditions governing the two tasks are fundamentally different.
The examples observed by a generator, however, may contain sensitive information, raising the question of whether generation can be carried out while protecting the privacy of the input data. Differential privacy (DP) [DMNS06] provides a strong and widely used formalization of such protection: informally, it requires that changing a single example in the input dataset has only a limited effect on the distribution of the algorithm's output.
Imposing differential privacy can fundamentally change the conditions that determine whether a task is possible. This phenomenon is well known in learning theory: ordinary PAC learnability is characterized by the VC dimension, whereas (approximate) private PAC learnability is characterized by the Littlestone dimension [ALMM19, BLM20]. These two dimensions can differ dramatically for the same class: for example, the class of thresholds over has VC dimension 1 but infinite Littlestone dimension, and is therefore PAC learnable but not privately PAC learnable. Thus, the classes that are learnable in the private and non-private settings can differ.
This naturally motivates the corresponding question for generation. Suppose a generator observes a uniformly bounded number of distinct examples from an unknown target language . Based on these examples, it must generate infinitely many new examples in with probability 1, while satisfying differential privacy with respect to its input sample. In the non-private setting, the closure dimension completely characterizes when uniform generation is possible. Does this characterization continue to hold under differential privacy, perhaps with a larger sample size, or does privacy fundamentally change the structure governing generation? This leads to our main question:
Which classes are uniformly generatable under differential privacy?
Theorem 1.1. A language class is uniformly generatable under approximate differential privacy if and only if both its closure dimension and nested branching dimension are finite.
This characterization differs from the non-private setting, where the finiteness of the closure dimension alone characterizes uniform generatability [RLT25]. Moreover, the two finiteness conditions above are incomparable: there exist classes with a finite closure dimension and an infinite nested branching dimension, as well as classes with an infinite closure dimension and a finite nested branching dimension. Thus, both conditions in the characterization are necessary, demonstrating that privacy introduces an additional combinatorial obstruction to uniform generation.
Specifically, our characterization follows from the following quantitative upper and lower bounds on the sample complexity of private uniform generation.
Theorem 1.2. Let be a language class with finite closure dimension and nested branching dimension . For any , there exists an -differentially private uniform generator using
distinct examples.
Theorem 1.3. Let , , and . If there is an -differentially private uniform generator for language class using distinct examples, then
The term in the two bounds is the sample complexity of non-private uniform generation. Thus, the additional term reflects the cost of privacy.
1.2 Related Work
Language Generation. Building on the Gold–Angluin framework of language identification in the limit [Gol67, Ang80], Kleinberg and Mullainathan [KM24] introduced language generation in the limit. This problem and its variants have since been studied in a growing body of work (e.g., generation with breadth and density guarantees [CP25, KMV25, KMV26, KW25], generation from noisy examples [RR25, BPZ26, MVYZ26b, LZ26], and generation with feedback [CP25, BPZ26, HKMV26]). Uniform generation, the focus of our work, was also proposed by Kleinberg and Mullainathan, who established algorithms for finite collections. Raman, Li, and Tewari [RLT25] subsequently characterized uniform generatability by the finiteness of the closure dimension. More recently, private language generation has been studied under continual release [MVYZ26a] and in the agnostic statistical setting [LHJG26]. For finite collections, Mehrotra, Velegkas, Yu, and Zhou [MVYZ26a] establish uniform bounds under pure DP with a nonzero failure probability. Our work characterizes almost sure uniform generation under approximate DP for potentially uncountable collections.
Private Learning. Differentially private PAC learning was introduced in [KLN⁺11]. Subsequent work established combinatorial characterizations of private learnability. Under pure DP, the probabilistic representation dimension characterizes learnability and governs sample complexity [BNS19]. Under approximate DP, private PAC learnability is characterized by finiteness of the Littlestone dimension [ALMM19, BLM20]. Our characterization introduces a different parameter, the nested branching dimension. Nevertheless, our lower bound connects private generation to private learning through the lower bound for the interior point problem, whose sample complexity is equivalent, up to constant factors for fixed accuracy parameters, to that of private proper PAC learning of thresholds [BNSV15].
Characterization of Learnability. Classical characterizations include the VC dimension for binary PAC learning [BEHW89] and the Littlestone dimension for online learning [Lit88]. Further examples include the DS dimension for multiclass PAC learning [BCD⁺22] and the fat-shattering dimension for learning real-valued functions [BLW96]. However, such characterizations do not always exist, as demonstrated by EMX learning [BDHM⁺19] and distribution learning [LBD24].
2 Technical Overview
We begin by reviewing the non-private characterization of uniform generation. For a set of distinct examples from an unknown target language in , define its closure by
This is the set of points contained in every target language consistent with . Since the example space is countable, any successful uniform generator must almost surely output an infinite subset of this closure. Successful generation therefore requires sufficiently many distinct examples to ensure that the closure is infinite. The closure dimension measures the largest size of a realizable sample whose closure is finite. By definition, is infinite whenever . Once this condition holds, a non-private generator can output , obtaining infinitely many new examples from the target language. However, the closure may change substantially when a single example is replaced, motivating an additional structural condition that determines when we can extract a stable infinite subset.
Nested branching dimension. We introduce nested branching dimension to capture a structural obstruction to private uniform generation. A nested branching tree is a rooted tree (with possibly infinitely many children at each node) whose nodes are labeled by sets in , the family of infinite sets obtained as intersections of languages from . In particular, this family contains every infinite closure . Each child label is contained in its parent label, and the intersection of all child labels at every internal node is finite. Thus, each child label permits an infinite output, but no infinite output is valid for all children simultaneously. The nested branching dimension is the maximum depth of such a tree. We also define the rank of as the maximum depth of such a tree rooted at .
2.1 Upper Bound
Our algorithm first constructs a nested sequence of closures and then extracts a subset (which we call an iterated core) from each closure. We prove that the resulting sequence forms a bounded number of contiguous blocks whose stability across neighboring datasets enables private selection. We begin by developing the rank and core properties.
Rank cores. For , define its rank core by
Nested branching guarantees that this core is infinite. Otherwise, trees of depth rooted at the sets in the intersection could be attached beneath to obtain a deeper tree. For nested sets of equal rank, if taking the core of preserves its rank, then . Thus, along a nested sequence of equal-rank sets, a core that preserves rank is shared by all subsequent sets. When this agreement persists across neighboring samples, a stability-based mechanism can privately output the common core. However, taking the core may decrease rank. Therefore, equality of rank alone does not guarantee that nested sets have the same core.
Profiles and iterated cores. We refine rank by repeatedly applying the core operation. Each iteration either strictly decreases rank or produces a fixed point, so the process terminates. The profile profile() records the trajectory of ranks. The iterated core core is the final fixed set, which remains an infinite subset of . Each profile is a strictly decreasing sequence of positive integers bounded by . There are therefore at most possible profiles. We equip profiles with a total order and establish the following properties for with :
Consequently, any nested sequence can be partitioned into at most contiguous blocks, each with a common iterated core. Our algorithm will construct such a sequence from the sample and privately output the common iterated core of a selected block.
Robust closures. We construct the desired nested sequence by intersecting closures obtained after discarding examples from the sample. For a dataset , define the robust closure by
where is the set of distinct examples in (to ensure the sequence is well-defined and nested on all inputs, we set when is small and no satisfies the condition, and set when is too large, see Definition 5.9 for the formal definition). The resulting sequence is nested: . Moreover, the sequences on any two neighboring datasets satisfy the following interlacing relations:
This interlacing allows us to control how the profile blocks change under a replacement. However, may be finite and cannot provide an infinite output. We need to ensure that a sample from the target language with sufficiently many distinct examples yields a long sequence of infinite robust closures.
Constructing a long sequence of infinite robust closures. To obtain a long sequence of infinite robust closures, we introduce the finite-intersection Helly number. Define the finite-intersection Helly number as the smallest positive integer h such that every nonempty family of languages from with a finite intersection has a subfamily of at most h languages whose intersection is also finite. We show that
For a sample from the target language, is infinite whenever . Indeed, any collection of at most subsets obtained by discarding examples shares more than examples. The closure of these common examples is infinite and lies in all the corresponding closures. Therefore, every such collection of closures has an infinite intersection. The Helly property then ensures that the intersection of all closures defining is infinite. We can therefore obtain a nested sequence of
infinite robust closures, all contained in the target language.
Private selection. Every robust closure in the sequence constructed above is infinite and therefore a member of . Thus, is well-defined. Since the sequence is nested, those with the same profile have the same iterated core. Consequently, each profile occupies a contiguous block in the sequence with length and a common iterated core . Interlacing ensures that each block endpoint moves by at most one under a replacement. Thus, for neighboring datasets we have and
The algorithm selects an occurring profile with probability proportional to and returns .
When a profile occurs in both neighboring datasets with the same associated output, its exponential weights have a ratio of at most . Otherwise, its block length is at most two. Since there are profile blocks, a sufficiently long sequence ensures that at least one block is long. Its exponential weight makes the combined contribution of profiles that disappear or have a different associated output in the neighboring dataset a sufficiently small fraction of the total weight. This bounds their total probability by and allows us to control the ratio of the normalizing factors, yielding -differential privacy. Every possible choice on a sample from the target language with sufficiently many distinct examples yields an infinite subset of the target, so this utility holds with probability one.
Excluding input examples. The selected infinite set may still contain input examples. To exclude them from the selected output, we partition the set into infinite parts, choose one uniformly at random, and remove the input examples from that part. For a fixed selected set, neighboring datasets produce the same output unless the chosen part contains one of the at most two examples changed by a replacement. This event has a probability of at most . Taking sufficiently large makes the additional contribution to arbitrarily small, while the output remains infinite and excludes all input examples.
2.2 Lower Bound
To prove the lower bound, suppose an -differentially private uniform generator succeeds after observing distinct examples. The non-private characterization already gives . To obtain the additional bound imposed by privacy, we first derive a finite-intersection property and then use it to reduce nested branching to the private interior-point problem.
Generatability implies Helly property. We first show that whenever . If this bound fails, there is a family of languages whose intersection is finite, while every subfamily of at most languages has an infinite intersection. We consider two cases.
First, suppose some finite subfamily has a finite intersection and choose one of minimum size. Intersecting all but one of its languages and removing their common finite intersection yields pairwise disjoint infinite regions. Encoding records by distinct points in these regions turns the generator into a private mechanism that must select a record value present in its input. A classical packing argument then gives , contradicting .
Second, suppose every finite subfamily has an infinite intersection. For arbitrary and , we construct a nested sequence , each being a finite intersection of languages from the family. A record with value at position is encoded by a point , with all encoding points distinct. At step , we intersect with finitely many additional languages to obtain , ensuring that the output fails containment in with a probability of at least on every input encoded using values at most . This can be achieved because the full intersection is finite, is countable, and there are only finitely many such encoded inputs. Each remains infinite by assumption. Nesting ensures that the first failed containment cannot precede the minimum input value. By construction, it occurs at or before the maximum input value with a probability of at least . This yields a private interior-point mechanism over arbitrarily large finite domains with an arbitrarily small failure probability, contradicting the lower bound for this problem [BNSV15].
Reduction to binary branching. We show that
where denotes the maximum depth of a binary nested branching tree.
We prove this by induction on binary rank. If a node has infinitely many children, the Helly bound ensures that we can retain at most children whose labels still have finite intersection. This pruning preserves depth and provides a finite collection from which we can choose a minimal subcollection with finite intersection. Minimality allows us to form binary splits by separating one label from the intersection of the remaining labels. If the tree is too deep for its root's binary rank, we iterate over the finitely many children in this minimal subcollection and apply the induction hypothesis to find two subsets of the root label with a finite intersection, each having the same binary rank as the root. Joining binary trees rooted at these sets beneath the root adds one binary level, contradicting the root's binary rank.
From binary branching to interior point. We prove that a private uniform generator yields a private interior-point mechanism on an ordered domain of size . The interior-point lower bound and the rank comparison give
Following the idea of [BNSV15], we first choose a reference leaf uniformly at random. Encode each of the records by a leaf that follows the reference path for levels and then continues independently at random. We choose fixed distinct representative points for each leaf and input position, avoiding finite intersections between sibling labels. The representatives from the encoded leaves and the reference leaf form the generator's input. We decode the generated set by returning the deepest level on the reference path whose label contains it. All input points lie in the label at level , so the generated set is contained in this label almost surely. Thus, the decoded value is at least the minimum.
For the maximum, beyond , the encoded continuations are independent of the random reference path. Privacy limits the generator's ability to predict the next branch beyond along the random reference path. [BNSV15] makes the probability of a correct guess small by using a large digit base. However, each node has only two children here, giving a base of size only 2. We address this by grouping a constant number of consecutive binary edges into one step, obtaining sufficiently many branch choices while reducing depth by only a constant factor. This makes the decoded value unlikely to exceed the maximum and gives the required interior point guarantee.
3 Preliminaries
Let denote a countable example space. A language is an infinite subset of . A language class is a nonempty, possibly uncountable family of languages. For a nonempty family , we use to denote the intersection of all sets in . For a sequence , write for the set of its distinct entries. For a positive integer , write . We use for the base-2 logarithm. For , the iterated logarithm is the number of applications of needed to obtain a value of at most 1.
3.1 Uniform Language Generation
Definition 3.1 (Uniform Language Generation [KM24]). A language class is uniformly generatable if there exists a randomized algorithm with finite sample size such that for every and every sequence with distinct elements, we have
Such an algorithm is called a uniform generator for .
For a non-empty finite set contained in some language from , define the closure of as
The closure has the following monotonicity property: if and is contained in some language from , then .
The closure dimension quantifies when closures must be infinite.
Definition 3.2 (Closure Dimension [RLT25]). The closure dimension of a language class , denoted by , is defined as the largest integer for which there exists a nonempty finite set contained in some such that and . If this holds for arbitrarily large , then . If this is not true even for and , then . Otherwise .
Raman, Li, and Tewari [RLT25] show that uniform generatability is characterized by finiteness of the closure dimension. While their work focuses on deterministic algorithms, their argument naturally extends to our randomized definition through the countability of (see Lemma 6.3 for a formal proof). We also remark that they actually consider a slightly weaker model, in which the algorithm still receives an infinite sequence of valid examples after observing and outputs a new example at each round rather than producing an infinite subset all at once. However, their algorithm works in the stronger model we study.
Theorem 3.3 ([RLT25]). A language class is uniformly generatable if and only if it has finite closure dimension.
3.2 Differential Privacy
Definition 3.4 (Differential Privacy [DMNS06]). A randomized algorithm is -differentially private if for any two datasets and that differ in one element and any measurable subset of its output range, we have
The privacy guarantee applies to all datasets in , including those with repeated entries and those whose support is not contained in any language in . The uniform generation guarantee is required only for datasets consisting of distinct examples from a target language.
Following the convention of using a constant privacy parameter in private learning [ABL+22], we fix and require to vanish faster than , where is the input sample size. A language class is privately uniformly generatable if there exist an integer , a family of randomized algorithms , and parameters such that, for every , is -differentially private on all of and satisfies the uniform generation guarantee in Definition 3.1 for every sequence of distinct examples from every .
4 Nested Branching and the Helly Property
In this section, we formally define the nested branching dimension and the finite-intersection Helly property. Let be a language class. Define its infinite-intersection closure by
Definition 4.1 (Nested Branching Tree). A nested branching tree for of depth is a rooted tree with the following properties:
-
Every node is labeled by some .
-
Every root-to-leaf path has a length of , i.e., it contains exactly nodes.
-
If is the parent of , then .
-
For every internal node , we have .
Moreover, if each of its internal nodes has at most children, then it is called a k-ary nested branching tree.
Definition 4.2 (Rank). For every , let be the set of all such that there exists a nested branching tree of depth whose root is labeled by . The rank of is defined as
Similarly, let be the set of all such that there exists a -ary nested branching tree for of depth whose root is labeled by . The -rank of is defined as
When the class is clear from context, we may omit it and write and .
The rank has the following monotonicity property.
Fact 4.3. If and , then and for every .
Proof. Given a nested branching tree rooted at , replace its root label by . Every child of the root is still labeled by a subset of the root label, and all other conditions are unchanged. The resulting tree has the same depth and is rooted at .
The nested branching dimension measures how deep a nested branching tree can be.
Definition 4.4 (Nested Branching Dimension). The nested branching dimension of is defined as
Similarly, the -ary nested branching dimension of is defined as
The closure dimension and the nested branching dimension are incomparable, even for countable language classes, as shown in the lemma below. Its proof is given in Appendix A.
Lemma 4.5. There exist countable language classes and such that:
-
and .
-
and .
We also consider whether the finiteness of the intersection of a nonempty, possibly infinite subfamily of can be witnessed by a finite subfamily. The finite-intersection Helly number measures the smallest uniform bound on the size of such a witness. It can be seen as a variant of the standard notion of Helly number in combinatorics, defined as the minimum integer such that for every non-empty subfamily with empty intersection, there exists a non-empty of size at most whose intersection is empty. The term originates from the celebrated Helly's theorem [Hel23]: any finite family of convex sets in has a Helly number of at most .
Definition 4.6 (Finite-Intersection Helly Number). The finite-intersection Helly number of , denoted by , is the least integer such that for every non-empty subfamily with , there exists with and . If such an does not exist, then .
The following lemma shows that the finite-intersection Helly property always holds for classes with finite nested branching dimension.
Lemma 4.7. For any language class , we have .
Proof. The result trivially holds when . Now suppose and . Then there exists a non-empty subfamily whose total intersection is finite, but is infinite for every with . Pick an arbitrary . Construct a tree with node set such that a child extends its parent by exactly one coordinate. For every , let . Since , is infinite and therefore . Moreover, whenever is a parent of . Finally, for every internal node (), we have that
is finite. Hence, this is a nested branching tree with depth , contradicting that . Thus, .
The following lemma establishes that and have the same finite-intersection Helly number.
Lemma 4.8. For any language class , we have .
Proof. Since , every is also a subfamily of . Thus, we have . If , equality follows, so assume . Conversely, pick a non-empty with . Let . For every , there exists such that . Since for every , we have for every . Therefore, . This further implies that is also finite. Since , there exist with such that is finite. For each , there is some such that . Consequently, is also finite. Thus, .
5 Upper Bound
In this section, we present our algorithm for private uniform generation. Consider a non-empty language class with and . If , then is an infinite subset of every . The constant algorithm that outputs without reading the input is -differentially private. Applying the randomized input-exclusion procedure of Theorem 5.17 immediately yields a -differentially private uniform generator. We therefore assume in this section.
5.1 Cores and Profiles
For any , we define its core as the intersection of all sets in that are contained in and have the same rank as .
Definition 5.1. The core of is defined as
The following lemma shows that the core of is also in .
Lemma 5.2. For every , .
Proof. Let with , and let . This family is non-empty because it contains . Suppose that . Beneath a new root labeled , attach every nested branching tree of depth rooted at a member of (viewing trees as sets of finite labeled paths). Every contributes at least one such tree, so the intersection of the child labels is exactly , which is finite. The resulting tree has depth , a contradiction. Hence, . Set . As each is an intersection of languages from , we have , so .
Since , its rank is well-defined. We have the following property for nested sets with the same rank.
Lemma 5.3. Let with and . Then . If additionally , then .
Proof. Every with and also satisfies and . Thus, the family defining is contained in the family defining , which gives .
Since itself belongs to the family defining , we also have . If , Lemma 5.2 implies that belongs to the family defining . Consequently, , and equality follows.
Now consider the process of repeatedly applying . Since , rank monotonicity gives two possibilities at each stage:
-
. In this case, is the smallest set in that is contained in and has the same rank as . Applying Lemma 5.3 with gives . It can be seen as being at a stationary point of this operation.
-
. In this case, applying strictly reduces the rank. Since rank is a positive integer, this can occur at most times before reaching the first case.
Therefore, we can define the profile as the sequence of ranks in this process, and the iterated core as the final set.
Definition 5.4. The profile of , denoted , is defined recursively by
Here, denotes concatenation of sequences.
Definition 5.5. The iterated core of , denoted , is defined recursively by
Since , Lemma 5.2 gives .
Let be the set of all strictly decreasing sequences with entries in , including the empty sequence (). Then . We put a total order on recursively. For , let . For , consider two different sequences . There are three cases:
- Neither sequence starts with . In this case, we preserve the order on , so if and only if .
• Exactly one sequence starts with . In this case, the sequence starting with precedes the other sequence.
Both sequences start with . If one of them is , the other sequence precedes . Otherwise, write with . We order their tails in the reverse of , so if and only if .
Thus, the empty sequence is the largest element of , and every non-singleton sequence starting with d precedes (d).
The first case implies the following fact by induction.
Fact 5.6. For every , the restriction of to is . In particular, if and profile profile for some , then profile profile for every .
For every , we have . The following lemma establishes the monotonicity of profiles.
Lemma 5.7. If and , then .
Proof. By Fact 5.6, it suffices to show . We prove this by induction on . If , rank monotonicity gives . Both profiles are (1), so the claim holds.
Now suppose . If , then because exactly the first sequence starts with . It remains to consider . Lemma 5.3 gives , and hence
There are three cases:
• . Then .
. Then , whereas has a non-empty tail. By the third case in the definition of the order, .
. The induction hypothesis applied to , followed by Fact 5.6, gives
Both tails are non-empty, so reversing their order after prefixing gives .
This completes the induction.
The following lemma shows that nested sets with equal profiles have the same iterated cores. This provides the desired stability for achieving privacy.
Lemma 5.8. If , , and , then .
Proof. We prove the claim by induction on . Equality of profiles implies . If the common profile is , then , and Lemma 5.3 gives
This includes the base case .
Otherwise, and the common profile is for some . Lemma 5.3 gives , and both cores have profile and rank less than . The induction hypothesis therefore yields
5.2 Robust Closures
Recall that we assume . It must be the case that ; otherwise, every intersection of languages from would be infinite, implying . By Lemma 4.8 and Lemma 4.7, we have .
Let be arbitrary, with repetitions allowed. Let be a public integer whose value will be determined later.
Definition 5.9 (Robust Closure). For every integer with , where
let and and define the robust closure
For a fixed , the above definition depends only on , the distinct support of . In contrast, the range of depends only on the public threshold and is independent of .
The following lemma suggests that the second case in Definition 5.9 always gives an infinite set in .
Lemma 5.10. If and , then .
Proof. Consider any sets in . Since each of them omits exactly elements of ,
Their intersection is contained in a language from , and therefore its closure is infinite. By closure monotonicity, for every and hence
Thus, is also infinite and belongs to . Since , the finite-intersection Helly property implies that
is infinite and belongs to .
We prove a key property of robust closures, which implies that they form a nested sequence on any dataset and are interlacing on neighboring datasets.
Lemma 5.11. Let differ in at most one entry. Whenever ,
In particular, for any dataset . For neighboring datasets and , we have
Proof. The claim is immediate if or . If , Lemma 5.10 and the definition imply . Since ,
Hence in this case too.
It remains to consider and . In this case is non-empty. Take any set . Since neighboring supports satisfy ,
The assumption also gives . Hence, it follows that
We can therefore choose a non-empty set with . Since is contained in a language from , so is . Thus , and closure monotonicity gives
Intersecting over all choices of proves the desired inclusion. Taking gives nestedness, and exchanging gives the second interlacing inclusion.
5.3 Stability of Profile Blocks
To treat every possible value of , let and agree with profile and on , and set
If , also set
If , the barred maps retain their original values there.
For the remainder of the section, write
and let denote the restriction of to . Then
The profile is the least element of , and () is its greatest element. By Fact 5.6, this order agrees with on the profiles of members of . Also, monotonicity and equality naturally extend to augmented profiles and iterated cores.
Lemma 5.12. If and , then . If additionally , then .
Proof. On , this follows from Lemmas 5.7 and 5.8. The empty profile occurs only at and is greatest. If , its profile occurs only at and is least; otherwise comparisons involving are already covered. Thus monotonicity holds in every remaining case, and equal profiles there force .
Lemma 5.11 gives . Then by Lemma 5.12, the profile sequence is nondecreasing:
Hence, those with the same profile form a contiguous block. This motivates the following definition.
Definition 5.13. For , define its block length by
If , then there is some with . We can define
where is the least index with .
In the above definition, is defined as the iterated core of . Indeed, it is equal to every with , as shown in the following fact. Thus, it represents the common iterated core of a contiguous block with the same profile.
Fact 5.14. for every with .
Proof. Since is the least index with , Lemma 5.11 gives . The conclusion follows from Lemma 5.12 by setting and .
Next, we bound the sensitivity of and prove the stability of .
Lemma 5.15. For neighboring datasets and every ,
Moreover, for every with , we have and .
Proof. Lemma 5.11 and Lemma 5.12 give
For , define the prefix sum . The 's with form the first indices. If , the first inequality above gives
Thus, . This is trivial when . By symmetry, . If is the first element of , then , so the desired bound follows. Otherwise, let immediately precede . Then
Now suppose . The preceding result gives . Choose consecutive and in the -block for , i.e., . Therefore,
and
Because the profile sequence for is nondecreasing and , at least one of these two comparisons is an equality. In either case Lemma 5.12 gives .
5.4 Private Selection
On input , our algorithm chooses an occurring profile (i.e., ) with probability
It then returns (Definition 5.13).
Theorem 5.16. Let be a language class with and , and let . Fix a public integer satisfying
Then, for every input length , there exists an -differentially private algorithm that outputs an infinite subset of almost surely on every input and, when is contained in a language from and ,
In particular, a sufficient threshold on the number of distinct examples is
Proof. Write , , , , and . For any dataset , let and
Construct an algorithm that first samples from with probability , and then outputs . Definition 5.13 ensures that is well-defined because . Since , we have . This implies that and hence is non-empty. Thus, the sampling process is valid. By Lemma 5.10 and our definition of , produces an infinite subset of almost surely.
We first prove the privacy guarantee. The profile sequence of length is partitioned into at most profile blocks, so some block has length at least . Hence
Recalling that , our choice of ensures that
Combining the preceding lower bound on with the first term in this maximum gives
Similarly, the second term gives
Let be neighboring datasets. By Lemma 5.15, we have for every . Consequently,
For , we have , so the preceding inequality gives
Since there are at most such profiles, their total contribution to is at most . Thus,
Since , it follows that
For , let
be the probability of selecting on input , and define analogously. Let
By Lemma 5.15, every belongs to and satisfies and . Combining this with the preceding bound on , we obtain
For every , we have . Since there are at most such profiles and ,
Now let be any measurable output event. Since for ,
For utility, suppose for some and . Every satisfies , so
In particular, . Since , every subset of of size is contained in . Thus , and Lemma 5.10 gives .
Since , we have . Lemma 5.11 therefore gives, for every ,
Every profile selected by the algorithm occurs at some . Since , its iterated core also belongs to and is therefore infinite. The corresponding output satisfies
Thus every possible output is an infinite subset of .
5.5 Excluding Input Examples
The algorithm analyzed in Theorem 5.16 may return a set containing input examples. The following theorem shows how to obtain an infinite subset of this set that excludes all input examples, with an arbitrarily small additive increase in .
Theorem 5.17. Let be an -differentially private algorithm that produces an infinite subset of almost surely on every input. For every , there is an -differentially private algorithm that first samples and then outputs an infinite subset of almost surely.
Proof. Fix an enumeration of . For every infinite , let denote its elements in this order. Let . After obtaining , choose uniformly from , independently of , and output
This set is infinite and has the required inclusion because only finitely many elements are removed.
For neighboring and any fixed , consider the same in both constructions. Their outputs can differ only if the selected residue subset contains a point belonging to exactly one of . There are at most two such points, each selected with probability at most . Hence, for any measurable output event , if
then . Differential privacy bounds expectations of -valued functions by integrating their level sets. Therefore
Combining this theorem with Theorem 5.16, using there and here, proves our main upper bound.
Algorithm 1: Private Uniform Language Generation
Input: Language class , dataset , privacy parameters
Output: An infinite set
1
2 Construct (Definition 5.9)
3 Sample from with probability and set (Definition 5.13)
4 Order elements in according to a fixed enumeration of :
5 , where is sampled uniformly from
6 return
6 Lower Bound
In this section, we prove our lower bound. We will prove a lower bound that includes the finite-intersection Helly number, as stated below. It is stronger than our result stated in the introduction.
Theorem 6.1. Let , , and . If is an -differentially private uniform generation algorithm for language class with sample size , then
We first pass from the utility guarantee for individual languages in Definition 3.1 to a guarantee for their intersection. The countability of is useful here.
Lemma 6.2. If is a uniform generation algorithm for with sample size and is an input sequence consisting of distinct elements from some , then is almost surely an infinite subset of .
Proof. Infiniteness follows directly from the definition of uniform generation. For each , some contains but excludes . Thus . Since is countable,
Therefore, .
We shall use two consequences of the definition of . If contains , then . Also, if a non-empty subfamily has an infinite intersection, that intersection belongs to : it equals the intersection of .
The lower bound holds for non-private generators and was proved by Raman, Li, and Tewari [RLT25]. While they focused on deterministic algorithms, their proof naturally extends to randomized algorithms by Lemma 6.2.
Lemma 6.3 ([RLT25]). If is a uniform generation algorithm for language class with sample size , then .
Proof. Suppose . By the definition of the closure dimension, there is a finite set contained in some such that and . Construct an input sequence from arbitrary distinct elements of . Then . By Lemma 6.2, is almost surely an infinite subset of , contradicting that is finite.
6.1 Helly Obstruction
The second obstruction is expressed through the finite-intersection Helly number defined in Section 4. The next lemma follows from the fingerprinting results of [BNSV15]. We include a proof in Appendix B for completeness.
Lemma 6.4 ([BNSV15]). Fix , , and . There are and such that, for every -differentially private algorithm , some satisfies
Lemma 6.5. If is an -differentially private uniform generation algorithm for with sample size and , then .
Proof. By Lemma 4.8, it suffices to prove . Suppose instead that . Then there exists a non-empty family whose total intersection is finite, while every non-empty subfamily of at most members has infinite intersection. There are exactly two cases:
-
Some finite subfamily of has finite intersection.
-
Every finite subfamily of has infinite intersection.
In the first case, choose a finite subfamily of minimum size whose intersection is finite. Then , and minimality ensures that omitting any one of these sets leaves an infinite intersection. For each , define
Each is infinite because it is obtained by removing a finite set from an infinite set. Every point in belongs to all with and lies outside . Consequently, the sets are disjoint, and for every .
Suppose . Choose distinct points for and . Encode each by . The entries of are distinct and belong to . By Lemma 6.2, is infinite and contained in almost surely. If does not occur in , then every encoded point belongs to , so the same lemma gives almost surely.
For a set , define
The preceding containment property implies that almost surely. Moreover, is non-empty almost surely: otherwise, the infinite output would be contained in the finite intersection .
Let be the least element of , using 1 if this set is empty. Thus almost surely. Changing one coordinate of changes only one entry of , and is a post-processing of . Hence is -differentially private.
Let . For each , obtain by replacing the -th coordinate of with any value in . Since does not occur in , we have . Privacy therefore gives
Summing over , we obtain
a contradiction.
If , choose and . Since , Lemma 6.2 implies that is infinite and contained in this intersection almost surely. It therefore cannot also be contained in , because is finite. Since , we also have almost surely. Privacy therefore gives
a contradiction.
Now consider the second case. Fix and . Since is countable, let enumerate . We recursively construct decreasing sets , each a finite intersection of members of , and distinct points for and , satisfying
Choose any . At stage , the set is infinite and is finite, so we can choose previously unused points from . For each , define . Its entries are distinct and belong to , so Lemma 6.2 implies that is infinite almost surely. Since is finite, we therefore have almost surely. Because enumerate , it follows that, for each fixed ,
Since there are only finitely many , we can choose such that, for every ,
For each , choose that excludes , and define . Since every finite subfamily of has infinite intersection, is infinite and belongs to . Moreover, excludes , so for every ,
Iterate the above construction until is constructed. Let be the mechanism that, on input , outputs the least such that , using if no such exists. Changing one coordinate of changes only one entry of , and is a post-processing of . Hence is -differentially private.
Fix , and write and . For each , nestedness gives . Thus , and Lemma 6.2 implies that almost surely. Since for , no index below can be returned. Hence almost surely.
Since , the construction gives . Whenever , the first failed containment occurs at an index at most . Consequently,
Taking and supplied by Lemma 6.4 yields a contradiction.
6.2 Binary Branching
We compare the ranks defined in Section 4. The proof of Fact 4.3 also shows that whenever and .
Lemma 6.6. Let and , and let with and . Any -ary nested branching tree with root label and depth at least has a node with label such that and the unique path from the root to contains at most edges.
Proof. Suppose the conclusion fails. Truncate the tree to its first levels. For every remaining node , the set is infinite and therefore belongs to . Replace each label by . The root label becomes , and nesting is preserved. Each intersection of child labels remains finite because it is contained in the original intersection. Thus the resulting tree is a -ary nested branching tree with root label and depth , contradicting .
Lemma 6.7. For every and with ,
Proof. Let . We prove by induction on that implies . If and a -ary tree rooted at has two levels, choose a minimal collection of its child labels with finite intersection. Every is infinite, so and is an infinite member of . The labels have finite intersection and give a binary tree with two levels, a contradiction. Therefore, .
Suppose the claim holds at , let , and assume that while a -ary tree rooted at has depth . Each child roots a tree of depth , so the induction hypothesis and rank monotonicity show that its binary rank is exactly . Choose a minimal collection of child labels with finite intersection. If , attaching two binary trees of depth below gives binary depth , a contradiction.
Thus . For , let . Minimality makes every infinite, hence a member of . Since is finite and , we have , and therefore by the induction hypothesis.
We prove for by induction on . The case was established above. Suppose for some . Apply Lemma 6.6 to and the subtree with root label . It yields a node at most edges below this root, labeled , with . Its subtree has depth at least , so the induction hypothesis at and monotonicity give .
Since and , we have , which is finite. If , attaching binary trees of depth with root labels and below a new root labeled gives depth , a contradiction. Thus , and the induction hypothesis at gives .
Ultimately, we have . But , whose subtree has depth , a contradiction.
Corollary 6.8 (Rank comparison). If and , then
Proof. Let , where the equality follows from Lemma 4.8. If , any internal node would have a child with a finite label, which is impossible. Thus both and equal 1, and the bound holds.
Assume . At each internal node, the child labels belong to and have finite intersection. We can retain at most children whose labels still have finite intersection. Repeating this at every retained internal node preserves the root label and depth. Thus, for every , Lemma 6.7 gives . Taking the supremum over gives the result.
We next bound the depth of a binary tree by reducing to private interior point. We first record the quantitative lower bound for this problem. The proof is given in Appendix B for completeness.
Lemma 6.9 (Interior point lower bound [BNSV15]). Let and , and let and . Suppose is -differentially private and satisfies
for every . Then .
Lemma 6.10. Let be an -differentially private uniform generation algorithm for with sample size , where and . If has a binary nested branching tree of depth , then .
Proof. Let . We may assume , since otherwise and the bound follows from . Truncate the binary tree to depth , and label the two outgoing edges at each internal node by 0 and 1. Group every four consecutive edges into one edge labeled by a symbol of . The resulting tree has depth . For each word , denote the corresponding node label by .
For and distinct , the paths to and first diverge at two children whose labels have finite intersection. Since and are contained in these respective labels, we have . Since all leaf labels are infinite, choose distinct points for and .
Given , choose a reference word and symbols for and , uniformly over all such choices. Let agree with on its first symbols, and set for . Run on , whose entries are distinct. For , write for the prefix of length of , with . Define as the largest such that , taking if no such exists.
All input points belong to , because every shares its first symbols with . Lemma 6.2 therefore implies that is almost surely an infinite subset of this label. Consequently, almost surely.
Fix the encoding seed . Changing one coordinate of changes at most one entry of , and the decoder depends only on and . Thus differential privacy and post-processing give the required guarantee for each fixed seed. Since the seed distribution does not depend on , averaging over it shows that is -differentially private.
To bound from above, let and condition on all encoding randomness except , which remains uniform on . Since , none of depends on . Changing therefore changes only the first entry of . For , let be the dataset obtained by setting , and let consist of the infinite subsets of . Thus means that is infinite and contained in this label. The sets are pairwise disjoint because the corresponding labels have finite intersections.
Under this conditioning, requires , so
Applying privacy to and averaging over both indices gives
For each fixed , the pairwise disjointness of the gives . Hence . Averaging over the remaining randomness preserves this bound, so .
Apply Lemma 6.9 with and (after shifting the ordered domain by one) to obtain . Since , we have , and hence .
6.3 Wrapping Up
We prove our main lower bound by combining the results proved in this section.
Proof of Theorem 6.1. Lemma 6.3 gives . Since , Lemma 6.5 gives .
It remains to prove . If , then , and this bound is immediate. Assume , so .
Lemma 6.10 rules out binary nested branching trees of arbitrarily large depth, so . Applying the same lemma at depth gives .
Corollary 6.8 now gives , and hence
which gives the remaining bound.
7 Discussion
We characterize uniform language generation under approximate differential privacy by proving that a language class admits a private uniform generator if and only if both its closure dimension and nested branching dimension are finite. Below, we discuss the connection to private learning and the gap between our upper and lower bounds.
Connection to private learning. Uniform generatability and private learnability are incomparable because their characterizing dimensions, closure dimension and Littlestone dimension, are incomparable [RLT25, ALMM19, BLM20]. Even among uniformly generatable classes, private learnability and private uniform generatability are incomparable. An intuitive explanation is that nested branching trees are constructed using , whereas Littlestone dimension is defined using . Finite implies finite . Consequently, for a uniformly generatable class , the private learnability of implies the private uniform generatability of , but the converse fails. Examples and proofs appear in Appendix C.
Remaining gap. Our upper and lower bounds leave a substantial gap in sample complexity. The statements in the introduction suppress the dependence on the finite-intersection Helly number . The privacy term in the upper bound of Theorem 5.16 has as a leading multiplicative factor, while Theorem 6.1 gives the lower bound . The examples in Appendix D illustrate two extreme cases. For classes with Helly number 2 and growing nested branching dimension, the upper bound has a privacy term smaller by a factor of order than the version stated in the introduction, although its dependence on remains exponential. When the Helly number grows linearly with the nested branching dimension, the lower bound is already linear in , strengthening the bound stated in the introduction. Determining the optimal joint dependence of sample complexity on the Helly number and nested branching dimension remains open.
AI Disclosure
GPT 6 Astra was used to assist with language editing, grammatical corrections, and the construction of the examples in Appendices A, C.1, and D. The authors' initial proof of Lemma 6.5 used the axiom of countable choice over . GPT 6 Astra subsequently proposed an alternative proof that does not rely on this axiom. The authors reviewed the AI-assisted contributions and take responsibility for the correctness and final presentation of the mathematical results.
References
[ABL 22] Noga Alon, Mark Bun, Roi Livni, Maryanthe Malliaris, and Shay Moran. Private and online learnability are equivalent. Journal of the ACM, 69(4):28:1–28:34, 2022.
[ALMM19] Noga Alon, Roi Livni, Maryanthe Malliaris, and Shay Moran. Private PAC learning implies finite Littlestone dimension. In Proceedings of the 51st Annual ACM Symposium on Theory of Computing, pages 852–860, 2019.
[Ang80] Dana Angluin. Inductive inference of formal languages from positive data. Information and Control, 45(2):117–135, 1980.
[BCD 22] Nataly Brukhim, Daniel Carmon, Irit Dinur, Shay Moran, and Amir Yehudayoff. A characterization of multiclass learnability. In Proceedings of the 63rd Annual IEEE Symposium on Foundations of Computer Science, pages 943–955, 2022.
[BDHM 19] Shai Ben-David, Pavel Hruběš, Shay Moran, Amir Shpilka, and Amir Yehudayoff. Learnability can be undecidable. Nature Machine Intelligence, 1(1):44–48, 2019.
[BEHW89] Anselm Blumer, Andrzej Ehrenfeucht, David Haussler, and Manfred K Warmuth. Learnability and the Vapnik-Chervonenkis dimension. Journal of the ACM, 36(4):929–965, 1989.
[BLM20] Mark Bun, Roi Livni, and Shay Moran. An equivalence between private classification and online prediction. In Proceedings of the 61st Annual IEEE Symposium on Foundations of Computer Science, pages 389–402, 2020.
[BLW96] Peter L. Bartlett, Philip M. Long, and Robert C. Williamson. Fat-shattering and the learnability of real-valued functions. Journal of Computer and System Sciences, 52(3):434–452, 1996.
[BNS19] Amos Beimel, Kobbi Nissim, and Uri Stemmer. Characterizing the sample complexity of pure private learners. Journal of Machine Learning Research, 20(146):1–33, 2019.
[BNSV15] Mark Bun, Kobbi Nissim, Uri Stemmer, and Salil Vadhan. Differentially private release and learning of threshold functions. In Proceedings of the 56th Annual IEEE Symposium on Foundations of Computer Science, pages 634–649, 2015. Full version: https://arxiv.org/abs/1504.07553.
[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, 2026.
[CP25] Moses Charikar and Chirag Pabbaraju. Exploring facets of language generation in the limit. In Proceedings of the 38th Conference on Learning Theory, volume 291 of Proceedings of Machine Learning Research, pages 854–887, 2025.
[DMNS06] Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Theory of Cryptography, pages 265–284, 2006.
[Gol67] E. Mark Gold. Language identification in the limit. Information and Control, 10(5):447–474, 1967.
[Hel23] Eduard Helly. Über Mengen konvexer Körper mit gemeinschaftlichen Punkten. Jahresbericht der Deutschen Mathematiker-Vereinigung, 32:175–176, 1923.
[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, volume 306 of Proceedings of Machine Learning Research, pages 40327–40352, 2026.
[KLN+11] Shiva Prasad Kasiviswanathan, Homin K Lee, Kobbi Nissim, Sofya Raskhodnikova, and Adam Smith. What can we learn privately? SIAM Journal on Computing, 40(3):793–826, 2011.
[KM24] Jon Kleinberg and Sendhil Mullainathan. Language generation in the limit. In Advances in Neural Information Processing Systems, volume 37, pages 66058–66079, 2024.
[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, 2026.
[KW25] Jon Kleinberg and Fan Wei. Density measures for language generation. In Proceedings of the 66th Annual IEEE Symposium on Foundations of Computer Science, pages 620–658, 2025.
[LBD24] Tosca Lechner and Shai Ben-David. Inherent limitations of dimensions for characterizing learnability of distribution classes. In Proceedings of the 37th Conference on Learning Theory, volume 247, pages 3353–3374, 2024.
[LHJG26] Xiaoyu Li, Andi Han, Jiaojiao Jiang, and Junbin Gao. On the price of privacy for language identification and generation, 2026.
[Lit88] Nick Littlestone. Learning quickly when irrelevant attributes abound: A new linear-threshold algorithm. Machine learning, 2(4):285–318, 1988.
[LZ26] Aaron Li and Ian Zhang. Characterizing the effect of noise in language generation in the limit. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 72277–72289, 2026.
[MVYZ26a] Anay Mehrotra, Grigoris Velegkas, Xifan Yu, and Felix Zhou. Differentially private language generation and identification in the limit (extended abstract). In Proceedings of the 39th Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 5113–5114, 2026.
[MVYZ26b] Anay Mehrotra, Grigoris Velegkas, Xifan Yu, and Felix Zhou. Language generation with infinite contamination. In Proceedings of the 39th Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 5053–5112, 2026.
[RLT25] Vinod Raman, Jiaxun Li, and Ambuj Tewari. Generation through the lens of learning theory. In Proceedings of the 38th Conference on Learning Theory, volume 291 of Proceedings of Machine Learning Research, pages 4740–4776, 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, 2025.
[VC71] V. N. Vapnik and A. Ya. Chervonenkis. On the uniform convergence of relative frequencies of events to their probabilities. Theory of Probability and Its Applications, 16(2):264–280, 1971.
A Proof of Lemma 4.5
The following two lemmas imply Lemma 4.5.
Lemma A.1. On , let
Then is countable, , and .
Proof. For any non-empty finite , every language containing contains , and every rational point outside this interval can be excluded by such a language. Hence . This closure is finite exactly when is a singleton, so .
Every member of contains two disjoint members of . Repeating this construction yields binary nested branching trees of arbitrarily large depth, so .
Lemma A.2. On , define
Then is countable, , and .
Proof. For distinct , we have . For , both and contain , so . Thus has finite closure and size , proving .
Every subfamily with at least two members has finite intersection, so . Moreover, whenever , so . Consequently, every child of a node labeled would also be labeled , making the intersection of its child labels infinite. Therefore, .
B Interior Point Lower Bounds
We prove Lemmas 6.4 and 6.9 using interior point fingerprinting results from Appendix B of the full version of [BNSV15]. We refer the reader to their work for the notation and terminology of interior point fingerprinting codes.
Proof of Lemma 6.4. If , take and . Accuracy on both singleton inputs and privacy for would give , a contradiction.
For , choose with . By [BNSV15, Lemma B.4], take an -user interior point fingerprinting code with perfect completeness and soundness at most on a finite domain . Since , necessarily . Let be its codebook and Trace be its tracer.
Suppose succeeds with probability at least on every input. Perfect completeness and averaging over the users give some with .
Replace by for any and obtain . This dataset uses only the codewords of the coalition , so soundness gives . Applying privacy conditioned on code generation and tracing randomness, then averaging, yields
contradicting the choice of .
Proof of Lemma 6.9. Let . By [BNSV15, Lemma B.4], there is a -user interior point fingerprinting code on with perfect completeness, soundness at most , and . Since and , Lemma B.3 of [BNSV15] rules out an algorithm with the stated privacy and accuracy guarantees on .
If , restrict to inputs in and clip its output to . This preserves privacy and every successful output, giving a contradiction. Thus , and .
C Connection to the Littlestone Dimension
This appendix establishes the comparisons between Littlestone dimension and nested branching dimension discussed in Section 7. We view each language as its indicator function. Below we briefly state the definition of Littlestone dimension for language classes.
Consider a complete binary tree of depth whose nodes are labeled by points in . Every determines a unique root-to-leaf path , where is the root and, for each , is the left child of if and the right child if . Let denote the sequence of labels along this path. The tree is said to be shattered by if, for every and its corresponding path labels , there exists such that . The Littlestone dimension of , denoted by , is the supremum of the depths of complete binary trees shattered by .
C.1 Incomparability for the Original Language Class
We give two countable language classes, both with closure dimension 0, witnessing the two directions of incomparability.
Lemma C.1. On , let
Then , , and .
Proof. For a non-empty finite , let be the set of its first coordinates. The languages containing are exactly the with , so , which is infinite. Since , we obtain .
Since and , we have . The 0-branch at a root labeled leaves only , which cannot realize a further split. Hence .
For every non-empty proper subset , we have
Starting from an infinite proper , recursively split each subset into two disjoint infinite subsets and use their products with as node labels. This gives binary nested branching trees of arbitrary depth, so .
Lemma C.2. Let be disjoint countably infinite sets, let , and define
Then , , and . Moreover, .
Proof. Let be a non-empty finite set contained in some language from . The least language containing is if , and otherwise. Thus every such closure is infinite. Since and , we obtain .
Intersecting a non-empty family of languages gives for some finite , while is disjoint from every other language. Thus . Every child label below contains , and every child label below equals . In either case, the intersection of the child labels is infinite, so .
For any , choose distinct . The languages , with , realize all binary labelings of these points. Thus the complete binary tree querying these points in order is shattered. Since is arbitrary, .
C.2 Passing to the Infinite-Intersection Closure
Lemma C.3. If , then
In particular, finite Littlestone dimension of implies finite nested branching dimension of .
Proof. Consider a nested branching tree for of depth at least . Every internal node has a child whose label is a proper subset of its parent label. Otherwise, all child labels would equal the infinite parent label, violating the branching condition. Following such children gives a strict chain of members of .
Query a point in the difference between the two middle sets of this chain. The two labels split the chain into equal halves. Repeating this construction within each half gives a complete binary tree of depth , with every root-to-leaf path realized by a member of the chain. This contradicts . Therefore, .
D Helly Number and Nested Branching Dimension
The following two families of finite language classes realize the regimes discussed in Section 7. Both have closure dimension 0. In the first family, the Helly number stays equal to 2 while the nested branching dimension grows without bound. In the second family, the Helly number equals the nested branching dimension plus one.
D.1 Constant Helly Number
Lemma D.1. Fix an integer and let . For each binary word of length at most , including the empty word, define
Then , , and .
Proof. Every is infinite, and any two are nested or disjoint. A non-empty subfamily with no disjoint pair is a finite chain, so its intersection is its smallest member. Thus , and every subfamily with finite intersection contains a disjoint pair. Since , we obtain .
For a non-empty finite , let be the longest common prefix of its first coordinates. Then is the least language containing , so is infinite. Since the whole class has empty intersection, .
The complete binary tree with node labels and child labels is a nested branching tree of depth , giving . Conversely, the branching condition forces every internal node of any nested branching tree for the class to have a child with a strictly smaller label. Following such children gives a root-to-leaf chain in which the lengths of the indexing words strictly increase. These lengths lie between 0 and , so the tree has depth at most . Therefore, .
D.2 Linear Helly Number
Lemma D.2. Fix an integer and let . Define
Then , , and .
Proof. For every non-empty , we have . This intersection is finite exactly when . Hence , and
Let be a non-empty finite set contained in some language from the class, and let be its set of first coordinates. The languages containing are exactly those with indices outside , so is infinite. Since the whole class has empty intersection, .
Construct a tree with root label . At each node labeled with , use the child labels for , and stop at singleton index sets. The child labels have empty intersection, and every root-to-leaf path contains nodes. Hence .
Conversely, in any nested branching tree for the class, every internal node has a child with a strictly smaller label. Following such children gives a strict chain of non-empty proper subsets of , containing at most members. Thus , proving equality.