In constructive mathematics, Church's thesis is the principle stating that all total functions are computable functions.
The similarly named Church–Turing thesis states that every effectively calculable function is a computable function, thus collapsing the former notion into the latter. is stronger in the sense that with it every function is computable. The constructivist principle is however also given, in different theories and incarnations, as a fully formal axiom. The formalizations depends on the definition of "function" and "computable" of the theory at hand. A common context is recursion theory as established since the 1930's.
Adopting as a principle, then for a predicate of the form of a family of existence claims (e.g. below) that is proven not to be validated for all in a computable manner, the contrapositive of the axiom implies that this is then not validated by any total function (i.e. no mapping corresponding to ). It thus collapses the possible scope of the notion of function compared to the underlying theory, restricting it to the defined notion of computable function. In turn, the axiom is incompatible with systems that validate total functional value associations and evaluations that are also proven not to be computable. More concretely, it affects ones proof calculus in a way that it makes provable the negations of some common classically provable propositions.
For example, Peano arithmetic is such a system. Instead of it, one may consider the constructive theory of Heyting arithmetic with the thesis in its first-order formulation as an additional axiom, concerning associations between natural numbers. This theory disproves some universally closed variants of instances of the principle of the excluded middle. It is in this way that the axiom is shown incompatible with . However, is equiconsistent with both as well as with the theory given by plus . That is, adding either the law of the excluded middle or Church's thesis does not make Heyting arithmetic inconsistent, but adding both does.
This principle has formalizations in various mathematical frameworks. Let denote Kleene's T predicate, so that e.g. validity of the predicate expresses that is the index of a total computable function. Note that there are also variations on and the value extracting , as functions with return values. Here they are expressed as primitive recursive predicates. Write to abbreviate , as the values plays a role in the principle's formulations. So the computable function with index terminates on with value iff . This -predicate of on triples may be expressed by , at the cost of introducing abbreviating notation involving the sign already used for arithmetic equality. In first-order theories such as , which cannot quantify over relations and function directly, may be stated as an axiom schema saying that for any definable total relation, which comprises a family of valid existence claims , the latter are computable in the sense of . For each formula of two variables, the schema includes the axiom
In words: If for every there is a satisfying , then there is in fact an that is the Gödel number of a partial recursive function that will, for every , produce such a satisfying the formula - and with some being a Gödel number encoding a verifiable computation bearing witness to the fact that is in fact the value of that function at .
Relatedly, implications of this form may instead also be established as constructive meta-theoretical properties of theories. I.e. the theory need not necessarily prove the implication (a formula with ), but the existence of is meta-logically validated. A theory is then said to be closed under the rule.
The statement extends the claim to relations which are defined and total over a certain type of domain. This may be achieved by allowing to narrowing the scope of the universal quantifier and so can be formally stated by the schema:
In the above, is restricted to be almost-negative. For first-order arithmetic (where the schema is designated ), this means cannot contain any disjunction, and existential quantifiers can only appear in front of (decidable) formulas. In the presence of Markov's principle , the syntactical restrictions may be somewhat loosened.[1]
When considering the domain of all numbers (e.g. when taking to be the trivial ), the above reduces to the previous form of Church's thesis.
These first-order formulations are fairly strong in that they also constitute a form of function choice: Total relations contain total recursive functions.
The extended Church's thesis is used by the school of constructive mathematics founded by Andrey Markov.
denotes the weaker variant of the principle in which the premise demands unique existence (of ), i.e. the return value already has to be determined.
The first formulation of the thesis above is also called the arithmetical form of the principle, since only quantifier over numbers appear in its formulation. It uses a general relation in its antecedent. In a framework like recursion theory, a functions may be representable as a functional relation, granting a unique output value for every input.
In higher-order systems that can quantify over (total) functions directly, a form of can be stated as a single axiom, saying that every function from the natural numbers to the natural numbers is computable. In terms of the primitive recursive predicates,
This postulates that all functions are computable, in the Kleene sense, with an index in the theory. Thus, so are all values . One may write with denoting extensional equality .
For example, in set theory functions are elements of function spaces and total functional by definition. A total function has a unique return value for every input in its domain. Being sets, set theory has quantifiers that range over functions.
The principle can be regarded as the identification of the space with the collection of total recursive functions. In realzability topoi, this exponential object of the natural numbers object can also be identified with less restrictive collections of maps.
There are weaker forms of the thesis, variously called .
By inserting a double negation before the index existence claim in the higher order version, it is asserted that there are no non-recursive functions. This still restricts the space of functions while not constituting a function choice axiom.
A related statement is that any decidable subset of naturals cannot ruled out to be computable in the sense that
The contrapositive of this puts any non-computable predicate in violation to excluded middle, so this is still generally anti-classical. Unlike , as a principle this is compatible with formulations of the fan theorem.
Variants for related premises may be defined. E.g. a principle always granting existence of a total recursive function into some discrete binary set that validates one of the disjuncts. Without the double negation, this may be denoted .
The schema , when added to constructive systems such as , implies the negation of the universally quantified version of the law of the excluded middle for some predicates. As an example, the halting problem provenly not computably decidable, but assuming classical logic it is a tautology that every Turing machine either halts or does not halt on a given input. Further assuming Church's thesis one in turn concludes that this is computable - a contradiction. In slightly more detail: In sufficiently strong systems, such as , it is possible to express the relation associated with the halting question, relating any code from an enumeration of Turing machines and values from . Assuming the classical tautology above, this relation can be proven total, i.e. it constitutes a function that returns if the machine halts and if it does not halt. But plus disproves this consequence of the law of the excluded middle, for example.
Principles like the double negation shift (commutativity of universal quantification with a double negation) are also rejected by the principle.
The single axiom form of with above is consistent with some weak classical systems that do not have the strength to form functions such as the function of the previous paragraph. For example, the classical weak second-order arithmetic is consistent with this single axiom, because has a model in which every function is computable. However, the single-axiom form becomes inconsistent with excluded middle in any system that has axioms sufficient to prove existence of functions such as the function . E.g., adoption of variants of countable choice, such as unique choice for the numerical quantifiers,
where denotes a sequence, spoil this consistency.
The first-order formulation already subsumes the power of such a function comprehension principle via enumerated functions.
Constructively formulated subtheories of can typically be shown to be closed under a Church's rule and the corresponding principle is thus compatible. But as an implication ( ) it cannot be proven by such theories, as that would render the stronger, classical theory inconsistent.
This above thesis can be characterized as saying that a sentence is true iff it is computably realisable. This is captured by the following metatheoretic equivalences:[2]
and
Here " " is just the equivalence in the arithmetic theory, while " " denotes the metatheoretical equivalence. For given , the predicate is read as " ". In words, the first result above states that it is provable in plus that a sentence is true iff it is realisable. But also, the second result above states that is provable in plus iff is provably realisable in just .
For the next metalogical theorem, recall that is non-constructive and lacks then existence property, whereas Heyting arithmetic exhibits it:
The second equivalence above can be extended with as follows:
The existential quantifier needs to be outside in this case. In words, is provable in plus as well as iff one can metatheoretically establish that there is some number such that the corresponding standard numeral in , denoted , provably realises . Assuming together with alternative variants of Church's thesis, more such metalogical existence statements have been obtained.