Cite

This course has no released version yet: the text at this address may change. Cite a released version when one exists.

/courses/reducibilities/weihrauch
@misc{reducibilities-weihrauch,
  title = {{Weihrauch reducibility}},
  howpublished = {Lesson 3 of \emph{Reducibilities between problems}, Computability Theory course notes},
  url = {/courses/reducibilities/weihrauch},
  note = {Unreleased working version}
}

To cite a single statement, use the # link that appears next to its heading.

Lesson 3 of 3

Weihrauch reducibility

Uniform computable reductions; uniformly true problems, and the pigeonhole principle as a problem that is computably but not uniformly true; the omniscience principles LPO and LLPO; parallelization, the jump as parallel LPO and weak König's lemma as parallel LLPO.

40 min4 questions
Before this lesson:Computable reducibility
Reducibilities between problems · lesson 3 of 3
  1. Problems and ω-reducibility
  2. Computable reducibility
  3. Weihrauch reducibility

A computable reduction may depend on the instance in a non-uniform way: the proof that RT21\mathsf{RT}^1_2 is computably true chooses a color class that is infinite, a choice that cannot be made by an algorithm reading the coloring. Weihrauch reducibility requires the reduction to be given by two fixed Turing functionals, one transforming the instance and one transforming the solution back. It was introduced by Weihrauch in computable analysis in the 1980s, and Gherardi and Marcone (2009) brought it to reverse mathematics, where it measures the uniform content of proofs.

3.1 Definitions

Definition 3.1.#

Let P\mathsf P and Q\mathsf Q be problems.

  1. P\mathsf P is Weihrauch reducible to Q\mathsf Q, written P≤WQ\mathsf P \leq_W \mathsf Q, if there are Turing functionals Φ\Phi and Ψ\Psi such that, for every instance XX of P\mathsf P, ΦX\Phi^X is an instance of Q\mathsf Q, and for every solution Y~\widetilde Y to ΦX\Phi^X, ΨX⊕Y~\Psi^{X \oplus \widetilde Y} is a solution to XX.
  2. P\mathsf P is strongly Weihrauch reducible to Q\mathsf Q, written P≤sWQ\mathsf P \leq_{sW} \mathsf Q, if moreover Ψ\Psi only uses Y~\widetilde Y: ΨY~\Psi^{\widetilde Y} is a solution to XX.
  3. P\mathsf P is uniformly true if there is a Turing functional Φ\Phi such that ΦX\Phi^X is a solution to XX for every instance XX.

In item 1, ΦX\Phi^X and ΨX⊕Y~\Psi^{X \oplus \widetilde Y} are required to be total, as characteristic functions of sets. Weihrauch reducibility implies computable reducibility, and strong Weihrauch reducibility implies strong computable reducibility. Together with the previous lessons, we have the implications

P≤sWQ  ⇒  P≤WQ  ⇒  P≤cQ  ⇒  P≤ωQ,P≤sWQ  ⇒  P≤scQ  ⇒  P≤cQ.\begin{gathered} \mathsf P \leq_{sW} \mathsf Q \;\Rightarrow\; \mathsf P \leq_W \mathsf Q \;\Rightarrow\; \mathsf P \leq_c \mathsf Q \;\Rightarrow\; \mathsf P \leq_\omega \mathsf Q, \\ \mathsf P \leq_{sW} \mathsf Q \;\Rightarrow\; \mathsf P \leq_{sc} \mathsf Q \;\Rightarrow\; \mathsf P \leq_c \mathsf Q. \end{gathered}

As for computable reducibility, P\mathsf P is uniformly true if and only if P≤WId\mathsf P \leq_W \mathsf{Id}: given Φ\Phi, take the identity as forward functional and ΨX⊕Y=ΦX\Psi^{X \oplus Y} = \Phi^X; given Φ\Phi and Ψ\Psi, the functional X↦ΨX⊕ΦXX \mapsto \Psi^{X \oplus \Phi^X} solves P\mathsf P.

Proposition 3.2.#

RT21\mathsf{RT}^1_2 is computably true but not uniformly true. Consequently, RT21≤cRT11\mathsf{RT}^1_2 \leq_c \mathsf{RT}^1_1 but RT21̸≤WRT11\mathsf{RT}^1_2 \not\leq_W \mathsf{RT}^1_1.

Proof of Proposition 3.2.

A coloring f:N→2f : \nat \to 2 computes both color classes, and one of them is infinite. Suppose that Φf\Phi^f is an infinite homogeneous set for every ff. Let f0f_0 be the constant coloring 00. The set Φf0\Phi^{f_0} is infinite; take x∈Φf0x \in \Phi^{f_0}, and let uu be the use of the computation Φf0(x)=1\Phi^{f_0}(x) = 1. Let v=max⁡(u,x+1)v = \max(u, x + 1) and f1f_1 the coloring with f1(n)=0f_1(n) = 0 for n<vn < v and f1(n)=1f_1(n) = 1 for n≥vn \geq v. Since f1f_1 agrees with f0f_0 below uu, we have x∈Φf1x \in \Phi^{f_1}, and f1(x)=0f_1(x) = 0. A homogeneous set for f1f_1 containing xx has color 00, so it is included in {0,…,v−1}\{ 0, \dots, v - 1 \} and is finite: a contradiction. The problem RT11\mathsf{RT}^1_1 is uniformly true, with Φf=N\Phi^f = \nat, and a problem Weihrauch reducible to a uniformly true problem is uniformly true; this gives the consequence.

The argument is a continuity argument: a functional decides each bit of its output from a finite part of its input, so it cannot wait for information that is only available in the limit. Most proofs of non-reducibility in the Weihrauch degrees have this form. Brattka and Rakotoniaina, and independently Hirschfeldt and Jockusch, showed more generally that RTk+11̸≤WRTk1\mathsf{RT}^1_{k+1} \not\leq_W \mathsf{RT}^1_k for every k≥1k \geq 1; we admit this result. Likewise, the intermediate value theorem is not uniformly true, although every computable instance has a computable solution (Theorem 3.4 of “Mathematics in RCA₀”): the computation of a root must decide, from a finite approximation of the function, near which root to look.

3.2 The omniscience principles

The following problems, from constructive mathematics, have instances in {0,1}N\{0, 1\}^\nat and solutions in {0,1}\{ 0, 1 \}, coded as sets: 00 by ∅\emptyset and 11 by {0}\{ 0 \}, so that a solution is read from the first bit of its code.

Definition 3.3.#
  1. The limited principle of omniscience LPO\mathsf{LPO}: an instance is a sequence p∈{0,1}Np \in \{0, 1\}^\nat; its solution is 11 if p(n)=1p(n) = 1 for some nn, and 00 otherwise.
  2. The lesser limited principle of omniscience LLPO\mathsf{LLPO}: an instance is a sequence p∈{0,1}Np \in \{0, 1\}^\nat with p(n)=1p(n) = 1 for at most one nn; its solutions are the i∈{0,1}i \in \{ 0, 1 \} such that p(2m+i)=0p(2m + i) = 0 for every mm.

An instance of LLPO\mathsf{LLPO} has one solution if it contains a 11, at a position of parity opposite to the solution, and two solutions otherwise. Both problems are computably true, since their solutions are numbers; their content is entirely about uniformity.

Proposition 3.4.#

LLPO≤WLPO\mathsf{LLPO} \leq_W \mathsf{LPO}, and LLPO\mathsf{LLPO} is not uniformly true.

Proof of Proposition 3.4.

Let Φp=p\Phi^p = p, and let Ψp⊕i\Psi^{p \oplus i} output 00 if i=0i = 0; if i=1i = 1, it searches for nn with p(n)=1p(n) = 1 and outputs 11 if nn is even and 00 if nn is odd. If pp has no 11, both values are solutions; if p(n)=1p(n) = 1, the search terminates, and the output has the parity opposite to nn, as required.

Suppose that Φp\Phi^p is a solution for every instance pp. Let i=Φ0∞(0)i = \Phi^{0^\infty}(0), the bit that determines the solution, and uu the use of this computation. Let p0p_0 and p1p_1 be the sequences with a single 11, at positions 2u2u and 2u+12u + 1 respectively. Both agree with 0∞0^\infty below uu, so Φp0(0)=Φp1(0)=i\Phi^{p_0}(0) = \Phi^{p_1}(0) = i, and Φp0\Phi^{p_0} and Φp1\Phi^{p_1} both code the solution ii. But the only solution to p0p_0 is 11, and the only solution to p1p_1 is 00.

3.3 Parallelization

Definition 3.5.#

The parallelization of a problem P\mathsf P is the problem P^\widehat{\mathsf P} whose instances are the sequences ⨁nXn\bigoplus_n X_n of instances of P\mathsf P, and whose solutions are the sequences ⨁nYn\bigoplus_n Y_n with YnY_n a solution to XnX_n for every nn.

When the solutions of P\mathsf P are numbers in {0,1}\{ 0, 1 \}, as for LPO\mathsf{LPO} and LLPO\mathsf{LLPO}, a solution ⨁nYn\bigoplus_n Y_n to P^\widehat{\mathsf P} is identified with the set {n:Yn={0}}\{ n : Y_n = \{ 0 \} \}, the sequence of the values of the solutions. Each of the two codings is computable from the other, uniformly, so the identification does not affect Weihrauch reducibility.

If P≤WQ\mathsf P \leq_W \mathsf Q via Φ\Phi and Ψ\Psi, then P^≤WQ^\widehat{\mathsf P} \leq_W \widehat{\mathsf Q} via the functionals applying Φ\Phi and Ψ\Psi to each coordinate. So parallelization is an operation on Weihrauch degrees. It turns the omniscience principles into familiar problems.

Theorem 3.6.#

J≡WLPO^\mathsf J \equiv_W \widehat{\mathsf{LPO}}.

Proof of Theorem 3.6.

(J≤WLPO^\mathsf J \leq_W \widehat{\mathsf{LPO}}) Given XX, let ΦX=⨁epe\Phi^X = \bigoplus_e p_e, with pe(s)=1p_e(s) = 1 if ΦeX(e)[s] ⁣ ⁣↓\Phi^X_e(e)[s]\converge and 00 otherwise. The solution to pep_e is 11 exactly when e∈X′e \in X', so the solution to ΦX\Phi^X is X′X', and ΨX⊕Y=Y\Psi^{X \oplus Y} = Y.

(LPO^≤WJ\widehat{\mathsf{LPO}} \leq_W \mathsf J) Let Φ\Phi be the identity. By the parameter theorem, uniformly in the oracle, there is a computable function gg such that for every Z=⨁npnZ = \bigoplus_n p_n, Φg(n)Z(g(n))\Phi^Z_{g(n)}(g(n)) converges if and only if pn(s)=1p_n(s) = 1 for some ss. Let ΨZ⊕Y\Psi^{Z \oplus Y} be the sequence whose nn-th term is Y(g(n))Y(g(n)). For Y=Z′Y = Z', this is the sequence of solutions to the pnp_n.

Theorem 3.7.#

WKL≡WLLPO^\mathsf{WKL} \equiv_W \widehat{\mathsf{LLPO}}.

Proof of Theorem 3.7.

(LLPO^≤WWKL\widehat{\mathsf{LLPO}} \leq_W \mathsf{WKL}) Given ⨁npn\bigoplus_n p_n, let TT be the tree of strings σ\sigma such that pn(2m+σ(n))=0p_n(2m + \sigma(n)) = 0 for all n,mn, m with n<∣σ∣n < |\sigma| and 2m+σ(n)<∣σ∣2m + \sigma(n) < |\sigma|. It is computable uniformly in the instance. It is infinite, since a sequence of solutions to the pnp_n gives strings of every length in TT, and its paths are exactly the sequences of solutions. So ΨX⊕Y=Y\Psi^{X \oplus Y} = Y works.

(WKL≤WLLPO^\mathsf{WKL} \leq_W \widehat{\mathsf{LLPO}}) Let TT be an infinite binary tree. For a string σ\sigma and i<2i < 2, say that σ⌢i\sigma^\frown i dies at stage ss if TT has no extension of σ⌢i\sigma^\frown i of length ∣σ∣+1+s|\sigma| + 1 + s. Let qσ(2s+i)=1q_\sigma(2s + i) = 1 if ss is the least stage at which one of σ⌢0\sigma^\frown 0, σ⌢1\sigma^\frown 1 dies, and ii is the least jj such that σ⌢j\sigma^\frown j dies at ss; all other values are 00. Then qσq_\sigma has at most one 11, and ΦT=⨁σqσ\Phi^T = \bigoplus_\sigma q_\sigma, indexed by a computable enumeration of strings, is an instance of LLPO^\widehat{\mathsf{LLPO}}.

Let ⨁σiσ\bigoplus_\sigma i_\sigma be a solution. If σ\sigma is extendible, that is, has extensions in TT of every length, then σ⌢iσ\sigma^\frown i_\sigma is extendible. Indeed, one of the two successors is extendible. If one of them dies, qσq_\sigma has a 11 at 2s+i2s + i for the first one found dead, and iσ≠ii_\sigma \neq i, so σ⌢iσ\sigma^\frown i_\sigma is the other successor, which does not die at the stage ss; since σ\sigma is extendible and σ⌢i\sigma^\frown i is not, σ⌢iσ\sigma^\frown i_\sigma is extendible. If none dies, both successors are extendible. Let ΨT⊕Y\Psi^{T \oplus Y} be the path ρ0=ε\rho_0 = \varepsilon, ρk+1=ρk⌢iρk\rho_{k+1} = \rho_k {}^\frown i_{\rho_k}. The empty string is extendible since TT is infinite, so every ρk\rho_k is extendible, and the limit is a path through TT.

Corollary 3.8.#

LPO̸≤WLLPO\mathsf{LPO} \not\leq_W \mathsf{LLPO}. So LLPO<WLPO\mathsf{LLPO} <_W \mathsf{LPO}.

Proof of Corollary 3.8.

If LPO≤WLLPO\mathsf{LPO} \leq_W \mathsf{LLPO}, then LPO^≤WLLPO^\widehat{\mathsf{LPO}} \leq_W \widehat{\mathsf{LLPO}}, so J≤WWKL\mathsf J \leq_W \mathsf{WKL} by Theorem 3.6 and Theorem 3.7. This would give J≤ωWKL\mathsf J \leq_\omega \mathsf{WKL}, which fails by Corollary 1.8.

The proof transfers a separation of ω-reducibility, obtained from the cone avoidance basis theorem, to a separation between two computably true problems, which ω-reducibility and computable reducibility do not distinguish. Parallelization thus connects the uniform world of Weihrauch reducibility with the non-uniform world of Turing degrees.

3.4 Exercises

Exercise 3.9 ★.

Show that LLPO≤sWLPO\mathsf{LLPO} \leq_{sW} \mathsf{LPO}.

Solution

Let Φp\Phi^p be the sequence qq with q(n)=1q(n) = 1 if p(2m)=1p(2m) = 1 for some 2m≤n2m \leq n, and 00 otherwise; and Ψi=i\Psi^i = i. The solution to qq is 11 exactly when pp has a 11 at an even position. In that case, 11 is the only solution to pp. Otherwise, pp has no 11 at an even position, so 00 is a solution to pp. The backward functional does not use pp.

Exercise 3.10 ★.

Show that if P\mathsf P is uniformly true, then P^\widehat{\mathsf P} is uniformly true. Deduce from Theorem 3.7 a second proof that LLPO\mathsf{LLPO} is not uniformly true.

Solution

If ΦX\Phi^X solves P\mathsf P, then the functional ⨁nXn↦⨁nΦXn\bigoplus_n X_n \mapsto \bigoplus_n \Phi^{X_n} solves P^\widehat{\mathsf P}. If LLPO\mathsf{LLPO} were uniformly true, LLPO^\widehat{\mathsf{LLPO}} would be uniformly true, hence computably true, and so would WKL≤WLLPO^\mathsf{WKL} \leq_W \widehat{\mathsf{LLPO}}. But some computable infinite binary tree has no computable path (Theorem 2.6 of “Computable members”).

Exercise 3.11 ★★.

For a problem P\mathsf P and n≥1n \geq 1, let Pn\mathsf P^n be the product of nn copies of P\mathsf P. Show that if P\mathsf P is computably true, so is Pn\mathsf P^n, and that J̸≤cQ\mathsf J \not\leq_c \mathsf Q for every computably true problem Q\mathsf Q. Deduce that LPO^̸≤WLPOn\widehat{\mathsf{LPO}} \not\leq_W \mathsf{LPO}^n for every nn: finitely many applications of LPO\mathsf{LPO} do not suffice.

Solution

An instance X1⊕⋯⊕XnX_1 \oplus \cdots \oplus X_n of Pn\mathsf P^n computes each XiX_i, hence a solution YiY_i to each, hence Y1⊕⋯⊕YnY_1 \oplus \cdots \oplus Y_n. If J≤cQ\mathsf J \leq_c \mathsf Q with Q\mathsf Q computably true, then for every XX, the instance X~≤TX\widetilde X \leq_T X has a solution Y~≤TX~\widetilde Y \leq_T \widetilde X, and X⊕Y~≤TXX \oplus \widetilde Y \leq_T X computes X′X', which is impossible. Since LPO\mathsf{LPO} is computably true, so is LPOn\mathsf{LPO}^n; and LPO^≤WLPOn\widehat{\mathsf{LPO}} \leq_W \mathsf{LPO}^n would give J≤cLPOn\mathsf J \leq_c \mathsf{LPO}^n by Theorem 3.6.

3.5 Notes and references

Weihrauch reducibility comes from computable analysis, where it was developed by Weihrauch, Brattka, Gherardi and Pauly; the handbook chapter of Brattka, Gherardi and Pauly is a survey. Gherardi and Marcone (2009), Dorais, Dzhafarov, Hirst, Mileti and Shafer (2016), Brattka and Rakotoniaina (2017) and Hirschfeldt and Jockusch (2016) developed its use for combinatorial principles.

  • V. Brattka, G. Gherardi and A. Pauly, Weihrauch complexity in computable analysis, in Handbook of Computability and Complexity in Analysis, Springer, 2021, 367–417.
  • G. Gherardi and A. Marcone, How incomputable is the separable Hahn–Banach theorem?, Notre Dame Journal of Formal Logic 50 (2009), 393–425.
  • V. Brattka and T. Rakotoniaina, On the uniform computational content of Ramsey’s theorem, Journal of Symbolic Logic 82 (2017), 1278–1316.
  • F. G. Dorais, D. D. Dzhafarov, J. L. Hirst, J. R. Mileti and P. Shafer, On uniform relationships between combinatorial problems, Transactions of the American Mathematical Society 368 (2016), 1321–1359.
  • D. R. Hirschfeldt and C. G. Jockusch, On notions of computability-theoretic reduction between Π¹₂ principles, Journal of Mathematical Logic 16 (2016), 1650002.