Gödel’s Incompleteness after Joyal
Abstract
We give proofs of Gödel’s incompleteness theorems after Joyal. The proof uses internal category theory in an arithmetic universe, a predicative generalisation of topoi. Applications to Löb’s Theorem are discussed.
1 Introduction
This article concerns an alternative proof of the first Gödel Incompleteness theorem in the language of category theory due to André Joyal, relying crucially on his newly introduced notion of ’Arithmetic Universe’.
In 1973 Joyal lectured on his new proof, and a set of notes were circulated among a small group of workers in topos theory. Unfortunately, the proof has never been made publicly available. This document means to remedy this gap in the literature. Additionally, we will try to indicate how the proof using arithmetic universes is related to the traditional proof. We will also detail a version of Lob’s theorem.
The Gödel Incompleteness theorem remains without a doubt one of the high points of 20th century Mathematics. Gödel’s brilliant insight was the notion of arithmetication, simultaneously straightforward and profound. Straightforward, for the construction is a simple if occasionally finicky exercise in encoding various symbols and axioms, yet profound for it allows formal systems of mathematics to speak about themselves. This self-reflective ability of formal systems has become a defining feature of many later advances in mathematical logic.
As mentioned, Joyal’s alternative proof is based chiefly on the notion of ’Arithmetic Universe’ a generalisation of the notion of a topos. Joyal constructs the initial Arithmetic Universe using ideas from primitive recursive arithmetic. This construction is explicit and may be repeated within the Arithmetic Universe . This uses the fact that Arithmetic Universes have enough structure to interpret many constructions that may be performed in Set. A more refined treatment would say that the internal language of is a sufficiently expressive type theory - we will say more on this later. The rest of the argument then relies on manipulating a categorical incarnation of the Godel sentence constructed from in .
Definition 1.1.
An arithmetic universe is a list-arithmetic pretopos. That is, a category with finite limits, stable disjoint coproducts, stable effective quotients by monic equivalence relations and parameterized list-objects.
Quite a mouthful! Roughly, the first two conditions will allow us to do a large number of basic mathematical constructions; in the internal language it provides for conjunction , disjunction , truth and the falsum . The third condition allows for quotients by equivalence relations; logically it adjoins an existential operator .
111The expert reader will have noticed the similarity between the second and third of these axioms and the Giraud axioms of topos theory.
The final condition, requiring list-objects will allow for the use of (primitive) recursion.
The explicit construction by André Joyal of the initial model of arithmetic Universes uses techniques of primitive recursive arithmetic, bringing in the ability to ’code’ various mathematical objects.
The category is build in stages. First, one starts with the initial ’Skolem theory’ , in effect a category whose objects are all products of . This rather simple category has an internal language, that corresponds to register machines: a programming language where one has an infinite amount of memory states, and one can increase them by 1, set them to 0, or loop over a command. The resulting system is equivalent to that of primitive recursive functions.
The next step is to consider the category of decidable predicates in , denoted . The final step adjoins quotients to obtain . It will be a theorem that this coincides with the initial arithmetic universe .
The initiality of is key, for it implies that is the syntactic category , where is a weak variant on Martin-Lof type theory.
Acknowledgements. The authors would like to thank André Joyal, Antoine Beaudet, Ingo Blechschmidt, Gavin Wraith, David Roberts, Paul Levy, Steve Vickers, Paul Taylor, Alan Morrison and Sina Hazratpour for their help.
2 Arithmetic Universes
In this section we cover some of the basics surrounding arithmetic universes.
Definition 2.1.
Let be two objects in a category with coproducts and pullbacks. We may form the coproduct . The category is said to have disjoint coproducts if the pullback
is isomorphic to the initial object [coproduct over the empty diagram].
Definition 2.2.
Let be a category equipped with a terminal object. A natural numbers object is an object equipped with a map and a map such that for every and there is a unique map such that the following diagram commutes:
Definition 2.3.
Let be a category with finite products. A parametrized natural numbers object is an object equipped with a map and a map such that for every and there is a unique map such that the following diagram commutes:
Definition 2.4.
A category equipped with finite limits has parameterized list objects if for any object there is an object with morphisms and such that for every and there is a unique making the following diagram commute
Remark 2.5.
The need for parameterized natural number objects and parameterized list objects is because as we will see arithmetic universe will not be Cartesian closed. In this setting the non-parameterized versions are not well-behaved.
Definition 2.6.
Let be a category with finite limits. An internal equivalence relation on is a subobject equipped with the following morphisms:
-
•
(Reflexivity) which is a section of and of .
-
•
(Symmetry) such that and .
-
•
(Transitivity) where if
is the pullback square the equations and . Here
Definition 2.7.
The coequalizer of an internal relation is called a quotient object:
A quotient is called effective when it arises as a kernel pair, i.e. the monomorphism
Definition 2.8.
Let be a category with finite limits. Let be a (categorical) property of an object or diagram of objects in . We say is stable if when holds for it also holds for the pullback in for any .
Definition 2.9.
A pretopos is a category equipped with finite limits, stable finite disjoint coproducts and stable effective quotients of monic equivalence relations. An arithmetic universe is a pretopos which has parametrized list objects.
The theory of arithmetic universes is highly reminiscent of that of topoi. Yet arithmetic universes are quite different from topoi in a number of ways.
Remark 2.10 (Small versus large).
Typically, almost every topos one deals with is large. In contrast in AU-theory there are many interesting small AU’s. This has the distinct advantage that we may describe internal AU’s simply as certain internal categories, unlike the case of (Grothendieck) topoi where one has to resort to indexed categories.
Small indexed categories and internal categories are almost equivalent, except that internal categories are more strict, various equations holding up to equality instead of isomorphism. Strictness is often important in obtaining interpretations for various (type-theoretic) languages.
Explicit manipulation of internal categories will be key in the proof of Gódel’s incompleteness theorem.
Remark 2.11 (Recursive versus arbitrary infinities).
An important topic in topos theory is that of geometric logic and geometric theories. A distinct feature is the ability to consider infinitary theories over a topos , where axioms can be build as -operator of atomic sentence over infinite collections . These infinities arise from the base topos , in the sense that may be any object of . In the arithmetic approach, one cannot index over ’any’ infinite set. Instead, one has to give an explicit recursive description of these sets. This phenomenon was the central impetus for investigating ’arithmetic reasoning’ [where infinities must be recursively described] instead of ’geometric reasoning’ [where the infinities may come from the base], see [Hazratpour and Vickers, 2018] and [Vickers, 2017] based principally on Vicker’s geometrization programme already outlined in the last section of [Vickers, 1999].
Remark 2.12 (Predicative versus impredicative reasoning).
A third difference between topos theory and AU-theory is that of predicativity. Traditionally a topos is assumed to be locally cartesian closed, equipped with power objects and dependent products. Power sets have been regarded with suspicion, going back all the way back to Russel and Poincare, for they allow for ’impredicative reasoning’, a fairly imprecise term referring to definitions of objects that already implicitly assume the existence of said object . A famous instance of how impredicative reasoning can be treacherous is Berry’s paradox: ’the smallest positive integer not nameable in under 60 letters’. There are only finitely many strings under 60 letters, but there are infinitely many numbers. Hence there must be a least number not nameable in 60 letters. But we have just named it!
Russel argued that the paradoxical nature of Berry’s non-nameable number is caused by a form of vicious circularity. What goes wrong, he claimed, is that an entity is defined, or a proposition is formulated, in a way that is dangerously circular. 222Not all mathematicians conclude from Berry’s paradox the unreliability of impredicative reasoning. A more conventional view isolates the vagueness in the notion of ’definability’ or ’nameability’ as the culprit. Nowadays, issues of predicativity have been mostly forgotten and even constructive mathematicians use power sets with gay abandon. Yet at the start of the 20th century the issue of impredicative reasoning attracted the attention of big-name mathematicians, the first predicative foundations going back to Weyl.
The arithmetic reasoning that is legitimate in AU’s is natively predicative. The first important instance where predicative and impredicative foundations diverge occurs in the definition of topological space. Traditionally a topological space is a set together with a collection of subsets, ostensibly relying fundamentally on the power set axiom of ZFC. In predicative foundations we need to change the definition of topological space; instead of regarding open sets as fundamental we regard a generating basis of open sets as the fundamental and axiomatises these, this leads to the notion of [various forms of] formal spaces.
Let us consider a concrete example where this change of definition will change the way we think about ’spaces’. The closure of a subset of of a topological space can be traditionally defined as the intersection of all closed sets containing . This is problematic predicatively as we quantify over a set to define that itself includes .
In formal topology [which crop up when one considers the analogy of subtoposes for Arithmetic Universes] the notion of closure splits and closed sets split in the sense that there are multiple notions that are inequivalent predicatively, yet equivalent when one allows for impredicative notions like unrestricted power sets.
3 Primitive Recursive Arithmetic and the Initial Arithmetic Universe
Definition 3.1.
A Skolem category is a category with finite products equipped with a natural number object. A Skolem theory is a Skolem category where every object is a finite product of the natural number object . A morphism of Skolem Theories is a functor which preserves finite products and the Natural Number object.
A Skolem theory is a kind of Lawvere theory where the operations arise from zero, successor and recursion.
Example 3.2.
The category of Skolem Theories has an intial object which might be called the minimal Skolem theory, or the "free theory" generated by the basic data.
Caveat.
One cannot identify the arrows of with actual functions; for let be the full subcategory of with objects . Since is initial we have a map of Skolem Theories:
the idea is that exists as a primitive recursive algorithm for the ’actual’ set-theoretic function , and it can happen that but . This might sound a little mysterious if one thinks in terms of the set-theoretic conception of functions, which identifies functions with their graph. We want to work in a setting where functions are more akin to algorithms; it may happen that functions coincide extensionally but not intensionally.
Extensional equality of functions means simply that for all in the domain, but functions might have algorithmic differences which prevent the from being equal to . Intensional character of a function is the additional features of a function, such as its algorithmic character, that go beyond the extension (or graph) of the function . Another way of seeing this is that two functions might be given by different algorithms and even if in Set theory we may prove for all in the domain, there might not be any primitive recursive construction that witnesses this!
Example 3.3.
Let be the canonical map. Consider the category obtained by inverting all maps for which is a bijection in . By a theorem of Kleene this is the Skolem theory of total recursive functions.
A procedure will now be described which completes any Skolem Theory to a category with finite limits. Let be a Skolem theory. The idea is to adjoin "decidable subsets": define a subset of to be a map such that . Write for this class of subsets, Then is actually a contravariant functor:
The diagonal is given by defined above; similarly one defines a diagonal , for all . The class of subsets actually carries a Boolean algebra structure: unions, intersections and complements of subsets correspond to the supremum, infinum and 1 minus the corresponding characteristic functions.
Definition 3.4.
Given a Skolem theory the category of predicates in is defined as follows:
-
•
Decidable predicates in , that is morphisms such that .
-
•
: -morphisms such that [where is the composition of with ] and two such -morphisms are equal if
Proposition 3.5.
Here are some properties of :
-
1.
has finite limits: for example the equalizer of is just the subset given by .
-
2.
is regular and satisfies the axiom of choice. In fact, any arrow factors as a split epi followed by a mono ( caution: do not confuse monomorphisms with subsets!). Suppose we are given : we may factor as . Define , which is has the splitting of given by . Here the operator is primitive recursively defined as bounded minimization: it looks for the minimum over all natural numbers smaller than which is indeed primitive recursive [unbounded minimisation is of course not primitive recursive].
-
3.
Coproducts exist in : given decidable subsets of , for example, take the union of the decidable subsets and of .
-
4.
for any graph object
in , there exists a free category object over in
Proof.
See Proposition 4.7 of [Maietti, 2010]. ∎
Example 3.6.
The category is the category of decidable primitive recursive predicates.
For our purposes does not have enough categorical properties. It is necessary to make a second completion which adds quotients.
Definition 3.7 (Exact/Regular completion).
Let be a regular category. We form a new category whose objects are pairs with an equivalence relation on , and whose maps are classes of maps such that , under the relation if and only if there exists a lifting of :
The resulting category is an exact category.
Proposition 3.8.
The category is an arithmetic universe. In particular the following properties hold:
-
•
finite limits exists
-
•
it is a regular category [but notice that the step spoils the splitting of the image factorisation]
-
•
coproducts exists.
-
•
free category objects exist for any graph object
-
•
quotients exists (but are not split in general)
Proof.
See proposition 4.10 of [Maietti, 2010]. ∎
These axioms are the defining properties for the notion for Arithmetic Universe (AU). Applying the completion procedure for yields the initial Arithmetic Universe .
Theorem 3.9.
The category coincides with the initial arithmetic universe.
Proof.
See Theorem 6.2 of [Maietti, 2010]. ∎
4 Arithmetic Type Theory
We will see that there is a very precise correspondence between the initial arithmetic universe and the arithmetic type theory calculus . This typed calculus can be thought of as a type-theoretic incarnation of primitive recursive arithmetic. Indeed, any primitive recursive function can be encoded in this type theory. There is also a related but different correspondence between register machines and Skolem theories, cf [Morrison, 1996]. Using register machines one can also encode primitive recursive functions.
In this chapter we will introduce arithmetic type theory and detail how it corresponds to the internal language of arithmetic universes.
Remark 4.1.
Type theory might not be familiar to most mathematicians brought up in the set-theoretic tradition. Type theory is an alternative foundation for mathematics, whose basic objects are not elements and sets as in traditional set-theory but terms and types. Proponents claim it to have several distinct advantages over the traditional set-theory based formulation of mathematics. For one, Type Theory is natively constructive. It also integrates the logic and the rest of the foundational system more tightly than in the traditional set-up, where ZFC is build on top of a specified logical syntax. Interest in type theory has surged with the recent development of Homotopy Type Theory, see [Univalent Foundations Program, 2013]. We will be mostly concerned with a specific type theory called Arithmetic Type theory .
Remark 4.2.
Objects of study of type theory, i.e. types, have different ontological status than objects of study of set theory, i.e. sets. Types are constructed together with their elements, and not by collecting some previously existing elements unlike the case of sets. “A type is defined by prescribing what we have to do in order to construct an object of that type.” [Martin-Lof, 1998]. The fundamental principle of type theory is that types should be defined by introduction, elimination, and computation rules. This is closely related to the well-known principle of category theory: objects should be defined by universal properties.
To make this point clear we give the example of binary product as a universal construction in category theory. The following table illustrates the connection between categorical products and type theoretic products:
|
Type theory is an alternative to the traditional set-theoretic foundations. Recently, a variant called Homotopy type theory has attracted a great amount of interest [[Univalent Foundations Program, 2013]]. Formerly the beau of a small cadre of logicians, computer scientists and heterodox mathematicians type theory has blossomed with the advent of the Univalent Foundations Program/ Homotopy Type Theory and commands ever larger throngs of adherents. We will be primarily interested in a non-homotopic variant which we’ll christen Arithmetic Type Theory for convenience.
Remark 4.3.
Type theory is natively constructive, meaning in particular that the Principle of Excluded Middle does not hold in general. It is commonly supposed that constructive mathematics imposes too heavy a constraint on the tools a mathematician may use.
For many it comes as a surprise to learn that constructive mathematics is more general than classical mathematics. Classical mathematical systems may in fact be embedded inside their constructive counterparts. Some favoured theorems will not hold as stated, but experience suggests that by changing the definitions slightly the spirit if not the letter of the law may be preserved. Rather than a annoying inconvenience searching for the alternative formulations often turns up new mathematics in well-trodden fields.
For a very clear exposition of the advantages of constructive mathematics and the relation with the internal language of topoi [of which arithmetic universes are a generalisation] see the first two chapters of [Blechschmidt, 2017].
In traditional foundations one learns that everything is a set. Set theory starts as a theory with one binary connective and then proceeds by postulating a number of axioms with the hope of explaining all the possible behavior a set must have. Type theory starts from an entirely different perspective. It involves several kinds of declarations, called judgments, which declare that something is a type or term of a type. These judgments are derived from rules which explain how new judgments can be made from old ones. As an example, suppose that we interested in the disjoint sum. Assuming that the type theory has the disjoint sum type, then the disjoint sum comes with the following rules:
-
•
If and are types, then is a type.
-
•
If is a term of type , then is a term of type . Similarly, if is a term of type , then is a term of type .
Actually, more rules are needed which explain how the terms of a disjoint sum are used, see below. It is hoped that the general syntax is nevertheless elucidated.
The type theory we need is a type theory constructed by Maietti [Maietti, 2005] in the style of Martin-Löf [Martin-Löf and Sambin, 1984]. One of the features of this kind of type theory is that the identity can be considered as a type. This gives us two different kinds of ways to talk about identities in the type theory. There are identities which are postulated by valid judgments that say that the terms and are judged equal. So for the above example, we would need a rule that says that if is a valid judgment, then is a valid judgment. This kind of equality is understandably called judgmental equality. But then there are propositional equalities: if is a type and and are terms of that type then there is a type . The idea is that if this type has a term, then the equality must be equal. So terms should be thought of as proofs, hence the name propositional equality. The rules of this equality work (approximately, the more formal definition follows later) as follows:
-
•
If is a valid judgment, then there is a term (proof) .
-
•
If is a term of the type, then . ’All proofs are equal’.
-
•
If is a term of the type, then is a judgmental equality.
Remark 4.4.
The last two rules makes our type theory an extensional type theory. An intentional type theory is one where one does not try to collapse the different inhabitans of the identity type. The distinction was first made by Martin-Löf, who published his intentional type theory in 1975 [Martin-Löf, 1975] and his extensional one in 1984 [Martin-Löf and Sambin, 1984]. The intentional type theory has the advantage that propositional equality is decidable. In extensional type theory the propositional equality is not decidable, but at first sight it seems more suitable for ordinary mathematics. However, it has been argued at length [Hofmann, 1995] that intentional type theory with extensional features is actually the right way to do type theory. Homotopy type theory is based on Martin-Löf’s intentional type theory, adding the univalence axiom, which says roughly that isomorphic structures may be identified. The main idea of homotopy type theory is that a type should not be seen as a type, but as a space (in the sense of homotopy theory). Homotopy type theory provides a new foundation of mathematics called univalent foundations. This not only provides an easier way to build a proof-checkers of ordinary mathematics, it also provides a way to do interesting mathematics which has not come up under classical set theory: synthetic homotopy theory. See the Homotopy type theory book [Univalent Foundations Program, 2013] for more information.
Maietti’s type theory is an extensional type theory based on the extensional version of Martin-Löf’s type theory [Martin-Löf and Sambin, 1984].
Type theory reasons about declarations called judgments. There are the judgments that say a particular structure is a context, type or term.
-
•
is a context (formally ‘ cont’).
-
•
is a type in context (formally ‘).
-
•
is a term in context (formally ).
Then there are also the judgments which declare certain contexts, types or terms to be equal:
-
•
and are equal as contexts (formally ‘ cont’).
-
•
and are equal types in context (formally ).
-
•
and are equal terms in context (formally ).
These judgments are derived by certain rules allowing one to make a new valid judgment from a list of valid judgments . Usually in type theory, this is written down in a strictly formalized way as
We are going to be a bit more informal; we think that it is less daunting for an ordinary mathematician to see the statement ‘if are valid judgments, then is a valid judgment’. For the more formal description of Maietti’s type theory see [Maietti, 2005].
The first rules we take care of are the context rules. A context is a list of variables in types where each type may depend on the previous one, so the contexts are generated by the rules
-
•
The empty list is a context.
-
•
If is a context and a type dependent on , then is a context, where is required to be a new variable not in .
There are more structural rules. A variable in a context can be declared a term:
-
•
If is a context, then is a term in context.
There are some coherence rules for equality:
-
•
If are equal types and is a term of in context , then is a term of type in context .
-
•
If are equal terms of type , and type are equal types, then are equal terms of type .
There are some ordinary equality rules as well that say that equality behaves as an equivalence relation. We only write down these rules for types:
-
•
If is a type in context, then is equal to itself: .
-
•
If is an equality of types, then is an equality of types as well.
-
•
If and are equalities of types, then so is .
These rules must of course also hold for the equalities of contexts and terms.
The following two rules are derivable by induction, but they are nevertheless important. The substitution rules are
-
•
If and are terms, then , where is with all mentions of replaced by .
-
•
If and then .
The rules of weakening are
-
•
If is a type and a term, then is a term.
-
•
If is a type and an equality of terms, then is an equality of terms.
Type constructors
The remaining kind of rules that need to be discussed are the rules that belong to type constructors - a type constructor specifies how to build a new type from existing ones and how to use it. Each type constructor comes with five kind of rules:
-
1.
Formation rules that say when the type constructor yields a new type.
-
2.
Introduction rules that say how to define new terms of the newly constructed type.
-
3.
Elimination rules that say how terms of the type are used.
-
4.
Computation rules that say how the elimination and introduction rules are combined.
-
5.
Uniqueness rules that say how the terms of the type are uniquely determined by the elimination rules. They are often omitted, for they are usually derivable.
Then each time a new type or term is introduced there need to be new rules that state that the equality is well-behaved. For instance, when the disjoint sum type constructor and its terms are defined there are additional equality rules
-
•
If and are type equalities, then there is the type equality .
-
•
If are equal terms, then are also equal terms.
These usually remain unstated, for no other reason than to save space. The rules for the term and type constructors are given by Maietti as follows
The basic type theory for arithmetic universes is the dependent type theory that consists of all the above type constructors. It is possible to extend the basic type theory to something larger.
Definition 4.5.
A theory of is a typed calculus that consists of the type constructors of containing possible additional type judgments , term judgments , type equality judgments and term equality judgments . There are some obvious restrictions: can only be added if is derivable in , if and are derivable in , and if and are derivable in . A morphism of theories is an assignment of judgements of to the judgements of which preserve the rules.
Remark 4.6.
The internal language of an arithmetic universe has been mentioned, but what does this mean exactly? Roughly, it means the following: given an arithmetic universe we may interpret types in as objects in and types in context in its slice categories (where is the context). Operations like sum and product of types in the type theory correspond to sum and product in the category . An operation like the existence operator is a little more involved, using the image factorisation that an arithmetic universe possesses by virtue of it being a ’regular’ category.
Example 4.7.
Let be any category. Let be the theory which is obtained by adding to the calculus of one closed type (i.e. in which the context is empty) for every object of , a term for every morphism in , a type equality type if and are the same objects in and a term equality if and are the same morphisms in .
Remark 4.8.
One should be careful to distinguish Type Theory in general, and specific type theories. In that vein, be aware that there is a difference between and . Both are often called the ’internal language’. Roughly, the latter regards the arithmetic universe as a distinct mathematical universe in which one may do mathematics, while the former concerns constructions that makes sense for any Arithmetic Universe. On the other hand they are related: is build from by adding certain types, terms, and equalities — but no new rules! In short, concerns mathematics internal to a given mathematical universe while is the language that is used between different mathematical universes.
Definition 4.9.
Let be a theory in the above sense. The syntactic category of is a category with as objects the closed types of . If and are two closed types, then a morphism from to is defined as a term , where two morphisms and are considered to be equal if is derivable. Composition is given by substitution and the identity is represented by .
Let be a theory of . Then is an arithmetic universe.
Remark 4.10 (Syntax-Semantics adjunction).
We will focus on the initial object of the category of Arithmetic Universes . Initiality of the model will mean roughly that ; one also says that is the syntactic category for the type theory . Let denote the category of arithmetic universes, and morphisms preserving all structure, let denote type theories over with maps interpretations preserving structure up to isomorphism — we will explain this in more detail later. We have an ’syntax-semantics’ adjunction
where the -functor produces the internal language of an arithmetic universe and the -functor the syntactic category for a given -type theory . In this case, the adjunction is in fact an equivalence.
Given a theory we may construct its syntactic category . In our case we will take . This type theory can encode primitive recursive arithmetic.
Theorem 4.11.
The syntactic category coincides with Joyal’s construction: .
Proof.
Theorem 6.6 of [Maietti, 2003]. ∎
Given a sentence in the language of we may ask whether proves . The sentence also appears as a subobject of in . Its provability is exactly the assertion that it is the maximal subobject of . This motivates the following definition.
Definition 4.12.
An arithmetic universe is consistent if and are distinct. A theory is complete if given , we have or [in the meta-theory].
Remark 4.13.
A peculiarity of the above definition is that syntactic completeness is a sort of Boolean property of the syntactic category . Indeed, this is already apparent in the classical formulation of syntactic completeness as the existence of a proof or its negation for all sentences in the theory. The above formulation brings intuitionistic aspects of the provability predicate in direct contact with the constructive nature of the internal languages of categories.
Remark 4.14.
There are traditionally two notions of both completeness and consistency, a semantic one and a syntactic one. A theory is semantically consistent 333This is sometimes also called satisfiability of . if it has a model . A theory is semantically complete444This is sometimes called validity of . if for any formula in the language of it is provable if and only if it is true in all models. A theory is syntactically consistent if it does not prove a contradiction, i.e. if it does not derive the falsum . A theory is syntactically complete if for any either proves or it proves its negation . The semantic side and the syntactic side are often conflated, but it is important to keep them distinct. The semantic side always refers to a class of models for the theory , while the syntactic theory only refers to the theory. The Godel Completeness theorem states that classical first order theories are semantically complete with respect to Set-models. Logics that are not classical first-order often fails to have enough Set-based models. In categorical logic one works instead with category-based models. Despite being of indisputable interest, semantic notions of completeness and consistency will not occupy us here.
The first Gödel Incompleteness Theorem states that a recursively enumerable theory that is consistent and can encode arithmetic is syntactically incomplete. The Second Incompleteness Theorem states if a recursively enumerable theory that can encode a weak fragment of arithmetic proves its own consistency then in fact it is not consistent.
5 The Gödel Incompleteness Theorems
In this section we will give a proof of Gödel’s second Incompleteness Theorem using arithmetic universes.
Definition 5.1.
Let be an object of a category . We say is projective if given any epimorphism we have a lift
At this point a translation of Cantor’s Diagonal argument into categorical terms is given for motivation and later comparison.
Theorem 5.2 (Cantor).
Let a topos in which is projective. If there exists an enumeration , then is degenerate.
Proof.
Indeed, suppose exists, form the pullback
and consider . By definition of projectivity of there is a lifting of
then is defined by the pullback
the composite pullback
is then just
It follows that
is an equalizer. Indeed, suppose
is a commutative diagram. Then we have, since is a poset with as bottom and as top, that . Thus . Then, by one of the two pullbacks above, factors through . It then follows that .
Next, is also the pullback of along , so as well; but then . ∎
Definition 5.3.
Let be an arithmetic universe. An AU-object is an internal category
such that internally is a list-arithmetic pretopos. Arithmetic universe objects (AUO’s) and their internal functors form a (large, external) category ; hence it makes sense to talk about limits, colimits, initiality, et cetera of AU-objects.
Definition 5.4.
A sketch is quadruple where is a graph, is a function, is a collection of diagrams in and is a collection of cones in . A sketch morphism is a graph homomorphism such that , (ii) every diagram in is mapped to a diagram in and (iii) every cone in is mapped to a cone in .
Definition 5.5.
If is a category then the underlying sketch is given as
-
•
is the underlying graph of
-
•
is the map which picks out the identity arrows of
-
•
is the collection of all commutative diagrams of
-
•
is the collection of all limit cones of .
Definition 5.6.
A model for a sketch in a category is a morphisms of sketches from to the underlying sketch of .
Note that the models of in form a category.
Lemma 5.7.
There is a sketch of Skolem categories.
Proof.
See Lemma 7.12 in [Morrison, 1996]. ∎
Theorem 5.8.
Let be any arithmetic universe. Internally, we may construct the initial arithmetic universe object .
This is Theorem 7.13 of [Morrison, 1996]. We give a sketch of the proof. The nontrivial part is the construction of the internal initial Skolem theory . This relies fundamentally on the fact that Arithmetic Universes have parameterized list object and hence may implement primitive recursion. The reader is warned that the second part of the proof is not terribly enlightening, but may nevertheless give a sense of "what’s involved".
Proof.
We consider the sketch and the empty sketch . We have a morphism of sketches which induces the forgetful functor ; by the free model theorem [Theorem 29 of [Palmgren and Vickers, 2007]] there is a free left adjoint . The internal initial Skolem theory is .
Let the following denote
We construct internally . The object of objects of is all predicates, i.e. the following equaliser
The arrows from to in are equivalence classes of the set
which is internally constructed as the equalizer
Next, define
We have if and only if . We construct the pullback of such that have the same source and target as
The subset of with if and only if is build as the equalizer:
The object of morphisms is given as the quotient of . The exact-regular completion is a similar mess. ∎
Remark 5.9.
It has become clear that, although quotidian, the need for redoing external constructions internally is a burdensome process. Ideally, one would have access to a device that could make these internal workings completely routine. The internal language provides such a device.
Definition 5.10.
Given an internal category inside a category with finite limits we may take the externalisation, taking objectwise global sections: with the obvious maps. We obtain an external category .
Remark 5.11.
There is a different kind of externalization that is more common. That is the Grothendieck-externalization whose objects are and morphisms are diagrams
It is well-known that this gives a 2-functor from the 2-category of internal categories to fibrations over . This functor is in fact fullly faithful, see lemma 2.3.3 of B3 in [Johnstone, 2003]. This 2-functor sends internal (co)limits to fibered (co)limits. The simple externalization is simply the fiber over the terminal object, in other words . That means that if has a certain limit or colimit has that (co)limit, and it is moreover stable under pullback.
Remark 5.12.
There is an important difference between local existence or global existence. Take for example the statement that an internal category has an internal terminal object. Local existence would say that in the Kripke-Joyal semantics which is different from the statement that there exists an object such that . In the construction we actually get global existence for the objects that we construct and this is key.
Proposition 5.13.
Let be an arithmetic universe equipped with an internal arithmetic universe object . The externalisation of an internal arithmetic universe object is an (external) arithmetic universe.
Proof.
An arithmetic universe is a list-arithmetic pretopos. That means that is internal category that is internally
-
•
Finitely complete
By the above remarks on the Grothendieck-externalization this is immediate. -
•
Finite disjoint stable coproducts
Similarly. In fact, we have all finite colimits. -
•
Parameterized list objects
We have internal list objects in . As we have global existence of our objects this means that for any object there is a diagram such that . Let’s write that out using the Kripke-Joyal semantics. The above maybe be translated asWe may specialise to . Then we have
By uniqueness of it descends to by effectiveness of quotients in an AU. So we see that internal list objects give us external parameterized list objects!
-
•
Regular
which is equivalently the statement that is (i) finitely complete (ii) has coequalizers by kernel pairs and (iii) coequalizers by kernel pairs are preserved by pullback. The last condition does not involve any existential quantifiers hence specializing to yields the regularity of . -
•
Exactness
This means that for any given equivalence relation we havei.e. if denotes the coequalizer of then we claim that which is a simple equality, containing no existence quantifiers hence by the Kripke-Joyal semantics it follows that is exact.
∎
Let be the initial arithmetic universe, and its internal initial arithmetic universe. Let denote the natural number object in and the natural number object in . Construct the externalization . Since is the initial arithmetic universe there is the initial functor . Roughly speaking it interprets any construction that can be done in a general arithmetic universe in the specific universe , which why we’ll often denote for .
We also have a global section functor . Let us see how it acts. On objects: we construct the generic family of objects as a pullback
Given a representing code/name/arrow for an object in we compute as the pullback
where denotes the projection to the codomain.
On arrows: let be the pullback
let be the pullback
The way we constructed implies it is a subobject of and the composition map restrict to a map such that
commutes. By the universal property of the pullback we obtain a map . The generic family is given by
Given a code for an arrow with domain and codomain we pullback
where we notice that , so we get a map .
Caution 5.14.
The functor is not a morphism of arithmetic universes!
Lemma 5.15.
Let . We have a map .
Proof.
This follows from the existence of the Freyd cover obtained from gluing along the global section functor and the initiality of . We consider the arithmetic universe . There is a functor . Construct the Artin-Wraith gluing or Freyd cover along . Its objects are triple where . There is a projection map acting as which is an AU functor. By initiality we have a map . Again by initiality the diagram
commutes. Hence acts as . The map furnishes our required map. ∎
Remark 5.16 (Ingo).
Remark that this is quite curious as it would appear to say that: which seems false. Indeed the analogous statement
is absolutely false. Take , then we conclude that if were consistent it would prove its own consistency, hence would be inconsistent by Godel II. We are saved however by the observation that is not a formula in arithmetic type theory, but a sequent (as it uses a negation). Therefor this argument cannot be carried out internally.
The internal arithmetic universe does not have power objects. However, the power object do exist, one level higher, in . Let be a (global) object of . We have . To construct the power object of subobject we would first have to construct the monomorphism. The usual definition of monomorphism cannot be expressed in arithmetic type theory unfortunately, as it uses a universal quantifier one too many times. Fortunately, there is an alternate characterization: a map is a monomorphism if in the following diagram
we have . Hence the object of monomorphisms is constructed as . The subobjects may be similarly constructed by defining the relation on given by and then taking the quotient.
Given a subobject there are two natural subobjects in associated to : the equalizer
and the global sections . These notions coincide:
Proposition 5.17.
Let . The following subobjects are equal:
Proof.
Let’s investigate the relation between and . Recall how is constructed: Let denote the pullback
over we have the commutative triangle
pullback this triangle along to obtain
where the front and back faces are pullback squares. We obtain a map by the universal property of the equalizer.
We have a map . Compose this with the arrow to obtain a map . Together with the map this produces a map by the universal property of the pullback. ∎
Proposition 5.18.
-
1.
If is the formal natural numbers object, then there is an enumeration
of "all formulae with one variable free."
-
2.
The terminal object is projective.
Proof.
Recall that the initial arithmetic universe is constructed in three stages: take the initial Skolem theory , take its category of predicates and finally construct the ex/reg-completion.
The construction of i complicated but essentially the morphisms are given by primitive recursive functions. These are primitive recursively enumerable hence we have an epimorphism . Similarly, for . Observe that we have a map which is defined by sending to . Next, for a apply the quotient map . Notice that after applying this quotient map it will be the identity on monomorphisms. We conclude that we have the required epimorphism .
Suppose we have an epimorphism for equivalence relations on objects , and a map . By construction of the exact/regular completion the map lifts to a map . Take the pullback
where we used that epimorphisms are stable under pullback. The pullback is also of the form for some equivalence relation on . Hence we have an epimorphism ; composing with we get an epimorphism using that an epimorphism in an exact/completion of a category between objects in the image of yields an epimorphism in . In we know that every map factor through a split epimorphism followed by a monomorphism. We conclude that the map splits hence by composition we obtain a map and hence a map . ∎
Finally, we construct
where is the map which assigns each natural number its "formal expression" .
Theorem 5.19 (Gödel’s First Incompleteness Theorem).
If an arithmetic universe object in is [syntactically] complete then it is the trivial -object [hence inconsistent].
Proof.
Cantor’s Diagonal argument will now be imitated to prove Gödel’s Incompleteness Theorem in a special case. Form the pullback:
Since 1 is projective in the initial AU form the lift of :
then
is given by pullback. The subobject is the categorical incarnation of the Gödel sentence ; asking whether this subobject factors through is equivalent to asking whether is provable.
Consider , it follows that this is a pullback square by composition
The bottom map is the composition ; we claim this composition coincides with . Indeed by definition of . By construction also hence the composition is .
If equals then is the pullback of along ,hence we conclude equals . This contradicts the consistency of . On the other hand, if equals then is the pullback of along , hence we conclude equals , contradiction. We conclude that the Gödel sentence is neither or . ∎
We are now ready to see the proof of Godel’s second incompleteness theorem for PRA. Let be as before. The arithmetic universe proves the consistency of if equals the minimal subobject .
Theorem 5.20 (Gödel’s Second Incompleteness Theorem).
Assume that is consistent. Then the subobject does not equal the minimal subobject in .
Proof.
We have the diagram
we also have
this follows from the canonical map . In turn the above implies that
commutes. We will show that it is also an equalizer. Let
be a commutative diagram. The object is an internal poset with least element and largest element . Therefore the externalization is also a poset with bottom and top . Also . Thus . By the above pullback factors through .
If equals then is the pullback of along ,hence we conclude equals . This contradicts the consistency of . It follows that is not and the consistency of is not provable. ∎
6 Lob’s Theorem
This is a sketch of a proof of Lob’s theorem in Arithmetic Universes. For now, the reader can assume that is the initial arithmetic universe.
To give a proof of Lob’s theorem we will need to be able to state Lob’s Theorem.
Definition 6.1.
We say that implies in , written , if there is an inclusion of subobjects . We interpret as the judgement .
Notice that as defined above, a judgement is not itself a proposition. It is therefore not immediately apparent how to interpret the (conceptually distinct) sentences like or .
An arithmetic universe is typically not cartesian closed, so the usual way of talking about implication will not work here. Let be an arithmetic universe, let be monomorphisms/propositions. Let be the classifying AU of . We have an adjoint pair of AU functors
Moreover, we also know , we may then identify with the pullback along
Definition 6.2.
Given two judgements and we interpret implication of judgements as the statement that there is a morphism of subobjects in .
Definition 6.3.
We say if the subobject is inhabited.
We will also write for .
Theorem 6.4 (Löb).
Let as above, let be a given proposition (=monomorphism). Then implies .
We will need to verify a number of properties of the implication as defined as above.
Proposition 6.5.
If then
Proof.
Immediate from lemma 5.15. ∎
Proposition 6.6.
Proof.
Apply the functor to . ∎
Proposition 6.7 (Modus Ponens).
and then .
Proof.
Immediate from the definitions. ∎
Proposition 6.8 (Internal Modus Ponens).
.
Proof.
Let denote the classifying AU of the proposition . Write out to see that . We have an evaluation map . Remark that .
We want to prove that there is an arrow . We have the following diagram
Hence there is an arrow . ∎
Proposition 6.9.
and then
Proof.
Immediate. ∎
Proposition 6.10.
and implies
Proof.
Consider the classifying arithmetic universe . By assumption we have a morphism and a morphism over . The composition furnishes the required morphism. Here is the projection on the second coordinate. ∎
We have the following lemma, the AU-incarnation of the diagonalization lemma. It is reminiscent of Lawvere’s fixed point theorem.
Definition 6.11.
Let be a map. Let be a global point. We say is a fixed point of if
Lemma 6.12.
Let be a map in . Then has a fixed point.
Proof.
Let be the composition
Construct as the pullback
By projectivity of we have a lift
where . Consider the composition
where denotes the morphism
This is equal to . Finally, the claim is that is a fixpoint for . By construction we have . Therefore, by definition of as the composition in the first square. ∎
Let be a proposition. Consider the operator defined as . Apply the diagonalization lemma to obtain the Lob sentence . It satisfies .
Recall our formulation of Lob’s theorem:
Theorem 6.13.
Let as above, let be a given proposition (=monomorphism). Then implies .
Proof.
Remark 6.14.
As arithmetic universes are not in general cartesian closed there is no one notion of implication. In many ways the above discussion merely evaded this issue by looking mostly at entailment. It would be of interest to investigate novel implication concepts and ascertain whether or not Lob’s theorem may be proved of them.
References
- [Blechschmidt, 2017] Blechschmidt, I. (2017). Using the internal language of toposes in algebraic geometry. PhD thesis. Advisor: Marc Nieper-Wißkirchen.
- [Hazratpour and Vickers, 2018] Hazratpour, S. and Vickers, S. (2018). Fibrations of AU-contexts beget fibrations of toposes. arXiv preprint arXiv:1808.08291. Submitted to Theory and Application of Categories (TAC).
- [Hofmann, 1995] Hofmann, M. (1995). Extensional constructs in intensional type theory. PhD thesis, University of Edinburgh. Advisor: D. Sannella.
- [Johnstone, 2003] Johnstone, P. (2003). Sketches of an Elephant: A Topos Theory Compendium.
- [Maietti, 2003] Maietti, M. E. (2003). Joyal’s arithmetic universes via type theory. Electronic Notes in Theoretical Computer Science, 69:272–286.
- [Maietti, 2005] Maietti, M. E. (2005). Reflection into models of finite decidable FP-sketches in an arithmetic universe. Electronic Notes in Theoretical Computer Science, 122:105–126.
- [Maietti, 2010] Maietti, M. E. (2010). Joyal’s arithmetic universe as list-arithmetic pretopos. Theory and Applications of Categories, 24:39–83.
- [Martin-Löf, 1975] Martin-Löf, P. (1975). An intuitionistic theory of types: Predicative part. In Studies in Logic and the Foundations of Mathematics, volume 80, pages 73–118. Elsevier.
- [Martin-Lof, 1998] Martin-Lof, P. (1998). An Intuitionistic Theory of Types. In G.Sambin and Jan.Smith’s Twenty Five Years of Constructive Type Theory. Oxford Logic Guides, Clarendon press, Oxford.
- [Martin-Löf and Sambin, 1984] Martin-Löf, P. and Sambin, G. (1984). Intuitionistic type theory, volume 1 of Studies in Proof Theory. Bibliopolis Naples.
- [Morrison, 1996] Morrison, A. (1996). Reasoning in arithmetic universes. Master’s thesis, University of London - Imperial College of Science, Technology and Medicine. Advisor: S. Vickers.
- [Palmgren and Vickers, 2007] Palmgren, E. and Vickers, S. J. (2007). Partial horn logic and Cartesian categories. Ann. Pure Appl. Logic, 145(3):314–353.
- [Univalent Foundations Program, 2013] Univalent Foundations Program, T. (2013). Homotopy type theory—univalent foundations of mathematics. The Univalent Foundations Program, Princeton, NJ; Institute for Advanced Study (IAS), Princeton, NJ.
- [Vickers, 1999] Vickers, S. (1999). Topical categories of domains. Mathematical Structures in Computer Science, 9(5):569–616.
- [Vickers, 2017] Vickers, S. (2017). Arithmetic universes and classifying toposes. Cahiers de Topology et Géométrie Différentielle Catégoriques, 58(4):213–248.