Manuscript Offprint
arXiv:2610.18632Solomonoff induction of selected bits and online classification
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Solomonoff induction is a general solution for sequence prediction that started the field of algorithmic information theory around 1960. Let be the universal semimeasure. After observing a string , it predicts the next bit to be with conditional probability proportional to . Thus the error of this probability is
If a computable infinite sequence with a self-delimiting description of at most bits, then .
Lattimore, Hutter and Gavane consider the problem of predicting computable patterns in a sequence, for example, the pattern of repeated bits . They show that the error probabilities of the bits fixed by a computable pattern have limit zero, for example, for repeated bits, one has .
We show that for some computable pattern, the sum of over positions from the pattern is not bounded. However, the sum of squares is bounded exponentially in the program length of the pattern, It is also shown that bits of that are fixed by a computable classification function , converges faster: the sum of is bounded by a polynomial in the program length for programs whose runtime is bounded by any fixed computable time bound.
1 Introduction
Many machinelearning tasks can be viewed as sequence prediction: given bits , what is the probability of the next bit being 0? Solomonoff provided a simple mathematical solution for this problem based on algorithmic probability defined below [15]. In this way, he united various philosophical approaches to the problem of scientific inference and the foundations of probability, see [12, chapter 5].
Often, we are only interested in the errors of some of the bits. For example, “online classification” can be viewed as “sequence prediction” by building a sequence that alternately consists of input features and labels. In this case, we do not care about predictions of the input features, but only about their labels. In this paper, we determine convergence rates for predicting computable patterns in sequences and in particular for deterministic online classification rules.
Definition. A semimeasure is a function that satisfies and , where denotes the concatenation of string and bit .
*Both authors work in National Research University Higher School of Economics, Faculty of Computer Science, Moscow, Russia. This work/article is an output of a research project (HSE-BR-2025-024) implemented as part of the Basic Research Program at HSE University.
Results were announced in the International Conference Dedicated to the 125th Anniversary of P.S. Novikov [3]. (August 24–28, 2026, Steklov Mathematical Institute of RAS, 8 Gubkina St., Moscow),
Among the lower semicomputable semimeasures, there exists a semimeasure that is maximal, which means that for each such semimeasure , one has . Note that all maximal such semimeasures are equal up to a constant factor. Let be any such maximal semimeasure.
Solomonoff’s solution for sequence prediction given is to predict with probability
The following question was raised in [7, problem 2.9 p63] and [8].
Question. Does conditional probability decrease rapidly to zero on the bits that are fixed by some computable pattern? For example, if each even bit equals the preceding odd bit, does the sum remain bounded?
In [10, theorem 11, p269] it was shown that does converge to 1 for those bits that are fixed by a computable pattern. Unfortunately, the result depends on a proof cited as private communication [11], and we did not find a public version. For this reason, also no quantitative bounds were found.
Our first result provides upper bounds on the convergence rates for -losses with and . For a bit , let be its negation.
Theorem 1.1. Fix . Let be decided by a program of length . If all prefixes of are in , then
and
The above bounds are exponential in k and we do not know if polynomial bounds hold. Our proof relies on a game that was earlier defined by Mikhail Andreev and Akim Kumok [1], but they mostly focus on the opposite player.
The following result shows that for , the errors diverge slowly. A tree is a subset of that is closed under taking prefixes.
- In the context of convergence of subpatterns, it is important that the denominator is normalized and equals instead of the commonly used . Indeed, in [10, theorem 12] the case of repeated bits is studied. It is shown that there exist with for all such that
However, the definition of algorithmic probability M is different in [10]. We think this also holds for certain maximal semimeasures M, (but not for all).
†We switched from monotone to the larger prefix complexity because it is better known and we use it elsewhere in this paper. The absolute-error bound follows from [6, eq (8) section 3], after applying .
Theorem 1.2. There exists a computable leafless tree and infinitely many strings w in T such that
This theorem follows from the proof of a result by Mikhail Andreev and Akim Kumok [1].
Online classification
Solomonoff proved that for random sequences, algorithmic probability rapidly converges to conditional measure [16]. If P is a measure computed by a self-delimiting program of length k, then for an infinite sequence generated from P, one has
Now we consider the problem of online classification of strings of arbitrary length. This can be cast as sequence prediction using any prefix-free encoding of of strings , where with . Now we are interested in the sums of errors only for those bits that correspond to values .
Can we obtain a small mistake bound if there exists a simple classifier? Unfortunately, the above bound is only small when the combined complexity of input generation and true classifier are small.
For example, imagine one wants to train a classifier for discriminating black-white movies from color movies in mp4 files. Such a classifier should be relatively easy to learn, however, any realistic measure P over movies might be quite complex. In fact, it is not even clear what “realistic measure” means.
Our next result states that for online classifiers, the L -norm of the probability error is polynomial in the Kolmogorov complexity of the classifier. Thus, this is exponentially better than for general patterns.
To define for a list of strings, fix a computable prefix-free encoding of strings, and encode by concatenating the prefix-free encodings of its elements.
Theorem 1.3. Fix and a computable time bound . If is computed by a -bit program in time on input , then for ,
where .
In this result, the time bound affects the constant in the big-O. A similar statement can be proven for functions f that output strings of constant length, but we do not know how to prove it for arbitrary output.
Corollary 1.4. There exists a computable classifier and infinitely many for which there exist strings such that
where .
We assume that the question whether y is a prefix of the encoding of some string is decidable. When only using lists L in which the words at even positions are single bits, then it is not needed to apply an encoding on these bits.
In fact, the above theorem is true for the constant 0 classifier. In appendix A we discuss online algorithmic probability, which was defined in [5] (and used in [7, 9] for reinforcement learning). If in the above sum, conditional algorithmic probability were replaced by online probability, then the sum is always bounded by a constant. Thus with online algorithmic probability one can obtain better bounds for the absolute loss.
2 Games
Note that we may always assume that sets T in the theorem are closed under prefixes, because dropping strings that do not contain all their prefixes does not change the set of infinite that are applicable to the theorems, neither does it affect the sums.
The flow-flow game
The flow-flow game. The game has parameters and is played on trees , which are known to both players. Two players, called Alice and Bob, each maintain their own continuous semimeasure, denoted and . Initially, . They alternate turns and at their turn, they can increase finitely many values of their semimeasure, provided functions and remain semimeasures.
Alice wins immediately if after some move of Bob, there exists an infinite branch of some tree such that
where in the sum, is assumed. Bob wins if he can reply indefinitely without Alice winning.
Example 1. Consider the game with and the single tree . Bob wins by concentrating all measure along the tree, thus setting for all .
Example 2. Again, let . Consider the game with an arbitrary single tree. If Alice evaluates a computable rational measure A, then Bob has a computable winning strategy by splitting his flow proportionally to A's flow in nodes x for which both children are in the tree, and otherwise, if x has only 1 child, sending all flow in this child's direction.
Indeed, at every round, the support of is finite, so we prove it by induction on the maximal length of the support. Suppose that the strategy works for some and all trees. Consider some supported on -bit strings. If the root of the tree has 2 children, then the root does not contribute to the sum. Consider the 2 inductive applications corresponding to the children of the root. Compared to the original sum, both the numerators and denominators are multiplied by the same factors, thus Bob wins. Otherwise, if the root has 1 child , then the root contributes an extra term to all sums. But by the inductive hypothesis, the strategy wins against strategy , meaning that in our game, the sum is bounded by . Thus in each branch, the sum is at most .
Winning strategies and error bounds
Strategies for Alice provide lower bounds in the main theorems. Strategies for Bob provide upper bounds. For the exponential upper bounds in theorem 1.1, only the game with tree is needed. For a set , let be the minimal prefix complexity of a program that decides , see [12, 14] for background on algorithmic information theory.
Lemma 2.1. Fix and a constant . Assume that for each tree , Bob has a winning strategy in the game with 1 tree and value , and that these strategies are uniformly computable given . Then for each computable and infinite branch in ,
The proof of the lemma uses the following result, see for example [12, cor 4.5.1, p307].
Lemma 2.2. For all lower semicomputable semimeasures B and x,
where K(B) is the minimal prefix complexity of a program that lower approximates B.
Proof of lemma 2.1. Consider the game for a computable tree T. Let Alice play a strategy in which she ignores T and Bob's moves: she computes a lower approximation of M and in each round, sets the current values equal to A.
Bob plays the winning strategy. We obtain a semimeasure B by taking the limit of his semimeasure. It satisfies
Note that , because is computed from by evaluating the strategy. Hence, lemma 2.2 implies
The lemma finishes by raising to the power and summing.
Lemma 2.3. Fix , a computable function , and a uniformly computable sequence of trees Suppose Bob wins each game with parameters and trees . Also suppose that the strategies are uniformly computable in . Then, for each tree and each infinite branch in ,
Proof sketch. The proof is similar as for lemma 2.1, but with a different estimate for the complexity of Bob's semimeasure. Now the trees and the strategies are uniformly computable in , thus this complexity is bounded by the complexity of . Hence, . After taking exponents and powers, this corresponds to the factor in the right side.
The second part of theorem 1.1 requires bounds on the sum for N-bit prefixes of and s is a function. Alice wins if after some move of Bob, there exists an infinite branch of some tree and an N such that
(*)
It is easy to adapt the above lemmas when s is a function instead of a constant. This was omitted for notational convenience.
Lemma 2.4. Let tree T and function s be computable. Assume that for all N, Alice has a strategy in which for all N there exists an N-bit string z in T such that for infinitely many rounds,
(*)
If these strategies are uniformly computable given N, then for all N, there exists an N-bit z in T such that
Proof. Consider a game in which Bob plays blindly, and lower approximates a priori probability M. Alice plays the winning strategy. Since Alice's semimeasure A is lower semicomputable given N, lemma 2.2 implies
The proof finishes by substituting this, raising to the power and summing.
The weight-flow game
We now consider an equivalent game for the case of a single tree T. The flow that leaves Alice's tree in a certain node is viewed as a weight.
Formally, let denote the set of all nodes that are not in but whose parent is in . Thus is a prefix-free set. Let always represent a bit. For all (implying ), we set . (If is a leaf, then also . One may choose , but this won't matter.)
This leads to an equivalent game, called the weight-flow game, where Alice controls weights instead of flows. We additionally allow weights on all the nodes, and it turns out that we need no tree T at all.
First we formally prove that this game is indeed harder. Afterwards, we prove that the harder game is equivalent to the flow-flow game with the tree for repeated bits.
The weight-flow game. The game has parameters and . Two players Alice and Bob alternate turns. As before, Bob maintains a semimeasure . Initially . Alice maintains weights for all strings such that
Initially w = 0. In each round Alice increase finitely many values of w. Afterwards, Bob increases finitely many values of B.
Alice wins if after Bob's move, there exists an with
where is assumed. Bob wins if he can reply indefinitely without Alice winning.
Lemma 2.5. If Bob has a winning strategy in the weight-flow game, then for each single tree T, Bob has a winning strategy in the flow-flow game with the same parameters and s.
Proof. The proof is a simple formal verification. Let be Alice's strategy in a flow-flow game with a single tree T. We need a winning strategy for Bob in this game.
First is transformed to a strategy for Alice in the weight-flow game. Recall that is always a bit. For each node in with , Alice sets . She keeps for all other .
Bob plays his winning strategy against . He obtains a strategy by “pushing one step forward” when the relevant direction in is unique. More precisely,
for nodes with a brother, thus if ,
for nodes without brother.
Note that for and that only happens if is in and has no brother in . This implies for all , because if , then .
In the sum that defines the winning condition, only values are used for which has no brother. Thus we have
Since these are precisely the terms we care about in the winning condition, Bob wins in the flow-flow game.
Lemma 2.6. If Alice has a winning strategy in the weight-flow game, then Alice has a winning strategy in the flow-flow game with the same parameters and for the tree consisting of all strings with zeros in even positions.
Proof. Let be the tree with zeros in even positions, thus . The idea is to associate strings in the weight-flow game to expanded strings
in the flow-flow game. Alice's weights in become flows in , since . We explain in detail that this works.
Consider a strategy for Bob in the flow-flow game with the tree from the lemma. Let Bob play the strategy
against Alice's winning strategy w in the weight-flow game.
Note that the set of is prefix-free. Alice's strategy in the flow-flow game is obtained by setting
and all other values of are obtained by recursively summing over the values of the children. This implies that by the requirement of .
In the winning condition in the flow-flow game, we only sum over prefixes x of odd length, since precisely the nodes x with odd have 1 child. Moreover, this child is always x0, thus the winning condition in the flow-flow game only consists of terms of the form
Since Alice plays a winning strategy w, the sum of -powers of the right-hand side exceeds s and the strategy is also winning . Because we started with an arbitrary strategy , the lemma is proven.
3 Bob's strategy in the weight-flow game
Lemma 3.1. For each , Bob has a winning strategy in the weight-flow game for and .
By lemmas 2.5 and 2.1, this implies the first part of theorem 1.1.
The proof of the lemma starts with an easier variant of the weight-flow game. For strings , let denote that is a prefix of . Let mean and .
Variant of the weight-flow game. The game has an integer parameter . Alice and Bob's moves are the same, (Alice increases weights and Bob a semimeasure ). Alice wins if after Bob's move there exist different strings such that and for all ,
Lemma 3.2. For each integer , Bob has a winning strategy in this variant of the weight-flow game.
Proof. With pushing flow to node , we mean increasing for all prefixes . The idea of Bob's reply is to push minimal flows to prevent Alice's winning condition from happening. Thus each time he finds that satisfies this condition, and pushes the minimal
§ Any tree could be used in which each infinite branch infinitely often alternates between having 1 and 2 children. For example, the tree with repeated positions. The above tree was chosen for notational convenience.
flow to so that for some . In case there are several such -tuples, it does not matter which one is selected first.
Algorithm 1 Bob's reply in the variant of the game.
1: while strings exist with for all do 2: 3: for all
By construction, Alice's winning requirement is never satisfied. We verify that is always a semimeasure. Note that holds for all , because each time a flow is pushed through or , also is increased.
Let denote the empty string. It remains to prove that . Let be the value of in line 2 during the -th push of flow in , (in all replies combined). Now it is explained that
Initially both sides are zero. At each increase of , the left side can only increase more. Each time some flow is pushed, the right side can only decrease, because there are different strings where increases by and where . Hence, the above inequality always holds.
By definition of the game, the left side is at most 1, thus . Hence, is a semimeasure and the lemma is proven.
Proof of lemma 3.1. Bob's strategy does not depend on . The idea is that Bob plays the above strategy simultaneously for infinitely many . To guarantee , we need to push slightly smaller flows. Let
Algorithm 2 Bob's reply.
1: while integer and exist with for all do 2: 3: for all
As before, . To see that , consider the sets of rounds where flow is pushed for value . Let where corresponds to all flows pushed during rounds in . For each , we have
for exactly the same reasons as in lemma 3.2, but now gets a increase in places (instead of ), which implies that the sum decreases by . Thus, . After summing over , we see that and hence, is indeed a semimeasure.
It remains to verify the winning condition. Fix . First assume that all prefixes of satisfy . For each , there are at most prefixes with . Thus,
Unfortunately, it may happen that , but there are at most such strings. For this we modify the flow so that the ratio is always bounded by 2. Let
The ratio . The sum for contains an additional factor plus the contribution of at most 3 larger terms. Hence, Bob wins the game for
Lemma 3.1 is proven.
Lemma 3.3. Bob has a winning strategy in the weight-flow game for and some .
Proof. We start by analysing the finite game restricted to N-bit strings where . The algorithm is the same as for lemma 3.1, but using better coefficients .
For notational convenience, we ignore the first few terms in the sum of the winning condition, equivalently, we assume , since finitely many terms do not matter given the big-O notation in s. For this, we need that the ratios are bounded on those finitely many strings, and this is achieved by adding a uniform flow to Bob's flow and rescaling proportionally. Note that this rescaling factor is absorbed in the big-O.
Note that only flows are pushed for values of with , thus . If all prefixes of satisfy , then
There might be prefixes for which , but in a similar way as before, we bound their ratio by 2.
Now we need a strategy for all lengths N. For this, we run infinitely many strategies of Bob in parallel where each strategy is supported on strings whose lengths are in the interval where
Thus, if and 0 otherwise. Bob's strategy strategy is
We verify that Bob is winning.
Finally, we observe that increases geometrically, thus
Proof of theorem 1.1. Apply lemmas 2.5, 2.1 and 3.1 (respectively lemma 3.3) to obtain the proof of the first part (respectively second part). Let be a program that decides the tree . Then, we have that . Thus . The theorem is proven.
4 Upper bound for online classification
Let be a computable prefix-free encoding of string . Recall that we view the task of learning through online classification as a sequence prediction task. The learner iteratively receives , predicts and receives the correct value . This task is described as a sequence prediction task of selected bits on a sequence
Let be the leafless tree consisting of all prefixes of such sequences for all choices of .
Lemma 4.1. Fix . If are trees obtained in the above way from classifiers, then Bob has a computable winning strategy for some .
Proof of theorem 1.3 assuming lemma 4.1. Let be a list of leafless trees that contain all for classifiers that are computed by programs of length less than within time bound . Such a list can be made uniformly computable in by applying the same technique as in the construction of maximal semimeasures: interpret each string of length less than as a program that computes such a tree, possibly by fixing the output if a program terminates too slowly or gives invalid output (for example, produces a leaf). Theorem 1.3 follows from lemma 2.3 applied to trees and the strategy from lemma 4.1.
In the remainder of this section, lemma 4.1 is proven. Recall the transition from the flow-flow game with 1 tree T to the weight-flow game in the previous section: when Alice's flow leaves the tree T, this corresponds to increasing the weight on the node from which the flow leaves.
A naive way to transit from a flow-flow game with many trees to the weight-flow game is to is to increase the weights of a node in which flow leaves some tree. To guarantee that the sum of weights is at most 1, the weights need to be rescaled by the number of trees. This means that the strategy of the weight-flow game requires s proportional to . This is not enough, because we need . The idea is to partition the trees into a small number of forests, and only increase the weights when the flow leaves 1 of the forests.
Definition. A leafless forest is a subset of such that for all , either or .
Note that a tree obtained from a classifier, satisfies this property.
Definition. A tuple of forests is called a good partition of the leafless trees if partitions all nodes in ,
– forests are leafless,
– if a node in a tree has a single child, then has a single child in the forest containing ,
– the intersection of a branch and a forest is either empty or a path, thus is an interval in (possibly empty or infinite).
Lemma 4.2. Assume forests are a good partition of leafless trees . Also, assume that Bob has a winning strategy in the weight-flow game with parameters and s. Then Bob has a winning strategy in the flow-flow game on the trees with parameters and .
First this lemma is proven, and afterwards it is explained how forests are obtained.
Proof. We will use k copies of the weight-flow, where for Alice, a strategy in the weight-flow game is obtained by increasing w for each flow that leaves forest from a node in . For Bob, a strategy is obtained in the flow-flow game by pushing the flow 1 step forward on nodes with 1 child in its forest. Here are the details.
Let be a move by Alice in the flow-flow game. Recall that is leafless.
Alice’s move in the -th weight-flow game. Let if and for some bit . For all other , let .
Note that , because is prefix-free.
Bob’s move in the flow-flow game. Let be the reply from Bob when he plays a winning strategy against Alice’s move . Flow is obtained by pushing each flow for 1 step forward on nodes that have a unique child in the direction of , and taking the average over these and ’s flows.
Formally, let if is the parent of and has exactly 1 child in its forest. If has 2 children, then . If is on a path to at least 1 root of forest , then let be the sum of all flows over roots that are extensions of . If is neither on nor on a path to some of its roots, then . Finally, for all , we set
For the same reasons as before, is a semimeasure, thus so is . It remains to verify that Bob wins the game with parameters and .
Fix a tree and an infinite branch . We need to bound
We rewrite this so that the winning condition of the weight-flow game can be used, which requires to think about forests.
All flow that leaves tree also leaves some forest , except in those nodes where the tree leaves a forest , see figure 1. This exceptional flow stays in the forest, and this flow is not accounted for in any game. There is 1 such term per forest.
Since , each (missing) term is at most . Hence, we need to bound
Note that if has 1 child in , then . By definition of ,
Now the lemma finishes by using that Bob is winning the weight-flow games, thus
It remains to construct the forests.
Definition. Let T be a tree.
– A node is called splitting if both and .
– A node is called predicting if it has exactly 1 child in .
– Trees are called jointly predicting if for every z, either all trees that contain z are splitting or all are predicting.

Figure 1: The branch leaves through a root of . The red child belongs to but not to , so this index contributes to the -sum but not to the -sum.
Observe that a set of trees associated to classifiers is jointly predicting. Indeed, if 2 trees and contain a node , it means that both and are consistent with the labels in . When extending , this remains true as long as and agree on the encoded inputs. If for some with , then both trees have exactly 1 child, but it will be a different child.
Lemma 4.3. Given leafless trees that are jointly predicting, one can compute forests that are a good partition of these trees.
The idea of the construction mimics the halving algorithm for online classification given in [13].
First we construct the ‘most popular’ subtree in a greedy way, starting at the root: if the current node is splitting, add it to and recurse on both children, otherwise, recurse on the child that lays on the maximal number of trees (ignore the other child). Break ties arbitrarily. Then, remove from . Now is a forest. We repeat the process for each root in to obtain forest (thus consists of the “most popular subtrees” in the remaining ). Then remove from and repeat to construct , and so on. Note that this is a mathematical construction, not an algorithm.
Construction of forests for fixed
FORESTCONSTRUCTION()
1: .
2: for do
3:
4: for every root in do
5: PROCESS(root, , )
6: remove from
7: Output .
PROCESS(node, , )
1: while true do
2: add node to
3: if node is a splitting node then
4: PROCESS(child 1, , )
5: PROCESS(child 2, , )
6: else # thus node has 1 child in each
7: child child on the maximal number of trees
8: PROCESS(child, , )
Lemma 4.4. The output of FORESTCONSTRUCTION partitions .
Proof. Claim. At the beginning of the -th iteration of the for loop in FORESTCONSTRUCTION, every remaining node in lies on less than trees.
Proof of the claim. Since the root lays on less than trees, this holds for .
Now inductively assume the claim for some , thus we assume every node in lays on less than trees. Every node in was not added to , and such a decision can happen only in the else case inside PROCESS. It happens only for the child that lays on the smaller number of nodes. Thus this number is smaller than . The inductive step and hence the claim are proven.
This implies that at the beginning of the k-th iteration, every node in U lies on exactly 1 tree and PROCESS copies U into . Hence, the forests cover all the trees.
Proof of lemma 4.3. It is easy to see that the forests are computable, because the decision to include a node x in some forest only depends on the part of the trees on strings of length at most .
It remains to verify that is a good partition of . The previous lemma states that it is a partition.
At any moment, U is leafless because the copying to always starts from a root in U. Hence, each is leafless, because the most popular child always exists and the copying never terminates.
If a node v contains 1 child in a tree , then this node is predicting and has 1 child in the forest containing v.
Finally, observe that each infinite branch of a tree intersects in a path. Indeed, each “less popular child” finishes the copying of the prefix to the current . Afterwards, no more prefixes are copied from .
In conclusion, the forests are a good partition. Lemma 4.3 and hence theorem 1.3 are proven.
5 Alice's strategy in the weight-flow game
Note that we consider essentially finite games now.

Figure 2: concatenation of strategies in the proof of lemma 5.1.
Lemma 5.1. For each N, Alice has a strategy in the weight-flow game in which for some N-bit string z she achieves the following. For infinitely many rounds,
(*)
Moreover, these strategies are computable given N.
Proof of theorem 1.2. Select of the form . Note that . The theorem now follows from lemmas 2.4 and 2.6.
Thus it remains to prove the lemma.
Proof. This proof follows the main technical result in [1], which is their lemma 4. We note that their strategy is uniformly computable and has the following property. After every move of Alice and before Bob's move, Alice is in a winning position in a certain string x. If Bob invalidates this winning position, then Alice will never attempt to recover the winning position in x, but instead create a winning position in another string. The proof shows that eventually, some string becomes winning for Alice and remains winning forever.
We only explain the changes, which involves estimating the error when approximating a finite sum by an integral.
The construction of the strategy is recursive in the target : given a strategy for parameter , a new strategy is obtained with parameter using strings of length at most and playing the recursive strategies at the end of each string, see figure 2.
Let the gain be and the number of strings be . For this, we need to find values of and such that where both quantities are obtained from (*) and (**) on page 11 of [1]. Here is the bound of the game on the -th string. The equations are
Let . We have
Note that is decreasing in i. One has
Solving the integral gives
One verifies that for , and , this bound is indeed at least 1.
It remains to verify that the length of the strings needed for this strategy is when . Indeed, to increase s from i - 1 to i (with i integer), we need to repeat this construction at most times. Thus, to reach a value s - 1, the total length of the concatenated strings is
Thus there exists a constant such that this is at most if . Lemma 5.1 is proven.
Proof of corollary 1.4. Recall that in the proof of lemma 2.6, we can choose a tree in which the predicted bits are precisely those in even position, and the prediction is always zero. This tree corresponds to any classifier that maps both strings “0” and “1” to the bit 0. This almost works, but there is a small problem, because we need to assume a prefix encoding of the strings in the input stream. But the fix is obvious, the tree should alternate predicting layers with several branching layers according to the prefix encoding.
Statement about AI usage
All theorems were proved and written by the authors. Theorems 1.1 and 1.2 are based on German's thesis in from June 2025. Tikz pictures were generated by chatgpt 6.1 before the public release. Chatgpt was also asked to write a detailed review. It gave useful references to the halving algorithm and Hutter's work. It found a major mistake of a deleted theorem, as well as a large number of fixable mistakes.
References
[1] Mikhail Andreev and Akim Kumok. The sum over all prefixes of some binary sequence can be infinite. Theory of Computing Systems, 58(3):424–440, 2016.
[2] Bruno Bauwens. Asymmetry of the kolmogorov complexity of online predicting odd and even bits. In 31st International Symposium on Theoretical Aspects of Computer Science, page 125–136, 2014.
[3] Bruno Bauwens. Solomonoff induction of selected bits and online classification, August 2026. Talk in Novikov-125: International Conference Dedicated to the 125th Anniversary of P.S. Novikov, slides https://www.mathnet.ru/PresentFiles/51146/bauwens_slides.pdf.
[4] Bruno Bauwens and Maria Marchenko. Space-bounded online kolmogorov complexity is additive. In Conference on Computability in Europe, pages 133–142. Springer, 2025.
[5] Alexey Chernov, Alexander Shen, Nikolay Vereshchagin, and Vladimir Vovk. On-line probability, complexity and randomness. In ALT '08: Proceedings of the 19th international conference on Algorithmic Learning Theory, pages 138–153, Berlin, Heidelberg, 2008. Springer-Verlag.
[6] Marcus Hutter. Convergence and loss bounds for bayesian sequence prediction. IEEE Transactions on Information Theory, 49(8):2061–2067, 2003.
[7] Marcus Hutter. Universal artificial intelligence: Sequential decisions based on algorithmic probability. Springer Science & Business Media, 2005.
[8] Marcus Hutter. Open problems in universal induction & intelligence. Algorithms, 2(3):879–906, 2009.
[9] Marcus Hutter, David Quarel, and Elliot Catt. An Introduction to Universal Artificial Intelligence. CRC Press, 2024.
[10] Tor Lattimore, Marcus Hutter, and Vaibhav Gavane. Universal prediction of selected bits. In International Conference on Algorithmic Learning Theory, pages 262–276. Springer, 2011.
[11] Steffen Lempp, Joseph Miller, Selwyn Ng, and Dan Turetsky. Complexity inequality, 2010. Private communication to Marcus Hutter, cited in [10].
[12] Ming Li and Paul M.B. Vitányi. An Introduction to Kolmogorov Complexity and Its Applications, 4th edition. Springer, 2019.
[13] Nick Littlestone. Learning quickly when irrelevant attributes abound: A new linear-threshold algorithm. Machine learning, 2(4):285–318, 1988.
[14] Alexander Shen, Vladimir A. Uspensky, and Nikolay Vereshchagin. Kolmogorov complexity and algorithmic randomness, volume 220. American Mathematical Soc., 2017.
[15] Ray J. Solomonoff. A preliminary report on a general theory of inductive inference, on February 4, 1960. available at http://raysolomonoff.com/publications/rayfeb60.pdf, revised version of this report was published in November 1960, A Preliminary Report on a General Theory of Inductive Inference, (Revision of Report V-131), Contract AF 49(639)-376, Report ZTB-138, Zator Co., Cambridge, Mass., Nov. 1960, available at http://raysolomonoff.com/publications/z138.pdf.
[16] Ray J. Solomonoff. Complexity-based induction systems: Comparisons and convergence theorems. IEEE Trans. on Inform. Theor., 24(4):422–432, 1978.
A Online semimeasures are slightly better for online classification
Definition ([5]). An online semimeasure is a function that maps lists of the form or with and to that satisfy
•
•
•
Online algorithmic probability is defined in a similar way as standard algorithmic probability by the following result.
Proposition A.1 ([5]). Among the lower semicomputable online semimeasures, there exists a semimeasure that is maximal up to a constant factor, thus for each such semimeasure one has .
All that satisfy the conditions of the proposition are equal up to a constant factor. We fix such . An interesting application is Marcus Hutter's AIXI policy for reinforcement learning [7, 9]. This theoretical policy models the environment using and practical variants of the policy have been studied [9].
Hutter uses the notion of chronological measure, see [9, definition 7.2.1-7.2.2] and sets the weights as in definition 3.7.2. This provides an optimal lower semicomputable online semimeasure when model class M consists of all lower semicomputable semimeasures. This construction follows the proof of proposition A.1.
Side note. The online Kolmogorov complexity of is the minimal length of a program that for each computes given . An online variant of the coding theorem holds: the negative logarithm of online algorithmic probability equals online complexity up to additive terms [5, theorem 2]. Unfortunately, symmetry of information does not hold [2] but does hold for spacebounded complexity with reasonable precision [4].
The unnormalized conditional probability is defined as usual,
A tilde is used to remind that this version is unnormalized. The following proposition obtains a tight bound, already for this variant.
Let in the following 2 results.
Lemma A.2. If is computed by a program of prefix-complexity , then for each sequence ,
The proof follows the standard one and is given below. By corollary 1.4 this implies that errors converge faster using online algorithmic probability.
Corollary A.3. There exists a computable classifier and infinitely many for which there exist strings such that
where .
Proof of lemma A.2. The proof follows [9, theorem 3.8.9]. Since for all ,
Expanding the definition of conditional online complexity,
By definition of online semimeasure, each denominator cancels with the next numerator. Thus this equals
Now it remains to show that where is a program that computes on some (plain) reference machine . As usual, we do this by constructing an online semimeasure and invoking optimality from proposition A.1. Let be the optimal prefix machine in the definition of and let
Since is prefix-free, one has . For lists ending with , let be defined by dropping . By construction, if is computed a program of prefix-complexity . By definition of , one has , thus
The proposition is proven.
17
☐