An Order-Theoretic Characterization of Consistent Inductive Inference
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 . 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 . Its witness would well-order , hence the singleton traces , and therefore . Thus the universal converse implies the axiom of choice. Let be an arbitrary set, let , and let , where is the set of functions from to . Write . For a set , write for its finite sequences and for its finite subsets. Elements of are labeled examples; an element of is a history.
Prediction protocol.
Nature fixes an unknown target . At each round , it presents an input . The learner predicts a label in and then observes . 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 . We call consistent if there exists a learner such that, for every and every ,
Thus the total number of mistakes may depend on and on the entire input sequence. No computability or measurability is required of . 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 , let . Define
We call elements of realizable traces, or simply traces. Each is a finite partial function from to . A history is realizable when its set of entries belongs to ; taking its trace discards order and repetitions. Two traces conflict if and , or conversely, for some . Otherwise they are compatible. Compatibility says that is a partial function; it does not require to be realizable by a member of .
Selected evidence.
A strict linear order on is an irreflexive, transitive relation that compares every two distinct traces. Write for its reflexive extension. For any such order and any , define
| (1) |
Every subtrace of belongs to . 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 as the selected evidence of ; “least” always refers to , 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 is consistent if and only if there exists a strict linear order on satisfying the following conditions, with .
- 1.
Conflict separation. For every ,
(2) - 2.
Well-foundedness for each target. For every , the restriction is a well-order: each nonempty subset of has a least element. Equivalently, there are no and with
(3)
The quantifiers are : 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 . A global infinite descending sequence, if one exists, must contain only finitely many terms in each . 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 , any learner satisfies the consistency requirement vacuously, and the empty relation satisfies the theorem. Henceforth assume . Write for the history obtained by appending the labeled example to , and for the empty history.
3.1 Order implies consistency
Let satisfy the two conditions of Theorem 2.1, and put . We first construct a predictor from each possible value of . For , let
The family contains all realizable traces that select as their evidence. By conflict separation, any two members of are compatible. Consequently is a partial function: it never assigns both labels to the same input. Extend it to a total predictor by setting
In particular, agrees with every trace in .44 4 The predictor need not belong to : compatibility of the traces in does not require their union to be realizable by one hypothesis.
Define
Thus the learner uses the accumulated trace to select a finite subtrace, then predicts with its associated . The union defining ranges over all traces in , rather than over the history currently observed. It is a fixed part of the construction once and are given.
For , enlarging the trace enlarges the family over which the minimum is taken. Therefore
| (4) |
Moreover, if and satisfies , then . Indeed, equality would place in , so and , a contradiction. Thus a prediction error forces the selected evidence to change strictly.
Fix a target and a sequence . Put
Then , and (4) gives at every round. The preceding argument gives whenever makes a mistake at round . If there were infinitely many mistakes, enumerate their indices as . For each ,
This would be an infinite descending sequence in , contrary to (3). Hence is consistent.
3.2 Consistency implies an order
We now construct the order from a consistent learner. For each trace , we select a canonical history of mistakes whose terminal predictor agrees with all of . The trace of this history will become the least subtrace of 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 be a consistent learner. On a realizable history , define to be the previously observed label when has already appeared, and otherwise. On unrealizable histories, set . Along any sequence labeled by a fixed , the two learners receive the same histories, and every prediction on which they differ is correct for . Thus makes a subset of the mistakes of and remains consistent. With , we have
Canonical transcripts.
By the axiom of choice, fix a well-order on , to be used for every trace. For a trace and a history , let
be the examples in that the current predictor misclassifies. Starting from , recursively set
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 makes the selection deterministic whenever several such examples are available.
Every intermediate history has trace contained in , and is therefore realizable. If has an input already seen in , its label agrees with the earlier observation because is a partial function. Normalization then gives . Hence no such example lies in : every appended input is new, and the procedure stops after at most steps.
Denote its terminal history by , the canonical transcript of , and let . By construction and termination,
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 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 , and that deleting any unselected examples leaves the transcript unchanged.
Lemma 3.1 (Replay).
For ,
| (5) |
Proof.
Both runs start at the empty history. Suppose inductively that they have reached the same history , and that the run on has not stopped. Its next example is . Since appears in , it belongs to . Both runs use the same predictor , so
The least element of is therefore also the least element of . Both runs append , completing the induction step. In particular, the run on cannot stop earlier. When the run on stops, , so the run on stops at the same history. ∎
Taking and then taking traces gives
| (6) |
Next consider what happens when . Until their runs diverge, every error available in is also available in . The larger trace can introduce a smaller selected example at the first divergence, or it can prolong the transcript after the run on has stopped. We use an order on histories in which either change moves the transcript earlier.
Equip with the strict Kleene–Brouwer order : if is a proper prefix of , or if neither is a prefix of the other and at their first differing position . Thus proper extensions precede their prefixes; otherwise the first different entry determines the comparison. This is a strict linear order. Write for its reflexive extension.
Lemma 3.2 (Comparison).
For ,
| (7) |
Proof.
First, cannot be a proper prefix of . Otherwise, at the history , the next example selected by the run on would be a misclassified member of , contradicting termination of the run on .
If is a prefix of , including equality, the conclusion follows from the extension-first convention. Otherwise let be their longest common prefix and let be the respective next entries of . At this history,
Hence . Since these entries differ, , and the definition of the Kleene–Brouwer order gives . 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 on by comparing cardinalities first, and then comparing the -increasing enumerations lexicographically among traces of the same cardinality.
This is a well-order. For a fixed cardinality , 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 steps. A nonempty family of finite traces therefore has a least member by first choosing its least occurring cardinality. Moreover, implies . 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 on by
This is the lexicographic order on the pairs . Both constituent comparisons are strict linear orders, and the second distinguishes traces with equal transcripts. Thus is a strict linear order on .
We claim that its least subtrace of is exactly . For any , replay and comparison give
If the inequality is strict, the primary comparison gives . If the transcripts are equal, taking traces gives . Either , or the inclusion is proper, in which case . The tie-break therefore gives in this case as well. Since , we have proved
| (8) |
Conflict separation.
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 be prefix-closed, with well-ordered by . Suppose has no infinite branch, meaning that no has every finite prefix in . Then the restriction of to is a well-order.
Proof.
Assume , since the empty case is immediate. For , let contain all words in extending , including itself. We prove that is well-ordered by first assuming this for the subtrees rooted at one-step extensions of . 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 , contrary to the hypothesis.
Assume the assertion for the child subtrees with . Each proper extension of belongs to exactly one such subtree. If , every word in precedes every word in , because their first differing entries are and . All words in these child subtrees precede itself.
Take a nonempty . If a child subtree meets , choose the -least entry for which meets , and then the least element of in that subtree, which exists by induction. The preceding comparisons show that this element is least in all of . If no child subtree meets , then . Thus is well-ordered. Applying the induction to the empty word proves the claim. ∎
Fix and consider its mistake tree
This is the tree of histories labeled by on which errs at every round. To verify that it is prefix-closed, take a history and any . Retain its first examples and discard the last , obtaining . At each retained round , the learner receives exactly the same preceding history and current input as in . Its prediction is therefore unchanged, so it still makes a mistake at that round. Thus is also a history labeled by on which errs at every round, and hence . Every prefix of , including the empty history when , therefore belongs to , 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 , on which makes a mistake at every round. Consistency rules out such a branch. By Lemma 3.3, well-orders . The argument permits arbitrarily long finite branches and does not require a uniform finite bound on their lengths.
For every , the entries of lie in , and each is a mistake after the preceding entries. Thus . To prove well-ordering of the traces themselves, take a nonempty . The set has a -least transcript . Among the traces with , choose the -least one, denoted . Any with a different transcript follows by the primary comparison; any distinct with the same transcript follows by the tie-break. Hence is the -least element of .
It follows that is a well-order. Since was arbitrary and was constructed before fixing , 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 and a witness order, the selected evidence is a finite code for a predictor agreeing with the entire trace :
The code is interpreted through the fixed decoder ; it need not identify a particular member of or have minimum cardinality.
Selection is stable under deletion of unselected examples:
| (9) |
Indeed, remains an available subtrace of , while every subtrace of was already available under . 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 , and an input sequence. With , the sequence is eventually constant. Its eventual value satisfies
Proof.
The values form a nonincreasing sequence in the well-order . Infinitely many changes would yield an infinite strictly descending subsequence, so the values stabilize, say from round onward. For each , , and hence . Every observed example belongs to such a , 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 , let . Then and . Consequently, on a countable domain, is consistent if and only if is countable.
Proof.
If , then is an available subtrace of and precedes every other such subtrace, so . Applying this first to and then to gives and for every . Thus is injective. When is countable, there are only countably many finite traces, so consistency implies that is countable. Conversely, enumerate a nonempty countable and predict using the first hypothesis agreeing with the history, or 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 , so the learner need not converge to on unobserved inputs.
Example: finitely many positive inputs.
Let consist of the functions with finitely many positive inputs, and put for each realizable trace . Fix a well-order on . Define by comparing traces first by decreasing , then by increasing , and finally by . Among the subtraces of , the trace retains all its positive examples and has the smallest possible cardinality subject to doing so. Hence
Conflicting traces have different positive parts, so conflict separation holds. For a fixed target , the value is bounded by the finite number of positive inputs of . The first comparison therefore has only finitely many possible values on . Within each such value, cardinality and give a well-order. Thus is a well-order. The decoder predicts exactly at the positive inputs retained in . The induced learner remembers observed positive inputs and predicts 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 is realized by a member of , 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 , 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 be the first uncountable ordinal, let , and let
Then is consistent, but no learner has a finite mistake bound depending only on the target.
Proof.
Start with and predict on input . After a mistake, replace by . For a fixed target , the invariant implies that a mistake can occur only at an input satisfying . Every mistake therefore strictly decreases the ordinal . There is no infinite strictly decreasing sequence of ordinals, so the learner is consistent.
Every infinite subclass of has infinite Littlestone dimension. Indeed, for any , choose thresholds with distinct parameters. At a node with remaining parameters in increasing order, query the th parameter: exactly thresholds label it and label it . Recursing on both groups gives a shattered binary tree of depth . Hence every subclass of finite Littlestone dimension is finite, and the uncountable class 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 and 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 . A total computable consistent learner exists if and only if there is a total computable function such that
For necessity, every must equal at some -realizable finite history : otherwise, repeatedly choosing an input on which the current predictor disagrees with 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 , follow the least index whose predictor agrees with the history, or predict if none does. This finite search defines a total computable learner even on unrealizable histories. For target , there are at most mistakes before round ; thereafter, every mistake permanently eliminates an index below , so the total is at most . 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 ; 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.