A real is called integer-valued random if no integer-valued martingale can win arbitrarily much capital betting against it. A real, A, is low for integer-valued randomness if no integer-valued martingale recursive in A can succeed on an integer-valued random real. We show that lowness for integer-valued randomness coincides with recursiveness, as is the case for computable randomness.
Capturing the notion of ‘randomness’ can be philosophically complex. When we say, for example, that an infinite sequence is random do we mean that it satisfies certain statistical tests, or that it cannot be efficiently compressed, or perhaps that it is generated by a source that we believe to be ‘truly random?’ There are several mathematical approaches to formalizing the notion, and the interactions between the various definitions have been a fruitful field of study for some time. In this paper, we focus on an approach that sees randomness as unpredictability and interprets predictions as wagers: a sequence is random if it is impossible to win arbitrarily much money by betting on it.
Our central concept will be that of a martingale, which we interpret as a betting strategy. A gambler is presented with the bits of an infinite binary sequence and based on what he has seen so far he wagers some amount (possibly 0) of capital on whether the next bit will be 0 or 1. If he is correct, he receives the value of his wager back as winnings and if incorrect he loses his wager. Thus, if the game is fair, the expected value of his wealth after a wager should equal his wealth before the wager. To speak more formally, we first introduce some notation.
We use to denote the set of finite binary strings and for the set of infinite binary sequences, identified with the characteristic functions of sets of natural numbers. We use the symbol “” to denote the operation of concatenation on , omitting it where there will be no confusion, and the symbol ‘≺’ to denote the strict initial segment relation on and . We denote the restriction of an element to its finite initial segment of length n by . We use for the set of non-negative real numbers. We use to denote Turing reducibility and to denote the halting set. Now we formally define martingales.
A martingale is a function such that for any , .
Here corresponds to a gambler’s capital when following the strategy given by M after having seen (and bet on) the string σ. The value of the wager he makes after seeing σ is the difference , and whether or is greater tells us which direction he bets on. We say a martingale M succeeds on a set A if and only if , that is, following M allows the gambler to win arbitrarily much money. We define the success class of a martingale M to be . Under this paradigm, a real is random for a class of martingales if it is not in the success class of any martingale in the class.
Varying the collection of martingales we consider (in terms of effectiveness and acceptable bets) will yield different notions of randomness. The randomness notion that is probably most well-studied by recursion theorists is Martin-Löf randomness, which, though defined in terms of effective null-classes, is equivalent to not being in the success class of any recursively enumerable martingale [8]. The class of such sets is denoted . A slightly weaker notion is computable randomness, i.e. not being in the success class of any recursive martingale. We denote the class of computably random sets . For a deeper study of these notions and more on algorithmic randomness the reader is directed to [7] or [4]. In this paper we are concerned with an even weaker, but perhaps more realistic notion.
As a motivation, consider trying to follow a betting strategy in a casino. As soon as our betting strategy calls for us to wager some small fraction of a cent or some amount larger than the maximum bet at the table, we will run into trouble. Since the casino has the wealth, if we wish to gamble we must play by their rules. As such, we can only reasonably follow betting strategies that call for wagers of certain sizes. For a set , we call a martingale, M, T-valued if for any , if there is an such that then and if there is no such a then . Essentially, the size of M’s wagers is always an element of T unless M’s capital is less than the smallest element of T, in which case it cannot wager. Note that if , then such a martingale must always make a non-zero bet unless it has less capital than the smallest value in T.
The simplest such case is the case . Such martingales are called integer-valued. Various weakenings have also been considered. A martingale M is called finite-valued if it is T-valued for some finite . M is called single-valued if it is T-valued for some . One the other hand, we can attain a stronger notion by loosening the condition on the totality of the martingale, allowing it to be only partial recursive. A partial martingale is understood to have a downwards closed domain and to satisfy the martingale condition where it is defined. We define the various randomness notions below.
A set A is integer-valued random if no recursive integer-valued martingale succeeds on A.
A set A is finite-valued random if no recursive finite-valued martingale succeeds on A.
A set A is single-valued random if no recursive single-valued martingale succeeds on A.
A set A is partial integer-valued random if no partial recursive integer-valued martingale succeeds on A.
We use , , and to denote the classes of random sets, respectively. It is clear that , and it is a result of Bienvenu, Stephan and Teutsch [3] that all of these inclusions are in fact strict. is clearly contained in , and Barmpalias, Downey and McInerney showed that this inclusion is also strict [1].
Because the definitions of these randomness notions depend on defeating martingales with a certain effectiveness requirement, they can be relativized to a set by allowing the martingales under consideration to have oracle access to that set. For sets , we (awkwardly) call a set, B, A-T-valued random if no T-valued martingale recursive in A succeeds on B, and we make similar definitions for A-integer-valued random, etc. We use , , and to denote the randomness classes relativized to A as an oracle. Since a martingale with oracle access to A can choose not to ever use its oracle, it is clear that for any A, , and similar inclusions hold for the other notions.
The main result of this paper concerns those sets for which the inclusion reverses, that is, which do not compute any martingales that can succeed on an integer-valued random set. For a randomness notion R, a set A is called low forR if . The class of all such sets is denoted . Probably the most famous example is , the sets that are low for Martin-Löf randomness. Nies [6] showed that these sets are exactly the K-trivials, which have a vast menagerie of equivalent characterizations. On the other hand, combining results of Nies [6] and Bedregal and Nies [2] one can show that contains only the recursive sets. We show that integer-valued randomness behaves more like computable randomness, and likewise consists of only the recursive sets.
The main theorem
If, then A is not in.
We construct from an integer-valued martingale M that succeeds on a set .
The martingale M is very easily constructed. Simply put, it is the martingale that for each n, bets 1 quantum that the nth bit it sees will be the nth bit of A (unless it has run out of capital) and for concreteness starts with initial capital 1. More formally, and for any σ, if then and , and otherwise for . Here and further denotes the empty string, the smallest element of . It is clear that this M is an integer-valued martingale recursive in A.
The construction of B will be more complicated. We want B to be ‘random enough’ that any recursive integer-valued martingale will fail to win along B, while still including enough bits of A that M can succeed on it. We note that, since the only hypothesis on A is that it is not recursive, A itself could be very far from random. We will build B Turing-below , at each stage s deciding the next bit of B in trying to defeat one of the integer-valued martingales. We use as an effective listing of all partial recursive functions from to . Several of these will not give integer-valued martingales, but these will be identified as the construction progresses and subsequently ignored.
The idea of the construction is to build B such that each either loses all its capital or stops betting on any further bits, while ensuring that M’s capital goes to infinity. For clarity we will partition M’s capital, , for each , into a Reserve Bank and Gamblers (only finitely many of which will be non-zero for a given σ), each trying to defeat a single partial recursive function. If we ensure that infinitely many are eventually at least 1 on a cofinal segment of the set B then M must succeed on B. Each will start with value 0, but will eventually be initialized and given capital by the construction. We know that the martingale M bets 1 quantum at each bit, so at each stage at most one will change its value, and that by at most 1 quantum. We choose each bit of B in order to defeat some and so the gain or loss of 1 quantum worth of capital can be credited or debited to the on whose behalf we make this decision. That is, since for any σ, , we will have for any σ there is a single e such that and for all other , . Similarly, for any σ, , so if we extend σ with a bit from then exactly one will decrease by 1 and all others will remain unchanged.
The strategy for defeating a single will be relatively simple. As long as is less than we choose the next bit of B to be the corresponding bit of A or that increases the proportion as much as possible, using the convention that for any (it is good for us if both and the Gambler go bankrupt; we can always give more capital from the bank). It should be clear that the ratio can decrease in at most one direction, depending on whether ’s bet is greater than or less than times ’s capital, since is wagering exactly times ’s capital. If bets on the bit of , then this does not matter and we can increase while decreasing , otherwise we choose the extension for which the ratio in non-decreasing. In the case that the proportion is the same in both directions, we choose the direction that decreases both and . Now, A can compute M and can determine whether and will converge (and if they do we can wait for to give their values), so can compute the effect extending B in either direction will have on the proportion . In the case that one of these does not converge, we extend B as we wish and can henceforward ignore . Once we can afford to choose the bit of B that will decrease each time that bets. So, either it must stop betting or we can reduce its capital to 0 along an initial segment of our B.
The problem, of course, is getting from to . As long as bets on the bits of A with wagers exactly proportional to those of , then this ratio might remain unchanged and we may be unable to increase M’s capital or be forced to interfere with the actions of other strategies infinitely often. Luckily, this cannot happen. M always bets that the bits we see will be the bits of A, and if the ratio is unchanging then must be betting the same way. However, this procedure for choosing bits of B is recursive in e, the finite initial segment σ, and the capitals and . Thus, if at every step bets on the next bit of A we would have a procedure for computing a cofinal segment of the set A. Since A is non-recursive, this procedure must fail at some finite stage. Either fails to converge at some level, or it converges but does not bet or bets the bit of . In the first case we win easily, and in either of the other cases we gain an absolute advantage. Since this must happen infinitely often, we will eventually get , although showing that this slow grind eventually gets us there will be the most complicated part of the proof.
Weaving the strategies for the different s together is then a matter of letting the earliest one of the strategies which has and either making a bet or not betting but be the strategy which chooses how to extend . If none of the strategies before the first uninitialized are in such a position (so in particular no that we are still concerned about is betting), we merely extend B with the next bit of A to get 1 quantum more of capital that we use to initialize this . We can think of the Reserve Bank R fronting the capital for this bet and then donating it to , since itself cannot bet. The construction has some of the flavor of a priority argument.
We now give the formal construction of B, using .
A partial recursive function is active at a stage s of the construction if for every , , when these all converge, if and only if , and both and are in , if they are defined. In essence, is active as long as it looks like at least a partial recursive integer-valued martingale that has converged along the current initial segment of B.
We will say that a number e requires attention at a stage s if any of the following hold:
;
is active at that stage and one of the following holds:
For both , ;
For both , ;
For both , and .
The construction is as follows.
Set and for all i, set .
For the smallest e that requires attention:
If e requires attention due to clause 1, 2a or 2b, then:
Let ;
Then and all other .
If e requires attention due to clause 2c, then:
Compute the ratios and , using for any ;
If , then let , and all other ;
Otherwise, let , and all other .
This ends the construction. It remains to verify that B is in but not in . To show that no integer-valued martingale succeeds on B, we show that each e will require attention only finitely often in the construction. Since every time bets on a bit e requires attention, this will ensure that bets only finitely often, and so cannot win infinitely much capital.
For any, the number e requires attention at only finitely many stages of the construction.
We take an and assume that the statement in the lemma holds for all . Then we may assume we are at some stage s such that no will ever require attention at a stage later than s. Thus, if e requires attention at a stage we will act on e’s behalf at that stage. If ever ceases to be active, it will remain inactive for the rest of the construction, and so e will only require attention due to clause 1, and that only once.
If at any stage the number e requires attention due to clause 2a, then is partial along B and will not be active after stage t. Acting on e’s behalf at this stage t will increase to at least 1, so e will never require attention again.
If at a stage the number e requires attention due to clause 1, then and , so in general e will not require attention for this reason again. There is only one possible exception: at some later stage , e requires attention due to clause 2c (in any of the other cases increases) and and . In this case, the ratio will be the largest possible, and so the construction will set and both and will lose all their capital. Then at stage the number e will require attention due to clause 1 again and will be given its new 1 quantum of capital. However, since , as long as obeys the martingale property it can no longer bet, so it will no longer cause e to require attention, either through becoming inactive or through never betting.
Thus, if e requires attention at infinitely many stages it must be the case that at infinitely many of these stages e requires attention due to clauses 2b and 2c. We make a small sublemma about how the size of ’s bet in clause 2c effects our action at a given stage.
Let r be a stage when e is the least number that requires attention and for which there is ansuch that. Thenif and only if.
We first assume that . This inequality gives us that , so either or . If , then e requires attention at stage r due to clause 1, and so we will extend B by setting , so the implication holds in this case. Otherwise, we may assume . Multiplying the previous inequality by gives us . We add these two inequalities to get that . We now add term to both sides, yielding . This factors to , which gives us the inequality . Since we choose the next bit of B depending on which of these two ratios is larger, in this case we extend by .
We can similarly show that if , then the inequality holds, and so we would extend B with .
We note that in either case a similar argument shows that . □
To return to the proof of Lemma 2.2, we note that if we are ever at a stage when , then, since no other d will affect these quantities, e will never again require attention due to clause 2b, and every time it requires attention due to clause 2c, we will achieve . Either will bet that the next bit will be , in which case we will extend and reduce by its bet and increase by 1, which increases the ratio of these quantities, or will bet that the next bit is , in which case by the sublemma, since it is not less than for ’s bet n and so we will extend by and will lose its bet. Since this is a strict decrease, e can only require attention finitely many more times after this inequality is achieved.
All that remains to be shown is that e cannot require attention infinitely often without achieving . If there is ever a stage when e does not require attention, then, since clause 2c does not hold, must not be betting, and since clause 2b does not hold, we must have that . Thus, if e requires attention infinitely often it must moreover require attention for a cofinal segment of the stages. We appeal to A’s non-recursiveness to show this cannot happen.
If one has an initial segment of B, the finite values and , and the knowledge that e is the least number that requires attention at stage r and that bets that the next bit will be , then according to the sublemma one can compute (obviously) the bit , but also the bit and the values and . If one knows that these hypotheses hold for , one could then repeat this process. Thus, if we were in the hypotheses of the sublemma for all r in the interval , that is, if for all these r, e is the least number that requires attention at stage r and is betting that the next bit will be , then we could compute for all , using only a finite amount of information. Since A is not recursive, this cannot happen, so it must be the case that we are only ever in the hypotheses of the sublemma for finite intervals. That is, if e requires attention infinitely often, it must be the case that at infinitely many of these stages it either does so due to clause 2b, or it does so due to clause 2c, but bets that the next bit is . Importantly, this means that if e requires attention infinitely often, then infinitely often we get an r such that while .
We now show that we must eventually achieve . If we ever reach a stage r such that never bets at any stage , then for finitely many stages e will require attention due to clause 2b and eventually the inequality will be satisfied. In the other case, must bet infinitely often. We show that even in this case there is eventually an r such that . First, fix some stage , and let and . Let n be largest such that . We want to show that at some later stage , . For any later stage let be the number of stages between t and at which both and increased, be the number of stages between t and where both quantities decreased, and be the number of stages between t and where increased and did not. Note that until we have , since in our construction it is impossible for to increase while does not (if bets on the next bit being from , then we always extend B by adding the bit from A, which increases and decreases ). We recall that according to our strategy (and as mentioned at the end of the proof of Sublemma 1) the ratio is non-decreasing, so if then so does . Now, at any stage such that is still less than , if and both increase, then by Sublemma 1 cannot have bet more than n on the next bit being from A at stage , while if and both decrease, then must have bet more than n. Thus, until , at any stage , and . Since, as above, we must infinitely often get stages where only increases, we eventually have a such that . For this , the ratio will be at least . Thus, eventually the ratio increases past . We can now repeat this argument to show it eventually grows larger than , and so on, and so it is eventually larger than 1.
This completes the proof of Lemma 2.2. Each e will require attention only finitely often. □
Using Lemma 2.2 it is easy to see that B will satisfy the required properties. Every time a makes a bet the number e requires attention. Since any e requires attention only finitely often, each must eventually stop betting along B, either because its capital is reduced to 0 or because it simply never makes another bet. Since one cannot win if one does not play, if bets only finitely often it is clear that .
One the other hand, each is eventually greater than 0, since having makes e require attention. Since , it is clear that . Thus, while , and so A is not in . This completes the proof of Theorem 2.1. □
We note that in the proof of Theorem 2.1 the martingale M that we constructed relative to A was in fact a single-valued martingale while the set B we constructed defeated every partial integer-valued martingale, so we get the following corollary.
The classes,andall consist of only the recursive sets.
Further directions
In the study of lowness for various notions of randomness, one may more generally study also lowness for pairs of notions of randomness. This generalized idea was first studied by Kjos-Hanssen, Nies and Stephan in [5]. For randomness classes , we define the class to be the class of all sets A such that . That is, is the collection of sets such that every set that is random in the sense of Q is, relative to A, at least still random in the sense of R. These sets are ‘too weak’ computationally to make up the difference between Q and R. If this is just , but otherwise this class can have some interesting properties. For instance, Kjos-Hanssen, Nies and Stephan proved that is the class of c.e. traceable sets, where is the class of Schnorr-random sets. By the same argument that gave us Corollary 2.3, it follows from Theorem 2.1 that the for any where Q and R are taken from the classes , , and we have that consists of only the recursive sets. However, since integer-valued randomness is a natural weakening of computable randomness, it is reasonable to examine the class . Now, by Theorem 2.1, consists of only recursive sets, and by results of Nies and Bedregal [2,6] the same is true of . This means that any non-recursive set A will compute a recursive martingale that succeeds on a computably random set and an integer-valued martingale that succeeds on an integer-valued random set. This may suggest that also contains only recursive sets, but a priori there may be room for an A that is non-recursive but weak enough in terms of computational power that its succeeding against these computable randoms depends in some essential way on the full power of a betting strategy with no minimum bet. We leave the nature of as an open question.
What is ?
References
1.
G.Barmpalias, R.G.Downey and M.McInerney, Integer valued betting strategies and Turing degrees, J. Comput. System Sci.81(7) (2015), 1387–1412.
2.
B.R.C.Bedregal and A.Nies, Lowness properties of reals and hyper-immunity, in: WoLLIC 2003, Vol. 84, Elsevier, 2003.
3.
L.Bienvenu, F.Stephan and J.Teutsch, How powerful are integer-valued martingales?, Theory Comput. Syst.51(3) (2012), 330–351.
4.
R.G.Downey and D.R.Hirschfeldt, Algorithmic Randomness and Complexity, Theory and Applications of Computability, Springer, New York, 2010.
5.
B.Kjos-Hanssen, A.Nies and F.Stephan, Lowness for the class of Schnorr random reals, SIAM J. Comput.35(3) (2005), 647–657.
6.
A.Nies, Lowness properties and randomness, Adv. Math.197(1) (2005), 274–305.