Documentation

CslibFrontier.Foundations.Computability.RecursiveInClockedJoin

Handlers, code substitution and the Turing join #

This file connects the handlers of Cslib.ClockedComp.subst with the code-level reductions of RecursiveInJoin through the compiler Nat.RecursiveIn.Code.toClocked.

Main definitions #

Main results #

The compiled program of a code implements, against every partial oracle g, the function the code computes relative to g.

Substituting compiled programs computes the substituted code: the clocked form of Code.eval_subst.

Transitivity of clocked reducibility. If F is computed against g, and g against h, by families of clocked programs with computable dialogue, then so is F against h. The family is the compiled program of a substituted code, so its dialogue is computable even when the given families are not stable.

Two oracles and their join #

Answer a query of the left oracle by the compiled program of joinLeft and a query of the right oracle by that of joinRight, both querying the join.

Answer a query of the join from the two oracles: an even query 2 * n asks the left oracle at n, an odd query 2 * n + 1 asks the right oracle at n.

Against p ⊕ x, joinHandler implements the oracles p and x of the sum interface.

A program over two oracles p and x, with each query answered through the join, computes the same relative to p ⊕ x.

A program relative to p ⊕ x, with each query of the join answered from p and x, computes the same relative to the two oracles.

Answering the two oracles of splitHandler by the compiled programs of codes a and b implements the join code Code.join a b, against every partial oracle: the clocked form of Code.eval_join.