Manuscript Offprint
arXiv:2608.28803Pragmatic Information, Computation, and the Efficient Market Hypothesis
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We address a long standing gap in standard information theory, namely the inability of that theory to assign a measure to the amount of meaning in a transmitted message. [1] argues for a particular quantitative measure of meaning that [1] calls pragmatic information, which has many of the properties expected of it. We then prove that the amount of pragmatic information of a given message that can be extracted by a given receiver depends on the computational capacities of the receiver, in particular, the receiver's ability to recognize symbol strings at various levels of complexity within the Chomsky hierarchy of formal languages. A string may appear essentially random to a given receiver, but not to a receiver at a higher level in the hierarchy; hence, this receiver may not be able to extract any pragmatic information from such a string, even though another receiver at the appropriate level in the hierarchy could. Also, the maximum processing rates at which messages of different levels of complexity serve as a kind of pragmatic channel capacity, leading to a tradeoff between the amount of pragmatic information extracted and the extraction time. We then propose a re-framing of the efficient market hypothesis of quantitative finance to that of a participant-specific "computational efficiency", i.e. the claim that participants lack the computational resources necessary to use available pragmatic information to "beat the market". Given that market participants vary widely in computational resources, it is therefore no surprise some participants will find a given market computationally efficient, even though others will find inefficiencies. We argue that this situation will persist even in the face of any conceivable increase in compute.
1 Introduction
The standard measure of the amount of information in a transmitted message says nothing about the “meaningfulness” of the message. However, numerous authors have attempted to put forth a theory of “pragmatic information” that addresses precisely that missing measure of meaning. One such paper, [1], proposes that a message acquires meaning from a change in the receiver’s prior beliefs, as expressed by the likelihood that the receiver makes a particular decision. If so, the computational abilities of the receiver have much to say about the amount of pragmatic information that it can process, the primary topic of the present paper. To make this presentation, we first review the definition of pragmatic information in [1], a few of its relevant properties, and some relevant terminology. Even before that, however, we contrast the theory presented in [1] with the subject commonly known as “information theory”. As Warren Weaver famously observes [2], the effectiveness of a communications process could be measured by answering any of the following three questions:
A. How accurately can the symbols that encode the message be transmitted (“the technical problem”)?
B. How precisely do the transmitted symbols convey the desired meaning (“the semantics problem”)?
C. How effective is the received message in changing conduct (“the effectiveness problem”)?
It is, by now, well known that “standard” information theory concerns itself only with the answer to above question A. In other words, the standard theory distinguishes only between correctly and incorrectly transmitted symbols, regardless of their meaning; thus, the standard theory makes no distinction between the correct transmission of a hot tip about the next big AI stock and the correct transmission of a jumble of random letters. Pragmatic information, in contrast, distinguishes between the stock tip and the random jumble by virtue of the fact that the former will likely lead the receiver to buy the stock (the “changed conduct” of question C, above) and the latter will not¹.
Thermodynamics makes the distinction between the so-called “free energy” of a system, or the energy available to do work and the total energy of a system, which also includes, for example, heat energy. [1] makes the case that the same distinction should be made between pragmatic information and the total information of a message. [15] made a similar distinction by introducing the term “free information” to describe essentially the same quantity, in the special case described in the “Partitions of ” section below.
One motivation for this work is that it might help understand the efficient market hypothesis of financial economics, as will be seen in a subsequent section of this paper. Other applications will, no doubt, present themselves to the mind of the reader (One such is the intriguing finding that there is an average rate at which information is conveyed by human language, independent of the speaker or the language spoken [3], suggesting an intrinsic neurological processing speed of the kind we discuss below.).
The next section reviews our definition of pragmatic information, some of its more important properties, and some useful terminology, all of which are set forth in more detail in [1]. Our primary purpose in presenting these results is to preface this paper’s subsequent sections: it is only by convincing readers that our notion of pragmatic information really is a “measure of meaning” that they might care about what these subsequent sections have to say about the role that the receiver’s computational abilities play in extracting this meaning and the relevance of all of this to the efficient market hypothesis.
¹A particularly compelling example of the distinction between mere transmission of symbols and the conveyance of meaning is found in an apocryphal story about the great French writer Victor Hugo, who left for vacation immediately after submitting the manuscript of his masterpiece Les Misérables to his publisher and before the actual publication date of the novel. Not wanting to write much during his vacation, but thirsting for news about the reception of his work, Hugo sent his publisher a letter consisting of the single character “?”, to which the publisher indicated the book’s commercial success by replying simply “!”.
Given the above, [1] proposed the following
Definition. The pragmatic information, , of an ensemble of messages is
where all logarithms are assumed to be base 2 logarithms and we take if .
Definition. The conditional pragmatic information of messages in acting upon given that is acting on , as well as the resulting outcome , is
[1] noted several features of these definitions that make pragmatic information both an information measure and a plausible measure of the amount of meaning in the messages in :
. with unless for all .
- When , i.e. a unit vector in the direction for some , we say that is pragmatically definitive. achieves its maximum among the pragmatically definitive 's, assuming that there are any. If so, for a given set of prior probabilities, , let , with the max taken over all of the 's for which . The resulting maximum is then
- If the decisions of makers and are, respectively, informed by messages and , with respective prior probabilities and and with corresponding a posteriori probabilities and , then
While we don’t think that the exact definition proposed in [1] has appeared in the literature before, close cousins of it have. See the discussion in [1] where it is emphasized that the new idea in [1] is that ’s prior beliefs about , embodied in can be just plain wrong.
In Section 4 of this paper, we make a generalization of (2.1) to infinite sequences.
If, in addition,
then
In other words, pragmatic information is additive for probabilistically independent message ensembles and completely independent decision makers. However, mere probabilistic independence of the message ensembles is insufficient to guarantee pragmatic independence.
-
is the expected number of extra bits required for the binary encoding of samples from , averaged over , using an encoding optimized for , rather than, for each , an encoding optimized for that . In other words, is the expected number of bits that has learned by processing .
-
Per Theorem 5.0.1 of [1], if is the vector of probabilities whose component is given by for all , is the (non-negative) Kullback-Leibler divergence of and , and is the mutual information between and ,
with equality if and only if .
[1] makes the case that it is often reasonable to assign a numerical value function, such that , where:
• , the set of pragmatically disinformative messages with respect to , is defined by
• , the set of pragmatically irrelevant messages with respect to , is defined by
• the, set of pragmatically useful messages with respect to , is defined by
Intuitively, we think of the processing of messages in , , and as leaving respectively worse off, the same, or better off than before. [1] defines as the set of messages that are “pragmatic noise”. Evidently,
Thus, if is zero or negligibly small, so must be , a fact that will play an important role in the sequel.
3 Partitions of
We anticipate that in many applications of (2.1). In such cases, must respond identically to many of the messages in , thus partitioning into a set, , of equivalence classes. We then have the following
Theorem 3.0.1. Even though is bounded by (2.3), the Shannon entropy, , can be arbitrarily large.
See [1] for a more complete discussion of this decomposition
Proof. Suppose, for example, is the alphabet consisting of the symbols , , , and the special “end of string” symbol, , and suppose , the set of all strings consisting of these symbols. Suppose further that outputs if consists entirely of 's or 's, except for a terminal but are otherwise arbitrary elements of , and outputs otherwise. For arbitrarily small and an arbitrarily large integer , assign probabilities to all messages as
where
is the number of strings in of length less than L. We then compute
There are of the 's for , all of which have the identical value , so the expression in the third line above is the value of the first sum in the line above it. The third line follows from the second because ignoring the second sum in the second line decreases the value of the result. Since and thus can be made arbitrarily large, so can .
Evidently, for all in the same equivalence class . If we denote this vector of probabilities that is common to all as and the sum as , then
A different decision maker, , could partition differently, perhaps increasing the pragmatic information that this decision maker could extract. However, (2.3) suggests that the maximum pragmatic information extracted by any such has the following upper bound:
where assigns the messages in each partition deterministically to the outcome , with the max taken over all of the 's for which .
A finer partition creates a larger set of equivalence classes, , resulting in estimates of a random variable that would take values in a superset, of , with replacing as the decision maker. In each partition , the posteriori probabilities, and , would then be replaced, for each , by the possibly larger sets of probabilities and , respectively. We then have the following
Theorem 3.0.2. For all such refinements,
with equality only if the ratios are constant across for all i.
Proof. If induces a finer partition than , then, for each and for each , there must be some subset, , of the 's such that
We must therefore have, for all i and m, that
with equality only if the ratios are constant across the 's by the log-sum inequality. Thus, for any choice of the marginal probabilities ,
with equality only if the ratios are constant across the 's for each .
Nevertheless, merely increasing the size of does not necessarily increase if the hypotheses of the theorem are violated, as is shown by the following example: Suppose we have a single and two outputs and , with , , and , so that . We then introduce a third output, with , and make the adjustments , , and . then assumes a smaller value of approximately 0.1868. In other words, the addition of the new output here simply confuses things.
Such partitions can be viewed as a higher level description of the input message ensemble. Indeed, [15] bases its discussion about “free information” on a similar partitioning, albeit in the special case that the decision to be made is whether, in our notation, one subsequence of , presented as a time series, is identical to another that appears later. [15] presents its ideas in the language of symmetries, which we, too, can adopt by identifying the 's in the same partition as “symmetrical”. However, the present work makes clear what [15] leaves out; namely, the question of how those symmetries arise in the first place. Our answer is clear: messages are symmetrical because our decision maker, , has explicitly said so. It is only in the context of the need to make a decision, if only in some generalized sense, that a message has meaning, and it is only in such a context that two messages can have the same meaning.
In (2.6), we added the subscript to the conditional Shannon entropy to emphasize that the conditioning depends on the decision maker. We now observe that remains the same regardless of how is partitioned. Thus, if induces the finer partition, , the increase in pragmatic information can be written
The quantity in the first set of square brackets represents the improvement in mapping the different messages to the appropriate output ; the quantity in the second set of brackets represents the improvement in correcting the initial bias in .
The extra effort required for the finer partition may not be worth it. This will be the case, for example, if the receipt of particular 's can almost always be traced back to messages m in some strict subset of a partition, in which case little is learned by making the partition finer. A version of rate distortion theory might therefore be based on pragmatic information.
See, for example, [4] for a discussion of this important branch of standard information theory
4 The Effect of the Decision Maker's Computational Capacity on Pragmatic Information
As [10] noted, if has no computational abilities at all, in the sense that any message received will be ignored, for all messages , and , regardless of the length or complexity of . This observation raises the question of just how the computational power of the receiver influences its ability to extract pragmatic information from its input messages. A rigorous discussion of this question almost inevitably draws upon much of theoretical computer science, as we will see when we demonstrate the following:
-
If can only process messages at the lowest level of the Chomsky hierarchy, there is a finite upper bound on that depends only on the priori assumptions of , regardless of the length or complexity of .
-
There can be a qualitative increase in as becomes able to process the successively more complex messages comprising the successively higher levels of the Chomsky hierarchy.
-
The more complex messages of higher levels of the Chomsky hierarchy can appear essentially random to a processor corresponding to a lower level of the hierarchy, even though such messages are not, in fact, random. In such cases, no pragmatic information can be extracted by such a processor, even though pragmatic information can be extracted when a processor of sufficient power is supplied.
-
More computational power can increase pragmatically useful information extraction without increasing pragmatic information extraction.
-
The computation of can be undecidable if the messages in are in the highest level of the Chomsky hierarchy.
4.1 Some Preliminaries, Notational and Otherwise
We begin by assuming that each input message, , is a string of symbols, , of arbitrary length, with each chosen from some finite “alphabet” . We denote the number of distinct symbols in as and the set of strings of zero or more of the 's as , which therefore includes the empty string, . A formal language is a subset of , as described in Appendix A. The Chomsky hierarchy is comprised of four classes of such languages, each qualitatively more complex than the classes beneath it in the hierarchy. (See Appendix A or theoretical computer science textbooks such as [6] or [11] for an introduction to this hierarchy.)
It will be convenient to use the notation for substrings that will be familiar to many readers, namely that of the Python programming language, summarized as follows:
-
is the symbol in the string , with being the first symbol,
-
the thru symbols in the string, the beginning of the string, up to but not including the symbol, and the end of the string, starting with the symbol.
-
the notation for strings and is the concatenation .
We extend the above notation by replacing the Python construct by if is a proper prefix of and to include the case where . A prefix free set is a set of strings for which no string is a prefix of any of the others.
We will sometimes need to consider the limiting case where becomes the semi-infinite sequence, . In contrast to the statement , we write . We use the same substring conventions for sequences as we use for strings, with being well-defined because is only semi-infinite. We then define the pragmatic information, , for , as , where , when the limit exists.
Algorithms that can determine whether any given string in is a member of a given language are often called abstract automata. Such automata are discussed at length in Appendix B, below and in numerous textbooks, such as [6] and [11]. When an automaton can always correctly determine that string , the automaton is said to recognize or alternatively, that the automaton is said to accept
. A fundamental result of theoretical computer science is the collection of theorems, shown in Table 1 below and covered by [6] and [11], which specify precisely which abstract automata can recognize which languages.
Table 1: The Chomsky Hierarchy and Corresponding Automata
| Language | Recognizing Automaton | Our Automaton Symbol |
|---|---|---|
| Regular | Finite State Machine | |
| Context Free | Non-Deterministic Pushdown Automaton | |
| Context Sensitive | Linear Bounded Automaton | |
| Recursively .Enumerable | Turing Machine |
Our present interest is in a generalization of the membership problem described above; namely, given , determine which, if any, of the languages (one for each output of ) does belong. We consider only the simplest situation in which is a member of at most one of the 's. We also assume that all of the 's are at the same level in the Chomsky hierarchy. Because all such languages are closed under finite set theoretic unions, this union is also at the same level in the hierarchy as its constituents.
Given the message , first checks to see if . If so, outputs the corresponding, unique . If not, checks to see if , and, if so, once again outputs a corresponding, unique . If is not recognized by any of the 's, retains the prior probabilities , so that has zero pragmatic information.
4.2 Limitations on If is a Finite State Machine
The simplest abstract automaton in the Chomsky hierarchy (See Table 1, above.), the finite state machine, partitions its inputs into a finite number of equivalence classes. Hence, if 's parsing automaton, , is a finite state machine, it must induce equivalence classes on the elements of . In this case, the Myhill-Nerode Theorem [6] guarantees that the number, , of the partitions, , of described above is the number of states in , independent of the size of , or, as we saw above, the length of the messages in . In general, for a given , the probabilities and will both be positive for , reflecting the possibility that, even after receives some message , there is uncertainty as to the value of , and thus 's decision. We therefore have
A straightforward application of the corollary to Theorem 2.3.4 of [1] shows that, for each , the quantity in square brackets, which is , the Kullback-Leibler divergence of the 's and is bounded by , where, for each , , with the max taken over all of the 's for which . We have thus proven
Theorem 4.2.1.
where is the smallest component of , regardless of the magnitude of .
Multiple final states of can map to the same , however.
That unrecognized messages have zero pragmatic information corresponds to the “limit of complete novelty”, postulated by [28].
4.3 An Intuitive Explanation of Why Increasing Computational Power Can Increase Possible Pragmatic Information Extraction
Suppose the grammar describing is one of the grammars in the Chomsky hierarchy and a particular is able to glean pragmatically useful information from messages in because the corresponding has the appropriate level of computational power. What if some other decision maker tries to process messages from the same , but with a strictly less powerful (So that is a context free language, but is a finite state machine, for example.)?
Except for regular grammars, words in every grammar in the Chomsky hierarchy require an automaton with at least one stack to parse them correctly, so the attempt to recognize 's that are messages in a context free, context sensitive, or unrestricted grammar using a finite state automaton will fail for at least one such . Similarly, the attempt to recognize 's that are messages in a context sensitive or unrestricted grammar using a pushdown automaton will also fail because the pushdown automaton is missing a second stack. Finally, if is a subset of an unrestricted grammar that is not context sensitive, then there must exist whose correct parsing requires a stack that grows super-linearly with . It follows that such parsings will also fail if is a bounded linear automaton.
What happens when a given , which, for convenience we label , cannot be parsed correctly? If can detect the parsing failure, then does not change its prior estimate of the state-of-the- world random variable , and . It follows that the terms for which in the formula for are zero. If, in addition, the processing of those 's that do not require the full power of remains unchanged, the corresponding terms in also remain unchanged. We conclude that
where is another decision maker that uses an automaton that appears in the same row of the table as .
4.4 A More Rigorous Explanation of Why Increasing Computational Power Can Increase Possible Pragmatic Information Extraction
In this section, we demonstrate that there can be qualitative differences in the abilities of automata at the different levels of the Chomsky hierarchy to predict the symbol of a given sequence, , given its predecessor symbols. We begin by following [4]. There, the successive symbols are interpreted as the identifiers of the winners of successive iterations of idealized horse races. Prior to the race, we take these winners to be random variables. We then use the results of [4] to establish the connection to pragmatic information.
To proceed, we make the following assumptions for all races:
-
we place bets on one or more of the horses winning a given race,
-
the payout of each such bet is dollars per dollar bet if horse wins the race and nothing otherwise,
-
is the probability that horse wins the race, possibly conditioned on the outcome of previous races,
-
we bet the fraction, , of our wealth on horse ,
-
we bet all of our wealth on each race (so ) and,
-
we re-invest all of our winnings, beginning with initial wealth . Because for all , a successful sequence of bets will cause our wealth, , to grow exponentially with .
where is the random variable that is one if horse wins the race and zero otherwise. We then have
For and , define the expected growth rate as
[4] shows that the optimal betting allocation is to choose , even if the 's are conditioned on the outcomes of the previous races. It then shows that the increase in the growth rate due to the conditioning if is ergodic is the mutual information between the previous outcomes and the outcome of the current race . Because the prior distribution in the pragmatic information formula is the marginal distribution for , the mutual information between and is the pragmatic information as well.
What [4] does not discuss is how the conditional distribution of , given , is determined. Since this determination is, in fact, a prediction, we consider this problem from the point of view of predicting the continuation of an individual sequence. We might expect to measure predictability by considering the number of possible choices for , given , the number of such choices ranging from 1 (for perfectly predictable sequences) to (for fully random sequences). However, such measurements beg the question of how the prediction is being made. As we will see, the difficulty of making these predictions, and thus the ability of a receiver to extract pragmatic information from can be characterized precisely by the Hausdorff dimension of the individual sequence . (The remarkable result that an individual sequence has a Hausdorff dimension is demonstrated in [16].)
[9] observes that such predictions can not only be made with a Turing-equivalent computational element, but also with a less powerful computational element, such as a finite state machine or a pushdown automaton. This observation leads to definitions of so-called finite state and pushdown dimensions, in which the Turing-equivalent computational element is replaced, respectively, by a finite state machine or a pushdown automaton. We conjecture that a corresponding dimension could be defined for the linear bounded automaton, though such a definition has not, to our knowledge, appeared in the literature. Given this conjecture, we would then have a distinct definition of dimension for each of the classes of automata in the Chomsky hierarchy, to be denoted , , , and for finite state dimension, pushdown dimension, linear bounded dimension, and Turing-equivalent dimension (i.e. the extended Hausdorff dimension), respectively. Since pushdown automata are strictly more powerful than finite state machines, linear bounded automata strictly more powerful than pushdown automata, and general Turing machines strictly more powerful than linear bounded automata, we would certainly have (with the conjecture properly flagged as such)
Below, we show that, except for the conjectured ones, the inequalities are, in some cases, strict. We then show that such statements imply that the more powerful automata in the Chomsky hierarchy can extract qualitatively more pragmatic information from its input.
Given that seems not to have even been defined yet, it should be no surprise that the entirety of the above claim must, at present, remain a conjecture. However, we establish the remaining pieces of the above claim and unpack their significance in the remainder of this section. We start by characterizing those sequences from which pragmatic information can't possibly be extracted because they aren't predictable. We do so by, first, considering the Kolmogorov complexity, of the string , defined as the length of the shortest computer program that can reproduce . Evidently, by the pigeon hole principle, at least some sequences must have ; in other words, at least some sequences must be essentially incompressible. The infinite sequence is then defined to be Martin-Löf random [18], if , for all sufficiently large and some constant, , that does not depend on . Per
[4] also notes that the mutual information, and thus the pragmatic information between the previous and current outcomes is an upper bound on this increase if the all-or-nothing outcome of the horse race is replaced by a vector of positive random variables representing daily price fluctuations.
[16], Martin-Löf random strings have Hausdorff dimension 1, the largest possible value, reflecting their maximal randomness. Per [17], Martin-Löf randomness has a number of other properties that coincide with our intuitive notions of randomness, such as the ability of Martin-Löf random sequences to “pass every algorithmically implementable statistical test of randomness”.
One way of formulating such tests is via a generalization of the idea of a martingale, familiar from probability theory. In that theory, the term refers to a sequence of real valued random variables, , such that and
which is equivalent to
Thus, such a sequence of random variables is a formalization of the cumulative winnings in a fair game, in which, on average, nothing is gained or lost.
We generalize this idea from real valued random variables to functions on strings by defining a martingale as any function, , such that
for all and the expression is interpreted as the appending of the symbol to the end of . As with the horse race, can be interpreted as the total wealth generated by a sequence of bets on the successive symbols of , given a unit initial investment, provided that, on the bet,
• all capital is re-invested.
- the fraction of the capital bet on a given symbol is multiplied by if turns out to be , and
• the fraction of the capital bet on any other symbol in is completely lost.
We preserve the notion of a fair game in the sense that equal amounts of capital bet on each (the null bet) result in , regardless of the outcome of the race. This is because any losses arising from betting on the wrong symbols will be exactly recovered by gains from betting on the right symbol.
Note that the above definition does not preclude martingales from systematically increasing as increases. In fact, if the entire amount of existing capital, , is bet correctly on the race, , so any correct bet of most of the capital most of the time leads to exponentially growing capital. In contrast, if is random, then bets on the successive races will not.
In between the above two extremes are sequences that are somewhat predictable. For example, consider the set of all sequences defined on the trinary alphabet in which the ‘1’ character doesn’t appear, as in the original Cantor set, but is otherwise Martin-Löf random. A betting strategy that allocates half the existing capital to ‘0’ and half to ‘2’ is guaranteed to grow that capital by a factor of 1.5, either because the half of the capital allocated to ‘0’ gets tripled or because the half of the capital allocated to ‘1’ gets tripled. The invested capital grows exponentially in both cases, albeit more slowly than for a fully predictable sequence, such as , because all of the existing capital gets tripled with each bet in the latter case.
The relevant literature anthropomorphizes w as the winnings of a “gambler” that “succeeds” on a given sequence, S, if
Formally, the gambler is a betting function, , where
i.e. the dimensional unit simplex. In the above, we assume that and thus are weakly Turing computable from .
Following the (confusing) convention in the literature that it is , rather than that succeeds, we have the following [17]
Theorem 4.4.1. Let be the set of all possible martingales, let , let , and let
then the set of sequences for which is empty are exactly the set of Martin-Löf random sequences in .
The sensitive dependence of the growth of the gambling winnings on the growth rate suggests a precise measure of predictability, which makes use of the following
Definition. An is , such that
where is any string in and .
We restrict the value of to the unit interval because an -gale with would have for the uninteresting null bet. For , can still be interpreted as the total capital generated by the sequence of bets on the successive symbols of , but now with a “tax” of on the capital after each bet. The lower the value of , the higher the tax. Therefore, we will only be able to find such that if and only if has some predictability, and the more predictable the sequence, the smaller we can make and still have .
Let be the set of -gales for a given . The notion of an -gale then permits us, following [16], to define , the Hausdorff dimension, of the individual sequence, , as follows:
Definition.
Evidently, per the above theorem, the Hausdorff dimension of Martin-Löf random sequences is 1 because the null bet for such sequences succeeds for all
Suppose we insist, instead, that is computed using a finite state machine. The result is the so-called finite state gambler and a corresponding notion of randomness; namely, a sequence, , is finite state random if no finite state gambler can succeed on it. Pushdown random and linear bounded automaton random sequences can be defined similarly.
If we define as an -gale in which the betting is done with a finite state gambler and as the set of all such -gales, we can define the finite state dimension, of a sequence, , as follows:
Definition.
In other words, the finite state dimension of is the infimum of those real values of for which succeeds on . The finite state dimension for finite state random sequences is also 1 because a finite state machine can implement the null bet that succeeds for all .
[9] proves the following
A function is computable if a deterministic Turing machine can compute its value for any of its inputs and then halt. A function is weakly computable as defined in [17] if its value is the limit of computable functions, each of which may be computed via a different Turing machine.
We use the subscript to emphasize the use of a general purpose Turing machine to do the requisite computation, an assumption that we will relax shortly.
Theorem 4.4.2. if and only if is Borel normal,
where a sequence is Borel normal if any fixed string appears in as frequently as it would if the successive characters of are chosen with a uniform distribution over . More formally, if is the number of times that fixed string appears in the first symbols of , a sequence is Borel normal if, for all ,
and the limit exists. (See [9] for an example of when it doesn't.)
It is widely conjectured (but, to our knowledge, yet to be proven) that the decimal expansions of many familiar irrational numbers, such as , , and , are Borel normal. However, [19] proved that the so-called Champernowne sequences, , are indeed Borel normal. These sequences are formed by simply concatenating the representations of successive natural numbers in the given base, . Thus, the base 10 version would be the sequence . Nevertheless, Champernowne sequences of any base are clearly predictable by a general purpose Turing machine, from which it follows that for any base .
[9] defines the pushdown dimension, , similarly to , except that the finite state gambler in the latter is replaced by a pushdown gambler in the former. The only difference between the pushdown gambler and the finite state gambler is that the relevant computation is done by a betting-function-augmented, deterministic pushdown automaton, rather than a similarly augmented finite state machine. [9] then demonstrates that for certain variations of Champernowne sequences. In our quest to identify a sequence, , for which , it is tempting to conjecture that for any base , but we have not been able to prove this conjecture. However, we have been able to identify another sequence, , for which we have the following
Theorem 4.4.3. There exists a sequence, , such that but .
Proof. We identify the successive symbols, , of as follows: Consider the set , the set of all martingales for which the betting function is a pushdown automaton. Since is countable, we give it a lexicographic ordering, which enables us to identify, for all positive integers , a unique martingale, , which starts with capital . We then define the function such that
and the functions for all
We choose , the first symbol in the lexicographical ordering of , and, for , we choose to be that symbol such that
If the minimum of the 's is not unique, we choose to be the that appears first in 's lexicographic ordering. We now claim that
The last term on the right of the above inequality is just the last term of , so we will have verified the claim if we can verify the inequality
Readers will note that the Python convention for string prefixes specifies that is the prefix that includes the symbols in up to, but not including . When we want to include , we write .
We use the fact that each is a martingale to write the right side of this latter inequality as
The verification of the above claim is complete upon observing that, by our definition of ,
Because the newly introduced martingale can only bet a fraction of its initial capital of 1, its maximum possible value after the step after it is introduced is . Thus,
and iterating the inequality in the above claim, we conclude that, for all n,
Since is bounded for all , every individual term in the sum that defines it is bounded, i.e. for all and some real constant that does not depend on . In other words, no can succeed on , so . However, every symbol in the above construction has been identified by a deterministic algorithm; hence, each symbol in is fully predictable by a Turing machine. It follows that .
With the above theorems, we have indeed verified that the inequalities in (4.1), with the exception of those involving the hypothetical bounded linear Turing dimension, , can sometimes be strict.
Next, in order to make contact with notions of pragmatic information, we introduce probabilities. We postulate that, a priori, can be any of the symbols in . In the previous section's language of symmetries, we might call this the “symmetry of ignorance”, where every possibility is as likely as any other, because we have nothing that tells us otherwise. Thus, . In processing , the automaton has partially broken the symmetry of ignorance by reducing the number of possibilities for from to roughly , where is the relevant dimension of . We therefore postulate that and if symbol remains a possibility for and zero otherwise. Since the -gale is the decision maker of previous sections, with input and output , we conclude that the pragmatic information per bet is
Results for gamblers of each of the three automata for which the relevant dimension is defined are identical, except, as we have seen, the actual numerical values of can sometimes be different for these different automata classes. In such cases, the more powerful class of automata, , will be able to extract
more bits of pragmatic information per bet than the less powerful class of automata, . Evidently, this result will be also be true for minor variations of the above probabilities. The conclusions of this subsection can therefore be summarized by the following
Theorem 4.4.4. There are choices of the above probabilities and sets of symbol sequences, , for which . Similarly, there are choices of probabilities and sets of symbol sequences, , for which .
Theorem 4.4.5. There are sets of symbol sequences, , for which for but for . Similarly, there are sets of symbol sequences, , for which for but for . Thus, there are deterministic symbol sequences from which no pragmatic information can be extracted by a finite state machine or a pushdown automaton because they appear random to these automata.
4.5 A Case in which Enhanced Computational Ability Doesn't Increase Pragmatic Information but Does Increase Pragmatically Useful Information
This section proves the following
Theorem 4.5.1. Enhanced computational abilities can increase pragmatically useful information, even if these enhanced abilities don't increase the messages' pragmatic information.
Proof. Suppose that processes messages via the finite state machine , which outputs if ; otherwise, outputs (As per the above, is necessarily a regular language.). If we assume further that the respective prior probabilities of and are and , that is the probability that , and that can perfectly determine whether a given belongs in or not (i.e. is pragmatically definitive), then
Finally, suppose we agree that all messages are pragmatically useful when classifies them properly. If is a proper classification, . This will no longer be true if we make more stringent computational demands, as we now show.
To make the above demonstration, we need the pumping lemma for regular languages [6], which states that there is an integer , depending only on , such that
- every message with length can be split into three substrings and , such that is their concatenation, i.e. ,
• ,
• , and
- every string of the form is in , with defined as the -fold concatenation of with itself.
Consider now a different language, , with the same messages as those in , except that strings of the form are not in if is prime. We now suppose that the only pragmatically useful messages are those in . Because no finite state machine can determine whether a given number is prime [11], no can determine that a given input message is in , but not in . The inability to make this determination does not affect the value of . However, it decreases the value of for any assignment of probabilities to the messages in for which has positive probability. It follows that in such cases, because the mis-classification of messages in does not affect .
4.6 Why Pragmatic Information Need Not Be Computable
First, a bit of background: Consider a function , where and (The reason for the important restriction that is a strict subset of will become clear in a moment.). Suppose is computable, meaning that there is a Turing machine, , that always halts with on its tape if is on its tape initially, for all . The existence of universal Turing machines implies that can be simulated by some other Turing machine in the following sense: For any computable , there is some , depending on , such that, when is prefixed to on 's input tape, outputs and halts, for all (Informally, can be thought of as a computer program for which is the input and is the output; more formally, there is a function , computable on the subset, , of strings for which halts and a string such that for any computable . Note that implicit in this construction is the requirement that such strings are prefix free. A necessary and sufficient condition for an infinite set of strings to be prefix free is the Kraft inequality, namely that
Since the set of all possible prefix free strings contains some input strings to for which is undefined because doesn't halt, the Kraft inequality is strict for , i. e.
is sometimes called Chaitin's constant (though its actual value can differ radically depending on the details of how is encoded in ) [27]. can be interpreted as the probability that a universal Turing machine of a given construction will halt when its tape is initialized with the string when is chosen with probability (Note that these probabilities are well defined because is prefix free.).
is not Turing computable because computing it it would require a knowledge of which strings are in , i.e. whether halts on such 's. For this reason, , was one of the first specific numbers to be proven algorithmically random.
We can now state and prove the following
Theorem 4.6.1. can be Turing uncomputable if , 's input processor, is the equivalent of a general purpose, deterministic Turing machine.
Proof. Suppose that the decision that is obliged to make is whether will halt for a given message . We have the two states: halts on and doesn't halt on , so the two prior probabilities are, respectively, and . We then present with the single message , which we supply with probability one. is then the probability that halts on , for the particular message , and is the complementary probability. Since is deterministic, , but, in general, we can't tell which because of the Halting Theorem. It follows that we cannot compute
because we can't compute any of the terms in the right hand side of the above.
In other words, it may simply not be possible, in the general case, to assess the impact that a given message has on a given receiver.
5 Towards a “Channel Capacity” for Pragmatic Information
As noted above, traditional information theory is primarily concerned with the accurate transmission of symbols in the presence of interference that may garble the symbols in transit. By treating this interference as a random process that can unpredictably substitute some of the transmitted symbols with others, the traditional theory derives its famous “noisy coding theorem”. This theorem establishes the existence of a so-called channel capacity, a well-defined maximum rate at which a message can be transmitted over a given communications channel with arbitrarily high fidelity. In this section of the paper, we consider the sense in which there is an analogous “pragmatic channel capacity”, i.e. a maximum rate at which meaning can be transmitted. The non-zero time required to transmit a message in classical information theory is roughly equivalent to the non-zero time it takes to parse a message (and thus solve the membership problem) in our framework because the pragmatic information conveyed by the message is always zero until the message is parsed. If is this parsing time, it is tempting to interpret the ratio as the rate at which pragmatically useful information, and thus meaning is transmitted. However, if is a finite set, as we have been assuming all along, as .
Nevertheless, it is illuminating to consider how depends on the automaton doing the parsing. If we assume that the message is parsed by the least powerful automaton capable of extracting all of the available pragmatic information, we get parsing time bounds that are based on the time complexity of parsing messages in the corresponding level in the Chomsky Hierarchy. In each case, the relevant input to the time complexity estimate is , where symbolize, respectively, a single message augmented by whatever internal data is required for its parsing, and the ensemble of all pragmatically useful messages, each similarly augmented.
We note the dramatic differences in parsing times for languages at different levels of the hierarchy.
Regular Languages
As we see from Table 1, words in regular languages can be parsed by finite state machines, such as , as described in the Appendix. The time complexity required for a finite state machine with states to process an input of length and thus recognize as a member of a given regular language (or not) is . This is because each symbol in can induce a transition to one of a fixed, finite number of states upon input and there can be at most additional (i.e. spontaneous) transitions per input symbol. Note that this is true whether or not . Note also that Theorem 4.2.1 shows that is bounded, independent of , thus validating the above claim that as gets large.
Context Free Languages
As we see from Table 1, recognizing a word in a given context free language requires parsing the input to a non-deterministic pushdown automaton, such as , as described in Appendix B. Doing this involves the multiplication of boolean matrices of dimension (See, for example, [12]). Multiplying such matrices would appear to require a running time of ; however, [12]) notes that the asymptotic time complexity of any matrix multiplication can be reduced by cleverly dividing the matrices into blocks before multiplying them. [12] was written in 1974, when the best asymptotic time complexity for such multiplications was . However, these algorithms have steadily improved since then; as of this writing, the best asymptotic time complexity for such multiplications is approximately . Whether further improvement is possible is a major open question in computer science. Nevertheless, any algorithm for multiplying two matrices must process all of the entries in the given matrices, so recognizing a word of length must necessarily require a running time of at least .
Context Sensitive Languages
Recognition of words in a context sensitive language is known to be PSPACE complete [13] . PSPACE
Note that our notion of pragmatic noise includes, not only transmission errors, but also misinterpretations of correctly transmitted symbols.
The Victor Hugo anecdote related above suggests that considerable meaning can be expressed very concisely. Yet such examples do not negate the notion of a pragmatic channel capacity; instead, they simply demonstrate that this capacity can be very high for a suitably prepared receiver.
Such problems require a memory size that grows at most as a polynomial in the length of the input, and every other problem that can be solved using such a bound can be transformed to the given problem with a computation requiring at most a complete problems include all problems in NP [13], problems whose solutions can be verified, albeit not necessarily solved in a number of steps that can also grow no faster than a polynomial in . Whether NP problems can actually be solved in a number of steps that can also grow no faster than a polynomial in is the content of the famous NP P conjecture. If this conjecture proves to be true, as most experts believe, then the recognition of words in a context sensitive language, and thus the running time required to parse the pragmatic information in grows faster than any polynomial in .
General Recursively Enumerable Languages ()
Because of the halting problem, the parsing time required to parse an arbitrary word in a general recursively enumerable language is, in general, unknowable in advance, implying that it could be arbitrarily large. This also implies that there can be an arbitrarily long waiting time to determine whether or not the receiver can understand the message at all.
In summary, it is only at the lowest level of the hierarchy, that of regular grammars, that conforming messages can be processed in real time, since messages conforming to higher levels in the hierarchy cannot, in general, be processed in time. Thus, a pragmatic information rate can only be defined when is a word in a regular language. This difficulty in processing messages in their full complexity has led to various heuristics to process special cases, as we illustrate in our discussion of the efficient market hypothesis in the next section. We also note the fundamental tradeoff implied by the results of this and the preceding section: the additional computational power gained as we ascend the Chomsky hierarchy comes at the cost of dramatically decreased processing times.
6 Implications for the Efficient Market Hypothesis of Financial Economics
The efficient market hypothesis or EMH, in the words of one of its leading exponents, Nobel Laureate Eugene Fama [21, 22], makes the claim that “securit[ies] prices reflect all available information”. Discussions of this hypothesis usually include the additional claim that securities prices reflect their “fundamental value” [37], which is the discounted sum of the expectation of future cashflows accruing to owners of these securities and are thus in market clearing equilibrium with all other prices in the economy. Fama identified 3 versions of the EMH, for three different possible sets of “available information”, namely
-
the weak form of the hypothesis, which asserts that all information in previous securities prices are fully reflected in current prices,
-
the semi-strong form of the hypothesis, which asserts that, not just previous prices, but all public information, from sun spot cycles to the details of geopolitics, are fully reflected in current prices,
-
the strong form of the hypothesis, which asserts that, not just all public information, but also all insider information, such as yet-to-be announced quarterly earnings, is fully reflected in current prices.
For much of our discussion, we will be interested in the information in the price series itself; we will therefore focus on weak form efficiency, which is most directly addressed by the celebrated tâtonnement process of price formation [38]. This process posits a hypothetical auctioneer who calls out price suggestions, aggregates supply and demand at each suggestion, and revises price suggestions accordingly until supply matches demand. Only these market clearing, equilibrium prices are the ones at which actual transactions take place, and it is the information in these that are supposed to be reflected in current prices.
The tâtonnement process differs significantly from the price discovery process of actual securities exchanges, such as the New York Stock Exchange (NYSE). Such exchanges usually function as so-called double auction markets. As we will see in the more complete discussion of double auction markets below, the prices quoted in such markets are binding, even though there is no guarantee that these prices are
number of steps that is bounded by a polynomial in the length of the input.
The French word tâtonnement is often translated as “groping” or “trial and error”.
market clearing, equilibrium prices. At best, therefore, price information is only an estimate of where the true market equilibrium lies, suggesting that this equilibrium price should be treated as a random variable, much as [40] proposed.
It is at this point that the significance of the pragmatic information paradigm becomes evident. Market participants must make a decision, in this case the decision to buy, sell, or hold a particular security at a particular price, based on their estimate of a random variable, in this case the true equilibrium price. In this context, price information becomes relevant only to the degree that it allows the market participant to update their estimate of this random variable. We therefore recall the proposal in [1] that the EMH be recast as the assertion that a market is efficient to a given market participant if none of the information available to that market participant is pragmatically useful, as defined above. One immediate benefit of this recasting is that it resolves a major problem with the existing theory of efficient markets: although the same market information is available to all investors (absent insider information), the outstanding performance of a few investors makes a mockery of market averages. Consider, for example, the Renaissance Medallion Fund, started by the legendary investor Jim Simons, that generated average annual returns of 39.9% per year from 1989 to 2022, net of fees, with only one of those years (2022) generating less than 20%. We can only conclude from such a track record that market information is more “available” to some investors than others.
Previous sections of this paper suggest that the pragmatic utility of market information depends on the computational resources of these market participants. The purpose of this section is to elaborate on this theme for financial markets. We therefore distinguish between markets that are
-
finite state efficient if no finite state machine can succeed in the sense of Section 4, above on the relevant information set, which would require that market returns are finite state random,
-
pushdown efficient if no pushdown automaton can succeed on the relevant information set, which would require that market returns are pushdown automaton random,
-
linearly bounded efficient if no linear bounded automaton can succeed on the relevant information set, which would require that market returns are linearly bounded automaton random, and
-
Turing efficient if no general purpose Turing machine can succeed on the relevant information set, which would require that market returns are Martin-Löf Random.
Recall that each of the automata classes in the Chomsky hierarchy are strictly less powerful than automata in the classes above them. Hence, markets efficient with respect to a given automata class are subsets of markets that are efficient with respect to the less powerful automata below them in the hierarchy. The above discussion shows that this subset relation is sometimes strict.
Our claim that computational issues are relevant to the weak form of market efficiency was previously considered by [20] and [26]. Indeed, our notions of finite state efficiency, pushdown efficiency, etc. are simply elaborations of the notion in [26] of efficiency with respect to a resource. However, we differ from this previous work in two ways:
-
[20] and [26] treat the problem of “beating the market” as merely a recognition problem, namely that of identifying appropriate entry points for trades. In fact, trading profits are not realized until a trade is “closed out” by selling long positions and/or covering short positions. This observation suggests that the relevant problem in the theory of formal languages is not the recognition problem, but the reachability problem, which asks, given the current state of the market, will a given final state be achieved?
-
[20] asserts in its title that “Markets are efficient if and only if P = NP”. We make a different claim, namely that any attempt to use “all available [market] information” is intrinsically PSPACE complete. As we noted in a previous footnote, PSPACE completeness is thought to be an even greater level of intractability than NP completeness. Thus, market participants, stymied by the sheer volume of requisite computation, cannot extract pragmatic information from previous prices because of what we might term computational efficiency.
We present our discussion of computational efficiency in the remainder of this section, prefacing it with a brief account of market mechanics and a stylized account of how pragmatic information characterizes a market's approach to computational efficiency. We focus on the approach to finite state efficiency, rather than the linear bounded efficiency which we believe to be the true limiting case. We justify this focus by our belief that the simpler finite state case illustrates the more general case and because the approach to finite state efficiency is closer to current market conditions.
6.1 A Simplified Description of Market Mechanics and of the Computation of Market Returns
In the standard continuous double auction market [30] typified by the New York Stock Exchange , software known as a matching engine brings together buyers and sellers. Some of these market participants stand ready to buy pre-specified amounts of a security at a price less than or equal to a given bid, and others stand ready to sell pre-specified amounts of the security at a price greater or equal to a given offer. A record of these so-called limit orders is maintained by the exchange's matching engine in a limit order book or LOB. Alternatively, a buyer or seller can place an order to buy or sell a specific amount of a security "at the market" (buy at best offer or sell at best bid). Absent such market orders, the bids in the LOB will be strictly less than the offers; at such times, absent the modification or cancellation of an existing limit order, nothing happens and the LOB remains unchanged. Thus, a transaction takes place only when
-
a buyer or seller places a market order,
-
a buyer or seller places a marketable limit order for a specific amount of the security that meets existing bids or offers
In such cases, the filled limit orders are removed from the LOB. This simplified description of market mechanics is almost sufficient for our subsequent discussion; the one addition required is the so-called "immediate or cancel" (IOC) limit order. The so called resting limit orders of the previous paragraph remain in force until either they are filled, possibly via a series of partial fills, or they are explicitly modified or cancelled. In contrast to resting limit orders, IOC orders are cancelled if they cannot be executed in full immediately upon receipt.
This market structure implies an intrinsic uncertainty as to the exact price of the security most of the time, partly because, most of the time, the best bid is strictly lower than the best offer. Will it be a buyer or will it be a seller that will prove to be the more motivated to "cross the bid/offer spread"? Only time will tell. And even when there is a transaction, there is an agreement as to the value of a specific amount of the security at that instant. The price for a different amount of the security may well be different because, for example, a large market buy order could be filled by several different sellers offering smaller amounts of the security at different prices. Additional uncertainty is introduced by "bid-offer bounce" or a series of transactions that alternate between eager buyers trading at the unchanging best offer and eager sellers trading at the unchanging best bid. Then there are other market practices that obscure large limit orders, such as "dark pools" (outside-of-exchange order matching) and "iceberg orders", which are a series of orders that are automatically repeated as soon as the previous one is filled, thus concealing their true aggregate size. Typically, the LOB is visible to market participants, but dark pools and iceberg orders are, in their totality, invisible by definition. Yet such orders account for a significant fraction of trading activity. For example, The Wall Street Journal [32] reported that "On some days [in 2021], more than half of shares changing hands in U.S. are traded outside public stock exchanges". Also, [33] reported that, consistent with previous estimates, iceberg orders comprised more than 25% of the volume of the E-mini S&P 500 September 2019 Futures Contract traded on the Chicago Mercantile Exchange on June 19, 2019.
The difficulty in making any precise claim about the ill-defined notion of "securities prices" confirms our view of true equilibrium prices as random variables. To some degree, such difficulties are mitigated by averaging the transaction prices, perhaps weighted by transaction amounts, over some short time period, such as 1 or 5 minutes. Nevertheless, the failure of [20] to take market structure into consideration remains, and, as we will see, including it can lead to significantly different conclusions.
While the description of market microstructure presented here only applies in detail to organized exchanges, the exchange merely formalizes the supply and demand dynamics of securities traded outside of exchanges.
6.2 A Sketch of How Pragmatic Information Characterizes the Approach to Finite State Efficiency
We base our analysis on a variant of a model due to [26]. In this model, zero-knowledge market participants trade a single security, oblivious to a deterministic, periodic pattern in the dollar prices, , of the security at successive time periods. Suppose, in particular, that the period is reflected in daily closing prices, such as the following periodic sequence
where extra spaces are inserted in the above to emphasize the periodicity. After a certain number of such periodic fluctuations, a given market participant, whom we denote as , realizes that profits can often be made by observing the most recent recent price difference, and making BUY/SELL decisions accordingly. We might further suppose that the probability that makes such decisions increases as increases in magnitude, perhaps according to the formula
with the probabilities taken to be independent at each daily time step, and with viewed as a measure of how useful is in predicting the next price. This contrasts with the zero-knowledge market participants, for whom
If takes , a low price will generate a BUY decision about 95.3% of the time, and a high price will generate a SELL decision about 95.3% of the time. Because the only “messages” are the price differences at each time step, which are always known with certainty to be , we have either or . In the former case, the pragmatic information is then
in the latter case,
both of which evaluate to about 0.72 bits per time step.
When makes the right decision, which it does much of the time, all of the 0.72 bits of pragmatic information gleaned from knowing at each time step constitute pragmatically useful information. However, after the sequence of prices 6, 5, 6, 5, 6, 5, 6 at the beginning of the period, will make a SELL decision when a BUY decision would have been more profitable. The knowledge of the price change leading to that decision is therefore pragmatic noise, a conclusion that would escape an analysis based
[26] notes that this model is not as contrived as it might seem, as there are indeed many sources of periodic predictability in the markets. To the list of these provided by [26], we add predictable short term interest rate fluctuations near the beginning of each year and the periodic expiry of “front month” futures contracts.
Strictly speaking, cannot simultaneously observe a closing price and execute trades at that price. Nevertheless, prices of heavily traded securities rarely fluctuate substantially during the near instantaneous time required to execute a market order, or even reverse a position; thus, the result of observing prices and implementing the proposed strategy immediately before the close would closely approximate the results described here.
on Shannon information.
After a while, other market participants notice 's profitability, and they decide to do what is doing, albeit after 's trades are executed. This time lag prevents these other participants from executing at the same prices as because 's trades have depleted the finite number of shares bid/offered at these prices. Thus, market participants such as that are only able to execute after might see the periodic dollar prices
Assuming that adopts the same decision rule and prior probabilities as , the corresponding (pragmatically useful) pragmatic information is only 0.59 bits per time step, except for the end of the cycle and the second time step of the next cycle. For these time steps, will again make a SELL decision when a BUY decision would have been more profitable. The knowledge of the price change leading to that decision is therefore, once again, pragmatic noise.
We might imagine a series of market participants, similarly endowed with the same decision making process as , each moving the market with their trades. The price differences per time step will tend to zero when there is positive pragmatically useful information, but they will remain when there is pragmatic noise. We might then characterize such a market as being “ efficient”. However, a finite state machine that can detect the entire pattern and respond appropriately can clearly remain profitable even in a efficient market. Profits from that more powerful finite state machine will, nevertheless, also degrade as more market participants utilize that more powerful automaton.
Much actual trading does seem to be informed by the simple trading rules of “technical analysis” such as trend following and mean reversion [23], which are easily implemented by finite state machines. Many billions of dollars in profits continue to be earned via these finite-state-machine-based strategies, along with other finite-state-machine-based strategies, such as index arbitrage and the triangular currency arbitrage. It follows that actual financial markets are, at least sometimes, not finite state efficient, let alone Turing efficient.
Yet the opportunities for exploiting such inefficiencies are becoming ever more fleeting as the computer systems that exploit them get faster and more sophisticated, suggesting that markets are indeed following the path towards finite state efficiency described above. The triangular currency arbitrage, in particular, provided the present author a first-hand illustration of the move towards finite state efficiency. When he began working as a quant at HSBC in 1992, he learned that a trader had been assigned the full time job of identifying and exploiting these triangular arbitrages. However, some months later, the trader had to be reassigned because the arbitrages were no longer regularly exploitable by HSBC's relatively high latency setup. Nevertheless, ultra-low latency computer systems are sometimes able to exploit this arbitrage to this day.
6.3 But True Market Efficiency is More Than Finite State Efficiency!
There is considerable evidence that more powerful models than finite state machines are sometimes needed to describe market dynamics. For example, let be the price of some security at time and . Successive values of are well known to be uncorrelated for all values of ; however, successive values of cannot be independent, because is autocorrelated. If were a non-deterministic regular language, the behavior of its recognizing non-deterministic finite state machine would be completely characterized by a finite dimensional transition matrix of probabilities of state transitions. For such models, the autocorrelations of states separated by time decay exponentially with , with the (unique) time scale of the decay determined by the largest eigenvalue of the transition matrix [29]. In contrast, per [25], a central “stylized fact” about asset returns, which must be linked to states in any putative finite state model, is that has temporal correlations that decay as a power law in
This arbitrage arises when, for example, exchanging USD for Japanese Yen and then exchanging the Yen for Euro generates a different quantity of Euro than the direct exchange of U.S. Dollars for Euro.
, implying the absence of a single decay rate.
These observations should not be surprising for several reasons. First, a defining characteristic of financial markets is that market participants are active across all time scales, from sub-millisecond statistical arbitrageurs to Warren Buffet's famous "buy and hold" strategy, which he had sometimes followed for decades. And market participants are certainly cognizant of even longer time horizons, such as the Dutch Tulip Mania of the early 1600's. Furthermore, as we have seen, a more powerful gambler can succeed on a sequence in which a finite state gambler does not, so it is possible for a market to be finite state efficient, but not efficient with respect to more powerful computational models. The absence of a single decay rate for the above correlations implies the need for such models. Also, the use of pushdown automata or linear bounded automata in market models allows for much more generality in the market patterns that can be recognized. For example, just as a stack is necessary to recognize the recursive nature of a string of arbitrarily nested, balanced parentheses, so, too, is a stack useful in recognizing trends within trends. More generally, a stack can help to differentiate the same pattern in different regimes, given their different meanings in bull and bear markets.
An investor hoping to incorporate a more elaborate computational framework than that provided by a finite state machine faces several distinct sources of computational intractability:
-
A profitable close-out can only be effected by a profitable limit or market order, which means that the contents of the limit order book must also be considered. The state of a market must therefore include, not just the price of the last transaction, but also the entire LOB. And that's not all, because, as noted above, iceberg orders comprise a significant fraction of executed orders, implying that the "private" limit order books comprising all of the iceberg orders for a given security should be considered as well. Then there is the further complication that orders are often entered as part of a larger strategy, such as index arbitrage, which involves trading all of the securities that comprise the index. It follows that the complete characterization of a market state requires the concatenation of the private limit order books of all securities traded in the market, and the relevant state transition is the change in state triggered by a newly received order, modification of an existing order, or cancellation of an order, whether it results in a trade and corresponding price update, or not. We conclude that the quantity of the previous section is likely to be quite large. This is definitely a problem for any of the automata whose running time scales superlinearly with .
-
The production rules that generated the above described market states must be determined from the sequence of previous market states, rather than given in advance. This problem is known as the grammar induction problem in theoretical computer science, and it is known, in the general case, to be NP-complete in the length of the data on which the system is being trained [34]. Given the fact that markets trade differently during different market regimes, most famously bull and bear markets, years of market data would be required for such training.
-
Markets respond to a wide variety of news items and other events, making them non-stationary, so any preparatory processing, such as the solution to the grammar induction problem, must be completed before there are substantial changes to the market.
-
Most exchanges allow traders to view the LOB. However, by definition, it is impossible to view iceberg orders, implying that only a partial view of the full state is available at any given time. Constructs where the next state depends only on the current state, with decisions made based only on such partial views are known as partially observable Markov decision processes, often by the acronym POMDP. In general, the reachability problem for such systems is PSPACE-complete [35] in the length of the description of the problem, in this case the length of the description of the joint LOB's of all traded securities multiplied by the number of units of each security that can be traded. The reachability problem for the LOB is even harder, because the presence of market trends implies that the state of the LOB depends, not just on the current state, but also on previous states.
As a result of the above, we conclude that the relevant reachability problems are at least PSPACE-complete, a conclusion consistent with the result in [41] that order processing in double auction markets requires at least the equivalent of a bounded linear automaton. . It is widely conjectured, though not known for sure, that PSPACE-complete problems are strictly harder than NP-complete problems.
Furthermore, under a variety of limiting cases, reachability problems in double auction markets can+ become undecidable, i.e. potentially unsolvable even with infinite time and computing ability. For example, note that a double auction market is a concurrent system, which is a network of agents (it i.e. market participants) and communication channels connecting them (i.e. the joint LOB of all securities being traded). Even if market participants are modeled as simply as finite state machines, the joint reachability problem for all such agents is undecidable [36] if the communication channels can have an unbounded amount of traffic.
We consider another of these limiting cases in detail in Appendix C. There, if we are willing to assume that a routing engine
-
supports an LOB that is allowed to hold limit orders for an arbitrarily large number of units,
-
an order routing queue that supports the placement of an arbitrarily long, fixed sequence of limit orders,
-
routing that is conditional on whether a previous order was executed at a given price,
then the routing engine is Turing complete. Although the third of the above assumptions does not hold for the order matching engines of most exchanges, it must hold for the smart order routing engines of those brokerage firms that support basket trading.
Rice's Theorem [6] shows that, not only is the question of whether a Turing equivalent system eventually reaches a halt state undecidable, but many other questions about the evolution of the system are undecidable as well. For our Turing equivalent market systems, this would include such questions as whether the system reaches a given level of profitability or a given market trend. In the more realistic cases in which both the numbers and sizes of limit orders are bounded, the system becomes a linear bounded automaton. While questions such as whether the system will reach a certain state from a given set of inputs is decidable (but, in general, PSPACE-complete), questions such as whether the system will reach a certain state, given any set of inputs, remain undecidable.
The picture that emerges from all of this is a computational version of [40]. That paper argued that prices cannot be perfectly aligned with all available information because, if they did, no one would bear the non-zero cost of gathering and processing the market information needed to maintain that alignment. Instead, [40] proposes that markets tend towards “an equilibrium degree of disequilibrium”, where the marginal return on gathering/processing market information equals the marginal cost of such efforts. Here, we have considered a specific kind of cost, namely the computational cost of processing market information. Market participants vary widely in their ability to bear this cost. Hence, even though markets do not seem to be finite state efficient, some participants will find a given market to be computationally efficient, yet others (such as Simons) will be able to exploit its inefficiencies.
Even if and when markets approach finite state efficiency, market participants with the most computational resources will have an edge in making the PSPACE-complete calculations required to fully process pragmatically useful information even under any conceivable increase in compute. For all others, any truly comprehensive attempt to use “all available information” will be, as we suggested in the beginning of this section, stymied by the sheer volume of requisite computation, rendering such attempts computationally intractable. For these others, if not for the computationally well endowed, markets will indeed be computationally efficient.
7 Directions for Future Research
As noted in the introduction, we have defined pragmatic information in the simplest possible setting. While [1] argued for the present definition of pragmatic information by considering the sample average
If so, the PSPACE-completeness of reachability problems invalidates part of the claim in the title of [20], namely that markets are efficient only if P = NP. Even if P = NP, it is still possible that P ≠ PSPACE. If so, market inefficiencies cannot necessarily be found and arbitrated away as easily as the argument in [20] requires.
of a large number of decisions, these decisions were assumed to be independent of each other and of the inputs to previous decisions. (As [1] observed however, the convergence of the average pragmatic information per decision to the present definition can result from a wide class of message sequences.) The theory in its current state therefore remains silent about the situation where previous decisions and/or the inputs that prompted those decisions to influence the given decision, precisely the situation in which learns from previous results. Perhaps the theory could be generalized to assume that the input messages m includes a series of instructions that may affect 's subsequent decision making capabilities, perhaps by affecting internal states that maintains. For example, m might be instructions to modify the source code in the implementation of . The take-away from the present paper — that the computational abilities of the receiver play a major role in determining how much pragmatic information the receiver can extract from a message — no doubt applies in this more general setting as well.
Another direction for future research is to explore the parallels between pragmatic information, the Shannon theory, and thermodynamic entropy, especially in relation to the EMH. In the previous section, we applied the pragmatic information paradigm to market estimates of equilibrium prices, observing that these estimates vary in quality with the computational power of the receiver. Here, we note that such estimates are also subject to the receiver's cognitive biases, such as loss aversion, that have been so thoroughly documented in the behavioral finance literature (See, for example, [42]). The pragmatic information paradigm suggests that such biases are a kind of pragmatic noise, preventing a receiver from fully processing market information. Given that there is an extensive theory of dealing with noise in the Shannon theory (i.e. coding theory), is there something along the same lines within the pragmatic information paradigm?
Bubbles and crashes might also usefully be viewed through the lens of pragmatic information. There is certainly much pragmatic noise bandied about at those times! A related idea, per [41], is that there is an inherent tendency towards a “rise in complexity of the entire market system”, which implies that more processing power is needed to separate pragmatically useful information from pragmatic noise in such cases. When this additional processing power is not available, we might expect an increase in pragmatic noise, as in the example in Section 4.5. Per [26], such pragmatic noise can, itself, trigger a bubble.
Finally, we recall the observation that pragmatic information can be interpreted as a kind of “free information”: much as the free energy is the portion of the total energy of a physical system available to do useful work, so pragmatic information is the part of the total information available make (potentially) useful decisions. Yet pragmatic information is certainly a kind of information measure, and information is more closely linked to thermodynamic entropy, the derivative of free energy with respect to temperature. It would be worth understanding this parallel more clearly: just as non-smooth changes in physical entropy that characterize physical phase transitions, so non-smooth changes in pragmatic information rates might help understand abrupt changes in the information processing abilities of a receiver, including the collective behavior of market participants, as reflected in dramatic changes in pragmatic noise.
Acknowledgements
The author would like to acknowledge Profs. Harald Atmanspacher and Herbert Scheingraber for organizing the NATO Advanced Study Institute on Information Dynamics in 1991, where the author first learned of the need for a theory of pragmatic information and New York University for a partial stipend to attend the Santa Fe Institute Conference on Collective Intelligence that encouraged him to complete this work.
The author would also like to acknowledge the role of the various versions of the large language models Google Gemini and Anthropic Claude in
• gathering relevant literature references.
- sharpening intuitions leading to the discussion of gamblers in the text and their connection to pragmatic information.
• supplying the argument that identified a sequence, , for which ,
- highlighting the additional computational complexity introduced into market dynamics by the limit order book, and
- suggesting that the processing surrounding the limit order book be modeled by a Minsky machine,
- understanding the implications of Rice's theorem on order book processing, and
- checking the manuscript for correctness. While Claude Sonnet confirmed the basic soundness of the arguments as written by the author, it found a few typos and minor gaps in the proofs as written.
It goes without saying that the author has carefully checked the line-by-line correctness of these contributions.
References
[1] Weinberger, Edward D., "Towards a Theory of Pragmatic Information", available on arXiv as https://arxiv.org/abs/2403.12324. [2] Shannon, Claude and Weaver, Warren. The Mathematical Theory of Communication, University of Illinois Press, 1962. [3] Christophe Coupé et al., "Different languages, similar encoding efficiency: Comparable information rates across the human communicative niche", Science Advances, 5 #9 (2019). Accessible on the web as science.org/DOI/10.1126/sciadv.aaw2594 [4] Cover, Thomas M. and Thomas, Joy, A., Elements of Information Theory, 2nd Ed., John Wiley & Sons, Inc., 2006. [5] Kullback, Solomon, Information Theory and Statistics, Dover Publications, 1997. [6] Sipser, Michael, Introduction to the Theory of Computation, Third Edition, Cengage Learning, 2012. [7] https://cstheory.stackexchange.com/questions/2515/can-a-probabilistic-turing-machine-solve-the-halting-problem [8] Lutz, Jack H., "Dimension in Complexity Classes", SIAM J. COMPUT., 32 (5), 1236-1259 (2003). [9] Doty, David and Nichols, Jared, "Pushdown Dimension", Theoretical Computer Science, 381 105-123 (2007). [10] Pierre Baldi, Laurent Itti, "Of bits and wows: A Bayesian theory of surprise with applications to attention," Neural Networks, 23, Issue 5, 649-666, 2010. ISSN 0893-6080, https://doi.org/10.1016/j.neunet.2009.12.007. (https://www.sciencedirect.com/science/article/pii/S0893608009003256). [11] Hopcroft, John E., Motwani, Rajeev, Ullman, Jeffrey D., Introduction to Automata Theory, Languages, and Computation, 2nd Ed., Addison Wesley, 2001. [12] Valiant, Leslie, General context-free recognition in less than cubic time. Carnegie Mellon University. Journal contribution. https://doi.org/10.1184/R1/6605915.v1, 1974. [13] Arora, Sanjeev; Barak, Boaz, Computational Complexity: A Modern Approach, Cambridge University Press, p. 92, 2009. ISBN 978-1-139-47736-9. [14] Chaitin, G. J., "A Theory of Program Size Formally Identical to Information Theory", J. Assoc. Comput. Mach. 22, 329-340, 1975. [15] Crutchfield, James. "Reconstructing Language Hierarchies", in Information Dynamics, ed. by H. A. Atmanspracher, et al, Plenum Press, New York, 1991. [16] Lutz, J. H., "The dimensions of individual strings and sequences". Information and Computation', 187(1):49-79 (2003). [17] Schnorr, C. P., "A unified approach to the definition of random sequences", Mathematical Systems Theory, 5 (3), 246-258 (1971). [18] Martin-Löf, Per., "The Definition of Random Sequences", Information and Control, 9 602-619 (1966).
[19] Champernowne, D. G. "Construction of decimals normal in the scale of ten", J. London Math. Soc., 2(8):254-260, 1933.
[20] Maymin, Philip Z., "Markets are efficient if and only if P= NP." Algorithmic Finance 1.1, 1-11 (2011).
[21] Fama, Eugene F. "Efficient Capital Markets: A Review of Theory and Empirical Work" Journal of Finance, XXV, No. 2, pp. 383-417 (1970).
[22] Fama, Eugene F. "Efficient Capital Markets: II" Journal of Finance, XLVI, No. 5, pp. 1575-1617 (1991).
[23] Murphy, John J., Technical Analysis of the Financial Markets: A Comprehensive Guide to Trading Methods and Applications, New York Institute of Finance, 1999.
[24] OpenAI, ChatGPT-4 [Large language model] https://chatgpt.com/c/6785dad4-7b7c-8010-a097-033debbacdb2; Prompt was "What is a set of production rules for the regular language consisting of strings consisting only of the characters "a" and "b" such that the string has an even number of "a"s?
[25] Jiang, Zhi-Qiang, et. al., "Multifractal analysis of financial markets", Reports on Progress in Physics, 82 (12), 125901 (2019).
[26] Hasanhodzic, J., Lo, A.W., Viola, E. "A computational view of market efficiency", Computational Finance, 11 (7) 1043-1050 (2011).
[27] Weisstein, Eric W. "Chaitin's Constant", From MathWorld-A Wolfram Resource. https://mathworld.wolfram.com/ChaitinsConstant.html, retrieved on January 11, 2026 at 8:17 PM EST/
[28] Weizsäcker, E.U. von, "Erstmaligkeit und Bestätigung als Komponenten der pragmatischen Information", in Offene Systeme I, ed. by E.U. von Weizsäcker, 82-113, Klett, 1974.
[29] Lin, Henry W. and Tegmark, Max, "Criticality in Formal Languages and Statistical Physics", Entropy, 19, 299 (2017). Available on the web as http://www.mdpi.com/1099-4300/19/7/299.
[30] Friedman, Daniel and Rust, John, editors. The Double Auction Market: Institutions, Theories, and Evidence, Proceedings Volume XIV, Santa Fe Institute Studies in the Sciences of Complexity, Taylor & Francis, 1993. ISBN 0-201-62459-1.
[31] Trading at NYSE (Rule 605 Statistics). https://www.nyse.com/trade/reports.
[32] https://www.wsj.com/finance/stocks/gamestop-mania-highlights-shift-to-dark-trading-11613125980.
[33] https://arxiv.org/pdf/1909.09495.
[34] Gold, E. M., "Complexity of automaton identification from given data", Information and Control, 37, 302-320 (1978).
[35] Papadimitriou, Christos H., and John N. Tsitsiklis, "The Complexity of Markov Decision Processes," Mathematics of Operations Research 12, no. 3 (1987): 441-50. http://www.jstor.org/stable/3689975.
[36] Brand, Daniel and Zafiropul o, Pitro, "On Communicating Finite-State Machines", Journal of the ACM 30 No. 2323-342 (1983).
[37] Barberis, Nicholas and Thaler, Richard, "A Survey of Behavioral Finance", in Handbook of the Economics of Finance, Elsevier, Amsterdam, pp. 1051-1121.
[38] Negishi, Takashi, "Tâtonnement and Recontracting", in The New Palgrave Dictionary of Economics, 3rd Ed., Palgrave, Macmillan, pp
[39] Minsky, Marvin, Computation: Finite and Infinite Machines, 1st Ed., Englewood Cliffs, New Jersey, USA: Prentice-Hall, Inc. p. 214 (1967).
[40] Grossman, Sanford J. and Stiglitz, Joseph E., "On the Impossibility of Informationally Efficient Markets", The American Economic Review, 70, No. 3, pp. 393-408 (1980).
[41] Mirowski, P., "Inherent Vice: Minsky, Markomata, and the tendency of markets to undermine themselves", Journal of Institutional Economics, 6, pp. 415-443 (2010).
[42] Kahneman, Daniel and Tversky, Amos, "Prospect Theory: An Analysis of Decision under Risk", Econometrica, 47, No. 2, pp. 263-292 (1979).
Appendices
A The Chomsky hierarchy of formal languages
Given the finite alphabet and strings of symbols that are elements of , as described in the body of this paper, the formal language is a subset of , with membership in determined by a set of rules called a formal grammar for . The membership problem is then the problem of determining whether a given element of is, in fact a member of . Strings in are sometimes called "words", even though the theory of formal languages assigns no meaning to such strings per se.
A grammar for specifies which elements of are members of . Such grammars are often characterized via production rules, which are sets of transformations that map strings to other strings. Besides elements of , production rules can contain both elements of a finite set, , of so-called non-terminal symbols, or even elements of , which are strings of length zero or more of the symbols in . The first string produced by the rules is the single "start" symbol . The production rules then specify how and the symbols appearing in the replacements of are to be replaced by other strings. The rules are successively applied to the strings resulting from the results of previous rule applications until only elements of remain (which is why the symbols in are sometimes called terminal symbols, in contrast to the non-terminal symbols in ). Since the grammar may specify that multiple rules may be applied to a given string containing non-terminal symbols, many, and perhaps infinitely many elements of can be the final result. Note that, in order for these substitutions to be well-defined, must be disjoint from . The membership problem for a given and a given language is then the task of determining whether can be reproduced by the production rules that characterize 's grammar, starting from the start symbol, . The reachability problem asks the same question problem, but starting from a given , with .
Given that and , with not necessarily distinct from , the Chomsky hierarchy identifies the languages produced by four cases of such rules, namely
- regular languages, for which the rules must have one of the following forms:
Example:
All such words can be reproduced by the following production rules [24]:
Note that represents a state where the string has an even number of 's, so adding a via rule (A.2) or terminating the substitution process via rule (A.1) keeps the number of 's even. Note also that represents a state where the string has an odd number of 's, a state that is entered by invoking rule (A.3). However, the substitution process cannot terminate here because of the non-terminal that now appears in the string. The string continues to have an odd number of 's after invoking rule (A.4), but, again, the substitution process cannot terminate here. In fact, the only way the substitution process can terminate after appears in the string is via rule (A.5), which guarantees that the number of 's in the terminal string will be even.
- context free languages, for which the rules must have the following form:
Example: A language that is context free, but not regular.
All such words can be reproduced by the following production rules [11]:
Note that the final result necessarily has balanced parentheses because only balanced parentheses appear in the string as it is being formed.
- context sensitive languages, for which the rules must have one of the following forms:
where and . Such grammars are context sensitive because and provide a context to , as the replacement of by is permissible only within that context. In contrast, no such context is required for the non-terminal on the left side of the production rules for a context free grammar. Because the string is not allowed to be empty, the output of every production rule will be a string that is at least as long as the input.
Example: A language that is context sensitive, but not context free.
. In other words, must begin with at least one , followed by the same number of 's, followed by the same number of 's.
All such words can be reproduced by the following production rules [11]:
Rules (A.9) and (A.10) allow for the blowing up of the start string to , Rules (A.11) thru (A.14) replace non-terminal strings with non-terminal strings . The remaining rules replace a non-terminal or with the corresponding terminal or , respectively.
- recursively enumerable languages, which allow for arbitrary transformations
where . The term “recursively enumerable” indicates that all valid strings of the language can be enumerated by a Turing machine. An example of a language that is recursively enumerable, but not context sensitive is the Post correspondence problem. One of several equivalent statements of this problem is to think about a collection of tiles, each with a string on the top of the tile and another string on the bottom, as shown below, with consisting of the single symbol and consisting of the concatenation of the two symbols and in the eight symbol alphabet
We are then given a set of such tiles, such as
The problem is to determine whether there is an arrangement of the tiles such that the concatenation of the top strings in the order given by the arrangement is equal to the concatenation of the bottom strings, also as indicated by the arrangement. Note that such an arrangement is not possible in the example given above because each of the top strings is shorter than its corresponding bottom string, so the concatenation of the top strings will be always be shorter than the concatenation of the bottom strings. However, no such shortcut can be found in the general case; hence this general case is undecidable.
It can be shown that only some context free languages are regular, only some context sensitive languages are context free, only some context sensitive languages are context free, and only some recursively enumerable languages are context sensitive. All of the above examples show that grammars can be non-deterministic, meaning that the same left side can appear more than once in the list of production rules. Grammars can also be deterministic, if the left side of the production rules can only appear once in the list of production rules for the language.
B The abstract automata that recognize the languages in the Chomsky hierarchy
Algorithms that can determine whether any given string in is in a given language are often called abstract automata. When such an automaton can make such a determination for given language , the automaton is said to recognize . If has a non-deterministic grammar, more than one sequence of production rules can be activated; recognition is assumed if any of these sequences produces the input string. Thus, automata, as well as grammars and languages, can be either deterministic or non-deterministic.
A fundamental result of theoretical computer science [6] is the table in the body of this paper that specifies which abstract automata can recognize which languages. The simplest of the above automata is the finite state machine, , which can be characterized by
-
a string of input symbols, , to be input one at a time,
-
a finite set of internal states, , one of which is maintained as a “current state”,
-
an initial state, ,
-
a subset, , of that constitutes a set of final states, entry into any one of which constitutes a recognition event,
-
a transition table, , which maps pairs to a next state, . The notation indicates that the transition table can either read a symbol in to trigger the transition or this transition can occur spontaneously, by “reading” the empty string, , the latter transition being known as a lambda transition. A standard result in automata theory (see [6], for example) guarantees that is no less powerful if we assume that every pair maps to a unique next state ; that is, is deterministic. is assumed to read successive symbols in or make lambda transitions, applying the mappings in in both cases, to determine the corresponding state transitions until a state in has been reached.
The pushdown automaton, , augments with a stack, . Thus, can be characterized by
-
a start state, finite sets of internal states and final states, similar to those of ,
-
a stack, , which is an ordered tuple, , of a finite, but arbitrarily large number of symbols chosen from some alphabet, , which may or may not be the same as ,
-
an initialization for at the start of processing,
-
a symbol, , said to be the “top of the stack” (The stack ordered tuple serves as a memory; the 's of which it is comprised can only become involved in processing by making their way to the top of the stack via the POP operation described below.),
-
a transition table, , which maps quadruples to one or more triples , where either
-
retains its current value and nothing happens to (so that and ), but , or
-
is replaced by some other element of , but nothing happens to (so that but ), or
-
retains its current value but it is also “pushed” onto , which then becomes the ordered tuple , (so that but ), or
-
is replaced by , which has been “popped” from , which then becomes (so that, in general, and )
Once again, it is assumed that reads successive symbols in , applying the mappings in after each new symbol has been read to determine the corresponding state transitions. The non-deterministic version of the pushdown automaton is strictly more powerful than the deterministic version, in that there are languages that can be recognized by the former, but not by the latter [11].
- The bounded linear Turing machine, , and the general Turing machine, , augment the pushdown automaton with a second stack. We denote 's second stack as , and 's second stack as . The only difference between and is that both of 's stacks can be no longer than a finite multiple of that is specified before processing begins. It can be shown [11] that deterministic Turing machines and linear bounded automata are no less powerful than their non-deterministic counterparts, in that they can recognize precisely the same set of languages.
There are many versions of that can be shown to be equivalent. One such that might be more familiar to some readers consists of o a finite set of internal states, , one of which is maintained as a “current state”,
o an initial state, ,
o a semi-infinite tape , consisting of “cells”, , which can contain either a blank or a single element of ,
o a final state, , where the subscript “H” indicates that processing halts upon entry into that state,
o a “read head” that points to a specific cell in
o a mechanism for moving the read head one cell to the left or right, thus positioning it to read this adjacent cell,
o a transition table, , which maps pairs to the triple , with , , and ) indicating that the read head should move to either the left or right.
C On the Turing Equivalence of the Matching Engine and Its Implications
A Minsky machine is an abstract automaton supporting
-
a finite number of registers, , which are memory cells, each of which can hold an arbitrarily large non-negative integer, ,
-
a controller, , for sequencing instruction processing,
-
a list of instructions, , which consist of
o an instruction, , that increments register by one and signals the controller to process instruction unconditionally,
o an instruction, , that decrements register by one and signals the controller to process instruction unless the register subsequently holds zero, in which case the controller is signaled to process instruction .
Remarkably enough, Minsky machines have the same computational capabilities as Turing machines [39]. This fact is made plausible because, per [39], a Minsky machine can do arbitrary arithmetical operations on the contents of its registers and a Turing machine tape with symbols per cell is effectively the base representation of a single integer. For example, here is how a two register Minsky machine can multiply the existing contents of register by two after clearing the contents of :
| Instruction # | Instruction | Explanation and Notes |
|---|---|---|
| Initialization | ||
| 1 | DECJZ(, 1, 2) | Decrement until it is zero, in preparation for placing the final result there |
| 2 | DECJZ(, 3, 5) | Decrement as long as it is not zero, thus ensuring that instructions 3 and 4 will execute exactly times |
| 3 | INC(, 4) | |
| 4 | INC(, 2) | |
| 5 | HALT | now holds |
Table 2: Minsky Machine code for computing , for an arbitrary positive integer .
We demonstrate the Turing completeness of the action of smart order routing (SOR) on the LOB by making the correspondence in Table 2 between the various elements of the Minsky machine and the SOR/LOB action for the order book for each of the securities. We assume a tick size of .
Table 3: A Correspondence between a Minsky Machine and SOR
| Minsky Machine Element | Market Element | Notes |
|---|---|---|
| Register | Order book for security | |
| Initialization | Resting limit/iceberg SELL order for security at price of sufficient size to guarantee a transaction at this price if there is no transaction at . | |
| INC() | Resting limit SELL order for one unit of security at price , then place order when order is executed. | |
| DECJZ() | Place an IOC BUY order for one unit of security at price . If order is executed at price , place order . If it is executed at , place order . | (1, 2) |
| Controller | "hard coded" lookup table of orders, executed as specified by execution of previous order | (3) |
Notes:
-
The combination of the resting limit SELL order for one unit of security at price and the IOC BUY order for one unit of same security at the same price corresponds to a DECJZ (decrement the register by one and jump on zero): if there are any existing limit orders for the security at price , the IOC BUY order will trigger a transaction because is strictly smaller than the limit price of associated with the order. This results in one less unit of the security available for sale, as required. The SOR engine then moves on to order . If there are no resting limit sell orders for security at price , the IOC BUY order is still executed because of the iceberg SELL order for the security at price . However, the next order is processed is , rather than .
-
The IOC BUY order is an IOC order simply to avoid the possibility that the best execution software of the exchange determines that there is a resting limit order for security at price on some other exchange, even though there is no such order on the exchange of interest.
-
The matching engines currently provided by most exchanges do not offer the conditional execution envisioned by the controller above, but the smart order routing (SOR) systems of individual brokers do, as evidenced by the widespread popularity of such basket trading strategies as index arbitrage. (In fact, the SOR systems have much more demanding requirements, such as the handling of the complexities of “leg risk”, that, for example, only some of the trades in the basket can be executed at required price levels.)