arXiv:2609.10525cs.FLSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.10525

Characterizing Language Generation in the Limit: Finite Witnesses and a Separation-Width Hierarch

Xiaoyu Li, Andi Han, Jiaojiao Jiang, Junbin Gao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Language generation in the limit asks for valid unseen elements from every exhaustive positive presentation of an unknown infinite language. We characterize this task for arbitrary families over a countable universe. Generation is possible exactly when each target can be assigned a finite positive witness so that the targets activated by any finite sample have an infinite common intersection. The necessary direction follows from a universal normalization: a search through unconfirmed histories converts any successful generator into one depending only on the observed set. We then ask how large compatible witnesses must be. Positive separation width records the smallest uniform size bound, with two further levels for unbounded finite witnesses and the absence of any compatible finite-witness assignment. Every level occurs. Countable families admit singleton witnesses, explicit families realize every finite width, and a union of two families with infinite common cores requires unbounded finite witnesses. Finally, countable-support and finite-profile obstructions explain why local combinatorial data cannot determine generation in the limit. The characterization and full width hierarchy are checked in Lean, including the simplified normalization and a direct diagonal capture lemma. The accompanying Lean development is maintained at https://github.com/xiaoyulics/language-generation-characterization.

1 Introduction

A generator observes positive examples from an unknown language and must produce another valid example. In generation in the limit, the observations arrive in an arbitrary order and eventually enumerate the entire infinite target. Success means that, after some finite time, every output belongs to the target and has not appeared among the inputs. There is no feedback about whether an output is correct.

Kleinberg and Mullainathan (2024) showed that every countable family of infinite languages admits such a generator, even when identifying the target is impossible. For arbitrary families over a countable universe, Raman et al. (2025) characterized uniform generation by finite closure dimension and non-uniform generation by increasing countable covers of finite closure dimension. For ordinary generation, whose convergence time may depend on the entire presentation, they gave sufficient conditions and asked for a complete characterization.

Our first result answers this question by identifying the finite positive evidence that makes generation possible. Our second result studies the size of that evidence and shows why pointwise finiteness cannot be replaced by any uniform finite bound.

Finite witnesses: when generation is possible. Assign each target LL a finite set T(L)⊆LT(L) \subseteq L. At a finite sample SS, call LL active if T(L)⊆S⊆LT(L) \subseteq S \subseteq L: the sample is consistent with LL and has already revealed its witness. Theorem 2.3 states that generation in the limit is possible exactly when one assignment makes the full intersection of every nonempty active family infinite.

The sufficient direction explains the condition. Every target eventually becomes active on each of its texts. From then on, any fresh point common to all active targets is a valid output. Several targets may remain indistinguishable indefinitely; generation needs only a common source of new elements.

The necessary direction must handle a generator's dependence on order and repetitions. Theorem 3.1 gives a universal transformation from any sequence-input generator GG to a set-input generator gg, preserving every infinite target on which GG succeeds. The new generator searches histories whose outputs have not yet been observed. Finitely many positive confirmations force this search to follow a canonical finite chain of genuine errors and then pass beyond it. This produces witnesses satisfying

T(L)⊆S⊆L,S finite⟹g(S)∈L∖S.T(L) \subseteq S \subseteq L,\qquad S \text{ finite} \quad \Longrightarrow \quad g(S) \in L \setminus S.

The construction uses no knowledge of the target and no correctness oracle.

Witness size: a complete separation-width hierarchy. Call a nonempty subfamily bad when its full common intersection is finite. The witness condition is equivalent to requiring that each bad subfamily contain L,KL, K with T(L)∉KT(L) \notin K. We call this positive separation.

Positive separation width records the least uniform finite bound on the sizes of separating witnesses, when one exists. Otherwise it is ω\omega if a pointwise finite assignment exists, and ω+1\omega + 1 if none exists. Here ω\omega is the first infinite ordinal and ω+1\omega + 1 its successor; Section 5 explains the scale. The core characterization has the immediate numerical form

H generatable in the limit  ⟺  s(H)≤ω.\mathcal{H} \text{ generatable in the limit} \iff \mathfrak{s}(\mathcal{H}) \leq \omega.

The additional content is the hierarchy in Theorem 6.1. Every countable family admits distinct singleton witnesses. Nevertheless, explicit families have arbitrarily large finite width, with matching upper and lower bounds. A family of languages containing either of two fixed disjoint infinite blocks has width ω\omega. Thus even a union of two classes with infinite common cores can require unbounded finite witnesses. These are witness-size statements; an arbitrary text may delay a designated witness for as long as it wishes.

The finite-level lower bounds must allow witnesses to depend on entire targets, including their infinite tails. A direct diagonal capture lemma handles this dependence before a finite incidence count finishes the proof. The same lemma yields forced witness growth along an explicit chain of targets in the width-ω\omega example.

Why local dimensions miss the distinction. The compatibility of witnesses is global. Every countable family is generatable, but the family of all infinite subsets is not. Consequently, a dimension whose infinity is always supported by a countable subclass cannot characterize generation in the limit by finiteness. Even the complete finite trace and positive-closure profiles fail to distinguish generatable cofinite targets from the class of all infinite targets. Section 7 makes these limitations precise without excluding invariants that retain additional global structure.

References (23)