arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:2609.28551v1 [stat.ML] 23 Sep 2026

An Order-Theoretic Characterization of Consistent Inductive Inference

Zhou Lu Email: leozoroaster@gmail.com
September 2026
Abstract

When can a learner make only finitely many prediction errors along every infinite sequence labeled by a fixed, unknown hypothesis? We characterize this form of consistency for arbitrary binary hypothesis classes in ZFC, without requiring a uniform mistake bound. The characterization uses a single linear order on finite realizable traces. Each trace selects its least subtrace, and the order must satisfy two conditions: conflicting traces select different subtraces, and the order is well-founded on the traces of each fixed target. These conditions induce a learner whose selected evidence decreases on every mistake. Conversely, a consistent learner yields such an order through canonical mistake transcripts and the Kleene–Brouwer ordering. The result provides a representation of consistent prediction by finite evidence, answering a question of Lu (2024).

1 Introduction

The epistemological problem of induction concerns how experience can justify claims about cases not yet observed: a regularity in past observations does not by itself establish that the regularity will persist. A learning-theoretic approach examines the long-run reliability of inductive methods within a specified class of possible worlds (Schulte, 1999; Kelly, 2004). We study a precise version of this question for sequential prediction. Observations are labeled by one fixed, unknown hypothesis, while inputs may be presented in an arbitrary order. Under what conditions on the hypothesis class can a learner make only finitely many prediction errors along every such sequence? Success means that, on each sequence, every prediction is correct from some round onward. The last mistaken round and the total number of mistakes may depend on both the target and the entire input sequence.

This question depends on both the possible laws and the meaning of success. A uniform finite mistake bound is characterized by finite Littlestone dimension (Littlestone, 1988). Allowing the bound to depend on the target leads to the non-uniform theory of Lu (2024). Section 5 of that work isolates the weaker, sequence-dependent notion of consistency studied here and asks for a characterization.11 1 A different protocol allows the hypothesis realizing the data to change with each finite prefix, giving a stronger adversarial problem governed by infinite Littlestone trees (Bousquet et al., 2021). A characterization for one fixed target must preserve this distinction.

Our main result describes consistency through an order on finite observation records. We call such a record a trace: it contains the observed labeled examples, with order and repetitions removed. Given a linear order on traces, each trace selects its least subtrace. The theorem requires that conflicting traces never select the same subtrace and that no infinite descending sequence of traces be realized by one target. The first condition makes selected evidence sufficient to specify compatible predictions; the second prevents an endless sequence of corrections. Together they are necessary and sufficient for consistency.

The two directions explain different aspects of the characterization. An order satisfying these conditions directly supplies a prediction rule: use the compatible labels supplied by all traces with the currently selected evidence. Every error forces a strict decrease in that evidence. For the converse, an arbitrary consistent learner may depend on the entire ordered history. We associate each finite trace with a canonical history consisting only of mistakes. A replay property recovers that history from its trace. Ordering the histories by the Kleene–Brouwer construction, and breaking ties between traces, then produces the required order. Consistency enters precisely when we exclude infinite mistake histories for a fixed target.

The result is a structural characterization, rather than a numerical complexity measure or an effective decision procedure. The characterization gives a normal form for consistent prediction. Whenever any learner succeeds, there is one whose dependence on past observations is entirely through an unordered trace and a subtrace selected by one fixed order. Along every admissible sequence, both the selected evidence and its decoded predictor eventually stabilize (Proposition 4.1). Section 4 develops this interpretation and relates it to mistake bounds, sample compression, and inductive reasoning.

AI-assisted mathematical development.

OpenAI’s GPT models contributed substantially to the mathematical development of this work, including the formulation of the order-theoretic characterization and the construction of its proof. The arguments were developed and refined through iterative interaction with the author, who specified the problem, examined the proposed proofs, and guided their refinement.

A Lean 4 formalization of the main characterization and stabilization proposition is available at https://github.com/leozoroaster/finite-evidence-consistency-lean.

2 Setup and characterization

We work in ZFC.22 2 The converse uses choice to well-order X×2X\times 2. Choice is essential for the theorem over arbitrary domains: if the converse held in ZF, apply it to the singleton class containing the constant-zero function h0h_{0}. Its witness would well-order ℱh0\mathcal{F}_{h_{0}}, hence the singleton traces {(x,0)}\{(x,0)\}, and therefore XX. Thus the universal converse implies the axiom of choice. Let XX be an arbitrary set, let 2={0,1}2=\{0,1\}, and let H⊆2XH\subseteq 2^{X}, where 2X2^{X} is the set of functions from XX to 22. Write ω={0,1,2,…}\omega=\{0,1,2,\ldots\}. For a set SS, write S<ωS^{<\omega} for its finite sequences and [S]<ω[S]^{<\omega} for its finite subsets. Elements of E=X×2E=X\times 2 are labeled examples; an element of E<ωE^{<\omega} is a history.

Prediction protocol.

Nature fixes an unknown target h∈Hh\in H. At each round n<ωn<\omega, it presents an input xn∈Xx_{n}\in X. The learner predicts a label in 22 and then observes h⁡(xn)h(x_{n}). Inputs may repeat, and Nature may choose them adaptively. For a deterministic learner, a guarantee for every input sequence includes every sequence produced by such adaptive choices.

Consistency.

A deterministic learner is a map A:E<ω×X→2A:E^{<\omega}\times X\to 2. We call HH consistent if there exists a learner AA such that, for every h∈Hh\in H and every (xn)n<ω∈Xω(x_{n})_{n<\omega}\in X^{\omega},

|{n<ω:A⁡(((xi,h⁡(xi)))i<n,xn)≠h⁡(xn)}|<∞.\bigl|\{n<\omega:A(((x_{i},h(x_{i})))_{i<n},x_{n})\neq h(x_{n})\}\bigr|<\infty.

Thus the total number of mistakes may depend on hh and on the entire input sequence. No computability or measurability is required of AA. The term consistency refers throughout to this finite-mistake guarantee; agreement with a finite sample will be stated explicitly.

Traces and compatibility.

For any function g:X→2g:X\to 2, let graph⁡(g)={(x,g⁡(x)):x∈X}\operatorname{graph}(g)=\{(x,g(x)):x\in X\}. Define

ℱh=[graph⁡(h)]<ω,ℱH=⋃h∈Hℱh.\mathcal{F}_{h}=[\operatorname{graph}(h)]^{<\omega},\qquad\mathcal{F}_{H}=\bigcup_{h\in H}\mathcal{F}_{h}.

We call elements of ℱH\mathcal{F}_{H} realizable traces, or simply traces. Each is a finite partial function from XX to 22. A history τ\tau is realizable when its set of entries tr⁡(τ)\operatorname{tr}(\tau) belongs to ℱH\mathcal{F}_{H}; taking its trace discards order and repetitions. Two traces p,qp,q conflict if (x,0)∈p(x,0)\in p and (x,1)∈q(x,1)\in q, or conversely, for some x∈Xx\in X. Otherwise they are compatible. Compatibility says that p∪qp\cup q is a partial function; it does not require p∪qp\cup q to be realizable by a member of HH.

Selected evidence.

A strict linear order ≺\prec on ℱH\mathcal{F}_{H} is an irreflexive, transitive relation that compares every two distinct traces. Write ⪯\preceq for its reflexive extension. For any such order and any p∈ℱHp\in\mathcal{F}_{H}, define

m≺​(p)=min≺⁡{s:s⊆p}.m_{\prec}(p)=\min_{\prec}\{s:s\subseteq p\}. (1)

Every subtrace of pp belongs to ℱH\mathcal{F}_{H}. The family in (1) is nonempty and finite, so its least element exists uniquely, without any appeal to choice. This definition is conditional on an order being given. It makes no assertion that a suitable order exists. We refer to m≺​(p)m_{\prec}(p) as the selected evidence of pp; “least” always refers to ≺\prec, not to cardinality.

2.1 Characterization of consistency

The characterization separates a local requirement on prediction from a convergence requirement. Traces with the same selected evidence must agree wherever they overlap. As observations accumulate, the selected evidence can only move earlier in the order. The second condition below ensures that such movement cannot continue indefinitely along a fixed target.

Theorem 2.1 (Finite-evidence characterization).

The class HH is consistent if and only if there exists a strict linear order ≺\prec on ℱH\mathcal{F}_{H} satisfying the following conditions, with m=m≺m=m_{\prec}.

  1. 1.

    Conflict separation. For every p,q∈ℱHp,q\in\mathcal{F}_{H},

    p,q​ conflict⟹m⁡(p)≠m⁡(q).p,q\text{ conflict}\quad\Longrightarrow\quad m(p)\neq m(q). (2)
  2. 2.

    Well-foundedness for each target. For every h∈Hh\in H, the restriction ≺|ℱh\prec|_{\mathcal{F}_{h}} is a well-order: each nonempty subset of ℱh\mathcal{F}_{h} has a least element. Equivalently, there are no h∈Hh\in H and (pn)n<ω∈(ℱh)ω(p_{n})_{n<\omega}\in(\mathcal{F}_{h})^{\omega} with

    pn+1≺pn(n<ω).p_{n+1}\prec p_{n}\qquad(n<\omega). (3)

The quantifiers are ∃≺∀h∈H\exists\prec\,\forall h\in H: one order must serve every target.33 3 This is only a clarification of the scope of the well-order requirement. The order need not be well-founded on all of ℱH\mathcal{F}_{H}. A global infinite descending sequence, if one exists, must contain only finitely many terms in each ℱh\mathcal{F}_{h}. The existence of such a sequence is neither assumed nor used in the proof. Section 3.1 constructs the predictor indexed by each selected subtrace, giving the term evidence a precise operational meaning.

3 Proof of the characterization

If H=∅H=\varnothing, any learner satisfies the consistency requirement vacuously, and the empty relation satisfies the theorem. Henceforth assume H≠∅H\neq\varnothing. Write τ⌢​e\tau^{\frown}e for the history obtained by appending the labeled example ee to τ\tau, and ()() for the empty history.

3.1 Order implies consistency

Let ≺\prec satisfy the two conditions of Theorem 2.1, and put m=m≺m=m_{\prec}. We first construct a predictor from each possible value of mm. For r∈m⁡(ℱH)r\in m(\mathcal{F}_{H}), let

Br={p∈ℱH:m⁡(p)=r},vr=⋃p∈Brp.B_{r}=\{p\in\mathcal{F}_{H}:m(p)=r\},\qquad v_{r}=\bigcup_{p\in B_{r}}p.

The family BrB_{r} contains all realizable traces that select rr as their evidence. By conflict separation, any two members of BrB_{r} are compatible. Consequently vrv_{r} is a partial function: it never assigns both labels to the same input. Extend it to a total predictor gr:X→2g_{r}:X\to 2 by setting

gr​(x)={b,(x,b)∈vr,0,x∉dom⁡(vr).g_{r}(x)=\begin{cases}b,&(x,b)\in v_{r},\\ 0,&x\notin\operatorname{dom}(v_{r}).\end{cases}

In particular, grg_{r} agrees with every trace in BrB_{r}.44 4 The predictor grg_{r} need not belong to HH: compatibility of the traces in BrB_{r} does not require their union to be realizable by one hypothesis.

Define

A≺​(τ,x)={gm⁡(tr⁡(τ))​(x),tr⁡(τ)∈ℱH,0,tr⁡(τ)∉ℱH.A_{\prec}(\tau,x)=\begin{cases}g_{m(\operatorname{tr}(\tau))}(x),&\operatorname{tr}(\tau)\in\mathcal{F}_{H},\\ 0,&\operatorname{tr}(\tau)\notin\mathcal{F}_{H}.\end{cases}

Thus the learner uses the accumulated trace to select a finite subtrace, then predicts with its associated grg_{r}. The union defining grg_{r} ranges over all traces in BrB_{r}, rather than over the history currently observed. It is a fixed part of the construction once ≺\prec and HH are given.

For p,q∈ℱHp,q\in\mathcal{F}_{H}, enlarging the trace enlarges the family over which the minimum is taken. Therefore

p⊆q⟹m⁡(q)⪯m⁡(p).p\subseteq q\quad\Longrightarrow\quad m(q)\preceq m(p). (4)

Moreover, if p⊆qp\subseteq q and (x,b)∈q(x,b)\in q satisfies gm⁡(p)​(x)≠bg_{m(p)}(x)\neq b, then m⁡(q)≺m⁡(p)m(q)\prec m(p). Indeed, equality would place qq in Bm⁡(p)B_{m(p)}, so (x,b)∈vm⁡(p)(x,b)\in v_{m(p)} and gm⁡(p)​(x)=bg_{m(p)}(x)=b, a contradiction. Thus a prediction error forces the selected evidence to change strictly.

Fix a target h∈Hh\in H and a sequence (xn)n<ω∈Xω(x_{n})_{n<\omega}\in X^{\omega}. Put

pn={(xi,h⁡(xi)):i<n},rn=m⁡(pn).p_{n}=\{(x_{i},h(x_{i})):i<n\},\qquad r_{n}=m(p_{n}).

Then rn∈ℱhr_{n}\in\mathcal{F}_{h}, and (4) gives rn+1⪯rnr_{n+1}\preceq r_{n} at every round. The preceding argument gives rn+1≺rnr_{n+1}\prec r_{n} whenever A≺A_{\prec} makes a mistake at round nn. If there were infinitely many mistakes, enumerate their indices as n0<n1<⋯n_{0}<n_{1}<\cdots. For each kk,

rnk+1⪯rnk+1≺rnk.r_{n_{k+1}}\preceq r_{n_{k}+1}\prec r_{n_{k}}.

This would be an infinite descending sequence in ℱh\mathcal{F}_{h}, contrary to (3). Hence A≺A_{\prec} is consistent.

3.2 Consistency implies an order

We now construct the order from a consistent learner. For each trace pp, we select a canonical history of mistakes whose terminal predictor agrees with all of pp. The trace of this history will become the least subtrace of pp in our order. Replay and comparison lemmas establish this claim and yield conflict separation. We then use consistency to prove well-foundedness separately for each target.

Normalization.

We may assume that the learner remembers observed labels and never makes a mistake on a previously seen input. This simple convention ensures that the mistake histories constructed below contain only distinct inputs. Formally, let A0A_{0} be a consistent learner. On a realizable history τ\tau, define A⁡(τ,x)A(\tau,x) to be the previously observed label when xx has already appeared, and A0​(τ,x)A_{0}(\tau,x) otherwise. On unrealizable histories, set A=A0A=A_{0}. Along any sequence labeled by a fixed h∈Hh\in H, the two learners receive the same histories, and every prediction on which they differ is correct for AA. Thus AA makes a subset of the mistakes of A0A_{0} and remains consistent. With fτ​(x)=A⁡(τ,x)f_{\tau}(x)=A(\tau,x), we have

tr⁡(τ)⊆graph⁡(fτ)for every realizable history ​τ.\operatorname{tr}(\tau)\subseteq\operatorname{graph}(f_{\tau})\qquad\text{for every realizable history }\tau.

Canonical transcripts.

By the axiom of choice, fix a well-order <E<_{E} on E=X×2E=X\times 2, to be used for every trace. For a trace pp and a history τ\tau, let

Dp​(τ)={(x,b)∈p:fτ​(x)≠b}D_{p}(\tau)=\{(x,b)\in p:f_{\tau}(x)\neq b\}

be the examples in pp that the current predictor misclassifies. Starting from τ0=()\tau_{0}=(), recursively set

τk+1=τk⌢min<EDp(τk)if Dp(τk)≠∅,\tau_{k+1}=\tau_{k}^{\frown}\min_{<_{E}}D_{p}(\tau_{k})\qquad\text{if }D_{p}(\tau_{k})\neq\varnothing,

and stop when this error set is empty. The procedure presents the learner only with examples on which its current prediction is wrong. The order <E<_{E} makes the selection deterministic whenever several such examples are available.

Every intermediate history has trace contained in pp, and is therefore realizable. If (x,b)∈p(x,b)\in p has an input already seen in τk\tau_{k}, its label agrees with the earlier observation because pp is a partial function. Normalization then gives fτk​(x)=bf_{\tau_{k}}(x)=b. Hence no such example lies in Dp​(τk)D_{p}(\tau_{k}): every appended input is new, and the procedure stops after at most |p||p| steps.

Denote its terminal history by T⁡(p)T(p), the canonical transcript of pp, and let r⁡(p)=tr⁡(T⁡(p))r(p)=\operatorname{tr}(T(p)). By construction and termination,

r⁡(p)⊆p,p⊆graph⁡(fT⁡(p)).r(p)\subseteq p,\qquad p\subseteq\operatorname{graph}(f_{T(p)}).

The transcript may omit many examples, but its terminal predictor agrees with the whole trace. Since the learner depends on an ordered history, the set r⁡(p)r(p) alone does not a priori record the information needed to recover that predictor. The following lemma shows that the canonical selection rule recovers the entire transcript from r⁡(p)r(p), and that deleting any unselected examples leaves the transcript unchanged.

Lemma 3.1 (Replay).

For p,q∈ℱHp,q\in\mathcal{F}_{H},

r⁡(p)⊆q⊆p⟹T⁡(q)=T⁡(p).r(p)\subseteq q\subseteq p\quad\Longrightarrow\quad T(q)=T(p). (5)
Proof.

Both runs start at the empty history. Suppose inductively that they have reached the same history τ\tau, and that the run on pp has not stopped. Its next example is e=min<EDp(τ)e=\min_{<_{E}}D_{p}(\tau). Since ee appears in T⁡(p)T(p), it belongs to r⁡(p)⊆qr(p)\subseteq q. Both runs use the same predictor fτf_{\tau}, so

e∈Dq​(τ)⊆Dp​(τ).e\in D_{q}(\tau)\subseteq D_{p}(\tau).

The least element of Dp​(τ)D_{p}(\tau) is therefore also the least element of Dq​(τ)D_{q}(\tau). Both runs append ee, completing the induction step. In particular, the run on qq cannot stop earlier. When the run on pp stops, Dq​(T⁡(p))⊆Dp​(T⁡(p))=∅D_{q}(T(p))\subseteq D_{p}(T(p))=\varnothing, so the run on qq stops at the same history. ∎

Taking q=r⁡(p)q=r(p) and then taking traces gives

T⁡(r⁡(p))=T⁡(p),r⁡(r⁡(p))=r⁡(p).T(r(p))=T(p),\qquad r(r(p))=r(p). (6)

Next consider what happens when p⊆qp\subseteq q. Until their runs diverge, every error available in pp is also available in qq. The larger trace can introduce a smaller selected example at the first divergence, or it can prolong the transcript after the run on pp has stopped. We use an order on histories in which either change moves the transcript earlier.

Equip E<ωE^{<\omega} with the strict Kleene–Brouwer order <KB<_{\mathrm{KB}}: σ<KBτ\sigma<_{\mathrm{KB}}\tau if τ\tau is a proper prefix of σ\sigma, or if neither is a prefix of the other and σj<Eτj\sigma_{j}<_{E}\tau_{j} at their first differing position jj. Thus proper extensions precede their prefixes; otherwise the first different entry determines the comparison. This is a strict linear order. Write ≤KB\leq_{\mathrm{KB}} for its reflexive extension.

Lemma 3.2 (Comparison).

For p,q∈ℱHp,q\in\mathcal{F}_{H},

p⊆q⟹T(q)≤KBT(p).p\subseteq q\quad\Longrightarrow\quad T(q)\leq_{\mathrm{KB}}T(p). (7)
Proof.

First, T⁡(q)T(q) cannot be a proper prefix of T⁡(p)T(p). Otherwise, at the history T⁡(q)T(q), the next example selected by the run on pp would be a misclassified member of p⊆qp\subseteq q, contradicting termination of the run on qq.

If T⁡(p)T(p) is a prefix of T⁡(q)T(q), including equality, the conclusion follows from the extension-first convention. Otherwise let τ\tau be their longest common prefix and let e,fe,f be the respective next entries of T⁡(p),T⁡(q)T(p),T(q). At this history,

e=min<EDp(τ)∈Dp(τ)⊆Dq(τ),f=min<EDq(τ).e=\min_{<_{E}}D_{p}(\tau)\in D_{p}(\tau)\subseteq D_{q}(\tau),\qquad f=\min_{<_{E}}D_{q}(\tau).

Hence f≤Eef\leq_{E}e. Since these entries differ, f<Eef<_{E}e, and the definition of the Kleene–Brouwer order gives T(q)<KBT(p)T(q)<_{\mathrm{KB}}T(p). Later entries cannot change this comparison. ∎

Constructing the order on traces.

We compare traces primarily by their transcripts. Different traces may have the same transcript, so we also need a tie-break. Define ⊲\triangleleft on ℱH\mathcal{F}_{H} by comparing cardinalities first, and then comparing the <E<_{E}-increasing enumerations lexicographically among traces of the same cardinality.

This is a well-order. For a fixed cardinality nn, a nonempty family of increasing enumerations has a lexicographically least member: choose the least occurring first coordinate, then the least second coordinate among those with that first coordinate, and continue for nn steps. A nonempty family of finite traces therefore has a least member by first choosing its least occurring cardinality. Moreover, s⊊ps\subsetneq p implies s⊲ps\triangleleft p. This last property is the reason for using cardinality as the first tie-break: the transcript’s own trace must precede every larger trace having the same transcript.

Define ≺\prec on ℱH\mathcal{F}_{H} by

p≺q⟺T(p)<KBT(q)or[T(p)=T(q) and p⊲q].p\prec q\quad\Longleftrightarrow\quad T(p)<_{\mathrm{KB}}T(q)\quad\text{or}\quad\bigl[T(p)=T(q)\text{ and }p\triangleleft q\bigr].

This is the lexicographic order on the pairs (T⁡(p),p)(T(p),p). Both constituent comparisons are strict linear orders, and the second distinguishes traces with equal transcripts. Thus ≺\prec is a strict linear order on ℱH\mathcal{F}_{H}.

We claim that its least subtrace of pp is exactly r⁡(p)r(p). For any s⊆ps\subseteq p, replay and comparison give

T(r(p))=T(p)≤KBT(s).T(r(p))=T(p)\leq_{\mathrm{KB}}T(s).

If the inequality is strict, the primary comparison gives r⁡(p)≺sr(p)\prec s. If the transcripts are equal, taking traces gives r⁡(p)=r⁡(s)⊆sr(p)=r(s)\subseteq s. Either r⁡(p)=sr(p)=s, or the inclusion is proper, in which case r⁡(p)⊲sr(p)\triangleleft s. The tie-break therefore gives r⁡(p)⪯sr(p)\preceq s in this case as well. Since r⁡(p)⊆pr(p)\subseteq p, we have proved

m≺​(p)=r⁡(p)(p∈ℱH).m_{\prec}(p)=r(p)\qquad(p\in\mathcal{F}_{H}). (8)

Conflict separation.

Suppose m≺​(p)=m≺​(q)=sm_{\prec}(p)=m_{\prec}(q)=s. By (8), r⁡(p)=r⁡(q)=sr(p)=r(q)=s, and replay yields

T⁡(p)=T⁡(r⁡(p))=T⁡(s)=T⁡(r⁡(q))=T⁡(q).T(p)=T(r(p))=T(s)=T(r(q))=T(q).

The terminal predictor fT⁡(s)f_{T(s)} agrees with every example of pp and of qq. They cannot assign opposite labels to a common input. Equal minima therefore imply compatibility, proving (2).

Well-foundedness for each target.

The finite construction and conflict separation are now established. Termination on each individual finite trace does not yet control an infinite sequence of different traces. To obtain that control, we use consistency on a fixed target and the following classical tree-ordering fact (Aschenbrenner and Pong, 2004, Definition 4.5 and Lemma 4.6). This fact turns the absence of infinite branches into a well-order on the corresponding finite histories.

Lemma 3.3 (Kleene–Brouwer).

Let W⊆E<ωW\subseteq E^{<\omega} be prefix-closed, with EE well-ordered by <E<_{E}. Suppose WW has no infinite branch, meaning that no w∈Eωw\in E^{\omega} has every finite prefix in WW. Then the restriction of <KB<_{\mathrm{KB}} to WW is a well-order.

Proof.

Assume W≠∅W\neq\varnothing, since the empty case is immediate. For τ∈W\tau\in W, let WτW_{\tau} contain all words in WW extending τ\tau, including τ\tau itself. We prove that WτW_{\tau} is well-ordered by first assuming this for the subtrees rooted at one-step extensions of τ\tau. This is well-founded induction with extensions placed below their prefixes. It is valid because, in ZFC, failure of well-foundedness would yield an infinite chain of proper extensions; its union would be an infinite word whose finite prefixes all lie in WW, contrary to the hypothesis.

Assume the assertion for the child subtrees Wτ⌢​eW_{\tau^{\frown}e} with τ⌢​e∈W\tau^{\frown}e\in W. Each proper extension of τ\tau belongs to exactly one such subtree. If e<Efe<_{E}f, every word in Wτ⌢​eW_{\tau^{\frown}e} precedes every word in Wτ⌢​fW_{\tau^{\frown}f}, because their first differing entries are ee and ff. All words in these child subtrees precede τ\tau itself.

Take a nonempty S⊆WτS\subseteq W_{\tau}. If a child subtree meets SS, choose the <E<_{E}-least entry ee for which Wτ⌢​eW_{\tau^{\frown}e} meets SS, and then the least element of SS in that subtree, which exists by induction. The preceding comparisons show that this element is least in all of SS. If no child subtree meets SS, then S={τ}S=\{\tau\}. Thus WτW_{\tau} is well-ordered. Applying the induction to the empty word proves the claim. ∎

Fix h∈Hh\in H and consider its mistake tree

Wh={((xi,h(xi)))i<n:n<ω,(xi)i<n∈Xn,A(((xj,h(xj)))j<i,xi)≠h(xi) for every i<n}.\begin{split}W_{h}=\bigl\{((x_{i},h(x_{i})))_{i<n}:\;&n<\omega,\ (x_{i})_{i<n}\in X^{n},\\ &A(((x_{j},h(x_{j})))_{j<i},x_{i})\neq h(x_{i})\text{ for every }i<n\bigr\}.\end{split}

This is the tree of histories labeled by hh on which AA errs at every round. To verify that it is prefix-closed, take a history τ=((xi,h⁡(xi)))i<n∈Wh\tau=((x_{i},h(x_{i})))_{i<n}\in W_{h} and any k≤nk\leq n. Retain its first kk examples and discard the last n−kn-k, obtaining σ=((xi,h⁡(xi)))i<k\sigma=((x_{i},h(x_{i})))_{i<k}. At each retained round i<ki<k, the learner receives exactly the same preceding history ((xj,h⁡(xj)))j<i((x_{j},h(x_{j})))_{j<i} and current input xix_{i} as in τ\tau. Its prediction is therefore unchanged, so it still makes a mistake at that round. Thus σ\sigma is also a history labeled by hh on which AA errs at every round, and hence σ∈Wh\sigma\in W_{h}. Every prefix of τ\tau, including the empty history when k=0k=0, therefore belongs to WhW_{h}, which is precisely prefix-closure.

Normalization ensures that its histories have distinct inputs. An infinite branch would therefore give one infinite input sequence, labeled by this same hh, on which AA makes a mistake at every round. Consistency rules out such a branch. By Lemma 3.3, <KB<_{\mathrm{KB}} well-orders WhW_{h}. The argument permits arbitrarily long finite branches and does not require a uniform finite bound on their lengths.

For every p∈ℱhp\in\mathcal{F}_{h}, the entries of T⁡(p)T(p) lie in p⊆graph⁡(h)p\subseteq\operatorname{graph}(h), and each is a mistake after the preceding entries. Thus T⁡(p)∈WhT(p)\in W_{h}. To prove well-ordering of the traces themselves, take a nonempty S⊆ℱhS\subseteq\mathcal{F}_{h}. The set {T⁡(p):p∈S}\{T(p):p\in S\} has a <KB<_{\mathrm{KB}}-least transcript τ\tau. Among the traces p∈Sp\in S with T⁡(p)=τT(p)=\tau, choose the ⊲\triangleleft-least one, denoted p∗p_{*}. Any q∈Sq\in S with a different transcript follows p∗p_{*} by the primary comparison; any distinct q∈Sq\in S with the same transcript follows p∗p_{*} by the tie-break. Hence p∗p_{*} is the ≺\prec-least element of SS.

It follows that ≺|ℱh\prec|_{\mathcal{F}_{h}} is a well-order. Since hh was arbitrary and ≺\prec was constructed before fixing hh, the same order satisfies the condition for every target. This completes the proof of Theorem 2.1.∎

4 Discussion

4.1 Technical interpretation

For fixed HH and a witness order, the selected evidence m⁡(p)m(p) is a finite code for a predictor agreeing with the entire trace pp:

p⊆graph⁡(gm⁡(p))(p∈ℱH).p\subseteq\operatorname{graph}(g_{m(p)})\qquad(p\in\mathcal{F}_{H}).

The code is interpreted through the fixed decoder r↦grr\mapsto g_{r}; it need not identify a particular member of HH or have minimum cardinality.

Selection is stable under deletion of unselected examples:

m⁡(p)⊆q⊆p⟹m⁡(q)=m⁡(p).m(p)\subseteq q\subseteq p\quad\Longrightarrow\quad m(q)=m(p). (9)

Indeed, m⁡(p)m(p) remains an available subtrace of qq, while every subtrace of qq was already available under pp. Such a deletion therefore changes neither the selected evidence nor its predictor. Moreover, along any fixed target, the selected evidence eventually stabilizes, giving a stronger conclusion than finitely many mistakes.

Proposition 4.1 (Stabilization of evidence).

Fix a witness order, a target h∈Hh\in H, and an input sequence. With pn={(xi,h⁡(xi)):i<n}p_{n}=\{(x_{i},h(x_{i})):i<n\}, the sequence m⁡(pn)m(p_{n}) is eventually constant. Its eventual value r∗r_{*} satisfies

⋃n<ωpn⊆graph⁡(gr∗).\bigcup_{n<\omega}p_{n}\subseteq\operatorname{graph}(g_{r_{*}}).
Proof.

The values m⁡(pn)m(p_{n}) form a nonincreasing sequence in the well-order ≺|ℱh\prec|_{\mathcal{F}_{h}}. Infinitely many changes would yield an infinite strictly descending subsequence, so the values stabilize, say from round NN onward. For each n≥Nn\geq N, pn∈Br∗p_{n}\in B_{r_{*}}, and hence pn⊆graph⁡(gr∗)p_{n}\subseteq\operatorname{graph}(g_{r_{*}}). Every observed example belongs to such a pnp_{n}, giving the inclusion. ∎

Thus consistency always admits a learner that uses its history only through the accumulated trace and whose predictor eventually stabilizes. The limiting predictor agrees with the target on every input encountered in the interaction, though it may disagree on inputs never presented.

There is also a finite code for each complete target under the same decoder. Its existence gives a simple consequence on countable domains.

Proposition 4.2 (Target codes and countable domains).

Fix a witness order. For each h∈Hh\in H, let rh=min≺⁡ℱhr_{h}=\min_{\prec}\mathcal{F}_{h}. Then rh∈m⁡(ℱH)r_{h}\in m(\mathcal{F}_{H}) and grh=hg_{r_{h}}=h. Consequently, on a countable domain, HH is consistent if and only if HH is countable.

Proof.

If rh⊆p∈ℱhr_{h}\subseteq p\in\mathcal{F}_{h}, then rhr_{h} is an available subtrace of pp and precedes every other such subtrace, so m⁡(p)=rhm(p)=r_{h}. Applying this first to p=rhp=r_{h} and then to p=rh∪{(x,h⁡(x))}p=r_{h}\cup\{(x,h(x))\} gives rh∈m⁡(ℱH)r_{h}\in m(\mathcal{F}_{H}) and grh​(x)=h​(x)g_{r_{h}}(x)=h(x) for every x∈Xx\in X. Thus h↦rhh\mapsto r_{h} is injective. When XX is countable, there are only countably many finite traces, so consistency implies that HH is countable. Conversely, enumerate a nonempty countable HH and predict using the first hypothesis agreeing with the history, or 00 if none agrees. For a fixed target, every mistake eliminates a hypothesis preceding the target’s first occurrence in the enumeration; there are only finitely many such hypotheses. The empty class is immediate. ∎

Decoding a finite target code uses the fixed order: other hypotheses may agree with its labels.55 5 Here “finite” counts labeled examples. On an uncountable domain, it does not assert that their inputs admit finite binary encodings. Moreover, an input sequence need not present all of rhr_{h}, so the learner need not converge to hh on unobserved inputs.

Example: finitely many positive inputs.

Let Hfin⊆2ωH_{\mathrm{fin}}\subseteq 2^{\omega} consist of the functions with finitely many positive inputs, and put p+={(x,1)∈p}p^{+}=\{(x,1)\in p\} for each realizable trace pp. Fix a well-order ⊲\triangleleft on ℱHfin\mathcal{F}_{H_{\mathrm{fin}}}. Define ≺\prec by comparing traces first by decreasing |p+||p^{+}|, then by increasing |p||p|, and finally by ⊲\triangleleft. Among the subtraces of pp, the trace p+p^{+} retains all its positive examples and has the smallest possible cardinality subject to doing so. Hence

m⁡(p)=p+.m(p)=p^{+}.

Conflicting traces have different positive parts, so conflict separation holds. For a fixed target hh, the value |p+||p^{+}| is bounded by the finite number of positive inputs of hh. The first comparison therefore has only finitely many possible values on ℱh\mathcal{F}_{h}. Within each such value, cardinality and ⊲\triangleleft give a well-order. Thus ≺|ℱh\prec|_{\mathcal{F}_{h}} is a well-order. The decoder grg_{r} predicts 11 exactly at the positive inputs retained in rr. The induced learner remembers observed positive inputs and predicts 00 elsewhere; each mistake reveals a new positive input of the target.

For comparison, consider the different protocol in which each finite prefix need only be realized by some hypothesis, possibly a different one for each prefix. Every finite prefix of (0,1),(1,1),(2,1),…(0,1),(1,1),(2,1),\ldots is realized by a member of HfinH_{\mathrm{fin}}, but the entire sequence is not. It is therefore permitted by that alternative protocol and excluded from ours. This distinction explains why our theorem imposes well-foundedness on the traces of each fixed target.

4.2 Connections to learning theory

Descent after mistakes.

Our learner shares the central idea of Littlestone’s Standard Optimal Algorithm (SOA): every mistake forces a decrease in an ordered state. SOA predicts so that a mistake reduces the Littlestone dimension of the hypotheses agreeing with the history, yielding a uniform mistake bound when this dimension is finite (Littlestone, 1988). Here the state is a least subtrace, decoded into a predictor, and descent is controlled by well-foundedness for each target rather than by a finite dimension.

Bousquet et al. (2021, Section 3) extend the descent argument using ordinal Littlestone dimension. Their online protocol requires only realizability of each finite prefix. Our condition instead reflects the requirement of one common target: the same order serves all targets, but it need be well-founded only on each target’s traces.

Consistency and hypothesis-wise guarantees.

Theorem 2.1 resolves the characterization problem for consistency raised in Section 5 of Lu (2024). The main guarantee studied there allows a mistake bound depending on hh, but requires it to hold uniformly over input sequences. This hypothesis-wise requirement sits between the classical uniform bound, independent of both target and sequence, and consistency, which requires only finitely many mistakes for each individual target–sequence pair.

The distinction is strict, as the following example shows.

Proposition 4.3 (Consistency without a hypothesis-wise bound).

Let ω1\omega_{1} be the first uncountable ordinal, let X=ω1X=\omega_{1}, and let

H={hα:α<ω1},hα(ξ)=𝟏{ξ<α}.H=\{h_{\alpha}:\alpha<\omega_{1}\},\qquad h_{\alpha}(\xi)=\mathbf{1}\{\xi<\alpha\}.

Then HH is consistent, but no learner has a finite mistake bound depending only on the target.

Proof.

Start with u=ω1u=\omega_{1} and predict 𝟏{ξ<u}\mathbf{1}\{\xi<u\} on input ξ\xi. After a mistake, replace uu by ξ\xi. For a fixed target hαh_{\alpha}, the invariant u≥αu\geq\alpha implies that a mistake can occur only at an input satisfying α≤ξ<u\alpha\leq\xi<u. Every mistake therefore strictly decreases the ordinal uu. There is no infinite strictly decreasing sequence of ordinals, so the learner is consistent.

Every infinite subclass of HH has infinite Littlestone dimension. Indeed, for any dd, choose 2d2^{d} thresholds with distinct parameters. At a node with 2​m2m remaining parameters in increasing order, query the mmth parameter: exactly mm thresholds label it 00 and mm label it 11. Recursing on both groups gives a shattered binary tree of depth dd. Hence every subclass of finite Littlestone dimension is finite, and the uncountable class HH cannot be a countable union of such subclasses. The characterization in Lu (2024, Theorem 9) rules out a hypothesis-wise finite mistake bound. ∎

Compression and reconstruction.

The maps p↦m⁡(p)p\mapsto m(p) and r↦grr\mapsto g_{r} give a labeled compression–reconstruction representation, with no uniform bound on the retained sample size. Equation (9) connects it to stable compression (Hanneke and Kontorovich, 2021), while the use of a preference order recalls order compression schemes (Darnstädt et al., 2013). Those schemes order a reconstruction class; here the order is on finite traces, and conflict separation makes the decoder well-defined. In the converse, canonical mistake transcripts and replay recover a predictor from an unordered subtrace. The Kleene–Brouwer order converts the absence of infinite mistake histories for each target into the required well-foundedness.

Computability.

The countability criterion in Proposition 4.2 has an effective counterpart on X=ωX=\omega. A total computable consistent learner exists if and only if there is a total computable function F:ω×ω→2F:\omega\times\omega\to 2 such that

H⊆{F⁡(i,⋅):i<ω}.H\subseteq\{F(i,\cdot):i<\omega\}.

For necessity, every h∈Hh\in H must equal A⁡(τ,⋅)A(\tau,\cdot) at some hh-realizable finite history τ\tau: otherwise, repeatedly choosing an input on which the current predictor disagrees with hh gives infinitely many mistakes against that fixed target. Effectively enumerating all finite histories therefore supplies the required family. For sufficiency, at a history of length nn, follow the least index i≤ni\leq n whose predictor agrees with the history, or predict 00 if none does. This finite search defines a total computable learner even on unrealizable histories. For target F⁡(k,⋅)F(k,\cdot), there are at most kk mistakes before round kk; thereafter, every mistake permanently eliminates an index below kk, so the total is at most 2​k2k. This is the fixed-target analogue of the projection and enumeration argument of Kalociński and Steifer (2025, Lemma 3 and Theorem 5), whose protocol requires realizability of every finite prefix.

4.3 Implications for inductive reasoning

The theorem gives a means–ends characterization in the sense of Schulte (1999): for a specified class of possible targets and the goal of eventually avoiding all prediction errors, it identifies exactly when that goal is attainable. The guarantee is conditional on the target belonging to HH; choosing the admissible possibilities remains a separate epistemic commitment.

Kelly (2004) connects Ockham’s razor with efficiency in avoiding retractions. Our result establishes that a preference over finite evidence suffices for consistent prediction whenever consistency is possible. It does not determine a notion of simplicity or minimize revisions. An Ockham interpretation would therefore require additional assumptions relating the witness order to simplicity and the desired standard of efficiency.

References

  • Aschenbrenner and Pong (2004) Matthias Aschenbrenner and Wai Yan Pong. Orderings of monomial ideals. Fundamenta Mathematicae, 181(1):27–74, 2004. Author manuscript.
  • Bousquet et al. (2021) Olivier Bousquet, Steve Hanneke, Shay Moran, Ramon van Handel, and Amir Yehudayoff. A theory of universal learning. In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, pages 532–541, 2021. Full version, arXiv:2011.04483.
  • Darnstädt et al. (2013) Malte Darnstädt, Thorsten Doliwa, Hans Ulrich Simon, and Sandra Zilles. Order compression schemes. In Algorithmic Learning Theory, pages 173–187, 2013. Author manuscript.
  • Hanneke and Kontorovich (2021) Steve Hanneke and Aryeh Kontorovich. Stable sample compression schemes: New applications and an optimal SVM margin bound. In Algorithmic Learning Theory, volume 132 of Proceedings of Machine Learning Research, pages 697–721, 2021. Proceedings entry.
  • Kalociński and Steifer (2025) Dariusz Kalociński and Tomasz Steifer. Computable universal online learning. arXiv preprint arXiv:2510.18352, 2025. Preprint.
  • Kelly (2004) Kevin T. Kelly. Justification as truth-finding efficiency: How Ockham’s razor works. Minds and Machines, 14:485–505, 2004. Author proof.
  • Littlestone (1988) Nick Littlestone. Learning quickly when irrelevant attributes abound: A new linear-threshold algorithm. Machine Learning, 2(4):285–318, 1988. Article.
  • Lu (2024) Zhou Lu. When is inductive inference possible? Advances in Neural Information Processing Systems, 37:92721–92744, 2024. Proceedings entry.
  • Schulte (1999) Oliver Schulte. Means-ends epistemology. The British Journal for the Philosophy of Science, 50(1):1–31, 1999. doi:10.1093/bjps/50.1.1.