Abstract 1 Introduction 2 Preliminaries 3 Counting Martingales 4 Counting Martingale Constructions 5 Entropy Rates and Kolmogorov Complexity 6 Applications 7 Conclusion References

Counting Martingales for Measure and Dimension in Complexity Classes

John M. Hitchcock ORCID Department of Electrical Engineering and Computer Science, University of Wyoming, Laramie, WY, USA Adewale Sekoni ORCID Department of Mathematics, Computer Science & Physics, Roanoke College, Salem, VA, USA Hadi Shafei ORCID School of Computing and Engineering, University of Huddersfield, Huddersfield, UK
Abstract

This paper makes two primary contributions. First, we introduce the concept of counting martingales and use it to define counting measures and counting dimensions. Second, we apply these new tools to strengthen previous circuit lower bounds. Resource-bounded measure and dimension have traditionally focused on deterministic time and space bounds. We use counting complexity classes to develop resource-bounded counting measures and dimensions. Counting martingales are constructed using functions from the #𝖯, 𝖲𝗉𝖺𝗇𝖯, and 𝖦𝖺𝗉𝖯 complexity classes. We show that counting martingales capture many martingale constructions in complexity theory. The resulting counting measures and dimensions are intermediate in power between the standard time-bounded and space-bounded notions, enabling finer-grained analysis where space-bounded measures are known, but time-bounded measures remain open. For example, we show that 𝖡𝖯𝖯 has #𝖯-dimension 0 and 𝖡𝖰𝖯 has 𝖦𝖺𝗉𝖯-dimension 0, whereas the 𝖯-dimensions of these classes remain open.

As our main application, we improve circuit-size lower bounds. Lutz (1992) strengthened Shannon’s classic (1ϵ)2nn lower bound (1949) to 𝖯𝖲𝖯𝖠𝖢𝖤-measure, showing that almost all problems require circuits of size 2nn(1+αlognn), for any α<1. We extend this result to 𝖲𝗉𝖺𝗇𝖯-measure, with a proof that uses a connection through the Minimum Circuit Size Problem (𝖬𝖢𝖲𝖯) to construct a counting martingale. Our results imply that the stronger lower bound holds within the third level of the exponential-time hierarchy, whereas previously, it was only known in 𝖤𝖲𝖯𝖠𝖢𝖤. Under a derandomization hypothesis, this lower bound holds within the second level of the exponential-time hierarchy, specifically in the class 𝖤𝖭𝖯. We also study the #𝖯-dimension of classical circuit complexity classes and the 𝖦𝖺𝗉𝖯-dimension of quantum circuit complexity classes.

Keywords and phrases:
resource-bounded measure, resource-bounded dimension, counting martingales, counting complexity, circuit complexity, Kolmogorov complexity, quantum complexity, Minimum Circuit Size Problem
Funding:
John M. Hitchcock: This research was supported in part by NSF grant 2431657.
Copyright and License:
[Uncaptioned image] © John M. Hitchcock, Adewale Sekoni, and Hadi Shafei; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Complexity classes
; Theory of computation Computational complexity and cryptography ; Theory of computation Circuit complexity ; Theory of computation Quantum complexity theory
Acknowledgements:
We thank Morgan Sinclaire and Saint Wesonga for helpful discussions.
Editors:
Srikanth Srinivasan

1 Introduction

Resource-bounded measures and dimensions [48, 49, 50, 52, 7] are fundamental tools for analyzing complexity classes, offering refined ways to understand the power and limitations of different computational resources [51, 33, 56, 3]. Traditional approaches based on real-valued martingales provide insights into classes like 𝖯, 𝖭𝖯, 𝖯𝖲𝖯𝖠𝖢𝖤, and 𝖤𝖷𝖯 but they leave gaps when it comes to many intermediate complexity classes. This paper introduces counting martingales, which offer a new perspective on these intermediate classes by utilizing functions from counting complexity classes.

Our main contributions are:

  1. 1.

    Counting Martingales and Counting Measures and Dimensions: We introduce counting martingales, which generalize traditional martingales by incorporating functions from #𝖯, 𝖲𝗉𝖺𝗇𝖯, and 𝖦𝖺𝗉𝖯, creating intermediate complexity measures and dimensions. We define #𝖯-measure, 𝖲𝗉𝖺𝗇𝖯-measure, and 𝖦𝖺𝗉𝖯-measure as intermediate measures between 𝖯-measure and 𝖯𝖲𝖯𝖠𝖢𝖤-measure, allowing finer analysis of complexity classes.

  2. 2.

    Applications to Circuit Complexity: Using these new measures, we provide novel results on nonuniform complexity and the Shannon-Lupanov bound. Shannon’s (1ϵ)2nn lower bound (1949) was improved by Lutz (1992) who showed that for any α<1, almost all problems require circuits of size 2nn(1+αlognn). We improve this result further by extending it to 𝖲𝗉𝖺𝗇𝖯-measure. In our proof, we construct a counting martingale using a connection through the Minimum Circuit Size Problem (𝖬𝖢𝖲𝖯). Moreover, we study classical and quantum circuit complexity classes using #𝖯-dimension and 𝖦𝖺𝗉𝖯-dimension, respectively.

The standard definitions of resource-bounded measure use martingales that are real-valued functions computable within deterministic time and space resource bounds [50]. In this paper, we use the counting complexity classes #𝖯 [76], 𝖲𝗉𝖺𝗇𝖯 [41], and 𝖦𝖺𝗉𝖯 [18, 45] to introduce the concept of counting martingales and define counting measures and counting dimensions that are intermediate in power between the previous time- and space-bounded measures and dimensions. A #𝖯 function counts the number of accepting paths of a probabilistic Turing machine (𝖯𝖳𝖬), while a 𝖲𝗉𝖺𝗇𝖯 function counts the number of different outputs of a 𝖯𝖳𝖬. Every #𝖯 function is also a 𝖲𝗉𝖺𝗇𝖯 function, and the classes are equal if and only if 𝖴𝖯=𝖭𝖯 [41]. A 𝖦𝖺𝗉𝖯 function counts the difference between the number of accepting paths and the number of rejecting paths of a 𝖯𝖳𝖬 [18, 45]. For more background on counting complexity, we refer to the surveys [69, 21].

A martingale is a function d:{0,1}[0,) such that

d(w)=d(w0)+d(w1)2

for all w{0,1}. We view a martingale as acting on Cantor Space 𝖢={0,1} (the infinite binary tree). The value at any node is the average of the values below it. By induction, the value at any node is also the average of the values at any level of the subtree below the node:

d(w)=12nx{0,1}nd(wx).

A martingale starts with a finite amount d(λ) at the root. We may assume d(λ)=1 without loss of generality.

Intuitively, because the average value of a martingale across {0,1}n is d(λ)=1, a martingale is unable to obtain “large” values on “many” sequences. This intuition is formalized into characterizations of Lebesgue measure [44] and Hausdorff dimension [27] using martingales. A class X𝖢 has measure 0 if and only if there is a martingale that attains unbounded values on all elements of X [78]. A class X𝖢 has Hausdorff dimension s if 2(1s)n is the optimal growth rate of martingales on X [52].

Resource-bounded measure and dimension come from restricting these characterizations to martingales computable within some complexity class [50, 52, 7]. The most used resource bounds are polynomial-time (𝖯) and polynomial-space (𝖯𝖲𝖯𝖠𝖢𝖤). Generally, it is much easier to construct 𝖯𝖲𝖯𝖠𝖢𝖤-martingales than it is 𝖯-martingales [38, 32]. For more background on resource-bounded measure and dimension we refer to the surveys [51, 56, 3, 33, 74].

1.1 Counting Martingales

Figure 1.1: Cover Martingale Construction (Construction 4.1).

Our conceptual contribution is the introduction of counting martingales, which provide intermediate measure and dimension notions between 𝖯 and 𝖯𝖲𝖯𝖠𝖢𝖤 by using functions from counting complexity classes to define martingales. Many martingale constructions in complexity theory are expressed naturally as counting martingales.

For example, a standard technique for constructing a martingale is betting on a cover (see Figure 1.1) [51, 3]. Given a set A{0,1} and n1, we choose x{0,1}n uniformly at random and define a martingale dA by

dA(w)=𝖯𝗋x{0,1}n[xAwx]=|{xA{0,1}nwx}|2n|w|

for all w{0,1}n. Strings of longer length have the value of their length-n prefix. If we can construct an infinite family of such martingales that cover a class and the sum of their initial values converges, the Borel-Cantelli lemma applies to show the class has measure 0 [17].

A key difference between space-bounded measure and time-bounded measure is that a space-bounded martingale can enumerate a covering, whereas a time-bounded martingale does not have time to do this. The complexity of computing dA depends on the complexity of A and the enumeration bottleneck. Suppose that A𝖯. Naively computing dA would involve an enumeration of A, requiring polynomial space. Computing dA in polynomial time would only be possible if we have some special structure in A. For example, if A is 𝖯-rankable [2], then dA is polynomial-time computable [35]. It is also possible to approximately compute dA using an oracle from the polynomial-time hierarchy [73, 59, 35].

However, the numerator in the definition of dA is in general a #𝖯 function if A𝖯. This is because we can use a 𝖯𝖳𝖬 (Probabilistic Turing Machine) to count how many extensions of a string are in the cover. We call this a #𝖯 martingale. In general, a martingale is a #𝖯 martingale if it can be approximated by the ratio of a #𝖯 function and a polynomial-time function.

The case when the cover A𝖭𝖯 is also interesting, for example when A is the Minimum Circuit Size Problem (𝖬𝖢𝖲𝖯). Then the numerator is a 𝖲𝗉𝖺𝗇𝖯 function. While a #𝖯 function counts the number of acceptings paths of a 𝖯𝖳𝖬, a 𝖲𝗉𝖺𝗇𝖯 function counts the number of distinct values output by a 𝖯𝖳𝖬. A martingale of this form is a 𝖲𝗉𝖺𝗇𝖯-martingale.

When we use a 𝖦𝖺𝗉𝖯 function for the numerator of a martingale, we call it a 𝖦𝖺𝗉𝖯-martingale. We will show that 𝖦𝖺𝗉𝖯-martingales are capable of measuring quantum complexity classes. Until now, quantum complexity has not been addressed by resource-bounded measure.

We call #𝖯-martingales, 𝖲𝗉𝖺𝗇𝖯-martingales, and 𝖦𝖺𝗉𝖯-martingales counting martingales. Definition 3.1 contains the formal definitions of counting martingales.

1.2 Counting Measures and Counting Dimensions

A class X has #𝖯-measure 0, written μ#𝖯(X)=0, if there is a #𝖯-martingale that succeeds on X. Analogously, a class X has 𝖲𝗉𝖺𝗇𝖯-measure 0, written μ𝖲𝗉𝖺𝗇𝖯(X)=0, if there is a 𝖲𝗉𝖺𝗇𝖯-martingale that succeeds on X. Furthermore, a class X has 𝖦𝖺𝗉𝖯-measure 0, written μ𝖦𝖺𝗉𝖯(X)=0, if there is a 𝖦𝖺𝗉𝖯-martingale that succeeds on X. These counting measures are intermediate between 𝖯-measure and 𝖯𝖲𝖯𝖠𝖢𝖤-measure: for every class X𝖢,

μ𝖯(X)=0μ#𝖯(X)=0μ𝖦𝖺𝗉𝖯(X)=0μ𝖲𝗉𝖺𝗇𝖯(X)=0μ𝖯𝖲𝖯𝖠𝖢𝖤(X)=0μ(X)=0.

We do not know of any relationship between μ𝖲𝗉𝖺𝗇𝖯 and μ𝖦𝖺𝗉𝖯. An individual problem B is Δ-random if no Δ-martingale succeeds on B. We show that 𝖴𝖯 problems are not #𝖯-random and 𝖭𝖯 problems are not 𝖲𝗉𝖺𝗇𝖯-random. This is interesting in comparison to the result that 𝖲𝗉𝖺𝗇𝖯=#𝖯 if and only if 𝖭𝖯=𝖴𝖯 [41]. When we have a proposition that is known in 𝖯𝖲𝖯𝖠𝖢𝖤-measure, but open in 𝖯-measure, we can investigate it in #𝖯-measure, 𝖲𝗉𝖺𝗇𝖯-measure, or 𝖦𝖺𝗉𝖯-measure.

We also introduce counting dimensions, #𝖯-dimension, 𝖲𝗉𝖺𝗇𝖯-dimension, and 𝖦𝖺𝗉𝖯-dimension, which analogously fall between 𝖯-dimension and 𝖯𝖲𝖯𝖠𝖢𝖤-dimension. For all X𝖢,

0𝖽𝗂𝗆𝖧(X)𝖽𝗂𝗆𝖯𝖲𝖯𝖠𝖢𝖤(X)𝖽𝗂𝗆𝖦𝖺𝗉𝖯(X)𝖽𝗂𝗆𝖲𝗉𝖺𝗇𝖯(X)𝖽𝗂𝗆#𝖯(X)𝖽𝗂𝗆𝖯(X)1.

We do not know of any relationship between 𝖽𝗂𝗆𝖲𝗉𝖺𝗇𝖯 and 𝖽𝗂𝗆𝖦𝖺𝗉𝖯. We work out the basic properties of counting measures and dimensions in Section 3.

1.3 Our Techniques

Many martingale constructions in complexity theory are expressed naturally as counting martingales. These and other martingale constructions we need in this paper follow similar patterns. In Section 4 we present a few martingale constructions in a unified framework.

Figure 1.2: Conditional Expectation Martingale Construction (Construction 4.3).
  1. 1.

    Cover Martingale. The Cover Martingale construction utilizes a covering set A and defines the martingale based on the conditional probability that an extension of the current string belongs to A. If A𝖴𝖯, this construction produces a #𝖯-martingale; if A𝖭𝖯, it results in a 𝖲𝗉𝖺𝗇𝖯-martingale. If A is in the counting complexity class 𝖲𝖯𝖯, then this generates a 𝖦𝖺𝗉𝖯-martingale. The class 𝖲𝖯𝖯 consists of all languages L for which there exists a 𝖦𝖺𝗉𝖯 function f such that if xL then f(x)=1, and f(x)=0 otherwise [18]. This approach is effective for capturing known martingale constructions in the literature, particularly in scenarios where membership within a subset can be determined with unique or nondeterministic witnesses. For further details, refer to Figure 1.1 and Construction 4.1.

  2. 2.

    Conditional Expectation Martingale. This martingale generalizes the Cover Martingale by using a counting function f(x) as a random variable and taking its conditional expectation given the current prefix w. This construction is adaptable to functions within #𝖯, 𝖲𝗉𝖺𝗇𝖯 and 𝖦𝖺𝗉𝖯, making it effective for applications that require combining information from extensions of a given string. The Conditional Expectation Martingale averages the values of f over all extensions, providing a flexible tool. See Figure 1.2 and Construction 4.3 for an example and technical details.

  3. 3.

    Subset Martingale. This martingale is designed to succeed on all infinite subsets of a language B. If B𝖴𝖯, it produces a #𝖯-martingale, and if B𝖭𝖯, it yields a 𝖲𝗉𝖺𝗇𝖯-martingale. If B𝖲𝖯𝖯, then this is a 𝖦𝖺𝗉𝖯-martingale. Unlike deterministic martingales that can focus directly on a language, the Subset Martingale is unique in its ability to succeed across all subsets of a language. This property allows us to conclude that #𝖯-random languages are not in 𝖴𝖯, 𝖲𝗉𝖺𝗇𝖯-random languages are not in 𝖭𝖯, and 𝖦𝖺𝗉𝖯-random languages are not in 𝖲𝖯𝖯. See Figure 4.1 for an example and Construction 4.5 for a formal definition.

  4. 4.

    Acceptance Probability Martingale. We also show that betting according to the acceptance probabilites of a 𝖯𝖳𝖬 or 𝖰𝖳𝖬 (quantum Turing machine) yields a counting martingale. Using this, we show that 𝖡𝖯𝖯 has #𝖯-dimension 0 and 𝖡𝖰𝖯 has 𝖦𝖺𝗉𝖯-dimension 0. See Figure 4.2 for an example and Construction 4.9 for a formal definition.

  5. 5.

    Bi-Immunity Martingale. Mayordomo [59] showed 𝖯-random languages are 𝖤-bi-immune and 𝖯𝖲𝖯𝖠𝖢𝖤-random languages are 𝖤𝖲𝖯𝖠𝖢𝖤-bi-immune using a construction that we call a bi-immunity martingale. This construction is designed to succeed on all supersets of an infinite language. We show that this construction works as counting martingales to show #𝖯-random languages are 𝖴𝖯𝖼𝗈𝖴𝖯-bi-immune, 𝖲𝗉𝖺𝗇𝖯-random languages are 𝖭𝖯𝖼𝗈𝖭𝖯-bi-immune, and 𝖦𝖺𝗉𝖯-random languages are 𝖲𝖯𝖯-bi-immune.

Entropy Rates.

Hitchcock and Vinodchandran [35] showed a covering notion called the 𝖭𝖯-entropy rate is an upper bound for Δ3𝖯-dimension, where Δ3𝖯=𝖯Σ2𝖯. In Section 5.1, we extend this by showing that 𝖲𝗉𝖺𝗇𝖯-dimension lies between Δ3𝖯-dimension and the 𝖭𝖯-entropy rate. Informally, for a complexity class 𝒞 and X𝖢, the 𝒞-entropy rate of X is the infimum s for which all elements of X can be covered infinitely often by a language A𝒞 that has log|A=n|ns for all sufficiently large n. Intuitively, this corresponds to using A as an implicit code, where it takes log|A=n| bits to specify a member of A=n.

Kolmogorov Complexity.

In Section 5.2, we connect #𝖯-measure and #𝖯-dimension to Kolmogorov complexity. For a time bound t(n), Kt(x) is the length of the shortest program that prints x in t(|x|) time on a universal Turing machine. In particular, we extend a result from Lutz [50] and show that {S(n)Kp(Sn)<nf(n)} has #𝖯-measure 0, where p is a polynomial, and n=02f(n) is a 𝖯-convergent series. In other words, we prove that if S is #𝖯-random, then Kp(Sn)nf(n) almost everywhere.

1.4 Our Results

In Section 6 we study the measure and dimension of classical and quantum circuit complexity classes. Shannon [71] showed that almost all Boolean functions on n input bits require (1ϵ)2nn-size circuits. Lutz [50] strengthened this in two ways, showing that the larger circuit complexity class

Xα=𝖲𝖨𝖹𝖤𝗂.𝗈.(2nn(1+αlognn))

has 𝖯𝖲𝖯𝖠𝖢𝖤-measure 0 for all α<1. Frandsen and Miltersen [24] strengthened the original upper bound of Lupanov [47] to show that Lutz’s bound is nearly tight: Xα contains all problems when α>3.

We improve Lutz’s result to show that μ𝖲𝗉𝖺𝗇𝖯(Xα)=0. Lutz’s proof extensively reuses polynomial space to consider only novel circuits, that compute a different function than any previously considered circuit. This proof does not adapt easily to our setting. In Section 5, we introduce a measure notion called 𝖭𝖯 that bridges the gap between μ𝖯𝖲𝖯𝖠𝖢𝖤 and μ𝖲𝗉𝖺𝗇𝖯 by utilitizing the Minimum Circuit Size Problem (𝖬𝖢𝖲𝖯) [39], allowing the construction of a counting martingale. As a corollary, we conclude that Xα has measure 0 in the third level Δ3𝖤=𝖤Σ2𝖯 of the exponential-time hierarchy. While it was previously known how to construct a problem in Δ3𝖤 with maximum circuit-size complexity [64], our result says most problems in Δ3𝖤 have nearly maximal circuit-size complexity.

Li [46], building on work of Korten [42] and Chen, Hirahara, and Ren [14], showed the first exponential-size circuit lower bound within the second level of the exponential-time hierarchy, that the symmetric alternation class S2𝖤𝖲𝖨𝖹𝖤𝗂.𝗈.(2nn). We note that Li’s proof extends to show S2𝖤𝖲𝖨𝖹𝖤𝗂.𝗈.(2nn(1+αlognn)). Under suitable derandomization assumptions (see Derandomization Hypothesis 2.7), our Δ3𝖤 result improves by one level in the exponential hierarchy, showing Xα has measure 0 in Δ2𝖤=𝖤𝖭𝖯.

We also improve previous dimension results on circuit-size complexity [52, 35] and density of hard sets [55, 57, 25, 31]. Additionally, we use 𝖦𝖺𝗉𝖯-martingales to apply our counting measure framework to analyze quantum circuit complexity. We show that the quantum circuit-size class 𝖡𝖰𝖲𝖨𝖹𝖤(o(2nn)) has 𝖦𝖺𝗉𝖯-dimension 0. We also show that the class of problems that 𝖯/𝗉𝗈𝗅𝗒-Turing reduce to subexponentially dense sets has #𝖯-measure 0. See Figure 1.3 for a summary of our results. We anticipate many further applications of counting measures to refine results where the 𝖯𝖲𝖯𝖠𝖢𝖤-measure is known and the 𝖯-measure is unknown. We discuss some of these directions in Section 7.

𝖲𝖨𝖹𝖤𝗂.𝗈.(2nn(1+αlognn)) 𝖭𝖯-measure 0 Theorem 6.1
𝖲𝖨𝖹𝖤𝗂.𝗈.(2nn(1+αlognn)) 𝖲𝗉𝖺𝗇𝖯-measure 0 Corollary 6.2
𝖲𝖨𝖹𝖤𝗂.𝗈.(2nn(1+αlognn)) Δ3𝖯-measure 0 Corollary 6.3
𝖲𝖨𝖹𝖤(α2nn) #𝖯-dimension α Theorem 6.5
𝖯/𝗉𝗈𝗅𝗒 #𝖯-dimension 0 Corollary 6.6
𝖲𝖨𝖹𝖤𝗂.𝗈.(α2nn) #𝖯-dimension 1+α2 Theorem 6.7
𝖡𝖰𝖲𝖨𝖹𝖤(o(2nn)) 𝖦𝖺𝗉𝖯-dimension 0 Theorem 6.10
(𝖯/𝗉𝗈𝗅𝗒)𝖳(𝖣𝖤𝖭𝖲𝖤c) #𝖯-dimension 0 Corollary 6.12
Figure 1.3: Summary of New Measure and Dimension Results.

1.5 Organization

This paper is organized as follows. Section 2 covers preliminaries. Section 3 introduces counting martingales, counting measures, and counting dimensions. In Section 4, we detail the constructions for counting martingales. Section 5 presents our tools on entropy rates and Kolmogorov complexity. Our primary applications on circuit complexity are presented in Section 6. Finally, Section 7 provides concluding remarks and furture directions.

2 Preliminaries

The set of all finite binary strings is {0,1}. The empty string is denoted by λ. We use the standard enumeration of binary strings s0=λ,s1=0,s2=1,s3=00,. For two strings x,y{0,1}, we say xy if x precedes y in the standard enumeration and x<y if x precedes y and is not equal to y. Given two strings x and y, we denote by [x,y] the set of all strings z such that xzy. Other types of intervals are defined similarly. We write x1 for the predecessor of x in the standard enumeration. We use the notation xy to say that x is a prefix of y. The length of a string x{0,1} is denoted by |x|.

All languages (decision problems) in this paper are encoded as subsets of {0,1}. For a language A{0,1}, we define An=A{0,1}n and A=n=A{0,1}n.

The Cantor space of all infinite binary sequences is 𝖢. We routinely identify a language A{0,1} with the element of Cantor space that is A’s characteristic sequence according to the standard enumeration of binary strings. In this way, each complexity class is identified with a subset of Cantor space. We write An for the n-bit prefix of the characteristic sequence of A, and A[n] for the nth-bit of its characteristic sequence. We use log for the base 2 logarithm.

Our definitions of most complexity classes are standard. For any function s:, 𝖲𝖨𝖹𝖤(s(n)) is the class of all languages A where for all sufficiently large n, A=n can be decided by a circuit with no more than s(n) gates. We write 𝖲𝖨𝖹𝖤𝗂.𝗈.(s(n)) for the class of all A where A=n has an s(n)-size circuit for infinitely many n.

Lutz used martingales to define resource-bounded measure [50] and dimension [52]. We review the basic definitions. More background is available in the survey papers [51, 62, 54, 33, 3, 56].

Definition 2.1 (Martingale).

A martingale is a function d:{0,1}[0,) such that for all w{0,1},

d(w)=d(w0)+d(w1)2.

If we relax the equality to an inequality () in the above equation, we call d a supermartingale.

Definition 2.2 (Martingale Success).

Let d be a supermartingale or martingale.

  1. 1.

    We say d succeeds on a sequence A𝖢 if lim supnd(An)=.

  2. 2.

    The success set S[d] is the class of sequences that d succeeds on.

  3. 3.

    The unitary success set of d is the set S1[d]={A𝖢(n)d(An)1}.

  4. 4.

    For s>0, we say d s-succeeds on A if (n)d(Sn)2(1s)n.

  5. 5.

    We say d 0-succeeds on A if d s-succeeds on A for all s>0.

In the following definition Δ can be any of the time or space resource bounds including 𝖯, 𝖯2=𝖰𝖯, 𝖯𝖲𝖯𝖠𝖢𝖤 considered by Lutz [50] and their relativizations including Δ2𝖯=𝖯𝖭𝖯, Δ3𝖯=𝖯Σ2𝖯 [60, 35].

Definition 2.3 (Resource-Bounded Measure and Dimension).

Let Δ be a resource bound and let X𝖢.

  1. 1.

    X has Δ-measure 0, and we write μΔ(X)=0, if there is a Δ-computable martingale d with XS[d].

  2. 2.

    X has Δ-measure 1, and we write μΔ(X)=1, if μΔ(Xc)=0, where Xc is the complement of X within 𝖢.

  3. 3.

    The Δ-dimension of X is

    𝖽𝗂𝗆Δ(X)=inf{sΔ-martingale d that s-succeeds on all of X}.

We note that for all of the classical resource bounds, martingales and supermartingales are equivalent [4].

Valiant introduced #𝖯 in the seminal paper for counting complexity [76].

Definition 2.4 (#𝖯 [76]).

Let M be a polynomial-time probabilistic Turing machine that accepts or rejects on each computation path. The #𝖯 function computed by M is defined as

f(x)=number of accepting computation paths of M on input x

for all x{0,1}.

Köbler, Schöning, and Toran [41] introduced 𝖲𝗉𝖺𝗇𝖯 as an extension of #𝖯.

Definition 2.5 (𝖲𝗉𝖺𝗇𝖯 [41]).

Let M be a polynomial-time probabilistic Turing machine that on each computation path either outputs a string or outputs nothing. The 𝖲𝗉𝖺𝗇𝖯 function computed by M is defined as

f(x)=number of distinct strings output by M on input x

for all x{0,1}.

Every #𝖯 function is also a 𝖲𝗉𝖺𝗇𝖯 function. Köbler et al. [41] showed that #𝖯=𝖲𝗉𝖺𝗇𝖯 if and only if 𝖴𝖯=𝖭𝖯. They also extended Stockmeyer’s approximate counting [73] of #𝖯 functions in polynomial-time with a Σ2𝖯 oracle to 𝖲𝗉𝖺𝗇𝖯.

Theorem 2.6 (Köbler, Schöning, and Toran [41]).

Let f𝖲𝗉𝖺𝗇𝖯. Then there is a function gΔ3𝖯 such that for all n, for all x{0,1}n, (11/n)g(x)f(x)(1+1/n)g(x).

Shaltiel and Umans [70] showed that under a derandomization assumption, #𝖯 functions can be approximated by a deterministic polynomial-time algorithm with nonadaptive access to an 𝖭𝖯 oracle. Hitchcock and Vinodchandran [35] noted this extends to 𝖲𝗉𝖺𝗇𝖯 functions.

Derandomization Hypothesis 2.7.

𝖤𝖭𝖯 requires exponential-size SV-nondeterministic circuits.

We refer to [70] for the details of Derandomization Hypothesis 2.7, including equivalent hypotheses. We note that Derandomization Hypothesis 2.7 is true under more familiar hypotheses like 𝖭𝖯 does not have 𝖯-measure 0 [35] or 𝖤 requires exponential-size 𝖭𝖯-oracle circuits.

Theorem 2.8 ([70, 35]).

If Derandomization Hypothesis 2.7 is true, then for any function f𝖲𝗉𝖺𝗇𝖯, there is a function g computable in polynomial time with nonadaptive access to an 𝖭𝖯 oracle such that for all n, for all x{0,1}n, g(x)f(x)g(x)(1+1/n).

Fenner, Fortnow, and Kurtz [18] and Li [45] introduced the class 𝖦𝖺𝗉𝖯.

Definition 2.9 (𝖦𝖺𝗉𝖯 [18, 45]).

Let M be a polynomial-time probabilistic Turing machine that accepts or rejects on each computation path. The 𝖦𝖺𝗉𝖯 function computed by M is defined as

f(x) = number of accepting computation paths of M on input x
number of rejecting computation paths of M on input x

for all x{0,1}.

Equivalently, 𝖦𝖺𝗉𝖯 is the closure of #𝖯 under subtraction [18]. Note that every #𝖯 function is also a 𝖦𝖺𝗉𝖯 function and 𝖯#𝖯=𝖯𝖦𝖺𝗉𝖯.

3 Counting Martingales

In this section, we define Counting Martingales and use them to define Counting Measures and Dimensions. We then work out their foundations including union lemmas, Borel-Cantelli lemmas, and measure conversation that will be used in later sections.

3.1 Counting Martingales Definitions

We define Counting Martingales as martingales that are the ratio of a counting function from #𝖯, 𝖲𝗉𝖺𝗇𝖯, or 𝖦𝖺𝗉𝖯 and a polynomial-time function that is always a power of 2. We consider both approximately computable and exactly computable martingales.

Definition 3.1 (Counting Martingales).

Let Δ{#𝖯,𝖲𝗉𝖺𝗇𝖯,𝖦𝖺𝗉𝖯} be a counting resource bound.

  1. 1.

    A Δ-martingale is a martingale d(w) where there exist fΔ and g𝖥𝖯 with g(w,r) being a power of 2 for all w{0,1}, such that for all w{0,1} and r,

    |d(w)f(w,r)g(w,r)|2r.

    Here r is encoded in unary.

  2. 2.

    An exact Δ-martingale is a martingale d(w)=f(w)g(w), where fΔ, g𝖥𝖯, and g(w) is a power of 2 for all w{0,1}.

3.2 Counting Measures and Dimensions Definitions

Analogous to the original definitions of resource-bounded measure [50], we use counting martingales to define counting measures.

Definition 3.2 (Counting Measure Zero).

Let Δ{#𝖯,𝖲𝗉𝖺𝗇𝖯,𝖦𝖺𝗉𝖯} be a counting resource bound. A class X𝖢 has Δ-measure 0, written μΔ(X)=0, if there is a Δ-martingale d with XS[d].

Definition 3.3 (Counting Random Sequences).

Let Δ{#𝖯,𝖲𝗉𝖺𝗇𝖯,𝖦𝖺𝗉𝖯} be a counting resource bound. A sequence S𝖢 is Δ-random if {S} does not have Δ-measure 0.

Equivalently, S is Δ-random if no Δ-martingale succeeds on S. We similarly extend the definitions of resource-bounded dimension [52] using stricter notions of martingale success.

Definition 3.4 (Counting Dimensions).

Let Δ{#𝖯,𝖲𝗉𝖺𝗇𝖯,𝖦𝖺𝗉𝖯} be a counting resource bound. The Δ-dimension of X is

𝖽𝗂𝗆Δ(X)=inf{sΔ-martingale d that s-succeeds on all of X}.

We remark that Counting Strong Dimensions 𝖣𝗂𝗆Δ may also be defined using the notion of s-strong success [7], but they will not be used in this paper.

Proposition 3.5.

For all X𝖢,

μ𝖯(X)=0μ#𝖯(X)=0μ𝖦𝖺𝗉𝖯(X)=0μ𝖲𝗉𝖺𝗇𝖯(X)=0μ𝖯𝖲𝖯𝖠𝖢𝖤(X)=0μ(X)=0.

and

0𝖽𝗂𝗆𝖧(X)𝖽𝗂𝗆𝖯𝖲𝖯𝖠𝖢𝖤(X)𝖽𝗂𝗆𝖦𝖺𝗉𝖯(X)𝖽𝗂𝗆𝖲𝗉𝖺𝗇𝖯(X)𝖽𝗂𝗆#𝖯(X)𝖽𝗂𝗆𝖯(X)1.

Proof.

By the Exact Computation Lemma [37], the outputs of a 𝖯-martingale may be expressed as dyadic rationals of the form n2m. It is easy to see that the numerator is computed by a #𝖯 function. The polynomial-time PTM associated with the #𝖯 function takes input s and witness w, if w encodes a number with no leading zeros less than or equal to n, the TM accepts. This implies that every 𝖯-martingale can be converted into a #𝖯-martingale. The other relationships follow by complexity class containments.

3.3 Basic Properties of Counting Martingales

We first note that counting martingales are closed under finite sums, which implies finite unions of counting measure 0 sets have counting measure 0.

Lemma 3.6.

Let Δ{#𝖯,𝖲𝗉𝖺𝗇𝖯,𝖦𝖺𝗉𝖯} be a counting resource bound. Exact Δ-martingales are closed under finite sums.

Proof of Lemma 3.6.

Let d1=f1g1 and d2=f2g2 be exact Δ-martingales. We have

d1(w)+d2(w)=f1(w)g2(w)+f2(w)g1(w)g1(w)g2(w).

The numerator is a Δ-function by closure properties of Δ and the denominator is an 𝖥𝖯 function that is always a power of 2.

We can be more efficient because the denominators are powers of 2. Suppose g2(w)g1(w). Then g1(w)g2(w) is a power of 2. Therefore

d1(w)+d2(w)=f1(w)+f2(w)g1(w)g2(w)g1(w).

The case g1(w)<g2(w) is analogous.

Corollary 3.7.

Let Δ{#𝖯,𝖲𝗉𝖺𝗇𝖯,𝖦𝖺𝗉𝖯} be a counting resource bound and let X,Y𝖢.

  1. 1.

    If μΔ(X)=0 and μΔ(Y)=0, then μΔ(XY)=0.

  2. 2.

    𝖽𝗂𝗆Δ(XY)=max{𝖽𝗂𝗆Δ(X),𝖽𝗂𝗆Δ(Y)}.

Lutz showed that uniform countable unions of Δ-measure 0 sets have Δ-measure 0 for time and space resource bounds Δ. This was proved by summing martingales. We establish an analogue for a uniform family of exact counting martingales.

Definition 3.8 (Uniform Family of Exact Counting Martingales).

Let Δ{#𝖯,𝖲𝗉𝖺𝗇𝖯,𝖦𝖺𝗉𝖯} be a counting resource bound. We say that a family (dn=fngnn) of exact Δ-martingales is uniform if (fnn) is uniformly Δ-computable and (gnn) is uniformly 𝖥𝖯.

Definition 3.9 (𝖯-convergence).

A series n=0an of nonnegative real numbers an is 𝖯-convergent if there is a polynomial-time function m: with n=m(i)an2ifor all i. Such a function m is called a modulus of the convergence. A sequence k=0aj,k(j=0,1,2,) of series of nonnegative real numbers is uniformly Δ-convergent if there is a function m:2 such that mΔ and, for all j, mj is a modulus of the convergence of the series k=0aj,k.

Lemma 3.10 (Counting Martingale Summation Lemma).

Let Δ{#𝖯,𝖲𝗉𝖺𝗇𝖯,𝖦𝖺𝗉𝖯} be a counting resource bound. Suppose (dn=fngnn) is a uniform family of exact Δ-martingales with n=0dn(w) uniformly 𝖯-convergent for all w{0,1}. Then d(w)=n=0dn(w) is a Δ-martingale.

Proof of Lemma 3.10.

Let m(w,r) be the modulus of 𝖯-convergence for n=0dn(w).

Let w{0,1} and r. Define

t(w,r)=max(g1(w),,gm(w,r)(w))=𝗅𝖼𝗆(g1(w),,gm(w,r(w)).

Define

d^(w,r)=n=0m(w,r)dn(w).

Then

|d(w)d^(w,r)|=n=m(w,r)+1dn(w)2r.

We have

d^(w,r)=n=0m(w,r)fn(w)t(w,r)gn(w)t(w,r).

This is a ratio of a Δ function and an 𝖥𝖯 function that is a power of 2.

We now have our countable union lemmas.

Lemma 3.11 (Counting Measure Union Lemma).

Let Δ{#𝖯,𝖲𝗉𝖺𝗇𝖯,𝖦𝖺𝗉𝖯} be a counting resource bound. Suppose (dn=fngnn) is a uniform family of exact Δ-martingales with n=0dn(w) being 𝖯-convergent for all w{0,1}. Then n=0S[dn] has Δ-measure 0.

Proof.

This is immediate from Lemma 3.10.

Lemma 3.12 (Counting Dimension Union Lemma).

Let Δ{#𝖯,𝖲𝗉𝖺𝗇𝖯,𝖦𝖺𝗉𝖯} be a counting resource bound and let s>0. Suppose (dn=fngnn) is a uniform family of exact Δ-martingales with n=0dn(w) uniformly 𝖯-convergent for all w{0,1}. Suppose X0,X1, are classes where each dn s-succeeds on Xn. Then n=0S[dn] has Δ-dimension at most s.

Proof.

This is immediate from Lemma 3.10.

3.4 Borel-Cantelli Lemmas

Lutz [50] proved a resource-bounded Borel-Cantelli Lemma. We now present the counting measure version.

Lemma 3.13 (Counting Measure Borel-Cantelli Lemma).

Let Δ{#𝖯,𝖲𝗉𝖺𝗇𝖯,𝖦𝖺𝗉𝖯} be a counting resource bound. Suppose (dn=fngnn) is a uniform family of exact Δ-martingales with n=0dn(w) being uniformly Δ-convergent for all w{0,1}. Then

lim supnS1[dn]=i=0jiS1[dj]={S𝖢(n)SS1[dn]}

has Δ-measure 0.

Proof of Counting Measure Borel-Cantelli Lemma (Lemma 3.13).

By Lemma 3.10, the exact Δ-martingale family sums to Δ-martingale d. Then i=0jiS1[dj]S[d].

Analogusly, we extend Lutz’s Borel-Cantelli lemma for time- and space-bounded dimension [52].

Lemma 3.14 (Counting Dimension Borel-Cantelli Lemma).

Let Δ{#𝖯,𝖲𝗉𝖺𝗇𝖯,𝖦𝖺𝗉𝖯} be a counting resource bound and let s>0. Suppose (dn=fngnn) is a uniform family of exact Δ-martingales with dn(λ)2(s1)n. Then

lim supnS1[dn]=i=0jiS1[dj]={S𝖢(n)SS1[dn]}

has Δ-dimension at most s.

3.5 Measure Conservation

Lutz [50] defined a constructor to be a function δ:{0,1}{0,1} that properly extends its input string. The result R(δ) of constructor δ is the infinite sequence obtained by repeatedly applying δ to the empty string. For a resource bound Δ, the result class R(Δ) is R(Δ)={R(δ)δΔ}. Lutz’s Measure Conservation Theorem [50] showed that R(Δ) does not have Δ-measure 0 for the time and space resource bounds. Our counting measures do not fit into this framework. It is not clear what a #𝖯 constructor would be. The best measure conservation theorem we can prove using a constructor approach for counting measures is the following.

Theorem 3.15.
  1. 1.

    𝖤#𝖯 does not have #𝖯-measure 0.

  2. 2.

    𝖤𝖲𝗉𝖺𝗇𝖯 does not have 𝖲𝗉𝖺𝗇𝖯-measure 0.

  3. 3.

    𝖤#𝖯=𝖤𝖦𝖺𝗉𝖯 does not have 𝖦𝖺𝗉𝖯-measure 0.

Proof of Theorem 3.15.

Let d be a #𝖯 martingale. We recursively construct a language L𝖤#𝖯 that d does not succeed on. Let x be any length n string and w be the characteristic string for all the strings that lexicographically come before x. Now we specify the characteristic bit of x. The string x belongs to L if and only if d(w1)<d(w0). Since d(wb) can be computed by a call to a #𝖯 oracle and computing a polynomial time function on a length Θ(2n) string, we can decide any x in 𝖤#𝖯. Since d cannot grow on L𝖤#𝖯, it follows that 𝖤#𝖯 does not have #𝖯-measure 0. If d is a 𝖲𝗉𝖺𝗇𝖯 martingale, we can construct a language L𝖤𝖲𝗉𝖺𝗇𝖯. If d is a 𝖦𝖺𝗉𝖯 martingale, we can construct a language L𝖤𝖦𝖺𝗉𝖯=𝖤#𝖯.

In the proof of Theorem 3.15 the constructor we obtain from a #𝖯-martingale is computable in 𝖯#𝖯, resulting in the 𝖤#𝖯 upper bound. We will use approximate counting to improve this to the class Δ3𝖤=𝖤Σ2𝖯. By padding Toda’s theorem [75, 11], Δ3𝖤𝖤#𝖯. Under suitable derandomization assumptions, we get an improvement to Δ2𝖤=𝖤𝖭𝖯. The results in the remainder of this section hold not only for #𝖯 but for the larger class 𝖲𝗉𝖺𝗇𝖯. It is open whether 𝖦𝖺𝗉𝖯 can be approximately counted in the same way, so Theorem 3.15 is the best we have for 𝖦𝖺𝗉𝖯.

Lemma 3.16.
  1. 1.

    For every 𝖲𝗉𝖺𝗇𝖯-martingale d, there is a Δ3𝖯-supermartingale d and a γ>0 such that d(w)γd(w) for all w{0,1}.

  2. 2.

    If Derandomization Hypothesis 2.7 is true, then for every 𝖲𝗉𝖺𝗇𝖯-martingale d, there is a Δ2𝖯-supermartingale d and a γ>0 such that d(w)γd(w) for all w{0,1}.

Proof of Lemma 3.16.

Let d=fg be a 𝖲𝗉𝖺𝗇𝖯-martingale. Let hΔ3𝖯 be the approximation of f from Theorem 2.6.

For each n, let ϵn=1n and define a function dn by

dn(v)=h(v)g(v)(1ϵn1+ϵn)n

for all v{0,1}n and dn(v)=dn(vn) for all v with |v|>n. Then dn is Δ3𝖯 exactly computable. For v{0,1}<n, we have

(h(v0)g(v0)+h(v1)g(v1)) (f(v0)g(v0)+f(v1)g(v1))11ϵn
= (d(v0)+d(v1))11ϵn
= 2d(v)11ϵn
= 2f(v)g(v)11ϵn
2h(v)g(v)1+ϵn1ϵn.

Therefore

dn(v0)+dn(v1) = (h(v0)g(v0)+h(v1)g(v1))(1ϵn1+ϵn)n+1
2h(v)g(v)1+ϵn1ϵn(1ϵn1+ϵn)n+1
= 2h(v)g(v)(1ϵn1+ϵn)n
= 2dn(v),

for all v{0,1}<n, so dn is a supermartingale.

Let v{0,1}n. Since

(1ϵn1+ϵn)n=(12n+1)n1e2

as n, let γ(0,1e2). We have

dn(v)=d(v)(1ϵn1+ϵn)nγd(v).

when n is sufficiently large.

For part 2, under Derandomization Hypothesis 2.7, we obtain the approximation hΔ2𝖯 from Theorem 2.8 and follow the same proof.

The following two theorems and their corollaries are immediate from the previous lemma.

Theorem 3.17.

Let X𝖢

  1. 1.

    If μ𝖲𝗉𝖺𝗇𝖯(X)=0, then μΔ3𝖯(X)=0.

  2. 2.

    𝖽𝗂𝗆Δ3𝖯(X)𝖽𝗂𝗆𝖲𝗉𝖺𝗇𝖯(X).

Corollary 3.18.

Δ3𝖤 does not have 𝖲𝗉𝖺𝗇𝖯-measure 0.

Theorem 3.19.

Assume Derandomization Hypothesis 2.7. Let X𝖢.

  1. 1.

    If μ𝖲𝗉𝖺𝗇𝖯(X)=0, then μΔ2𝖯(X)=0.

  2. 2.

    For all X𝖢, 𝖽𝗂𝗆Δ2𝖯(X)𝖽𝗂𝗆𝖲𝗉𝖺𝗇𝖯(X).

Corollary 3.20.

If Derandomization Hypothesis 2.7 is true, then Δ2𝖤=𝖤𝖭𝖯 does not have 𝖲𝗉𝖺𝗇𝖯-measure 0.

4 Counting Martingale Constructions

In this section we present five techniques for constructing counting martingales: Cover Martingale, Conditional Expectation Martingale, Subset Martingale, Acceptance Probability Martingale, and Bi-immunity Martingale.

4.1 Cover Martingale Construction

The first construction uses a covering set A and defines the martingale using the conditional probability that an extension of the current string is in A.

Construction 4.1 (Cover Martingale).

Let A{0,1} and n0. Choose x uniformly at random from {0,1}n and let

dn(w)=𝖯𝗋[xA=nwx]

for all w{0,1}n, and for all w{0,1}>n, dn(w)=dn(wn). Then

dn(λ)=𝖯𝗋[xA=n],

and

dn(x)=1

for all xA=n. See Figure 1.1 for an example with n=4, where the green nodes are A=n.

Lemma 4.2.
  1. 1.

    If A𝖴𝖯, then Construction 4.1 produces a uniform family of exact #𝖯-martingales.

  2. 2.

    If A𝖭𝖯, then Construction 4.1 produces a uniform family of exact 𝖲𝗉𝖺𝗇𝖯-martingales.

  3. 3.

    If A𝖲𝖯𝖯, then Construction 4.1 produces a uniform family of exact 𝖦𝖺𝗉𝖯-martingales.

Proof of Lemma 4.2.

For w{0,1} and n0, define ext(w,n)={x{0,1}nwx} and extA(w,n)=Aext(w,n). Then

dn(w)=|extA(w,n)|2n|w| (1)

for all w{0,1}n. We have

dn(w0)+dn(w1) = |extA(w0,n)|2n|w0|+|extA(w1,n)|2n|w1|
= |extA(w,n)|2n(|w|+1)
= 2d(w),

for all w{0,1}<n and dn(w0)+dn(w1)=2dn(wn)=2dn(w) for all w{0,1}n, so dn is a martingale.

If A𝖴𝖯, then the numerator |extA(w,n)| in (1) is computed by the #𝖯 function M(0n,w) that guesses an extension xext(w,n), guess a witness v for x, and accepts if v is a valid witness for xA. Because A has unique witnesses, there is exactly one accepting computation path for each xext(w,n).

If A𝖭𝖯, then we compute the numerator |extA(w,n)| in (1) by the 𝖲𝗉𝖺𝗇𝖯 function M(0n,w) that guesses an extension xext(w,n), guesses a witness v for x, and prints x if v is a valid witness for xA.

If A𝖲𝖯𝖯, let M be a 𝖯𝖳𝖬 such that M(x) has gap 1 when xA and M(x) has gap 0 when xA. Consider the 𝖦𝖺𝗉𝖯 function N(0n,w) that guesses an extension xext(w,n) and runs M(x). If M(x) accepts, then N accepts. If M(x) rejects, then N rejects. The gap of N(0n,w) is |extA(w,n)|.

4.2 Conditional Expectation Martingale Construction

Here is a more general martingale construction using a counting function f(x) as a random variable and taking the conditional expectation of f given the current prefix w. This generalizes Construction 4.1 when f(x) is the indicator random variable for the membership of x in the cover A.

Construction 4.3 (Conditional Expectation Martingale).

Let f:{0,1} and view f(x) as a random variable where x is chosen uniformly from {0,1}n. Define

dn(w)=E[f(x)wx]

for all w{0,1}n, and for all w{0,1}>n, dn(w)=dn(wn). Then

dn(λ)=E[f(x)],

and

dn(x)=f(x)

for all x{0,1}n. See Figure 1.2 for an example with n=4. The green nodes are the x{0,1}n that have f(x)>0.

Lemma 4.4.
  1. 1.

    If f#𝖯, then Construction 4.3 produces a uniform family of exact #𝖯-martingales.

  2. 2.

    If f𝖲𝗉𝖺𝗇𝖯, then Construction 4.3 produces a uniform family of exact 𝖲𝗉𝖺𝗇𝖯-martingales.

  3. 3.

    If f𝖦𝖺𝗉𝖯, then Construction 4.3 produces a uniform family of exact 𝖦𝖺𝗉𝖯-martingales.

Proof of Lemma 4.4.

Let ext(w,n)={x{0,1}nwx}. Then

dn(w)=xext(w,n)f(x)2n|w| (2)

for all w{0,1}n. We have

dn(w0)+dn(w1) = xext(w0,n)f(x)2n|w0|+xext(w1,n)f(x)2n|w1|
= xext(w,n)f(x)2n(|w|+1)
= 2d(w),

for all w{0,1}<n and dn(w0)+dn(w1)=2dn(wn)=2dn(w) for all w{0,1}n, so dn is a martingale.

Suppose f#𝖯. We compute the numerator of dn(w) in (2) by the PTM M(0n,w) that guesses an extension xext(w,n) and then runs the #𝖯 algorithm for f on x. If f(x) accepts, then M accepts. If f(x) rejects, then M rejects.

Suppose f𝖲𝗉𝖺𝗇𝖯. We compute the numerator of dn(w) in (2) by the PTM N(0n,w) that guesses an extension xext(w,n) and then runs the 𝖲𝗉𝖺𝗇𝖯 algorithm for f on x. If f(x) has an output v, then N prints x,v.

Suppose f𝖦𝖺𝗉𝖯. We compute the numerator of dn(w) in (2) by the PTM G(0n,w) that guesses an extension xext(w,n) and then runs the 𝖦𝖺𝗉𝖯 algorithm for f on x. If f(x) accepts, then G accepts. If f(x) rejects, then G rejects.

4.3 Subset Martingale Construction

Next, we present a construction that builds upon Construction 4.1. For a language B{0,1}, the census function of B is defined by cB(n)=|B[s0,sn)| for all n0. For a string w{0,1}, let L(w)={siw[i]=1} be the language with characteristic string w.

Construction 4.5 (Subset Martingale).

Let B{0,1} and define the cover

A = {w{0,1}L(w)B}
= {w{0,1}(i<|w|)w[i]=1siB}.

Then apply Construction 4.1. We have |A=n|=2cB(n), so

dn(λ)=𝖯𝗋[xA=n]=2cB(n)n.

For all w{0,1}n,

dn(w)={1if L(w)B0otherwise.
Figure 4.1: Subset Martingale Construction (Construction 4.5).

See Figure 4.1 for an example with n=4 and B[s0,s3]={s1,s3}. The nodes w{0,1}4 that are colored green in the tree are those with L(w)B.

In the following lemma, 𝖴𝖤 is the exponential (2O(n) time) version of 𝖴𝖯, 𝖭𝖤 is the exponential version of 𝖭𝖯, and 𝖲𝖯𝖤 is the exponential version of 𝖲𝖯𝖯.

Lemma 4.6.
  1. 1.

    If B𝖴𝖤, then Construction 4.5 produces a uniform family of #𝖯-martingales.

  2. 2.

    If B𝖭𝖤, then Construction 4.5 produces a uniform family of 𝖲𝗉𝖺𝗇𝖯-martingales.

  3. 3.

    If B𝖲𝖯𝖤, then Construction 4.5 produces a uniform family of 𝖦𝖺𝗉𝖯-martingales.

Proof of Lemma 4.6.

If B𝖴𝖤, then we claim A𝖴𝖯. Given w{0,1}n, for each i<n, if w[i]=1, guess a witness for siB. If all witnesses are found, accept w. Because A has unique witnesses, B also has unique witnesses. Because the si’s have length logarithmic in the length of w, the total length of the witness for wB is at most |w|2O(log|w|)=|w|O(1). Therefore Construction 4.1 produces a uniform family of #𝖯-martingales.

The other two cases follow similarly.

Lemma 4.7.

Let B{0,1} and assume the series n=02cB(n)n is 𝖯-convergent.

  1. 1.

    If B𝖴𝖤, then the class of all infinite subsets of B has #𝖯-measure 0.

  2. 2.

    If B𝖭𝖤, then the class of all infinite subsets of B has 𝖲𝗉𝖺𝗇𝖯-measure 0.

  3. 3.

    If B𝖲𝖯𝖤, then the class of all infinite subsets of B has 𝖦𝖺𝗉𝖯-measure 0.

Proof.

Combine Lemma 4.7 and the Counting Measure Borel-Cantelli Lemma (Lemma 3.13).

Corollary 4.8.
  1. 1.

    Every #𝖯-random language is not in 𝖴𝖤.

  2. 2.

    Every 𝖲𝗉𝖺𝗇𝖯-random language is not in 𝖭𝖤.

  3. 3.

    Every 𝖦𝖺𝗉𝖯-random language is not in 𝖲𝖯𝖤.

Proof.

Let R be #𝖯-random. Since R is also 𝖯-random, it satisfies the law of large numbers [51] and cR(n)(12+ϵ)n for all sufficiently large n. The previous lemma applies to contradict the #𝖯-randomness of R. The proofs for 𝖲𝗉𝖺𝗇𝖯-random and 𝖦𝖺𝗉𝖯-random languages are analogous.

4.4 Acceptance Probability Construction

Determining the 𝖯-measure of 𝖡𝖯𝖯 is an open problem. Van Melkebeek [77] used the weak derandomization of 𝖡𝖯𝖯 from the uniform hardness assumption 𝖡𝖯𝖯𝖤𝖷𝖯 [36] to prove a zero-one law for the 𝖯-measure of 𝖡𝖯𝖯: either μ𝖯(𝖡𝖯𝖯)=0 or 𝖡𝖯𝖯=𝖤𝖷𝖯. Since 𝖡𝖯𝖯=𝖤𝖷𝖯 is equivalent to μ(𝖡𝖯𝖯𝖤𝖷𝖯)=1 [67], it follows that determining the 𝖯-measure of 𝖡𝖯𝖯 is equivalent to resolving the 𝖡𝖯𝖯 versus 𝖤𝖷𝖯 problem. However, in this section we will show that 𝖡𝖯𝖯 has #𝖯-measure 0. We will also show that 𝖡𝖰𝖯 has 𝖦𝖺𝗉𝖯-measure 0 by building on the work of Fortnow and Rogers [22, 23] that 𝖡𝖰𝖯𝖠𝖶𝖯𝖯. Both of these results will be proved using the following martingale construction that tracks acceptance probabilities of classical or quantum machines.

Construction 4.9 (Acceptance Probability Martingale).

Let f:{0,1}×{0,1} be a function such that for some function q(n) and all x{0,1},

f(x,0)+f(x,1)=2q(|x|).

For each w{0,1}, let n=|w| and define

M(w)=i=0n12f(si,w[i])=2ni=0n1f(si,w[i]),
N(w)=i=0n12q(|si|)=2i=0n1q(|si|),

and

d(w)=M(w)N(w)=2ni=0n1f(si,w[i])2q(|si|).

Then d is a martingale with d(λ)=1.

Figure 4.2: Acceptance Probability Martingale Construction (Construction 4.9).

See Figure 4.2 for an example with n=4, A[s0,s3]={s1,s3}, and correctness probability 34. The green path highlights the prefix 0101 of the characertistic sequence of A.

For example, the function f in Construction 4.9 could be the #𝖯 function where f(x,0) is the number of rejecting paths and f(x,1) is the number of accepting paths in a 𝖯𝖳𝖬 Q on input x. Let q(n) be the random seed length of Q. Then

f(x,0)2q(|x|)=𝖯𝗋[Q rejects x]=𝖯𝗋[Q(x)=0],
f(x,1)2q(|x|)=𝖯𝗋[Q accepts x]=𝖯𝗋[Q(x)=1],

and

d(w)=2ni=0n1𝖯𝗋[Q(si)=w[i]].

In particular, if A𝖡𝖯𝖤=𝖡𝖯𝖳𝖨𝖬𝖤(2O(n)), then for some c1, there exists a 2cn-time 𝖯𝖳𝖬 Q that decides A with error probability at most 22n, where the random seed length is q(n)=2cn.

Lemma 4.10.

If A𝖡𝖯𝖤, then the martingale d produced by Construction 4.9 is a #𝖯-martingale that 0-succeeds on A.

Proof of Lemma 4.10.

Let t(n)=2cn and p(n)=2n. Then M(w) is #𝖯-computable with run time on the order of

i=0n1t(|si|)nt(|sn|)n2clogn=nc+1.

Similarly, N(w) is computable in O(nc+1) time. Therefore d is a #𝖯-martingale. Finally, we have

d(An)=M(An)N(An)=2ni=0n1𝖯𝗋[M(si)=A[i]]2ni=0n1(12p(|si|))

Using 1xex, we have d(An)=Ω(2n) because

2ni=0n1e2p(|si|)=2nei=0n12p(|si|)=Ω(2n)

The last line holds because

i=02p(|si|)=n=02n22n

converges. Therefore d 0-succeeds on A.

Analogously, one can handle 𝖡𝖰𝖤=𝖡𝖰𝖳𝖨𝖬𝖤(2O(n)) [5, 16] with 𝖦𝖺𝗉𝖯 functions. For this, we need the class 𝖠𝖶𝖯𝖯 that was introduced by Fenner, Fortnow, Kurtz, and Li [19]. The following definition is due to Fenner [20]. See [18, 22, 20] for more details.

Definition 4.11.

The class 𝖠𝖶𝖯𝖯 (almost-wide probabilistic polynomial-time) consists of the languages L such that for all polynomials r, there is a polynomial t and a 𝖦𝖺𝗉𝖯 function g such that, for all n, for all x{0,1}n,

  • if xL then 12r(n)g(x)2t(n)1,

  • if xL then 0g(x)2t(n)2r(n).

We define an exponential version 𝖠𝖶𝖯𝖤 by allowing g to be computable in time 2O(n) in the definition above. The class 𝖦𝖺𝗉𝖤 is defined just like 𝖦𝖺𝗉𝖯 but using 𝖯𝖳𝖬s that run in 2O(n) time.

Definition 4.12.

The class 𝖠𝖶𝖯𝖤 (almost-wide probabilistic exponential-time) consists of the languages L such that for all r(n)=2O(n), there is t(n)=2O(n) and a 𝖦𝖺𝗉𝖤 function g such that, for all n, for all x{0,1}n,

  • if xL then 12r(n)g(x)2t(n)1,

  • if xL then 0g(x)2t(n)2r(n).

Theorem 4.13.

If A𝖠𝖶𝖯𝖤, then Construction 4.9 is a 𝖦𝖺𝗉𝖯-martingale that 0-succeeds on A.

Proof of Theorem 4.13.

Assume A𝖠𝖶𝖯𝖤, pick r(n)=2n, and let t(n)=2cn, and g𝖦𝖺𝗉𝖤 be the corresponding functions from the definition of 𝖠𝖶𝖯𝖤 such that for all n and for all x{0,1}n,

  • if xA, then 12r(n)g(x)2t(n)1,

  • if xA, then 0g(x)2t(n)2r(n).

To adapt the acceptance probability construction, define f(x,0)=2t(n)g(x) and f(x,1)=g(x), and define

M(w)=i=0n12f(si,w[i])=2ni=0n1f(si,w[i])

An argument similar to the proof of Lemma 4.10 together with the closure properties of 𝖦𝖺𝗉𝖯 [18] shows that M computes a 𝖦𝖺𝗉𝖯 function. Also define

N(w)=i=0n12t(|wi|)

Now we have

d(An)=M(An)N(An)=2ni=0n1f(si,w[i])2t(|wi|)2ni=0n1(12r(|si|))

Using 1xex, this yields d(An)=Ω(2n) because

2ni=0n1e2r(|si|)=2nei=0n12r(|si|)=Ω(2n)

Therefore d 0-succeeds on A. A straightforward extension of Fortnow and Rogers’ proof that 𝖡𝖰𝖯𝖠𝖶𝖯𝖯 to exponential-time classes shows that 𝖡𝖰𝖤𝖠𝖶𝖯𝖤. Combining this with Theorem 4.13 gives us the following result.

Theorem 4.14.

If A𝖡𝖰𝖤, then there is a 𝖦𝖺𝗉𝖯-martingale that 0-succeeds on A.

Lutz [52] showed that 𝖣𝖳𝖨𝖬𝖤(2cn) has 𝖯-dimension 0 for all c1. Using the above results and the Counting Measure Union lemma 3.11, we can extend this result to 𝖡𝖯𝖳𝖨𝖬𝖤 and 𝖡𝖰𝖳𝖨𝖬𝖤 under #𝖯 and 𝖦𝖺𝗉𝖯 dimensions.

Corollary 4.15.

For all c1,

  1. 1.

    𝖡𝖯𝖳𝖨𝖬𝖤(2cn) has #𝖯-dimension 0.

  2. 2.

    𝖡𝖰𝖳𝖨𝖬𝖤(2cn) has 𝖦𝖺𝗉𝖯-dimension 0.

Corollary 4.16.
  1. 1.

    𝖡𝖯𝖯 has #𝖯-dimension 0.

  2. 2.

    𝖡𝖰𝖯 has 𝖦𝖺𝗉𝖯-dimension 0.

We have the following Corollary to this section as a companion to Corollary 4.8.

Corollary 4.17.
  1. 1.

    Every #𝖯-random oracle is not in 𝖡𝖯𝖤.

  2. 2.

    Every 𝖦𝖺𝗉𝖯-random oracle is not in 𝖡𝖰𝖤.

4.5 Bi-immunity Martingale Construction

Mayordomo [59] showed that 𝖯-random languages are 𝖤-bi-immune. We extend her construction to show that 𝖦𝖺𝗉𝖯-random languages are 𝖲𝖯𝖤-immune, where 𝖲𝖯𝖤 is the exponential analogue of 𝖲𝖯𝖯. The same construction also shows #𝖯-random languages are 𝖴𝖤𝖼𝗈𝖴𝖤-bi-immune and 𝖲𝗉𝖺𝗇𝖯-random languages are 𝖭𝖤𝖼𝗈𝖭𝖤-bi-immune.

Construction 4.18 (Bi-immunity Martingale).

Let A{0,1}. Define a martingale d by d(λ)=1 and for all w{0,1},

d(w1)={2d(w)if s|w|Ad(w)if s|w|A

and

d(w0)={0if s|w|Ad(w)if s|w|A.

For all w{0,1}, writing L(w)={siw[i]=1}, note we have

d(w)=2#1(An)

if AL(w) and d(w)=0 otherwise.

Figure 4.3: Bi-immunity Martingale Construction (Construction 4.18).

See Figure 4.3 for an example with n=4 and A[s0,s3]={s1,s3}. The nodes w{0,1}4 that are colored green in the tree are those with AL(w).

Mayordomo [59] showed that if A𝖤, then Construction 4.18 is a 𝖯-martingale and for any infinite language A, Construction 4.18 succeeds on all languages that contain A, as characterized by the set S[d]={BAB}.

Lemma 4.19.
  1. 1.

    If A𝖴𝖤𝖼𝗈𝖴𝖤, then Construction 4.18 is a #𝖯-martingale.

  2. 2.

    If A𝖭𝖤𝖼𝗈𝖭𝖤, then Construction 4.18 is a 𝖲𝗉𝖺𝗇𝖯-martingale.

  3. 3.

    If A𝖲𝖯𝖤, then Construction 4.18 is a 𝖦𝖺𝗉𝖯-martingale.

Proof of Lemma 4.19.

For parts 1 and 2, on input w, for each i<|w|, guess whether siA or siA and a witness that proves this. Note that the witnesses have total length 2O(n) which is polynomial in |w|. If witnesses are found for all si and prove that A|w|L(w), output d(w)=2|A|w||; otherwise output 0.

  • If A𝖴𝖤𝖼𝗈𝖴𝖤, then d is a 𝖴𝖯𝖲𝖵 function which can be implemented by a #𝖯 martingale.

  • If A𝖭𝖤𝖼𝗈𝖭𝖤, then d is a 𝖭𝖯𝖲𝖵 function which can be implemented by a 𝖲𝗉𝖺𝗇𝖯 martingale.

For part 3, let g𝖦𝖺𝗉𝖤 such that g(x)=1 if xA and g(x)=0 if xA. Define

f(w,1) = 1+g(s|w|)
f(w,0) = 1g(s|w|)

for all w{0,1}. Then f𝖦𝖺𝗉𝖯 and

d(wb)=2f(w,b)d(w)

for all w{0,1} and b{0,1}. Therefore

d(w)=2|w|i=0|w|1f(wi,w[i])

is a 𝖦𝖺𝗉𝖯 function.

Corollary 4.20.
  1. 1.

    Every #𝖯-random language is 𝖴𝖤𝖼𝗈𝖴𝖤-bi-immune.

  2. 2.

    Every 𝖲𝗉𝖺𝗇𝖯-random language is 𝖭𝖤𝖼𝗈𝖭𝖤-bi-immune.

  3. 3.

    Every 𝖦𝖺𝗉𝖯-random language is 𝖲𝖯𝖤-bi-immune.

Proof of Corollary 4.20.

Let R be 𝖦𝖺𝗉𝖯-random and let A𝖲𝖯𝖤. By the previous two lemmas, R is A-immune. Since 𝖲𝖯𝖤 is closed under complement, Rc is also A-immune. The other two parts are analogous. Since 𝖲𝖯𝖯 contains the counting classes 𝖴𝖯, 𝖥𝖾𝗐𝖯, and 𝖥𝖾𝗐, 𝖦𝖺𝗉𝖯-random languages are also immune to these classes.

5 Entropy Rates and Kolmogorov Complexity

We will use the Cover Martingale and Conditional Expectation Martingale Constructions (Constructions 4.1 and 4.3) to develop a few tools for working with counting measures and dimensions. First, we extend the entropy rates used by Hitchcock and Vinodchandran [35] to our setting. Then we extend Lutz’s results on Kolmogorov complexity and 𝖯𝖲𝖯𝖠𝖢𝖤-measure to counting measure.

5.1 Entropy Rates

We will show in this section that the Cover Martingale Construction (Construction 4.1) may be combined with the concept of entropy rates to build counting martingales.

Definition 5.1.

The entropy rate of a language A{0,1} is

HA=lim supnlog|A=n|n.

Intuitively, HA gives an asymptotic measurement of the amount by which every string in A=n is compressed in an optimal code [43]. The i.o.-class of A is

A𝗂.𝗈.={S𝖢(n)SnA}.

That is, A𝗂.𝗈. is the class of sequences that have infinitely many prefixes in A.

Definition 5.2 (Hitchcock and Vinodchandran [35]).

Let 𝒞 be a class of languages and X𝖢. The 𝒞-entropy rate of X is

𝒞(X)=inf{HAA𝒞 and XA𝗂.𝗈.}.

Informally, 𝒞(X) is the lowest entropy rate with which every element of X can be covered infinitely often by a language in 𝒞. We may also interpret 𝒞(X) as a notion of dimension. For all X𝖢, it is known that 𝖽𝗂𝗆𝖧(X)=𝖠𝖫𝖫(X), where 𝖠𝖫𝖫 is the class of all languages and 𝖽𝗂𝗆𝖧 is Hausdorff dimension (see [68, 72]). Hitchcock [30, 28] showed that using other classes gives equivalent definitions of the constructive dimension (𝖼𝖽𝗂𝗆(X)=𝖢𝖤(X)), computable dimension (𝖽𝗂𝗆𝖼𝗈𝗆𝗉(X)=𝖣𝖤𝖢(X)), and polynomial-space dimension (𝖽𝗂𝗆𝖯𝖲𝖯𝖠𝖢𝖤(X)=𝖯𝖲𝖯𝖠𝖢𝖤(X)). For time-bounded dimension, no analogous result is known. However, the following upper bound is true [30, 28]: for all X𝖢, 𝖯(X)𝖽𝗂𝗆𝖯(X).

The 𝖭𝖯-entropy rate is an upper bound for Δ3𝖯-dimension.

Theorem 5.3 (Hitchcock and Vinodchandran [35]).

For all X𝖢,

𝖽𝗂𝗆Δ3𝖯(X)𝖭𝖯(X).

We now show that the 𝖭𝖯-entropy rate upper bounds 𝖲𝗉𝖺𝗇𝖯-dimension. Analogously, the 𝖴𝖯-entropy rate upper bounds #𝖯-dimension and the 𝖲𝖯𝖯-entropy rate upper bounds 𝖦𝖺𝗉𝖯-dimension. The proof uses Construction 4.1 and Lemma 4.2.

Theorem 5.4.

For all X𝖢,

  1. 1.

    𝖽𝗂𝗆#𝖯(X)𝖴𝖯(X)𝖯(X)

  2. 2.

    𝖽𝗂𝗆𝖲𝗉𝖺𝗇𝖯(X)𝖭𝖯(X).

  3. 3.

    𝖽𝗂𝗆𝖦𝖺𝗉𝖯(X)𝖲𝖯𝖯(X).

Proof of Theorem 5.4.

We prove the second inequality, the proofs of the other inequalities are analogous.

Let α>𝖭𝖯(X) and ϵ>0 such that 2α and 2ϵ are rational. Let A𝖭𝖯 such that XA𝗂.𝗈. and HA<α. We can assume that |A=n|2αn for all n. It suffices to show that 𝖽𝗂𝗆𝖲𝗉𝖺𝗇𝖯(X)α+ϵ.

We use Construction 4.1 and Lemma 4.2 to obtain a uniform family (dnn0) of 𝖲𝗉𝖺𝗇𝖯 martingales with

dn(λ)=|A=n|2n2(α1)n

and dn(v)=1 for all vA=n. We now apply the Counting Dimension Borel-Cantelli Lemma (Lemma 3.14) to complete the proof.

We note that combining Theorems 5.4 and 3.17 gives a new proof of Theorem 5.3.

We will next extend Theorem 5.4 to the measure setting. First, we define an entropy rate version of measure 0. The idea in this definition is to extend the entropy rate 𝒞 to define a measure 𝒞.

Definition 5.5 (Entropy Rate Measure).

Let X𝖢 and let 𝒞 be a complexity class. If there exist A𝒞 and f𝖥𝖯 such that

  1. 1.

    XA𝗂.𝗈.,

  2. 2.

    log|A=n|<nf(n) for sufficiently large n, and

  3. 3.

    n=02f(n) is 𝖯-convergent,

then X has 𝒞-measure 0 and we write 𝒞(X)=0.

We observe that 𝒞-measure has many of the standard measure properties. When using 𝒞=𝖠𝖫𝖫, the class of all languages, it refines Lebesgue measure: if 𝖠𝖫𝖫(X)=0, then X has Lebesgue measure 0. Using 𝒞=𝖯𝖲𝖯𝖠𝖢𝖤, we have if 𝖯𝖲𝖯𝖠𝖢𝖤(X)=0, then μ𝖯𝖲𝖯𝖠𝖢𝖤(X)=0.

Proposition 5.6.

Let 𝒞,𝒟 be classes of languages and X,Y𝖢.

  1. 1.

    If 𝒞𝒟, 𝒞(X)=0 implies 𝒟(X)=0.

  2. 2.

    If XY, then 𝒞(Y)=0 implies 𝒞(X)=0.

  3. 3.

    If 𝒞 is closed under union, then 𝒞(X)=0 and 𝒞(Y)=0 implies 𝒞(XY)=0.

We now establish our measure-theoretic extension of Theorem 5.4. This proof also uses Construction 4.1 and Lemma 4.2.

Theorem 5.7.

Let X𝖢.

  1. 1.

    If 𝖴𝖯(X)=0, then μ#𝖯(X)=0.

  2. 2.

    If 𝖭𝖯(X)=0, then μ𝖲𝗉𝖺𝗇𝖯(X)=0.

  3. 3.

    If 𝖲𝖯𝖯(X)=0, then μ𝖦𝖺𝗉𝖯(X)=0.

Proof of Theorem 5.7.

Assume 𝖭𝖯(X)=0 and obtain the cover A𝖭𝖯 and the function f𝖥𝖯 satisfying the definition of 𝖭𝖯(X)=0. We use Construction 4.1 and Lemma 4.2 to obtain a uniform family of exact 𝖲𝗉𝖺𝗇𝖯 martingales (dnn0) with

dn(λ)=|A=n|2n2nf(n)2n=2f(n)

and dn(w)=1 for all wA=n. The Counting Measure Borel-Cantelli lemma (Lemma 3.13) completes the proof. The proofs of the other items are analogous.

5.2 Kolmogorov Complexity

Lutz [50] showed that the space-bounded Kolmogorov complexity class

{S(n)KSp(Sn)<nf(n)}

has 𝖯𝖲𝖯𝖠𝖢𝖤-measure 0 where p is a polynomial, and n=02f(n) is 𝖯-convergent. In other words, if S is 𝖯𝖲𝖯𝖠𝖢𝖤-random, then KSp(Sn)nf(n) a.e. For 𝖯-random sequences, Lutz proved that the time-bounded Kolmogorov complexity Kp(Sn)clogn a.e. for any polynomial p.

We use the Conditional Expectation Martingale Construction (Construction 4.3) to obtain an intermediate result for time-bounded Kolmogorov complexity and #𝖯-measure.

Theorem 5.8.

Suppose f𝖥𝖯 and the series n=02f(n) is 𝖯-convergent. Let p be a polynomial and

X={S(n)Kp(Sn)<nf(n)}.

Then X has #𝖯-measure 0.

Proof of Theorem 5.8.

For each n, let

Xn={x{0,1}nKp(x)<nf(n)}.

For w{0,1}n, let

dn(w)=𝖯𝗋(Xnw)=|{xXnwx}|2n|w|.

This martingale satisfies

dn(λ)|Xn|2n2nf(n)2n=2f(n)

and dn(x)=1 for all xXn. However, dn does not appear to be a #𝖯 martingale because its numerator is a 𝖲𝗉𝖺𝗇𝖯 function. We will upper bound the 𝖲𝗉𝖺𝗇𝖯-martingale dn by another martingale dn that is #𝖯-computable and still satisfies dn(λ)2f(n).

Let U be a universal Turing machine and define

C={0n,w,x,π|w{0,1}n,x{0,1}n,π{0,1}<nf(n),wx, and U(π)=x in p(n) time}.

Then C𝖯, so the function

g(0n,w)=|{x,π|x{0,1}n,π{0,1}<nf(n),wxand U(π)=x in p(n) time}|.

is in #𝖯. We use Construction 4.3. Define the #𝖯-martingale

dn(w)=g(0n,w)2n|w|

for all w{0,1}n and dn(y)=dn(yn) for y{0,1}>n. Notice that g(0n,w)2nf(n), so dn(λ)2f(n). Also, dn(x)dn(x) for all x{0,1}. If xXn, then

g(0n,x)=|{π|x{0,1}n,π{0,1}<nf(n),and U(π)=x in p(n) time}|1.

and dn(x)1=dn(x). Therefore XnS1[dn]. Also, (dnn) is exactly and uniformly #𝖯-computable by Lemma 4.4. We apply the Counting Measure Borel-Cantelli Lemma (Lemma 3.13) to conclude that

Xi=0jiS1[dn]

has #𝖯-measure 0.

Corollary 5.9.

Suppose f𝖥𝖯 and the series n=02f(n) is 𝖯-convergent. If S is #𝖯-random, then Kp(Sn)nf(n) a.e.

The following Theorem is a variation of Theorem 5.8 which will be used in Section 6.

Theorem 5.10.

Suppose f𝖥𝖯 and the series n=02f(n) is 𝖯-convergent. Let p be a polynomial and

X={A(n)Kp(A=n)<2nf(2n)}.

Then X has #𝖯-measure 0.

Proof of Theorem 5.10.

If Kp(A=n)<2nf(2n) then we have

Kp(An) Kp(A<n)+Kp(A=n)+O(n)
2n+2nf(2n)+O(n)
= 2n+1f(2n)+O(n)

It follows from Theorem 5.8 that X has #𝖯-measure 0.

For any t,s:, define the class

𝒦t(s(n))={S𝖢(n)Kt(Sn)s(n)}.
Theorem 5.11.

For all s[0,1] and polynomials p, 𝒦p(sn) has #𝖯-dimension s.

Proof of Theorem 5.11.

For each n, let

Xn={x{0,1}nKp(x)s|x|}.

Then use Construction 4.3 as in the proof of Theorem 5.8 to obtain a #𝖯-martingale dn for each n where dn(x)2(1s)n for all xXn. We then apply the Counting Dimension Borel-Cantelli Lemma (Lemma 3.14). This shows 𝖽𝗂𝗆#𝖯(𝒦P(sn))s. The lower bound that the dimension is at least s follows from previous work on Kolmogorov complexity and dimension [53, 61].

6 Applications

This section contains our main applications. We start with classical circuit complexity, then move on to quantum circuit complexity, and lastly the density of hard sets.

6.1 Classical Circuit Complexity

Lutz [50] showed that for all α<1, the class

Xα=𝖲𝖨𝖹𝖤𝗂.𝗈.(2nn(1+αlognn))

has 𝖯𝖲𝖯𝖠𝖢𝖤-measure 0. Additionally, Lutz showed that for any c1 and k1, the classes 𝖯/cn and 𝖲𝖨𝖹𝖤(nk) have polynomial-time measure 0 and quasipolynomial-time measure 0, respectively. Mayordomo [60] used Stockmeyer’s approximate counting of #𝖯 functions [73] to show that 𝖯/𝗉𝗈𝗅𝗒 has measure 0 in the third level of the exponential hierarchy.

We begin by extending Lutz’s result to 𝖭𝖯-measure, in order to improve the theorem to 𝖲𝗉𝖺𝗇𝖯-measure. The proof uses the Minimum Circuit Size Problem (𝖬𝖢𝖲𝖯) [39] to form a cover. In 𝖬𝖢𝖲𝖯, we are given the full 2n-length truth-table of a Boolean function f:{0,1}n{0,1} and a number s1 and asked to decide whether there is a circuit of size at most s computing f. The 𝖬𝖢𝖲𝖯 problem is in 𝖭𝖯 and not known to be 𝖭𝖯-complete [39, 65, 34]. The 𝖬𝖢𝖲𝖯 problem fits perfectly into the 𝖭𝖯 framework to help improve Lutz’s result.

Theorem 6.1.

For all α<1,

𝖲𝖨𝖹𝖤𝗂.𝗈.(2nn(1+αlognn))

has 𝖭𝖯-measure 0.

Proof of Theorem 6.1.

Let s(n)=2nn(1+αlognn) where α<1 and let X=𝖲𝖨𝖹𝖤𝗂.𝗈.(s(n)).

Define

A = {Bn|B=n,s(n)𝖬𝖢𝖲𝖯}
= {Bn|B=n has a circuit of size at most s(n)}.

Then A𝖭𝖯, XA𝗂.𝗈., and we need to show that log|A=N|<Nf(N), where N=2n+11, for some f𝖥𝖯 such that n=02f(n) is 𝖯-convergent. Using the bound in [50], we will have:

log|A=N| < m=0n12m+log(48es(n))s(n)
= 2n1+s(n)(log(48e)+log(s(n)))
= 2n1+2nn(1+αlognn)(log(48e)+nlogn+log(1+αlognn))
< 2n1+2nn(n+αlognlogn+6)
< 2n+112nn(1α2)logn
= N2nn(1α2)logn.

As a result,

f(N) = (1α2)2nnlogn
= (1α2)N+12(log(N+1)1)log(log(N+1)1).

It is easy to see that f𝖥𝖯 and n=02f(n) is 𝖯-convergent.

Corollary 6.2.

For all α<1, 𝖲𝖨𝖹𝖤𝗂.𝗈.(2nn(1+αlognn)) has 𝖲𝗉𝖺𝗇𝖯-measure 0.

Proof.

This is immediate from Theorem 6.1 and Theorem 5.7.

Corollary 6.3.

For all α<1, 𝖲𝖨𝖹𝖤𝗂.𝗈.(2nn(1+αlognn)) has Δ3𝖯-measure 0 and measure 0 in Δ3𝖤.

Proof.

This is immediate from Corollary 6.2 and Theorem 3.17.

Under a derandomization hypothesis, Corollary 6.3 improves by one level in the exponential hierarchy to Δ2𝖤=𝖤𝖭𝖯. This yields a stronger lower bound than other conditional approaches for obtaining lower bounds in 𝖤𝖭𝖯 [1, 8].

Corollary 6.4.

If Derandomization Hypothesis 2.7 is true, then 𝖲𝖨𝖹𝖤𝗂.𝗈.(2nn(1+αlognn)) has Δ2𝖯-measure 0 and measure 0 in Δ2𝖤.

Proof.

This is immediate from Corollary 6.2 and Theorem 3.19.

Lutz [52] showed that for all α[0,1], the class

𝒟α=𝖲𝖨𝖹𝖤(α2nn)

has 𝖯𝖲𝖯𝖠𝖢𝖤-dimension α. Hitchcock and Vinodchandran [35] showed that 𝖭𝖯(𝒟α)=α, yielding the improvement that 𝒟α has Δ3𝖯-dimension α. It is immediate from these and Theorem 5.4 that 𝒟α has 𝖲𝗉𝖺𝗇𝖯-dimension α. We can improve this to #𝖯-dimension by using a Kolmogorov complexity argument.

Theorem 6.5.

For all α<1, 𝖽𝗂𝗆#𝖯(𝖲𝖨𝖹𝖤(α2nn))=α.

Proof of Theorem 6.5.

Let Xα=(𝖲𝖨𝖹𝖤(α2nn)) and let BXα. For all sufficiently large n, B=n,s𝖬𝖢𝖲𝖯 for s=α2nn. Let C be a circuit of size s on n inputs. Frandsen and Miltersen [24] showed that there exists a stack program of size at most (s+1)(c+log(n+s)) that constructs C. Let γ>β>α be arbitrarily close rationals. Let p(n)=n3 and q(n)=n4. For all n larger than some n0,

Kp(2n)(B=n) (s+1)(c+log(n+s))+O(logn)
(α2nn+1)(c+log(α2nn+n))+O(logn)
(β2nn)(c+log(β2nn))
(β2nn)(c+logβ+nlogn)
(β2nn)n
β2n.

Let N=2n+11. We have

Kq(N)(Bn) k=n0nKp(2k)(B=k)+O(n)
βN+O(n)
γN,

so

Kq(N)(BN)Nγ

for all sufficiently large N of the form 2n+11. Therefore Xα𝒦q(γn) and 𝖽𝗂𝗆#𝖯(Xα)𝖽𝗂𝗆#𝖯(𝒦q(γn))=γ by Theorem 5.11. The dimension lower bound holds because 𝖽𝗂𝗆#𝖯(Xα)𝖽𝗂𝗆𝖧(Xα)=α [52]. The theorem follows because α and γ are arbitrarily close.

Corollary 6.6.

𝖯/𝗉𝗈𝗅𝗒 has #𝖯-dimension 0.

Regarding infinitely-often classes, Hitchcock and Vinodchadran [35] showed that the class 𝖲𝖨𝖹𝖤𝗂.𝗈.(α2nn) has 𝖭𝖯-entropy rate and Δ3𝖯-dimension 1+α2. This extends to #𝖯-dimension, with a proof similar to Theorem 6.5.

Theorem 6.7.

For all α<1, 𝖽𝗂𝗆#𝖯(𝖲𝖨𝖹𝖤𝗂.𝗈.(α2nn))=1+α2.

Li [46], building on work of Korten [42] and Chen, Hirahara, and Ren [14], showed that the symmetric exponential-time class 𝖲2𝖤 requires exponential-size circuits.

Theorem 6.8 (Li [46]).

𝖲2𝖤𝖲𝖨𝖹𝖤𝗂.𝗈.(2nn).

Using Lutz’s counting argument [50] as in the proof of Theorem 6.1, we improve this lower-bound to 𝖲𝖨𝖹𝖤𝗂.𝗈.(2nn(1+αlognn)) for any α<1.

Theorem 6.9.

For all α<1, 𝖲2𝖤𝖲𝖨𝖹𝖤𝗂.𝗈.(2nn(1+αlognn)).

Proof of Theorem 6.9.

Li [46] showed there is a single-valued 𝖥𝖲2𝖯 function that given any polynomial-size circuit C:{0,1}n{0,1}n+1 outputs a nonimage of C. Li applies this algorithm to the truth-table generator circuit 𝖳𝖳n,s for s=2nn and uses its 2n-length output to define as the characteristic string of the 𝖲2𝖤 language at length n. We observe that this proof works with s=2nn(1+αlognn) by Lutz’s counting argument [50].

6.2 Quantum Circuit Complexity

Recent work has also studied circuit-size complexity within quantum models. For instance, Basu and Parida [9] showed that the number of distinct Boolean functions on n variables that can be computed by quantum circuits of size at most c2nn is bounded by 22n1, where 0c1 is a constant that depends only on the maximum number of inputs of the gates. They proved this bound in a general setting in which the set of quantum gates is uncountably infinite. Using universal gate sets with constant fan-in, Chia et al. [15, 16] showed that the fraction of Boolean functions on n variables that require quantum circuits of size at least 2n(c+1)n is at least 122nc+1. We extend these quantum circuit-size bounds to a counting dimension result. In the following result, the 𝖡𝖰𝖲𝖨𝖹𝖤 class is independent of the choice of gate set because of the o(2nn) size bound.

Theorem 6.10.

𝖽𝗂𝗆𝖦𝖺𝗉𝖯(𝖡𝖰𝖲𝖨𝖹𝖤(o(2nn)))=0.

Proof of Theorem 6.10.

We will use the Acceptance Probability Construction (Construction 4.9) technique to construct a 𝖦𝖺𝗉𝖯-martingale for each small quantum circuit. Let s(n)=o(2nn) and let C be a quantum circuit of size at most s(n). Let dC be a martingale that on input x{0,1}2n+11, if |x|2n, runs the Acceptance Probability Construction with circuit C starting from bit 2n on x. If |x|<2n, dC(x)=1. Note that dC(λ)=1 and dC is a 𝖦𝖺𝗉𝖯 martingale. By the analysis in Section 4.4, for x{0,1}2n+11, if the last 2n bits of x have a small circuit, then dC(x)=Ω(22n). Let γ>0 be a universal constant so that dC(x)γ22n for all sufficiently long x{0,1} where this is the case.

Define gn on input x{0,1}2n+11 to guess an extension w{0,1}2n+11 with xw and guess a quantum circuit C of size at most s(n). Then gn computes dC(w). Thus,

gn(x)=C,𝗌𝗂𝗓𝖾(C)s(n)dC(x).

By [16], there are 2o(2n) quantum circuits of size s(n). Let 0<δ<ϵ be arbitrarily small dyadic rationals. For sufficiently large n, there are at most 2δ2n quantum circuits of size s(n). Define hn(x) to be 2ϵ2n. Then

dn(x)=gn(x)hn(x)

is a 𝖦𝖺𝗉𝖯 martingale. We have

dn(λ)2δ2n2ϵ2n=2(δϵ)2n.

This makes n=0dn(λ) is 𝖯-convergent because ϵ>δ. The dn are uniformly 𝖦𝖺𝗉𝖯 martingales. Let

d=n=0dn.

By the summation lemma (Lemma 3.10), d is a 𝖦𝖺𝗉𝖯 martingale.

Suppose that A𝖡𝖰𝖲𝖨𝖹𝖤(o(2nn)). Then

d(An)dn(An)γ22n2ϵ2n=γ2(1ϵ)2n

for all sufficiently large n. Therefore d ϵ-succeeds on A for ϵ>ϵ. This implies 𝖡𝖰𝖲𝖨𝖹𝖤(o(2nn)) has 𝖦𝖺𝗉𝖯-dimension at most ϵ. Since ϵ>ϵ is arbitrarily small, the class has 𝖦𝖺𝗉𝖯-dimension 0.

Corollary 6.11.

𝖡𝖰𝖯/𝗉𝗈𝗅𝗒 has 𝖦𝖺𝗉𝖯-dimension 0.

Lutz [52] showed that 𝖲𝖨𝖹𝖤(α2nn) has 𝖯𝖲𝖯𝖠𝖢𝖤-dimension α and we improved this to #𝖯-dimension in Theorem 6.5. It remains open whether a similar result holds for quantum circuits in either 𝖯𝖲𝖯𝖠𝖢𝖤-dimension or 𝖦𝖺𝗉𝖯-dimension (or even Hausdorff dimension). Achieving this would refine the current dimension zero statement into an exact dimension classification for small quantum circuits, but it would apparently depend on the choice of universal quantum gate set. Another interesting direction is determining the measure or dimension of 𝖡𝖰𝖯/𝗊𝗉𝗈𝗅𝗒. While we know 𝖡𝖰𝖯/𝗉𝗈𝗅𝗒 has 𝖦𝖺𝗉𝖯-dimension 0, extending this to quantum advice remains open.

6.3 Density of Hard Sets

Investigations of the density of hard sets for complexity classes began with motivation from the Berman-Hartmanis Isomorphism Conjecture [10]. A language S is sparse if |Sn|p(n) for some polynomial p and all n. A language S is dense if |Sn|>2nϵ for some ϵ>0 and almost all n. Let 𝖲𝖯𝖠𝖱𝖲𝖤 be the class of all sparse languages and 𝖣𝖤𝖭𝖲𝖤 be the class of all dense languages. Meyer [63] showed that every hard set for 𝖤 is dense. A problem is in 𝖯/𝗉𝗈𝗅𝗒 if and only if it is in 𝖯𝖳(𝖲𝖯𝖠𝖱𝖲𝖤) [10, 40]. A line of subsequent work strengthened these results in multiple directions [58, 79, 66, 13, 55, 25, 57, 31, 26, 12]. The current best result for 𝖤 is that 𝖯nα𝖳(𝖣𝖤𝖭𝖲𝖤c) has 𝖯-dimension 0 and 𝖯o(n/logn)(𝖲𝖯𝖠𝖱𝖲𝖤) has 𝖯-dimension 0, implying every hard language for 𝖤 is dense under these reductions [31]. Wilson [80] showed that there is an oracle relative to which 𝖤 has sparse hard sets under O(n)-truth-table reductions. We now show that counting measure can handle polynomial-time Turing reductions to nondense sets, even if they are computed by 𝖯/𝗉𝗈𝗅𝗒 circuits. Note that the following corollary extends Corollary 6.6.

Corollary 6.12.

The class (𝖯/𝗉𝗈𝗅𝗒)𝖳(𝖣𝖤𝖭𝖲𝖤c) of problems that 𝖯/𝗉𝗈𝗅𝗒-Turing reduce to nondense sets has #𝖯-dimension 0.

Proof of Corollary 6.12.

Let A(𝖯/𝗉𝗈𝗅𝗒)𝖳(𝖣𝖤𝖭𝖲𝖤c) be in the class. Composing the reduction with a lookup table for the nondense set shows that for all ϵ>0 and infinitely many n, the polynomial-time bounded Kolmogorov of An is at most 2nϵ. We then apply Theorem 5.11.

Corollary 6.13.

Every problem that is 𝖯/𝗉𝗈𝗅𝗒-Turing hard for Δ3𝖤 is dense.

Proof.

This follows from Corollary 6.12, Proposition 3.5, and Corollary 3.18.

7 Conclusion

We have introduced #𝖯, 𝖦𝖺𝗉𝖯, and 𝖲𝗉𝖺𝗇𝖯 counting measures and dimensions. These are intermediate in power between polynomial-time measure and dimension and polynomial-space measure and dimension. We have shown that counting measures and dimensions are useful for classes where the space-bounded measure or dimension is known but the time-bounded measure or dimension is not known. This is the primary way to use counting measures and dimensions and we expect more results in this form.

  1. 1.

    If μ𝖯𝖲𝖯𝖠𝖢𝖤(X)=0 and μ𝖯(X) is unknown, investigate the counting measures μ#𝖯(X), μ𝖲𝗉𝖺𝗇𝖯(X), and μ𝖦𝖺𝗉𝖯(X).

  2. 2.

    If 𝖽𝗂𝗆𝖯𝖲𝖯𝖠𝖢𝖤(X)=α is known and 𝖽𝗂𝗆𝖯(X) is unknown, investigate the counting dimensions 𝖽𝗂𝗆#𝖯(X), 𝖽𝗂𝗆𝖲𝗉𝖺𝗇𝖯(X), and 𝖽𝗂𝗆𝖦𝖺𝗉𝖯(X).

We strengthened Lutz’s 𝖯𝖲𝖯𝖠𝖢𝖤-measure result by showing that the class of languages with circuit size 2nn(1+αlognn) has 𝖲𝗉𝖺𝗇𝖯-measure zero for all α<1. This improvement utilizes the Minimum Circuit Size Problem (𝖬𝖢𝖲𝖯) to bridge the gap between 𝖯𝖲𝖯𝖠𝖢𝖤-measure and 𝖲𝗉𝖺𝗇𝖯-measure. As a consequence, we showed that this measure-theoretic circuit size lower bound holds in the third level of the exponential-time hierarchy, Δ3𝖤=𝖤Σ2𝖯. Previously this was only known to hold in the exponential-space class 𝖤𝖲𝖯𝖠𝖢𝖤. We also noted that recent work [46] on exponential circuit lower bounds for the symmetric alternation class S2𝖤 extends to this tighter 2nn(1+αlognn) bound. Under derandomization assumptions, our results further improve to the second level, Δ2𝖤=𝖤𝖭𝖯. We showed the class of problems with o(2nn)-size quantum circuits has 𝖦𝖺𝗉𝖯-dimension 0. This is the first work in resource-bounded measure to address quantum complexity. Our results on circuit-size complexity are summarized in Figure 1.3.

Arvind and Köbler [6] showed that for each 𝒞{𝖯,𝖯𝖯}, μ𝖯(𝒞)0 implies 𝖯𝖧𝒞. Hitchcock [29] showed that if 𝖲𝖯𝖯 does not have 𝖯-measure 0, then 𝖯𝖧𝖲𝖯𝖯. All of these classes have 𝖯𝖲𝖯𝖠𝖢𝖤-measure 0 and their 𝖯-measures are unknown, so the above paradigm applies: What are the counting measures and dimensions of counting complexity classes including 𝖯𝖯, 𝖯, and 𝖲𝖯𝖯? In particular, we know that 𝖦𝖺𝗉𝖯-random languages are not in 𝖲𝖯𝖯. Does 𝖲𝖯𝖯 has 𝖦𝖺𝗉𝖯-measure 0? Also, what is the smallest class that does not have 𝖦𝖺𝗉𝖯 measure 0?

References

  • [1] S. Aaronson, B. Aydinlioglu, H. Buhrman, J. Hitchcock, and D. van Melkebeek. A note on exponential circuit lower bounds from derandomizing Arthur-Merlin games. Technical Report TR10-174, Electronic Colloquium on Computational Complexity, 2010.
  • [2] E. Allender and R. Rubinstein. P-printable sets. SIAM Journal on Computing, 17:1193–1202, 1988. doi:10.1137/0217075.
  • [3] K. Ambos-Spies and E. Mayordomo. Resource-bounded measure and randomness. In A. Sorbi, editor, Complexity, Logic and Recursion Theory, Lecture Notes in Pure and Applied Mathematics, pages 1–47. Marcel Dekker, New York, N.Y., 1997. doi:10.1201/9780429187490-1.
  • [4] K. Ambos-Spies, H.-C. Neis, and S. A. Terwijn. Genericity and measure for exponential time. Theoretical Computer Science, 168(1):3–19, 1996. doi:10.1016/0304-3975(96)89424-2.
  • [5] Srinivasan Arunachalam, Alex B. Grilo, Tom Gur, Igor C. Oliveira, and Aarthi Sundaram. Quantum learning algorithms imply circuit lower bounds. In 62nd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2021, Denver, CO, USA, February 7-10, 2022, pages 562–573. IEEE, 2021. doi:10.1109/FOCS52979.2021.00062.
  • [6] V. Arvind and J. Köbler. On pseudorandomness and resource-bounded measure. Theoretical Computer Science, 255(1–2):205–221, 2001. doi:10.1016/s0304-3975(99)00164-4.
  • [7] K. B. Athreya, J. M. Hitchcock, J. H. Lutz, and E. Mayordomo. Effective strong dimension in algorithmic information and computational complexity. SIAM Journal on Computing, 37(3):671–705, 2007. doi:10.1137/s0097539703446912.
  • [8] B. Aydinlioglu, D. Gutfreund, J. M. Hitchcock, and A. Kawachi. Derandomizing Arthur-Merlin games and approximate counting implies exponential-size lower bounds. Computational Complexity, 20(2):329–366, 2011. doi:10.1007/s00037-011-0010-8.
  • [9] Saugata Basu and Laxmi Parida. Quantum analog of Shannon’s lower bound theorem. Technical Report 2308.13091, arXiv, 2023. doi:10.48550/arXiv.2308.13091.
  • [10] L. Berman and J. Hartmanis. On isomorphism and density of NP and other complete sets. SIAM Journal on Computing, 6(2):305–322, 1977. doi:10.1137/0206023.
  • [11] R. V. Book. Tally languages and complexity classes. Information and Control, 26:186–193, 1974. doi:10.1016/s0019-9958(74)90473-2.
  • [12] H. Buhrman, L. Fortnow, J. M. Hitchcock, and B. Loff. Learning reductions to sparse sets. In Proceedings of the 38th International Symposium on Mathematical Foundations of Computer Science, pages 243–253. Springer-Verlag, 2013. doi:10.1007/978-3-642-40313-2_23.
  • [13] H. Buhrman and S. Homer. Superpolynomial circuits, almost sparse oracles and the exponential hierarchy. In Proceedings of the 12th Conference on Foundations of Software Technology and Theoretical Computer Science, pages 116–127. Springer, 1992. doi:10.1007/3-540-56287-7_99.
  • [14] Lijie Chen, Shuichi Hirahara, and Hanlin Ren. Symmetric exponential time requires near-maximum circuit size. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, STOC 2024, pages 1990–1999, New York, NY, USA, 2024. Association for Computing Machinery. doi:10.1145/3618260.3649624.
  • [15] Nai-Hui Chia, Chi-Ning Chou, Jiayu Zhang, and Ruizhe Zhang. Quantum meets the minimum circuit size problem. Technical Report 2108.03171, arXiv, 2021. arXiv:2108.03171.
  • [16] Nai-Hui Chia, Chi-Ning Chou, Jiayu Zhang, and Ruizhe Zhang. Quantum Meets the Minimum Circuit Size Problem. In Mark Braverman, editor, 13th Innovations in Theoretical Computer Science Conference (ITCS 2022), volume 215 of Leibniz International Proceedings in Informatics (LIPIcs), pages 47:1–47:16, Dagstuhl, Germany, 2022. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ITCS.2022.47.
  • [17] R. Downey and D. Hirschfeldt. Algorithmic Randomness and Complexity. Springer-Verlag, 2010. doi:10.1007/978-0-387-68441-3.
  • [18] S. A. Fenner, L. Fortnow, and S. A. Kurtz. Gap-definable counting classes. Journal of Computer and System Sciences, 48(1):116–148, 1994. doi:10.1016/s0022-0000(05)80024-8.
  • [19] Stephen Fenner, Lance Fortnow, Stuart A Kurtz, and Lide Li. An oracle builder’s toolkit. Information and Computation, 182(2):95–136, 2003. doi:10.1016/S0890-5401(03)00018-X.
  • [20] Stephen A. Fenner. PP-lowness and a simple definition of AWPP. Theory of Computing Systems, 36(3):199–212, 2003. doi:10.1007/s00224-002-1089-8.
  • [21] L. Fortnow. Counting complexity. In L. A. Hemaspaandra and A. L. Selman, editors, Complexity Theory Retrospective II, pages 81–107. Springer-Verlag, 1997. doi:10.1007/978-1-4612-1872-2_4.
  • [22] L. Fortnow and J. Rogers. Complexity limitations on quantum computation. Journal of Computer and System Sciences, 59(2):240–252, 1999. doi:10.1006/jcss.1999.1651.
  • [23] Lance Fortnow. One complexity theorist’s view of quantum computing. Theoretical Computer Science, 292(3):597–610, 2003. doi:10.1016/S0304-3975(01)00377-2.
  • [24] Gudmund Skovbjerg Frandsen and Peter Bro Miltersen. Reviewing bounds on the circuit size of the hardest functions. Information Processing Letters, 95(2):354–357, 2005. doi:10.1016/j.ipl.2005.03.009.
  • [25] B. Fu. With quasilinear queries EXP is not polynomial time Turing reducible to sparse sets. SIAM Journal on Computing, 24(5):1082–1090, 1995. doi:10.1137/s0097539792237188.
  • [26] Ryan C. Harkins and John M. Hitchcock. Dimension, halfspaces, and the density of hard sets. Theory of Computing Systems, 49(3):601–614, 2011. doi:10.1007/S00224-010-9288-1.
  • [27] F. Hausdorff. Dimension und äußeres Maß. Mathematische Annalen, 79:157–179, 1919. doi:10.1007/BF01457179.
  • [28] J. M. Hitchcock. Effective Fractal Dimension: Foundations and Applications. PhD thesis, Iowa State University, 2003. URL: https://www.proquest.com/dissertations-theses/effective-fractal-dimension-foundations/docview/305335849/se-2.
  • [29] J. M. Hitchcock. The size of SPP. Theoretical Computer Science, 320(2–3):495–503, 2004. doi:10.1016/s0304-3975(04)00128-8.
  • [30] J. M. Hitchcock. Correspondence principles for effective dimensions. Theory of Computing Systems, 38(5):559–571, 2005. doi:10.1007/s00224-004-1122-1.
  • [31] J. M. Hitchcock. Online learning and resource-bounded dimension: Winnow yields new lower bounds for hard sets. SIAM Journal on Computing, 36(6):1696–1708, 2007. doi:10.1137/050647517.
  • [32] J. M. Hitchcock, M. López-Valdés, and E. Mayordomo. Scaled dimension and the Kolmogorov complexity of Turing-hard sets. Theory of Computing Systems, 43(3-4):471–497, 2008. doi:10.1007/s00224-007-9013-x.
  • [33] J. M. Hitchcock, J. H. Lutz, and E. Mayordomo. The fractal geometry of complexity classes. SIGACT News, 36(3):24–38, September 2005. doi:10.1145/1086649.1086662.
  • [34] J. M. Hitchcock and A. Pavan. On the NP-completeness of the minimum circuit size problem. In Proceedings of the 35th IARCS Conference on Foundations of Software Technology and Theoretical Computer Science, pages 236–245. Leibniz International Proceedings in Informatics, 2015. doi:10.4230/LIPICS.FSTTCS.2015.236.
  • [35] J. M. Hitchcock and N. V. Vinodchandran. Dimension, entropy rates, and compression. Journal of Computer and System Sciences, 72(4):760–782, 2006. doi:10.1016/j.jcss.2005.10.002.
  • [36] R. Impagliazzo and A. Wigderson. Randomness vs. time: Derandomization under a uniform assumption. Journal of Computer and System Sciences, 63:672–688, 2001. doi:10.1006/jcss.2001.1780.
  • [37] D. W. Juedes and J. H. Lutz. Weak completeness in E and E2. Theoretical Computer Science, 143(1):149–158, 1995. doi:10.1016/0304-3975(95)80030-D.
  • [38] D. W. Juedes and J. H. Lutz. Completeness and weak completeness under polynomial-size circuits. Information and Computation, 125(1):13–31, 1996. doi:10.1006/inco.1996.0017.
  • [39] V. Kabanets and J.-Y. Cai. Circuit minimization problem. In Proceedings of the 32nd Annual ACM Symposium on Theory of Computing, pages 73–79. ACM, 2000. doi:10.1145/335305.335314.
  • [40] R. M. Karp and R. J. Lipton. Turing machines that take advice. L’Enseignement Mathématique, 28:191–201, 1982. doi:10.5169/seals-52237.
  • [41] J. Köbler, U. Schöning, and J. Toran. On counting and approximation. Acta Informatica, 26(4):363–379, 1989. doi:10.1007/BF00276023.
  • [42] Oliver Korten. The hardest explicit construction. In 2021 IEEE 62nd Annual Symposium on Foundations of Computer Science (FOCS), pages 433–444. IEEE, 2022. doi:10.1109/FOCS52979.2021.00051.
  • [43] W. Kuich. On the entropy of context-free languages. Information and Control, 16:173–200, 1970. doi:10.1016/s0019-9958(70)90105-1.
  • [44] Henri Lebesgue. Intégrale, longueur, aire. Annali di Matematica Pura ed Applicata, 7(1):231–359, 1902. doi:10.1007/BF02420592.
  • [45] Lide Li. On the counting functions. PhD thesis, University of Chicago, 1993. URL: https://www.proquest.com/dissertations-theses/on-counting-functions/docview/304080357/se-2.
  • [46] Zeyong Li. Symmetric exponential time requires near-maximum circuit size: Simplified, truly uniform. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, STOC 2024, pages 2000–2007, New York, NY, USA, 2024. Association for Computing Machinery. doi:10.1145/3618260.3649615.
  • [47] O. B. Lupanov. On the synthesis of contact networks. Doklady Akademii Nauk SSSR, 119(1):23–26, 1958.
  • [48] J. H. Lutz. Resource-Bounded Category and Measure in Exponential Complexity Classes. PhD thesis, California Institute of Technology, 1987. doi:10.7907/qny92-v6h14.
  • [49] J. H. Lutz. Category and measure in complexity classes. SIAM Journal on Computing, 19(6):1100–1131, 1990. doi:10.1137/0219076.
  • [50] J. H. Lutz. Almost everywhere high nonuniform complexity. Journal of Computer and System Sciences, 44(2):220–258, 1992. doi:10.1016/0022-0000(92)90020-j.
  • [51] J. H. Lutz. The quantitative structure of exponential time. In L. A. Hemaspaandra and A. L. Selman, editors, Complexity Theory Retrospective II, pages 225–254. Springer-Verlag, 1997. doi:10.1007/978-1-4612-1872-2_10.
  • [52] J. H. Lutz. Dimension in complexity classes. SIAM Journal on Computing, 32(5):1236–1259, 2003. doi:10.1137/S0097539701417723.
  • [53] J. H. Lutz. The dimensions of individual strings and sequences. Information and Computation, 187(1):49–79, 2003. doi:10.1016/S0890-5401(03)00187-1.
  • [54] J. H. Lutz. Effective fractal dimensions. Mathematical Logic Quarterly, 51(1):62–72, 2005. doi:10.1002/malq.200310127.
  • [55] J. H. Lutz and E. Mayordomo. Measure, stochasticity, and the density of hard languages. SIAM Journal on Computing, 23(4):762–779, 1994. doi:10.1137/s0097539792237498.
  • [56] J. H. Lutz and E. Mayordomo. Twelve problems in resource-bounded measure. In G. Păun, G. Rozenberg, and A. Salomaa, editors, Current Trends in Theoretical Computer Science: Entering the 21st Century, pages 83–101. World Scientific Publishing, 2001. doi:10.1142/9789812810403_0001.
  • [57] J. H. Lutz and Y. Zhao. The density of weakly complete problems under adaptive reductions. SIAM Journal on Computing, 30(4):1197–1210, 2000. doi:10.1137/s0097539797321547.
  • [58] S. R. Mahaney. Sparse complete sets for NP: Solution of a conjecture of Berman and Hartmanis. Journal of Computer and System Sciences, 25(2):130–143, 1982. doi:10.1016/0022-0000(82)90002-2.
  • [59] E. Mayordomo. Almost every set in exponential time is P-bi-immune. Theoretical Computer Science, 136(2):487–506, 1994. doi:10.1016/0304-3975(94)00023-c.
  • [60] E. Mayordomo. Contributions to the study of resource-bounded measure. PhD thesis, Universitat Politècnica de Catalunya, 1994. URL: https://eccc.weizmann.ac.il/static/books/Contributions_to_the_Study_of_Resource_Bounded_Measure/.
  • [61] E. Mayordomo. A Kolmogorov complexity characterization of constructive Hausdorff dimension. Information Processing Letters, 84(1):1–3, 2002. doi:10.1016/S0020-0190(02)00343-5.
  • [62] E. Mayordomo. Effective Hausdorff dimension. In B. Löwe, B. Piwinger, and T. Räsch, editors, Classical and New Paradigms of Computation and their Complexity Hierarchies, volume 23 of Trends in Logic, pages 171–186. Kluwer Academic Press, 2004. doi:10.1007/978-1-4020-2776-5_10.
  • [63] A. R. Meyer, 1977. Private communication reported in [10], L. Berman and J. Hartmanis. On isomorphism and density of NP and other complete sets. SIAM Journal on Computing, 6(2):305–322, 1977. doi:10.1137/0206023.
  • [64] P. B. Miltersen, N. V. Vinodchandran, and O. Watanabe. Superpolynomial versus subexponential circuit size in the exponential hierarchy. In Proceedings of the Fifth Annual International Computing and Combinatorics Conference, pages 210–220, 1999. doi:10.1007/3-540-48686-0_21.
  • [65] Cody D. Murray and R. Ryan Williams. On the (non) NP-hardness of computing circuit complexity. Theory of Computing, 13(4):1–22, 2017. doi:10.4086/toc.2017.v013a004.
  • [66] M. Ogiwara and O. Watanabe. On polynomial-time bounded truth-table reducibility of NP sets to sparse sets. SIAM Journal on Computing, 20(3):471–483, 1991. doi:10.1137/0220030.
  • [67] K. W. Regan, D. Sivakumar, and J. Cai. Pseudorandom generators, measure theory, and natural proofs. In Proceedings of the 36th Symposium on Foundations of Computer Science, pages 26–35. IEEE Computer Society, 1995. doi:10.1109/SFCS.1995.492459.
  • [68] C. A. Rogers. Hausdorff Measures. Cambridge University Press, 1998. Originally published in 1970.
  • [69] Uwe Schöning. The power of counting. In Alan L. Selman, editor, Complexity Theory Retrospective, pages 204–223. Springer, 1990. doi:10.1007/978-1-4612-4478-3_9.
  • [70] R. Shaltiel and C. Umans. Pseudorandomness for approximate counting and sampling. In Proceedings of the 20th IEEE Conference on Computational Complexity, pages 212–226. IEEE Computer Society, 2005. doi:10.1007/s00037-007-0218-9.
  • [71] C. E. Shannon. The synthesis of two-terminal switching circuits. Bell System Technical Journal, 28(1):59–98, 1949. doi:10.1002/j.1538-7305.1949.tb03624.x.
  • [72] L. Staiger. Recursive automata on infinite words. In Proceedings of the 10th Annual Symposium on Theoretical Aspects of Computer Science, pages 629–639. Springer-Verlag, 1993. doi:10.1007/3-540-56503-5_62.
  • [73] L. J. Stockmeyer. On approximation algorithms for #P. SIAM Journal on Computing, 14:849–861, 1985. doi:10.1137/0214060.
  • [74] Donald M. Stull. Resource bounded randomness and its applications. In Johanna N. Y. Franklin and Christopher P. Porter, editors, Algorithmic Randomness: Progress and Prospects, volume 50 of Lecture Notes in Logic, pages 301–348. Cambridge University Press, Cambridge, 2020. doi:10.1017/9781108781718.010.
  • [75] Seinosuke Toda. PP is as hard as the polynomial-time hierarchy. SIAM Journal on Computing, 20(5):865–877, 1991. doi:10.1137/0220053.
  • [76] Leslie G Valiant. The complexity of computing the permanent. Theoretical Computer Science, 8(2):189–201, 1979. doi:10.1016/0304-3975(79)90044-6.
  • [77] D. van Melkebeek. The zero-one law holds for BPP. Theoretical Computer Science, 244(1–2):283–288, 2000. doi:10.1016/s0304-3975(00)00191-2.
  • [78] J. Ville. Étude Critique de la Notion de Collectif. Gauthier–Villars, Paris, 1939.
  • [79] O. Watanabe. Polynomial time reducibility to a set of small density. In Proceedings of the Second Structure in Complexity Theory Conference, pages 138–146. IEEE Computer Society, 1987. doi:10.1109/PSCT.1987.10319263.
  • [80] C. B. Wilson. Relativized circuit complexity. Journal of Computer and System Sciences, 31(2):169–181, 1985. doi:10.1016/0022-0000(85)90040-6.