Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

1.4 Computability Theory

1.4.1 Computability by Machines

We briefly review the necessary components of computability theory for discussing algorithmic randomness. In this dissertation, we accept Turing’s model of computation as the “right” way to characterize algorithmic or effective procedures. According to the Church-Turing thesis, the subsets of the natural numbers or functions from natural numbers to natural numbers which are “intuitively algorithmic” are exactly those which may be computed by Turing machines. See Downey & Hirschfeldt (2010) for more on the formalism of Turing machines.

To begin, we will consider partial functions of the form Φ:⊆ω→ω\Phi : \subseteq \omega \to \omega. If dom⁡(Φ)=ω\operatorname{dom}(\Phi) = \omega, call Φ\Phi total. Each Turing machine MM computes a partial function ΦM:⊆ω→ω\Phi_M : \subseteq \omega \to \omega satisfying n∈dom⁡(ΦM)  ⟺  M(n)↓n \in \operatorname{dom}(\Phi_M) \iff M(n) \downarrow, and n∈dom⁡(ΦM)n \in \operatorname{dom}(\Phi_M) implies M(n)↓=ΦM(n)M(n) \downarrow= \Phi_M(n). All such ΦM\Phi_M are called partial computable (p.c.) functions. Moreover, whenever A=dom⁡ΦMA = \operatorname{dom}\Phi_M is the domain of a Turing machine MM, then MM is said to computably enumerate AA, making AA computably enumerable (c.e.). If both AA and its complement ω∖A\omega \setminus A are c.e., then AA is called computable.

Proposition 2.2.2 of Downey & Hirschfeldt (2010) helps to motivate the name “computably enumerable.” It states that AA is c.e. if and only if either AA is empty or there is a total computable function Φ\Phi from ω\omega onto AA. That is, the non-empty c.e. sets are exactly those enumerated in some order by a Turing machine.

By the Enumeration Theorem (see Theorem 2.1.2 of Downey & Hirschfeldt (2010)), there exists a single algorithm to enumerate all partial computable functions (Φe)e∈ω(\Phi_e)_{e \in \omega}. Thus, there exists a universal partial computable function ff of two variables such that f(e,n)=Φe(n)f(e, n) = \Phi_e(n) for all e,n∈ωe, n \in \omega (note that they could both diverge). Let U\mathbf{U} be a Turing machine computing ff, which is called a universal Turing machine.

A similar result holds for oracle machines or Turing functionals (see Reimann & Slaman, 2015 and Downey & Hirschfeldt, 2010 for more details). Intuitively, oracle machines are Turing machines which receive and may make use of the extra information encoded in some oracle. An oracle machine MM given oracle B∈2≤ωB \in 2^{\leq \omega} is said to compute a BB-partial computable function ΦMB:⊆ω→ω\Phi^B_M : \subseteq \omega \to \omega as before. Similarly, there is a single oracle machine (also called U\mathbf{U}) which, given an oracle B∈2≤ωB \in 2^{\leq \omega}, will enumerate all BB-partial computable functions (ΦeB)e∈ω(\Phi^B_e)_{e \in \omega}.

If there is an oracle machine MM that computes the set A⊆ωA \subseteq \omega given an oracle BB, then AA is said to be Turing reducible to BB, or BB-computable. This is denoted by A≤T⁡BA \leq_{\operatorname{T}} B. Similarly, a set AA is computably enumerable in BB (or, BB-c.e.) whenever A=dom⁡ΦA = \operatorname{dom} \Phi for some BB-partial computable function Φ\Phi. Relativization is the process of generalizing notions or results from Turing machines to oracle machines given arbitrary oracle-power. Most results we cite from computability theory may be relativized appropriately.

In later sections, we will also make use of lower- or upper-semicomputability. A real number x∈Rx \in \mathbb{R} is lower-semicomputable (or left-c.e.) if its Dedekind left cut {q∈Q:q<x}\set{q \in \mathbb{Q}}{q < x} is c.e. Similarly, a real-valued map f:ω→Rf: \omega \to \mathbb{R} is lower-semicomputable if its lower graph {(n,q)∈ω×Q:q<f(n)}\set{(n, q) \in \omega \times \mathbb{Q}}{q < f(n)} is c.e. If f:ω→[a,∞)f : \omega \to [a, \infty) has a known, computable codomain which is bounded from below, we may equivalently characterize lower-semicomputability by the ability to be approximated from below by some computable left-approximator. That is, suppose there exists a computable map f^:ω×ω→[a,b]\widehat{f} : \omega \times \omega \to [a, b] satisfying:

f^(i,r)≤f^(i,r+1)≤f(i),andlim⁡r→∞f^(i,r)=f(i),\begin{aligned} \widehat{f}(i, r) \leq \widehat{f}(i, r + 1) \leq f(i), \quad \text{and} \quad \lim_{r \to \infty} \widehat{f}(i, r) = f(i), \end{aligned}

for all i,r∈ωi, r \in \omega. Then, it is straightforward to argue that the lower graph of ff is computably enumerable. Conversely, from an enumeration of the lower graph of ff, one may define such a left-approximator f^\widehat{f} to ff: for a given i∈ωi \in \omega, one may approximate f(i)f(i) as the largest rational qq such that (i,q)(i, q) has been enumerated into the lower graph of ff. If no such rational has yet been approximated, we may take f^(i,r)=a\widehat{f}(i, r) = a. Analogous definitions work for upper-semicomputability.

The definitions above are given for either subsets of the natural numbers or functions on the natural numbers, but they may be extended to the other standard collections of finitary objects discussed in Section 1.2 via a computable bijection.

1.4.2 Computable Analysis

Now, let us import some notions from computable analysis as presented in Ko & Friedman (1982). For the rest of this section, fix the ambient dimensions m,n∈ωm, n \in \omega and an oracle machine MM.

Fix a map ϕ:ω→Dm\phi : \omega \to \mathbb{D}^m from the natural numbers to dyadic rationals in Rm\mathbb{R}^m satisfying ϕ(r)∈Drm\phi(r) \in \mathbb{D}^m_r for all r∈ωr \in \omega. Then, ϕ\phi is said to be a Cauchy representation of x∈Rmx \in \mathbb{R}^m if ∣ϕ(r)−x∣≤2−r\abs{\phi(r) - x} \leq 2^{-r} for all r∈ωr \in \omega. If ϕ\phi is a Cauchy representation of xx further satisfying ϕ(r)≤x<ϕ(r)+2−r\phi(r) \leq x < \phi(r) + 2^{-r} for all r∈ωr \in \omega, then ϕ\phi is said to be a standard Cauchy representation for xx. Such a ϕ\phi can compute the binary expansion of xx having no infinite tail of ones. For any ϕ:ω→Dm\phi: \omega \to \mathbb{D}^m, we will denote by MϕM^\phi the partial map computed by MM given ϕ\phi encoded as an infinite binary string for its oracle. And MxM^x will denote the partial map computed by MϕM^\phi, where ϕ\phi is some standard Cauchy representation of xx.

MM is said to compute a real function f:Rm→Rnf: \mathbb{R}^m \to \mathbb{R}^n if ϕ\phi being a Cauchy representation for some x∈dom⁡(f)x \in \dom(f) implies MϕM^\phi is a Cauchy representation of f(x)f(x).

Now, fix a metric space (Ω,d)(\Omega, d). Two subsets XX and YY of Ω\Omega are said to be ε\varepsilon-close for ε>0\varepsilon > 0 if for each x∈Xx \in X, there exists y∈Yy \in Y such that d(x,y)<εd(x, y) < \varepsilon, and vice versa. The Hausdorff distance between XX and YY is then defined:

dH⁡(X,Y)=inf⁡{ε>0:X is ε-close to Y}.\begin{aligned} d_{\operatorname{H}}(X, Y) = \inf \set{\varepsilon > 0}{\text{$X$ is $\varepsilon$-close to $Y$}}. \end{aligned}

We may now recall the effective versions of certain metric spaces as presented in Iljazović & Kihara (2021).

The triple Ω=(Ω,d,α)\mathbf{\Omega} = (\Omega, d, \alpha) is a computable metric space if α=(αi)i∈ω\alpha = (\alpha_i)_{i \in \omega} is a dense sequence in (Ω,d)(\Omega, d) for which the function mapping (i,j)↦d(αi,αj)(i, j) \mapsto d(\alpha_i, \alpha_j) is computable.

Take Ω=(Ω,d,α)\mathbf{\Omega} = (\Omega, d, \alpha) to be a computable metric space. If dd happens to be a complete metric, call Ω\mathbf{\Omega} a computable Polish space. Any subset X⊆ΩX \subseteq \Omega of a computable metric space is called computably compact if either X=∅X = \emptyset or there exists a computable map f:ω→ωf : \omega \to \omega such that for each k∈ωk \in \omega,

dH⁡(X,Λf(k))<2−k,\begin{aligned} d_{\operatorname{H}}(X, \Lambda_{f(k)}) < 2^{-k}, \end{aligned}

where Λe\Lambda_e is the ee-th collection enumerated in a standard, computable enumeration of all finite sub-collections of α\alpha. Then, the computable metric space Ω\mathbf{\Omega} is called effectively compact if Ω\Omega is computably compact in Ω\mathbf{\Omega}.

1.4.3 Lightface Hierarchies

Kleene’s arithmetic hierarchy assigns definability-complexity levels to subsets of the natural numbers. Any set A⊆ωA \subseteq \omega is a Σn0\Sigma^0_n-set if there is a computable relation RR on n+1n + 1 arguments such that

a∈A  ⟺  ∃x1∀x2⋯QxnR(x1,...,xn,a),\begin{aligned} a \in A \iff \exists x_1 \forall x_2 \cdots Qx_n R(x_1, ..., x_n, a), \end{aligned}

where the quantifiers alternate and end with QQ being ∃\exists whenever nn is odd, and ∀\forall when nn is even. A Πn0\Pi^0_n-set is the complement of a Σn0\Sigma^0_n set. And a set which is both Σn0\Sigma^0_n and Πn0\Pi^0_n is called Δn0\Delta^0_n. For convenience, each of Δ00\Delta^0_0, Σ00\Sigma^0_0, and Π00\Pi^0_0 are defined as containing exactly the computable sets. Moreover, a set is computably enumerable if and only if it is Σ10\Sigma^0_1, and computable if and only if it is Δ10\Delta^0_1. This hierarchy may be relativized to any oracle by permitting the relation be Turing-reducible to it.

Suppose S⊆2<ωS \subseteq 2^{<\omega} is a c.e. set of finite binary strings. Then [S]:=⋃σ∈S[σ][S] := \bigcup_{\sigma \in S}[\sigma] is called a Σ10\Sigma^0_1-class, or an effectively open subset of Cantor space. The complement of a Σ10\Sigma^0_1-class is called a Π10\Pi^0_1-class, or an effectively closed subset. Starting from these base classes, an analogous hierarchy to Kleene’s arithmetic hierarchy forms for subsets of Cantor space. There are two ways to build higher levels of this lightface hierarchy. The first is by computable relations: a subset U⊆2ωU \subseteq 2^\omega is a Σn0\Sigma^0_n-class for n∈ωn \in \omega if there is a computable relation RR on nn arguments such that

α∈U  ⟺  ∃x1∀x2⋯Qxn R(x1,x2,...,α↾xn),\begin{aligned} \alpha \in U \iff \exists x_1 \forall x_2 \cdots Q x_n\ R(x_1, x_2, ..., \restrict{\alpha}{x_n}), \end{aligned}

again by alternating quantifiers with an appropriate choice for the innermost one QQ. The complement of a Σn0\Sigma^0_n-class is a Πn0\Pi^0_n-class. But we may equivalently conceive of the Σn+10\Sigma^0_{n + 1}-classes as uniformly-computable unions of Πn0\Pi^0_n-classes. This may be formalized using effective Borel codes. And a set which is both a Σn0\Sigma^0_n-class and a Πn0\Pi^0_n-class is also called a Δn0\Delta^0_n-class. These notions may be relativized to any oracle B∈2≤ωB \in 2^{\leq \omega}, notated with BB in the superscript: Σn0,B\Sigma^{0, B}_n, etc. The Fundamental Theorem of effective descriptive set theory states that for any n∈ωn \in \omega, it holds that Σn0=⋃B∈2≤ωΣn0,B\boldsymbol{\Sigma}^0_n = \bigcup_{B \in 2^{\leq \omega}} \Sigma^{0, B}_n, where Σn0\boldsymbol{\Sigma}^0_n denotes the corresponding level of the (boldface) Borel hierarchy from classical descriptive set theory. This motivates naming the hierarchy of Σn0\Sigma^0_n and Πn0\Pi^0_n-classes as the lightface Borel hierarchy.

References
  1. Downey, R. G., & Hirschfeldt, D. R. (2010). Algorithmic Randomness and Complexity. Springer New York, NY.
  2. Reimann, J., & Slaman, T. A. (2015). Measures and their Random Reals. Transactions of the American Mathematical Society, 367(7), 5081–5097. http://www.jstor.org/stable/24513382
  3. Ko, K.-I., & Friedman, H. (1982). Computational complexity of real functions. Theoretical Computer Science, 20(3), 323–352. https://doi.org/10.1016/S0304-3975(82)80003-0
  4. Iljazović, Z., & Kihara, T. (2021). Computability of Subsets of Metric Spaces. In V. Brattka & P. Hertling (Eds.), Handbook of Computability and Complexity in Analysis (pp. 29–69). Springer International Publishing. 10.1007/978-3-030-59234-9_2