# Heyting arithmetic

In mathematical logic, Heyting arithmetic ${\displaystyle {\mathsf {HA}}}$ is an axiomatization of arithmetic in accordance with the philosophy of intuitionism.[1] It is named after Arend Heyting, who first proposed it.

## Axiomatization

Heyting arithmetic can be characterized just like the first-order theory of Peano arithmetic ${\displaystyle {\mathsf {PA}}}$, except that it uses the intuitionistic predicate calculus ${\displaystyle {\mathsf {IQC}}}$ for inference. In particular, this means that the double-negation elimination principle, as well as the principle of the excluded middle ${\displaystyle {\mathrm {PEM} }}$, do not hold. Note that to say ${\displaystyle {\mathrm {PEM} }}$ does not hold exactly means that the excluded middle statement is not automatically provable for all propositions—indeed many such statements are still provable in ${\displaystyle {\mathsf {HA}}}$ and the negation of any such disjunction is inconsistent. ${\displaystyle {\mathsf {PA}}}$ is strictly stronger than ${\displaystyle {\mathsf {HA}}}$ in the sense that all ${\displaystyle {\mathsf {HA}}}$-theorems are also ${\displaystyle {\mathsf {PA}}}$-theorems.

Heyting arithmetic comprises the axioms of Peano arithmetic and the intended model is the collection of natural numbers ${\displaystyle {\mathbb {N} }}$. The signature includes zero "${\displaystyle 0}$" and the successor "${\displaystyle S}$", and the theories characterize addition and multiplication. This impacts the logic: With ${\displaystyle 1:=S0}$, it is a metatheorem that ${\displaystyle \bot }$ can be defined as ${\displaystyle 0=1}$ and so that ${\displaystyle \neg P}$ is ${\displaystyle P\to \bot }$ for every proposition ${\displaystyle P}$. The negation of ${\displaystyle \bot }$ is of the form ${\displaystyle P\to P}$ and thus a trivial proposition.

For terms, write ${\displaystyle s\neq t}$ for ${\displaystyle \neg (s=t)}$. For a fixed term ${\displaystyle t}$, the equality ${\displaystyle t=t}$ is true by reflexivity and a proposition ${\displaystyle P}$ is equivalent to ${\displaystyle (t=t)\to P}$. It may be shown that ${\displaystyle P\lor Q}$ can then be defined as ${\displaystyle \exists n.(n=0\to P)\land (n\neq 0\to Q)}$. This formal elimination of disjunctions was not possible in the quantifier-free primitive recursive arithmetic ${\displaystyle {\mathsf {PRA}}}$. The theory may be extended with function symbols for any primitive recursive function, making ${\displaystyle {\mathsf {PRA}}}$ also a fragment of this theory. For a total function ${\displaystyle f}$, one often considers predicates of the form ${\displaystyle f(n)=0}$.

## Theorems

### Double negations

With explosion valid in any intuitionistic theory, if ${\displaystyle \neg \neg P}$ is a theorem for some ${\displaystyle P}$, then by definition ${\displaystyle \neg P}$ is provable if and only if the theory is inconsistent. Indeed, in Heyting arithmetic the double-negation explicitly expresses ${\displaystyle \neg P\to 0=1}$. For a predicate ${\displaystyle Q}$, a theorem of the form ${\displaystyle \neg \neg \exists n.Q(n)}$ expresses that it is inconsistent to rule out that ${\displaystyle Q(t)}$ could be validated for some ${\displaystyle t}$. Constructively, this is weaker than the existence claim of such a ${\displaystyle t}$. A big part of the metatheoretical discussion will concern classically provable existence claims.

A double-negation ${\displaystyle \neg \neg P}$ entails ${\displaystyle (\alpha \to \neg P)\to (\alpha \to 0=1)}$. So a theorem of the form ${\displaystyle \neg \neg P}$ also always gives new means to conclusively reject (also positive) statements ${\displaystyle \alpha }$.

#### Proofs of classically equivalent statements

Recall that the implication in ${\displaystyle {\mathsf {HA}}\vdash \alpha \to \neg \neg \alpha }$ can classically be reversed, and with that so can the one in ${\displaystyle {\mathsf {HA}}\vdash {\big (}\exists n.\neg \psi (n){\big )}\to \neg \forall n.\psi (n)}$. Here the distinction is between existence of numerical counter-examples versus absurd conclusions when assuming validity for all numbers. Inserting double-negations turns ${\displaystyle {\mathsf {PA}}}$-theorems into ${\displaystyle {\mathsf {HA}}}$-theorems. More exactly, for any formula provable in ${\displaystyle {\mathsf {PA}}}$, the classically equivalent Gödel–Gentzen negative translation of that formula is already provable in ${\displaystyle {\mathsf {HA}}}$. In one formulation, the translation procedure includes a rewriting of ${\displaystyle {\big (}\exists n.Q(n){\big )}^{N}}$ to ${\displaystyle \neg \forall n.\neg Q^{N}(n).}$ The result means that all Peano arithmetic theorems have a proof that consists of a constructive proof followed by a classical logical rewriting. Roughly, the final step amounts to applications of double-negation elimination.

In particular, with undecidable atomic propositions being absent, for any proposition ${\displaystyle \psi }$ not including existential quantifications or disjunctions at all, one has ${\displaystyle {\mathsf {PA}}\vdash \psi \iff {\mathsf {HA}}\vdash \psi }$.

#### Valid principles and rules

Minimal logic proves double-negation elimination for negated formulas, ${\displaystyle \neg \neg (\neg \alpha )\leftrightarrow (\neg \alpha )}$. More generally, Heyting arithmetic proves this classical equivalence for any Harrop formula.

And ${\displaystyle \Sigma _{1}^{0}}$-results are well behaved as well: Markov's rule at the lowest level of the arithmetical hierarchy is an admissible rule of inference, i.e. for ${\displaystyle \varphi }$ with ${\displaystyle n}$ free,

${\displaystyle {\mathsf {HA}}\vdash \neg \neg \exists m.\varphi (n,m)\iff {\mathsf {HA}}\vdash \exists m.\varphi (n,m)}$

Instead of speaking of quantifier-free predicates, one may equivalently formulate this for primitive recursive predicate or Kleene's T predicate, called ${\displaystyle {\mathrm {MR} }_{\mathrm {QF} }}$, resp. ${\displaystyle {\mathrm {MR} _{\mathrm {PR} }}}$ and ${\displaystyle {\mathrm {MR} _{0}}}$. Even the related rule ${\displaystyle {\mathrm {MR} }_{\mathrm {Dec} }}$ is admissible, in which the tractability aspect of ${\displaystyle \varphi }$ is not e.g. based on a syntactic condition but where the left hand side also requires ${\displaystyle \vdash \forall m.\varphi (n,m)\lor \neg \varphi (n,m)}$.

Beware that in classifying a proposition based on its syntactic form, one ought not mistakenly assign a lower complexity based on some only classical valid equivalence.

### Excluded middle

As with other theories over intuitionistic logic, various instances of ${\displaystyle {\mathrm {PEM} }}$ can be proven in this constructive arithmetic. By disjunction introduction, whenever either the proposition ${\displaystyle P}$ or ${\displaystyle \neg P}$ is proven, then ${\displaystyle P\lor \neg P}$ is proven as well. So for example, equipped with ${\displaystyle 0=0}$ and ${\displaystyle \forall n.Sn\neq 0}$ from the axioms, one may validate the premise for induction of excluded middle for the predicate ${\displaystyle n=0}$. One then says equality to zero is decidable. Indeed, ${\displaystyle {\mathsf {HA}}}$ proves equality "${\displaystyle =}$" decidable for all numbers, i.e. ${\displaystyle \forall n.\forall m.(n=m\lor n\neq m)}$. Stronger yet, as equality is the only predicate symbol in Heyting arithmetic, it then follows that, for any quantifier-free formula ${\displaystyle \phi }$, where ${\displaystyle n,\dots ,m}$ are the free variables, the theory is closed under the rule

${\displaystyle {\mathsf {HA}}\vdash \forall n.\cdots \forall m.\,\phi (n,\dots ,m)\lor \neg \phi (n,\dots ,m)}$

Any theory over minimal logic proves ${\displaystyle \neg \neg (P\lor \neg P)}$ for all propositions. So if the theory is consistent, it never proves the negation of an excluded middle statement.

Practically speaking, in rather conservative constructive frameworks such as ${\displaystyle {\mathsf {HA}}}$, when it is understood what type of statements are algorithmically decidable, then an unprovability result of an excluded middle disjunction expresses the algorithmic undecidability of ${\displaystyle P}$.

### Conservativity

For simple statements, the theory does not just validate such classically valid binary dichotomies ${\displaystyle \phi (n,\dots )\lor \neg \phi (n,\dots )}$. The Friedman translation can be used to establish that ${\displaystyle {\mathsf {PA}}}$'s ${\displaystyle \Pi _{2}^{0}}$-theorems are all proven by ${\displaystyle {\mathsf {HA}}}$: For any ${\displaystyle n}$ and quantifier-free ${\displaystyle \varphi }$,

${\displaystyle {\mathsf {PA}}\vdash \exists m.\varphi (n,m)\iff {\mathsf {HA}}\vdash \exists m.\varphi (n,m)}$

This result may of course also be expressed with explicit universal closures ${\displaystyle \forall n}$. Roughly, simple statements about computable relations provable classically are already provable constructively. Although in halting problems, not just quantifier-free propositions but also ${\displaystyle \Pi _{1}^{0}}$-propositions play an important role, and as will be argued these can be even classically independent. Similarly, already unique existence ${\displaystyle \exists !n.Q(n)}$ in an infinite domain, i.e. ${\displaystyle \exists n.\forall w.{\big (}n=w\leftrightarrow Q(w){\big )}}$, is formally not particularly simple.

So ${\displaystyle {\mathsf {PA}}}$ is ${\displaystyle \Pi _{2}^{0}}$-conservative over ${\displaystyle {\mathsf {HA}}}$. For contrast, while the classical theory of Robinson arithmetic ${\displaystyle {\mathsf {Q}}}$ proves all ${\displaystyle \Sigma _{1}^{0}}$-${\displaystyle {\mathsf {PA}}}$-theorems, some simple ${\displaystyle \Pi _{1}^{0}}$-${\displaystyle {\mathsf {PA}}}$-theorems are independent of it. Induction also plays a crucial role in Friedman's result: For example, the more workable theory obtained by strengthening ${\displaystyle {\mathsf {Q}}}$ with axioms about ordering, and optionally decidable equality, does prove more ${\displaystyle \Pi _{2}^{0}}$-statements than its intuitionistic counterpart.

The discussion here is by no means exhaustive. There are various results for when a classical theorem is already entailed by the constructive theory. Also note that it can be relevant what logic was used to obtain metalogical results. For example, many results on realizability were indeed obtained in a constructive metalogic. But when no specific context is given, stated results need to be assumed to be classical.

## Unprovable statements

Independence results concern propositions such that neither they, nor their negations can be proven in a theory. If the classical theory is consistent (i.e. does not prove ${\displaystyle \bot }$) and the constructive counterpart does not prove one of its classical theorems ${\displaystyle P}$, then that ${\displaystyle P}$ is independent of the latter. Given some independent propositions, it is easy to define more from them, especially in a constructive framework.

Heyting arithmetic has the disjunction property ${\displaystyle {\mathrm {DP} }}$: For all propositions ${\displaystyle \alpha }$ and ${\displaystyle \beta }$,[2]

${\displaystyle {\mathsf {HA}}\vdash \alpha \lor \beta \iff {\mathsf {HA}}\vdash \alpha {\text{ or }}{\mathsf {HA}}\vdash \beta }$

Indeed, this and its numerical generalization are also exhibited by constructive second-order arithmetic and common set theories such as ${\displaystyle {\mathsf {CZF}}}$ and ${\displaystyle {\mathsf {IZF}}}$. It is a common desideratum for the informal notion of a constructive theory. Now in a theory with ${\displaystyle {\mathrm {DP} }}$, if a proposition ${\displaystyle P}$ is independent, then the classically trivial ${\displaystyle P\lor \neg P}$ is another independent proposition, and vice versa. A schema is not valid if there is at least one instance that cannot be proven, which is how ${\displaystyle {\mathrm {PEM} }}$ comes to fail. One may break ${\displaystyle {\mathrm {DP} }}$ by adopting an excluded middle statement axiomatically without validating either of the disjuncts, as is the case in ${\displaystyle {\mathsf {PA}}}$.

More can be said: If ${\displaystyle P}$ is even classically independent, then also the negation ${\displaystyle \neg P}$ is independent—this holds whether or not ${\displaystyle \neg \neg P}$ is equivalent to ${\displaystyle P}$. Then, constructively, the weak excluded middle ${\displaystyle {\mathrm {WPEM} }}$ does not hold, i.e. the principle that ${\displaystyle \neg \alpha \lor \neg \neg \alpha }$ would hold for all propositions is not valid. If such ${\displaystyle P}$ is ${\displaystyle \Sigma _{1}^{0}}$, unprovability of the disjunction manifests the breakdown of ${\displaystyle \Pi _{1}^{0}}$-${\displaystyle {\mathrm {PEM} }}$, or what amounts to an instance of ${\displaystyle {\mathrm {WLPO} }}$ for a primitive recursive function.

### Classically independent propositions

Knowledge of Gödel's incompleteness theorems aids in understanding the type of statements that are ${\displaystyle {\mathsf {PA}}}$-provable but not ${\displaystyle {\mathsf {HA}}}$-provable.

The resolution of Hilbert's tenth problem provided some concrete polynomials ${\displaystyle f}$ and corresponding polynomial equations, such that the claim that the latter have a solution is algorithmically undecidable. The proposition can be expressed as

${\displaystyle \exists w_{1}.\cdots \exists w_{n}.f(w_{1},\dots ,w_{n})=0}$

Certain such zero value existence claims have a more particular interpretation: Theories such as ${\displaystyle {\mathsf {PA}}}$ or ${\displaystyle {\mathsf {ZFC}}}$ prove that these propositions are equivalent to the arithmetized claim of the theories own inconsistency. Thus, such propositions can even be written down for strong classical set theories.

In a consistent and sound arithmetic theory, such an existence claim ${\displaystyle {\mathrm {I} _{f}}}$ is an independent ${\displaystyle \Sigma _{1}^{0}}$-proposition. Then ${\displaystyle {\mathrm {C} _{f}}:=\neg {\mathrm {I} _{f}}}$, by pushing a negation through the quantifier, is seen to be an independent Goldbach-type- or ${\displaystyle \Pi _{1}^{0}}$-proposition. To be explicit, the double-negation ${\displaystyle \neg \neg {\mathrm {I} _{f}}}$ (or ${\displaystyle \neg {\mathrm {C} _{f}}}$) is also independent. And any triple-negation is, in any case, already intuitionistically equivalent to a single negation.

#### PA violates DP

The following illuminates the meaning involved in such independent statements. Given an index in an enumeration of all proofs of a theory, one can inspect what proposition it is a proof of. ${\displaystyle {\mathsf {PA}}}$ is adequate in that it can correctly represent this procedure: there is a primitive recursive predicate ${\displaystyle \mathrm {F} (w):=\mathrm {Prf} (w,\ulcorner 0=1\urcorner )}$ expressing that a proof is one of the absurd proposition ${\displaystyle 0=1}$. This relates to the more explicitly arithmetical predicate above, about a polynomial's return value being zero. One may metalogically reason that if ${\displaystyle {\mathsf {PA}}}$ is consistent, then it indeed proves ${\displaystyle \neg \mathrm {F} ({\underline {\mathrm {w} }})}$ for every individual index ${\displaystyle {\mathrm {w} }}$.

In an effectively axiomatized theory, one may successively perform an inspection of each proof. If a theory is indeed consistent, then there does not exist a proof of an absurdity, which corresponds to the statement that the mentioned "absurdity search" will never halt. Formally in the theory, the former is expressed by the proposition ${\displaystyle \neg \exists w.\mathrm {F} (w)}$, negating the arithmetized inconsistency claim. The equivalent ${\displaystyle \Pi _{1}^{0}}$-proposition ${\displaystyle \forall w.\neg \mathrm {F} (w)}$ formalizes the never halting of the search by stating that all proofs are not a proof of an absurdity. And indeed, in an omega-consistent theory that accurately represents provability, there is no proof that the absurdity search would ever conclude by halting (explicit inconsistency not derivable), nor—as shown by Gödel—can there be a proof that the absurdity search would never halt (consistency not derivable). Reformulated, there is no proof that the absurdity search never halts (consistency not derivable), nor is there a proof that the absurdity search does not never halt (consistency not rejectible). To reiterate, neither of these two disjuncts is ${\displaystyle {\mathsf {PA}}}$-provable, while their disjunction is trivially ${\displaystyle {\mathsf {PA}}}$-provable. Indeed, if ${\displaystyle {\mathsf {PA}}}$ is consistent then it violates ${\displaystyle {\mathrm {DP} }}$.

The ${\displaystyle \Sigma _{1}^{0}}$-proposition expressing the existence of a proof of ${\displaystyle 0=1}$ is a logically positive statement. Nonetheless, it is historically denoted ${\displaystyle \neg {\mathrm {Con} }_{\mathsf {PA}}}$, while its negation is a ${\displaystyle \Pi _{1}^{0}}$-proposition denoted by ${\displaystyle {\mathrm {Con} }_{\mathsf {PA}}}$. In a constructive context, this use of the negation sign may be misleading nomenclature.

Friedman established another interesting unprovable statement, namely that a consistent and adequate theory never proves its arithmetized disjunction property.

### Unprovable classical principles

Already minimal logic logically proves all non-contradiction claims, and in particular ${\displaystyle \neg ({\mathrm {I} _{f}}\land \neg {\mathrm {I} _{f}})}$ and ${\displaystyle \neg ({\mathrm {C} _{f}}\land \neg {\mathrm {C} _{f}})}$. Since also ${\displaystyle ({\mathrm {C} _{f}}\land \neg {\mathrm {C} _{f}})\leftrightarrow \neg ({\mathrm {I} _{f}}\lor \neg {\mathrm {I} _{f}})}$, the theorem ${\displaystyle \neg ({\mathrm {C} _{f}}\land \neg {\mathrm {C} _{f}})}$ may be read as a provable double-negated excluded middle disjunction (or existence claim). But in light of the disjunction property, or since the one relevant De Morgan's law does not hold intuitionistically, the plain excluded middle ${\displaystyle {\mathrm {C} _{f}}\lor \neg {\mathrm {C} _{f}}}$ cannot be ${\displaystyle {\mathsf {HA}}}$-provable.

The breakdown of the principles ${\displaystyle {\mathrm {WPEM} }}$ and ${\displaystyle {\mathrm {WLPO} }}$ have been explained. Now in ${\displaystyle {\mathsf {PA}}}$, the least number principle ${\displaystyle {\mathrm {LNP} }}$ is just one of many statements equivalent to the induction principle. The proof below shows how ${\displaystyle {\mathrm {LNP} }}$ implies ${\displaystyle {\mathrm {PEM} }}$, and therefore why this principle also cannot be generally valid in ${\displaystyle {\mathsf {HA}}}$. However, the schema granting double-negated least number existence for every non-trivial predicate, denoted ${\displaystyle \neg \neg {\mathrm {LNP} }}$, is generally valid. In light of Gödel's proof, the breakdown of these three principles can be understood as Heyting arithmetic being consistent with the provability reading of constructive logic.

Markov's principle for primitive recursive predicates ${\displaystyle {\mathrm {MP} _{\mathrm {PR} }}}$ does already not hold as an implication schema for ${\displaystyle {\mathsf {HA}}}$, let alone the strictly stronger ${\displaystyle {\mathrm {MP} _{\mathrm {Dec} }}}$. Although in the form of the corresponding rules, they are admissible, as mentioned. Similarly, the theory does not prove the independence of premise principle ${\displaystyle {\mathrm {IP} }}$ for negated predicates, albeit it is closed under the rule for all negated propositions, i.e. one may pull out the existential quantifier in ${\displaystyle \neg P\to \exists n.Q(n)}$. The same holds for the version where the existential statement is replaced by a mere disjunction.

The valid implication ${\displaystyle \neg \neg (\alpha \to \beta )\to (\alpha \to \neg \neg \beta )}$ can be proven to hold also in its reversed form, using the disjunctive syllogism. However, the double-negation shift ${\displaystyle {\mathrm {DNS} }}$ is not intuitionistically provable, i.e. the schema of commutativity of "${\displaystyle \neg \neg }$" with universal quantification over all numbers. This is an interesting breakdown that is explained by the consistency of ${\displaystyle \neg {\mathrm {Dec} _{M}}}$ for some ${\displaystyle M}$, as discussed in the section on Church's thesis.

#### Least number principle

Making use of the order relation on the naturals, the strong induction principle reads

${\displaystyle \forall n.{\Big (}{\big (}\forall (k

In class notation, as familiar from set theory, an arithmetic statement ${\displaystyle Q(n)}$ is expressed as ${\displaystyle n\in B}$ where ${\displaystyle B:=\{m\in {\mathbb {N} }\mid Q(m)\}}$. For any given predicate of negated form, i.e. ${\displaystyle \phi (n):=\neg (n\in B)}$, a logical equivalent to induction is

${\displaystyle \neg \exists (n\in B).\neg \exists (k\in B).k

The insight is that among subclasses ${\displaystyle B\subseteq {\mathbb {N} }}$, the property of (provably) having no least member is equivalent to being uninhabited, i.e. to being the empty class. Taking the contrapositive results in a theorem expressing that for any non-empty subclass, it cannot consistently be ruled out that there exists a member ${\displaystyle n\in B}$ such that there is no member ${\displaystyle k\in B}$ smaller than ${\displaystyle n}$:

${\displaystyle B\neq \{\}\,\to \,\neg \neg \exists (n\in B).\neg \exists (k\in B).k

In Peano arithmetic, where double-negation elimination is always valid, this proves the least number principle in its common formulation. In the classical reading, being non-empty is equivalent to (provably) being inhabited by some least member.

A binary relation "${\displaystyle <}$" that validates the strong induction schema in the above form is always also irreflexive: Considering ${\displaystyle \phi _{c}(n):=(n\neq c)}$ or equivalently

${\displaystyle Q_{c}(n):=(n=c)}$

for some fixed number ${\displaystyle c}$, the above simplifies to the statement that no member ${\displaystyle k}$ of ${\displaystyle B=\{c\}}$ validates ${\displaystyle k, which is to say ${\displaystyle \neg (c. (And this logical deduction did not even use any other property of the binary relation.) More generally, if ${\displaystyle B}$ is non-empty and the associated (classical) least number principle can be used to prove some statement of negated form (such as ${\displaystyle \neg (c), then one can extend this to a fully constructive proof. This is because implications ${\displaystyle \alpha \to \neg \beta }$ are always intutionistically equivalent to the formally stronger ${\displaystyle (\neg \neg \alpha )\to \neg \beta }$.

But in general, over constructive logic, the weakening of the least number principle can not be lifted. The following example demonstrates this: For some proposition ${\displaystyle P}$ (say ${\displaystyle {\mathrm {C} _{f}}}$ as above), consider the predicate

${\displaystyle Q_{P}(n):=(n=0\land P)\lor (n=1)}$

This ${\displaystyle Q_{P}}$ corresponds to a subclass ${\displaystyle b_{P}:=\{z\in \{0\}\mid P\}\cup \{1\}}$ of the natural numbers. One may ask what the least member of this class may be. Any number proven or assumed to be in this class provably either equals ${\displaystyle 0}$ or ${\displaystyle 1}$, i.e. ${\displaystyle b_{P}\subseteq \{0,1\}}$. Using decidability of equality and the disjunctive syllogism proves the equivalence ${\displaystyle P\leftrightarrow Q_{P}(0)}$. If the underlying proposition ${\displaystyle P}$ is independent, then the predicate is undecidable in the theory. Now since ${\displaystyle 1=1}$, the proposition ${\displaystyle Q_{P}(1)}$ is trivially true and so the class is inhabited: ${\displaystyle 1\in b_{P}}$. In particular, least number existence for this class cannot be rejected. Given a conjunction with ${\displaystyle Q_{P}(1)}$ is trivial, the existence claim of a least number validating ${\displaystyle Q_{P}}$ itself translates to the excluded middle statement for ${\displaystyle P}$. Knowledge of such a number's value in fact determines whether or not ${\displaystyle P}$ holds. So for independent ${\displaystyle P}$, the least number principle instance with ${\displaystyle Q_{P}}$ is also independent of ${\displaystyle {\mathsf {HA}}}$.

In set theory notation, ${\displaystyle P}$ is equivalent to ${\displaystyle 0\in b_{P}}$ and so ${\displaystyle b_{P}=\{0,1\}}$, while its negation is also equivalent to ${\displaystyle b_{P}=\{1\}}$. This demonstrates that elusive predicates can define elusive subsets. And so also in constructive set theory, while the standard order on the class of naturals is decidable, the naturals are not well-ordered. But strong induction principles, that constructively do not imply unrealizable existence claims, are also still available.

### Anti-classical extensions

In a computable context, for a predicate ${\displaystyle M}$, the classically trivial infinite disjunction

${\displaystyle \forall n.{\big (}M(n)\lor \neg M(n){\big )}}$,

also written ${\displaystyle {\mathrm {Dec} }_{M}}$, can be read as a validation of the decidability of a decision problem. In class notation, ${\displaystyle M(n)}$ is also written ${\displaystyle n\in M}$.

${\displaystyle {\mathsf {HA}}}$ proves no propositions not provable by ${\displaystyle {\mathsf {PA}}}$ and so, in particular, it does not reject any theorems of the classical theory. But there are also predicates ${\displaystyle M}$ such that the axioms ${\displaystyle {\mathsf {HA}}+\neg {\mathrm {Dec} }_{M}}$ are consistent. Again, constructively, such a negation is not equivalent to the existence of a particular numerical counter-example ${\displaystyle t}$ to excluded middle for ${\displaystyle M(t)}$. Indeed, already minimal logic proves the double-negated excluded middle for all propositions, and so ${\displaystyle \forall n.\neg \neg {\big (}Q(n)\lor \neg Q(n){\big )}}$, which is equivalent to ${\displaystyle \neg \exists n.\neg {\big (}Q(n)\lor \neg Q(n){\big )}}$, for any predicate ${\displaystyle Q}$.

#### Church's thesis

Church's rule is an admissible rule in ${\displaystyle {\mathsf {HA}}}$. Church's thesis principle ${\displaystyle {\mathrm {CT} _{0}}}$ may be adopted in ${\displaystyle {\mathsf {HA}}}$, while ${\displaystyle {\mathsf {PA}}}$ rejects it: It implies negations such as the ones just described.

Consider the principle in the form stating that all predicates that are decidable in the logic sense above are also decidable by a total computable function. To see how it is in conflict with excluded middle, one merely needs to define a predicate that is not computably decidable. To this end, write ${\displaystyle \Delta _{e}(w):=T_{1}(e,e,w)}$ for predicates defined from Kleene's T predicate. The indices ${\displaystyle e}$ of total computable functions fulfill ${\displaystyle \forall x.\exists w.T_{1}(e,x,w)}$. While ${\displaystyle T_{1}}$ can be realized in a primitive recursive fashion, the predicate ${\displaystyle \exists w.\Delta _{e}(w)}$ in ${\displaystyle e}$, i.e. the class ${\displaystyle H:=\{e\mid \exists w.\Delta _{e}(w)\}}$ of partial computable function indices with a witness describing how they halt on the diagonal, is computably enumerable but not computable. The classical compliment ${\displaystyle M}$ defined using ${\displaystyle \neg \exists w.\Delta _{e}(w)}$ is not even computably enumerable, see halting problem. This provenly undecidable problem ${\displaystyle e\in M}$ provides a violating example. For any index ${\displaystyle e}$, the equivalent form ${\displaystyle \forall w.\neg \Delta _{e}(w)}$ expresses that when the corresponding function is evaluated (at ${\displaystyle e}$), then all conceivable descriptions of evaluation histories (${\displaystyle w}$) do not describe the evaluation at hand. Specifically, this not being decidable for functions establishes the negation of what amounts to ${\displaystyle {\mathrm {WLPO} }}$.

The formal Church's principles are associated with the recursive school, naturally. Markov's principle ${\displaystyle {\mathrm {MP} _{\mathrm {Dec} }}}$ is commonly adopted, by that school and by constructive mathematics more broadly. In the presence of Church's principle, ${\displaystyle {\mathrm {MP} _{\mathrm {Dec} }}}$ is equivalent to its weaker form ${\displaystyle {\mathrm {MP} _{\mathrm {PR} }}}$. The latter can generally be expressed as a single axiom, namely double-negation elimination for any ${\displaystyle \neg \neg \exists w.T_{1}(e,x,w)}$. Heyting arithmetic together with both ${\displaystyle {\mathrm {MP} _{\mathrm {Dec} }}}$+${\displaystyle {\mathrm {ECT} _{0}}}$ prove independence of premise for decidable predicates, ${\displaystyle {\mathrm {IP} }_{0}}$. But they do not go together, consistently, with ${\displaystyle {\mathrm {IP} }}$. ${\displaystyle {\mathrm {CT} _{0}}}$ also negates ${\displaystyle {\mathrm {DNS} }}$. The intuitionist school of L. E. J. Brouwer extends Heyting arithmetic by a collection of principles that negate both ${\displaystyle {\mathrm {PEM} }}$ as well as ${\displaystyle {\mathrm {CT} _{0}}}$.

## Models

### Consistency

If a theory is consistent, then no proof is one of an absurdity. Kurt Gödel introduced the negative translation and proved that if Heyting arithmetic is consistent, then so is Peano arithmetic. That is to say, he reduced the consistency task for ${\displaystyle {\mathsf {PA}}}$ to that of ${\displaystyle {\mathsf {HA}}}$. However, Gödel's incompleteness theorems, about the incapability of certain theories to prove their own consistency, also applies to Heyting arithmetic itself.

The standard model of the classical first-order theory ${\displaystyle {\mathsf {PA}}}$ as well as any of its non-standard models is also a model for Heyting arithmetic ${\displaystyle {\mathsf {HA}}}$.

### Set theory

There are also constructive set theory models for full ${\displaystyle {\mathsf {HA}}}$ and its intended semantics. Relatively weak set theories suffice: They shall adopt the Axiom of infinity, the Axiom schema of predicative separation to prove induction of arithmetical formulas in ${\displaystyle \omega }$, as well as the existence of function spaces on finite domains for recursive definitions. Specifically, those theories do not require ${\displaystyle {\mathrm {PEM} }}$, the full axiom of separation or set induction (let alone the axiom of regularity), nor general function spaces (let alone the full axiom of power set).

${\displaystyle {\mathsf {HA}}}$ furthermore is bi-interpretable with a weak constructive set theory in which the class of ordinals is ${\displaystyle \omega }$, so that the collection of von Neumann naturals do not exist as a set in the theory.[3] Meta-theoretically, the domain of that theory is as big as the class of its ordinals and essentially given through the class ${\displaystyle {\mathrm {Fin} }}$ of all sets that are in bijection with a natural ${\displaystyle n\in \omega }$. As an axiom this is called ${\displaystyle V={\mathrm {Fin} }}$ and the other axioms are those related to set algebra and order: Union and Binary Intersection, which is tightly related to the Predicative Separation schema, Extensionality, Pairing, and the Set induction schema. This theory is then already identical with the theory given by ${\displaystyle {\mathsf {CZF}}}$ without Strong Infinity and with the finitude axiom added. The discussion of ${\displaystyle {\mathsf {HA}}}$ in this set theory is as in model theory. And in the other direction, the set theoretical axioms are proven with respect to the primitive recursive relation

${\displaystyle x\in y\iff \exists (r<2^{x}).\exists (s

That small universe of sets can be understood as the ordered collection of finite binary sequences which encode their mutual membership. For example, the ${\displaystyle 100_{2}}$'th set contains one other set and the ${\displaystyle 110101_{2}}$'th set contains four other sets. See BIT predicate.

### Realizability

For some number ${\displaystyle \mathrm {n} }$ in the metatheory, the numeral in the studied object theory is denoted by ${\displaystyle {\underline {\mathrm {n} }}}$.

In intuitionistic arithmetics, the disjunction property ${\displaystyle {\mathrm {DP} }}$ is typically valid. And it is a theorem that any c.e. extension of arithmetic for which it holds also has the numerical existence property ${\displaystyle {\mathrm {NEP} }}$:

${\displaystyle {\mathsf {HA}}\vdash \exists n.\psi (n)\iff {\text{ exists }}{\mathrm {n} }{\text{ }}{\mathsf {HA}}\vdash \psi ({\underline {\mathrm {n} }})}$

So these properties are metalogical equivalent in Heyting arithmetic. The existence and disjunction property in fact still holds when relativizing the existence claim by a Harrop formula ${\displaystyle \alpha }$, i.e. for provable ${\displaystyle \alpha \to \exists n.\psi (n)}$.

Kleene, a student of Church, introduced important realizability models of the Heyting arithmetic. In turn, his student Nels David Nelson established (in an extension of ${\displaystyle {\mathsf {HA}}}$) that all closed theorems of ${\displaystyle {\mathsf {HA}}}$ (meaning all variables are bound) can be realized. Inference in Heyting arithmetic preserves realizability. Moreover, if ${\displaystyle {\mathsf {HA}}\vdash \forall n.\exists m.\varphi (n,m)}$ then there is a partial recursive function realizing ${\displaystyle \varphi }$ in the sense that whenever the function evaluated at ${\displaystyle {\mathrm {n} }}$ terminates with ${\displaystyle {\mathrm {m} }}$, then ${\displaystyle {\mathsf {HA}}\vdash \varphi ({\underline {\mathrm {n} }},{\underline {\mathrm {m} }})}$. This can be extended to any finite number of function arguments ${\displaystyle {\mathrm {n} }}$. There are also classical theorems that are not ${\displaystyle {\mathsf {HA}}}$-provable but do have a realization.

Typed versions of realizability have been introduced by Georg Kreisel. With it he demonstrated the independence of the classically valid Markov's principle for intuitionistic theories.

In the effective topos, already the finitely axiomizable subsystem of Heyting arithmetic with induction restricted to ${\displaystyle \Sigma _{1}}$ is categorical. Categoricity here is reminiscent of Tennenbaum's theorem. The model validates ${\displaystyle {\mathsf {HA}}}$ but not ${\displaystyle {\mathsf {PA}}}$ and so completeness fails in this context.

### Type theory

Type theoretical realizations mirroring inference rules based logic formalizations have been implemented in various languages.

## Extensions

Heyting arithmetic has been discussed with potential function symbols added for primitive recursive functions. That theory proves the Ackermann function total.

Beyond this, axiom and formalism selection always has been a debate even within the constructivist circle. Many typed extensions of ${\displaystyle {\mathsf {HA}}}$ have been extensively studied in proof theory, e.g. with types of functions between numbers, and function between those, etc. The formalities naturally become more complicated, with different possible axioms governing the application of functions. The class of functions being total can be enriched this way. The theory with finite types ${\displaystyle {\mathsf {HA}}^{\omega }}$ when further combined with function extensionality plus an axiom of choice in ${\displaystyle {\mathbb {N} }^{\mathbb {N} }}$ still proves the same arithmetic formulas as just ${\displaystyle {\mathsf {HA}}}$ and has a type theoretic interpretation. However, that theory rejects Church’s thesis for ${\displaystyle {\mathbb {N} }^{\mathbb {N} }}$ as well as that all functions in ${\displaystyle {\mathbb {N} }^{\mathbb {N} }\to {\mathbb {N} }}$ would be continuous. But adopting, say, different extensionality rules, choice axioms, Markov's and independence principles and even the Kőnig's lemma—all together but each at specific strength or levels—one can define rather "stuffed" arithmetics that may still fail to prove excluded middle at the level of ${\displaystyle \Pi _{1}^{0}}$-formulas. Early on, also variants with intensional equality and Brouwerian choice sequence have been investigated.

Reverse mathematics studies of constructive second-order arithmetic have been performed.[4]

## History

Formal axiomatization of the theory trace back to Heyting (1930), Herbrand and Kleene. Gödel proved the consistency result concerning ${\displaystyle {\mathsf {PA}}}$ in 1933.

## Related concepts

Heyting arithmetic should not be confused with Heyting algebras, which are the intuitionistic analogue of Boolean algebras.