Gödel’s Incompleteness after Joyal

Joost van Dijk, Alexander Gietelink Oldenziel
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 𝒰𝒰\mathcal{U} using ideas from primitive recursive arithmetic. This construction is explicit and may be repeated within the Arithmetic Universe U0subscript𝑈0U_{0}. 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 𝒰𝒰\mathcal{U} 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 𝕌𝕌\mathbb{U} in 𝒰𝒰\mathcal{U}.

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 \wedge, disjunction \vee, truth top\top and the falsum bottom\bot. The third condition allows for quotients by equivalence relations; logically it adjoins an existential operator \exists. 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 U0subscript𝑈0U_{0} of arithmetic Universes uses techniques of primitive recursive arithmetic, bringing in the ability to ’code’ various mathematical objects.
The category 𝒰𝒰\mathcal{U} is build in stages. First, one starts with the initial ’Skolem theory’ Σ0subscriptΣ0\Sigma_{0}, in effect a category whose objects are all products of \mathbb{N}. 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 Σ0subscriptΣ0\Sigma_{0}, denoted Pred(Σ0)PredsubscriptΣ0\operatorname{Pred}(\Sigma_{0}). The final step adjoins quotients to obtain Pred(Σ0)ex/reg\operatorname{Pred}(\Sigma_{0})_{ex/reg}. It will be a theorem that this coincides with the initial arithmetic universe 𝒰0subscript𝒰0\mathcal{U}_{0}. The initiality of 𝒰0subscript𝒰0\mathcal{U}_{0} is key, for it implies that 𝒰0subscript𝒰0\mathcal{U}_{0} is the syntactic category Syn(𝒯AU)𝑆𝑦𝑛subscript𝒯𝐴𝑈Syn(\mathcal{T}_{AU}), where 𝒯AUsubscript𝒯𝐴𝑈\mathcal{T}_{AU} 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 A,B𝐴𝐵A,B be two objects in a category 𝒞𝒞\mathcal{C} with coproducts and pullbacks. We may form the coproduct A+B𝐴𝐵A+B. The category 𝒞𝒞\mathcal{C} is said to have disjoint coproducts if the pullback

A×A+BBsubscript𝐴𝐵𝐴𝐵{A\times_{A+B}B}B𝐵{B}A𝐴{A}A+B𝐴𝐵{A+B}

is isomorphic to the initial object 00 [coproduct over the empty diagram].

Definition 2.2.

Let C𝐶C be a category equipped with a terminal object. A natural numbers object is an object \mathbb{N} equipped with a map 0:1:010:1\to\mathbb{N} and a map S::𝑆S:\mathbb{N}\to\mathbb{N} such that for every a:1X:𝑎1𝑋a:1\to X and g:XX:𝑔𝑋𝑋g:X\to X there is a unique map f:X:𝑓𝑋f:\mathbb{N}\to X such that the following diagram commutes:

11{1}{\mathbb{N}}{\mathbb{N}}X𝑋{X}X𝑋{X}00\scriptstyle{0}a𝑎\scriptstyle{a}S𝑆\scriptstyle{S}f𝑓\scriptstyle{f}f𝑓\scriptstyle{f}g𝑔\scriptstyle{g}
Definition 2.3.

Let 𝒞𝒞\mathcal{C} be a category with finite products. A parametrized natural numbers object is an object \mathbb{N} equipped with a map 0:1:010:1\to\mathbb{N} and a map S::𝑆S:\mathbb{N}\to\mathbb{N} such that for every a:AX:𝑎𝐴𝑋a:A\to X and g:XX:𝑔𝑋𝑋g:X\to X there is a unique map f:A×X:𝑓𝐴𝑋f:A\times\mathbb{N}\to X such that the following diagram commutes:

A𝐴{A}A×𝐴{A\times\mathbb{N}}A×𝐴{A\times\mathbb{N}}X𝑋{X}X𝑋{X}00\scriptstyle{0}a𝑎\scriptstyle{a}Id×S𝐼𝑑𝑆\scriptstyle{Id\times S}f𝑓\scriptstyle{f}f𝑓\scriptstyle{f}g𝑔\scriptstyle{g}
Definition 2.4.

A category 𝒞𝒞\mathcal{C} equipped with finite limits has parameterized list objects if for any object AOb𝒞𝐴𝑂𝑏𝒞A\in Ob\mathcal{C} there is an object List(A)𝐿𝑖𝑠𝑡𝐴List(A) with morphisms c:1List(A):𝑐1𝐿𝑖𝑠𝑡𝐴c:1\to List(A) and appA:List(A)×AList(A):𝑎𝑝subscript𝑝𝐴𝐿𝑖𝑠𝑡𝐴𝐴𝐿𝑖𝑠𝑡𝐴app_{A}:List(A)\times A\to List(A) such that for every b:BY:𝑏𝐵𝑌b:B\to Y and g:Y×AA:𝑔𝑌𝐴𝐴g:Y\times A\to A there is a unique rec(b,g)𝑟𝑒𝑐𝑏𝑔rec(b,g) making the following diagram commute

B𝐵{B}B×List(A)𝐵𝐿𝑖𝑠𝑡𝐴{B\times List(A)}B×(List(A)×A)𝐵𝐿𝑖𝑠𝑡𝐴𝐴{B\times(List(A)\times A)}Y𝑌{Y}Y×A𝑌𝐴{Y\times A}b𝑏\scriptstyle{b}(idB,c)𝑖subscript𝑑𝐵𝑐\scriptstyle{(id_{B},c)}rec(b,g)𝑟𝑒𝑐𝑏𝑔\scriptstyle{rec(b,g)}idB×appA𝑖subscript𝑑𝐵𝑎𝑝subscript𝑝𝐴\scriptstyle{id_{B}\times app_{A}}rec(b,g)×idA𝑟𝑒𝑐𝑏𝑔𝑖subscript𝑑𝐴\scriptstyle{{rec(b,g)}\times id_{A}}g𝑔\scriptstyle{g}
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 C𝐶C be a category with finite limits. An internal equivalence relation on X𝑋X is a subobject RX×X𝑅𝑋𝑋R\hookrightarrow X\times X equipped with the following morphisms:

  • (Reflexivity) r:XR:𝑟𝑋𝑅r:X\to R which is a section of p1:X×XX:subscript𝑝1𝑋𝑋𝑋p_{1}:X\times X\to X and of p2:X×XX:subscript𝑝2𝑋𝑋𝑋p_{2}:X\times X\to X.

  • (Symmetry) s:RR:𝑠𝑅𝑅s:R\to R such that p1s=p2subscript𝑝1𝑠subscript𝑝2p_{1}\circ s=p_{2} and P2s=p1subscript𝑃2𝑠subscript𝑝1P_{2}\circ s=p_{1}.

  • (Transitivity) t:R×XRR:𝑡subscript𝑋𝑅𝑅𝑅t:R\times_{X}R\to R where if

    R×XRsubscript𝑋𝑅𝑅{R\times_{X}R}R𝑅{R}R𝑅{R}X𝑋{X}q2subscript𝑞2\scriptstyle{q_{2}}q1subscript𝑞1\scriptstyle{q_{1}}p1subscript𝑝1\scriptstyle{p_{1}}p2subscript𝑝2\scriptstyle{p_{2}}

    is the pullback square the equations p1=π1i,p2=π2i,p1q1=p1tformulae-sequencesubscript𝑝1subscript𝜋1𝑖formulae-sequencesubscript𝑝2subscript𝜋2𝑖subscript𝑝1subscript𝑞1subscript𝑝1𝑡p_{1}=\pi_{1}\circ i,p_{2}=\pi_{2}\circ i,p_{1}\circ q_{1}=p_{1}\circ t and p2q2=p2tsubscript𝑝2subscript𝑞2subscript𝑝2𝑡p_{2}\circ q_{2}=p_{2}\circ t. Here

    R𝑅{R}X×X𝑋𝑋{X\times X}X𝑋{X}i𝑖\scriptstyle{i}π1subscript𝜋1\scriptstyle{\pi_{1}}π2subscript𝜋2\scriptstyle{\pi_{2}}
Definition 2.7.

The coequalizer X/R:=coeq(i1,i2)assign𝑋𝑅𝑐𝑜𝑒𝑞subscript𝑖1subscript𝑖2X/R:=coeq(i_{1},i_{2}) of an internal relation RX×X𝑅𝑋𝑋R\hookrightarrow X\times X is called a quotient object:

R𝑅{R}X𝑋{X}X/R𝑋𝑅{X/R}i1subscript𝑖1\scriptstyle{i_{1}}i2subscript𝑖2\scriptstyle{i_{2}}

A quotient XX/R𝑋𝑋𝑅X\to X/R is called effective when it arises as a kernel pair, i.e. the monomorphism

X×X/RXXsubscript𝑋𝑅𝑋𝑋𝑋X\times_{X/R}X\to X
Definition 2.8.

Let C𝐶C be a category with finite limits. Let P𝑃P be a (categorical) property of an object or diagram of objects I𝐼I in C𝐶C. We say P𝑃P is stable if when P𝑃P holds for I𝐼I it also holds for the pullback f(I)superscript𝑓𝐼f^{*}(I) in C/A𝐶𝐴C/A for any f:A1:𝑓𝐴1f:A\to 1.

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 \mathcal{E}, where axioms can be build as iIAisubscript𝑖𝐼subscript𝐴𝑖\vee_{i\in I}A_{i}-operator of atomic sentence Aisubscript𝐴𝑖A_{i} over infinite collections I𝐼I. These infinities arise from the base topos \mathcal{E}, in the sense that I𝐼I may be any object of \mathcal{E}. 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 X𝑋X that already implicitly assume the existence of said object X𝑋X. 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 cl(T)𝑐𝑙𝑇cl(T) of a subset of T𝑇T of a topological space X𝑋X can be traditionally defined as the intersection TCCsubscript𝑇𝐶𝐶\bigcap_{T\subset C}C of all closed sets containing T𝑇T. This is problematic predicatively as we quantify over a set {TC}𝑇𝐶\{T\subset C\} to define cl(T)𝑐𝑙𝑇cl(T) that itself includes cl(T)𝑐𝑙𝑇cl(T). 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 C𝐶C is a category with finite products equipped with a natural number object. A Skolem theory ΣΣ\Sigma is a Skolem category where every object is a finite product of the natural number object ΣsubscriptΣ\mathbb{N}_{\Sigma}. 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 Σ0subscriptΣ0\Sigma_{0} which might be called the minimal Skolem theory, or the "free theory" generated by the basic data.

Caveat.

One cannot identify the arrows of Σ0subscriptΣ0\Sigma_{0} with actual functions; for let ΣstandardsubscriptΣ𝑠𝑡𝑎𝑛𝑑𝑎𝑟𝑑\Sigma_{standard} be the full subcategory of Set𝑆𝑒𝑡Set with objects 1,,2,etc1superscript2𝑒𝑡𝑐1,\mathbb{N},\mathbb{N}^{2},\cdots etc. Since Σ0subscriptΣ0\Sigma_{0} is initial we have a map of Skolem Theories:

Σ0ΣstandardsubscriptΣ0subscriptΣ𝑠𝑡𝑎𝑛𝑑𝑎𝑟𝑑\Sigma_{0}\to\Sigma_{standard}
(f:kr)(|f|:kr)(f:\mathbb{N}^{k}\to\mathbb{N}^{r})\mapsto(|f|:\mathbb{N}^{k}\to\mathbb{N}^{r})

the idea is that f𝑓f exists as a primitive recursive algorithm for the ’actual’ set-theoretic function |f|𝑓|f|, and it can happen that |f|=|g|𝑓𝑔|f|=|g| but fg𝑓𝑔f\not=g. 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 |f|=|g|𝑓𝑔|f|=|g| means simply that f(x)=g(x)𝑓𝑥𝑔𝑥f(x)=g(x) for all x𝑥x in the domain, but functions might have algorithmic differences which prevent the f𝑓f from being equal to g𝑔g. Intensional character of a function is the additional features of a function, such as its algorithmic character, that go beyond the extension (or graph) |f|𝑓|f| of the function f𝑓f. Another way of seeing this is that two functions f,g𝑓𝑔f,g might be given by different algorithms and even if in Set theory we may prove f(x)=g(x)𝑓𝑥𝑔𝑥f(x)=g(x) for all x𝑥x in the domain, there might not be any primitive recursive construction that witnesses this!

Example 3.3.

Let a:Σ0ΣStandard:𝑎subscriptΣ0subscriptΣ𝑆𝑡𝑎𝑛𝑑𝑎𝑟𝑑a:\Sigma_{0}\to\Sigma_{Standard} be the canonical map. Consider the category obtained by inverting all maps f:XYΣ0:𝑓𝑋𝑌subscriptΣ0f:X\to Y\in\Sigma_{0} for which a(f)𝑎𝑓a(f) is a bijection in ΣStandardsubscriptΣ𝑆𝑡𝑎𝑛𝑑𝑎𝑟𝑑\Sigma_{Standard}. 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 ΣΣ\Sigma be a Skolem theory. The idea is to adjoin "decidable subsets": define a subset of ksuperscript𝑘\mathbb{N}^{k} to be a map x:k:𝑥superscript𝑘x:\mathbb{N}^{k}\to\mathbb{N} such that x1=x𝑥1𝑥x\wedge 1=x. Write 𝒫dec(k)subscript𝒫𝑑𝑒𝑐superscript𝑘\mathcal{P}_{dec}(\mathbb{N}^{k}) for this class of subsets, Then 𝒫decsubscript𝒫𝑑𝑒𝑐\mathcal{P}_{dec} is actually a contravariant functor:

(k𝑓r)induces𝒫dec(r)f𝒫dec(k)superscript𝑓𝑓superscript𝑘superscript𝑟inducessubscript𝒫𝑑𝑒𝑐superscript𝑟subscript𝒫𝑑𝑒𝑐superscript𝑘(\mathbb{N}^{k}\xrightarrow{f}\mathbb{N}^{r})\quad\text{induces}\quad\mathcal{P}_{dec}(\mathbb{N}^{r})\xrightarrow{f^{\ast}}\mathcal{P}_{dec}(\mathbb{N}^{k})

The diagonal Δ𝒫dec()Δsubscript𝒫𝑑𝑒𝑐\Delta\in\mathcal{P}_{dec}(\mathbb{N}) is given by E:2:𝐸superscript2E:\mathbb{N}^{2}\to\mathbb{N} defined above; similarly one defines a diagonal Δk𝒫dec(2k)subscriptΔ𝑘subscript𝒫𝑑𝑒𝑐superscript2𝑘\Delta_{k}\in\mathcal{P}_{dec}(\mathbb{N}^{2k}), for all k𝑘k. The class of subsets 𝒫dec(k)subscript𝒫𝑑𝑒𝑐superscript𝑘\mathcal{P}_{dec}(\mathbb{N}^{k}) 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 ΣΣ\Sigma the category Pred(Σ)PredΣ\operatorname{Pred}(\Sigma) of predicates in ΣΣ\Sigma is defined as follows:

  • Ob(Pred(Σ))::𝑂𝑏PredΣabsentOb(\operatorname{Pred}(\Sigma)): Decidable predicates in ΣΣ\Sigma, that is morphisms P::𝑃P:\mathbb{N}\to\mathbb{N} such that PP=P𝑃𝑃𝑃P\ast P=P.

  • Mor(Pred(Σ))𝑀𝑜𝑟PredΣMor(\operatorname{Pred}(\Sigma)): ΣΣ\Sigma-morphisms f::𝑓f:\mathbb{N}\to\mathbb{N} such that PQf𝑃𝑄𝑓P\leq Q\circ f [where Qf𝑄𝑓Q\circ f is the composition of Q𝑄Q with f𝑓f] and two such ΣΣ\Sigma-morphisms f,g::𝑓𝑔f,g:\mathbb{N}\to\mathbb{N} are equal if Pf=Pg𝑃𝑓𝑃𝑔P\ast f=P\ast g

Proposition 3.5.

Here are some properties of ΣPred(Σ)ΣPredΣ\Sigma\to\operatorname{Pred}(\Sigma):

  1. 1.

    Pred(Σ)PredΣ\operatorname{Pred}(\Sigma) has finite limits: for example the equalizer of f,g:kr:𝑓𝑔superscript𝑘superscript𝑟f,g:\mathbb{N}^{k}\rightrightarrows\mathbb{N}^{r} is just the subset S𝒫dec(k)𝑆subscript𝒫𝑑𝑒𝑐superscript𝑘S\in\mathcal{P}_{dec}(\mathbb{N}^{k}) given by k(f,g)r×r𝐸𝑓𝑔superscript𝑘superscript𝑟superscript𝑟𝐸\mathbb{N}^{k}\xrightarrow{(f,g)}\mathbb{N}^{r}\times\mathbb{N}^{r}\xrightarrow{E}\mathbb{N}.

  2. 2.

    Pred(Σ)PredΣ\operatorname{Pred}(\Sigma) 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 f::𝑓f:\mathbb{N}\to\mathbb{N}: we may factor f𝑓f as im(f)𝑖𝑚𝑓\mathbb{N}\twoheadrightarrow im(f)\hookrightarrow\mathbb{N}. Define im(f)={<f(n),m>×|m=μ(knf1(n))}im(f)=\{<f(n),m>\in\mathbb{N}\times\mathbb{N}|m=\mu(k\leq n\in f^{-1}(n))\}, which is has the splitting of im(f)𝑖𝑚𝑓\mathbb{N}\twoheadrightarrow im(f) given by (f(n),m>m(f(n),m>\mapsto m. Here the μ𝜇\mu operator is primitive recursively defined as bounded minimization: it looks for the minimum kf1(n)𝑘superscript𝑓1𝑛k\in f^{-1}(n) over all natural numbers smaller than n𝑛n which is indeed primitive recursive [unbounded minimisation is of course not primitive recursive].

  3. 3.

    Coproducts exist in Pred(Σ)PredΣ\operatorname{Pred}(\Sigma): given decidable subsets S,T𝑆𝑇S,T of \mathbb{N}, for example, take the union of the decidable subsets S×{0}𝑆0S\times\{0\} and T×{1}𝑇1T\times\{1\} of 2superscript2\mathbb{N}^{2}.

  4. 4.

    for any graph object

    GA0𝐺subscript𝐴0G\to A_{0}

    in ΣΣ\Sigma, there exists a free category object A1A0subscript𝐴1subscript𝐴0A_{1}\rightrightarrows A_{0} over G𝐺G in Σ^^Σ\hat{\Sigma}

Proof.

See Proposition 4.7 of [Maietti, 2010]. ∎

Example 3.6.

The category Pred(Σ0)𝑃𝑟𝑒𝑑subscriptΣ0Pred(\Sigma_{0}) is the category of decidable primitive recursive predicates.

For our purposes Pred(Σ)PredΣ\operatorname{Pred}(\Sigma) does not have enough categorical properties. It is necessary to make a second completion ΣPred(Σ)(Pred(Σ))ex/regΣPredΣsubscriptPredΣex/reg\Sigma\to\operatorname{Pred}(\Sigma)\to({\operatorname{Pred}(\Sigma)})_{\text{ex/reg}} which adds quotients.

Definition 3.7 (Exact/Regular completion).

Let 𝒞𝒞\mathcal{C} be a regular category. We form a new category whose objects are pairs (R,A)𝑅𝐴(R,A) with RA×A𝑅𝐴𝐴R\hookrightarrow A\times A an equivalence relation on A𝐴A, and whose maps (R,A)(R,B)𝑅𝐴𝑅𝐵(R,A)\to(R,B) are classes of maps f:AB:𝑓𝐴𝐵f:A\to B such that R(f×f)1(Q)𝑅superscript𝑓𝑓1𝑄R\leq(f\times f)^{-1}(Q), under the relation fgsimilar-to𝑓𝑔f\sim g if and only if there exists a lifting of (f,g)𝑓𝑔(f,g):

Q𝑄{Q}A𝐴{A}B×B𝐵𝐵{B\times B}

The resulting category is an exact category.

Proposition 3.8.

The category (Pred(Σ0))ex/regsubscriptPredsubscriptΣ0𝑒𝑥𝑟𝑒𝑔(\operatorname{Pred}(\Sigma_{0}))_{ex/reg} is an arithmetic universe. In particular the following properties hold:

  • finite limits exists

  • it is a regular category [but notice that the step Pred(Σ)(Pred(Σ))ex/regPredΣsubscriptPredΣex/reg\operatorname{Pred}(\Sigma)\to({\operatorname{Pred}(\Sigma)})_{\text{ex/reg}} 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 Pred(Σ0)𝑃𝑟𝑒𝑑subscriptΣ0Pred(\Sigma_{0}) yields the initial Arithmetic Universe U0subscript𝑈0U_{0}.

Theorem 3.9.

The category (Pred(Σ))ex/regsubscriptPredΣex/reg({\operatorname{Pred}(\Sigma)})_{\text{ex/reg}} 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 U0subscript𝑈0U_{0} and the arithmetic type theory calculus 𝒯AUsubscript𝒯𝐴𝑈\mathcal{T}_{AU}. 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 𝒯AUsubscript𝒯𝐴𝑈\mathcal{T}_{AU}.

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 Category theory
  :z×AB   fstz:A,sndz:B   :z×AB   fstz:A,sndz:B \displaystyle\displaystyle{\hbox{\hskip 20.61624pt\vbox{\hbox{\hskip-20.61623pt\hbox{\hbox{$\displaystyle\displaystyle z:A\times B$}}}\vbox{}}}\over\hbox{\hskip 36.13367pt\vbox{\vbox{}\hbox{\hskip-36.13367pt\hbox{\hbox{$\displaystyle\displaystyle\operatorname{\texttt{fst}}{z}:A,\ \operatorname{\texttt{snd}}{z}:B$}}}}}} Aπ1A×Bπ2Bsubscript𝜋1𝐴𝐴𝐵subscript𝜋2𝐵A\xleftarrow{\pi_{1}}A\times B\xrightarrow{\pi_{2}}B
  a:A,b:B   :a,b×AB   a:A,b:B   :a,b×AB \displaystyle\displaystyle{\hbox{\hskip 25.6376pt\vbox{\hbox{\hskip-25.63759pt\hbox{\hbox{$\displaystyle\displaystyle a:A,\ b:B$}}}\vbox{}}}\over\hbox{\hskip 27.5821pt\vbox{\vbox{}\hbox{\hskip-27.5821pt\hbox{\hbox{$\displaystyle\displaystyle\langle a,b\rangle:A\times B$}}}}}} X𝑋XA×B𝐴𝐵A\times BA𝐴AB𝐵Bπ1subscript𝜋1\pi_{1}π2subscript𝜋2\pi_{2}a𝑎ab𝑏ba,b𝑎𝑏\langle a,b\rangle
fsta,b=afst𝑎𝑏𝑎\operatorname{\texttt{fst}}\langle a,b\rangle=a π1a,b=asubscript𝜋1𝑎𝑏𝑎\pi_{1}\langle a,b\rangle=a
snda,b=asnd𝑎𝑏𝑎\operatorname{\texttt{snd}}\langle a,b\rangle=a π2a,b=bsubscript𝜋2𝑎𝑏𝑏\pi_{2}\langle a,b\rangle=b
sndz,fstz=zsnd𝑧fst𝑧𝑧\langle\operatorname{\texttt{snd}}{z},\operatorname{\texttt{fst}}{z}\rangle=z uniqueness (in the UP)

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 \in 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 A𝐴A and B𝐵B are types, then A+B𝐴𝐵A+B is a type.

  • If a:A:𝑎𝐴a:A is a term of type A𝐴A, then ι1(a):A+B:subscript𝜄1𝑎𝐴𝐵\iota_{1}(a):A+B is a term of type A+B𝐴𝐵A+B. Similarly, if b:B:𝑏𝐵b:B is a term of type B𝐵B, then ι2(b):A+B:subscript𝜄2𝑏𝐴𝐵\iota_{2}(b):A+B is a term of type A+B𝐴𝐵A+B.

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 a=a:A:𝑎superscript𝑎𝐴a=a^{\prime}:A that say that the terms a𝑎a and asuperscript𝑎a^{\prime} are judged equal. So for the above example, we would need a rule that says that if a=a:A:𝑎superscript𝑎𝐴a=a^{\prime}:A is a valid judgment, then ι1(a)=ι1(a):A+B:subscript𝜄1𝑎subscript𝜄1superscript𝑎𝐴𝐵\iota_{1}(a)=\iota_{1}(a^{\prime}):A+B is a valid judgment. This kind of equality is understandably called judgmental equality. But then there are propositional equalities: if A𝐴A is a type and a:A:𝑎𝐴a:A and a:A:superscript𝑎𝐴a^{\prime}:A are terms of that type then there is a type a=Aasubscript𝐴𝑎superscript𝑎a=_{A}a^{\prime}. 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 a=a:A:𝑎superscript𝑎𝐴a=a^{\prime}:A is a valid judgment, then there is a term (proof) :a=Aa\ast:a=_{A}a^{\prime}.

  • If t:a=Aa:𝑡subscript𝐴𝑎superscript𝑎t:a=_{A}a^{\prime} is a term of the type, then t=:(a=Aa)t=\ast:(a=_{A}a^{\prime}). ’All proofs are equal’.

  • If t:a=Aa:𝑡subscript𝐴𝑎superscript𝑎t:a=_{A}a^{\prime} is a term of the type, then a=a:A:𝑎superscript𝑎𝐴a=a^{\prime}:A 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.

  • ΓΓ\Gamma is a context (formally ‘ΓΓ\Gamma cont’).

  • A𝐴A is a type in context ΓΓ\Gamma (formally ‘x:ΓA(x)Type:𝑥Γproves𝐴𝑥Typex:\Gamma\vdash A(x)\;\text{Type}).

  • a:A:𝑎𝐴a:A is a term in context ΓΓ\Gamma (formally x:Γa:A(x):𝑥Γproves𝑎:𝐴𝑥x:\Gamma\vdash a:A(x)).

Then there are also the judgments which declare certain contexts, types or terms to be equal:

  • ΓΓ\Gamma and ΓsuperscriptΓ\Gamma^{\prime} are equal as contexts (formally ‘Γ=ΓΓsuperscriptΓ\Gamma=\Gamma^{\prime} cont’).

  • A𝐴A and B𝐵B are equal types in context ΓΓ\Gamma (formally x:ΓA=B:𝑥Γproves𝐴𝐵x:\Gamma\vdash A=B).

  • a:A:𝑎𝐴a:A and a:A:superscript𝑎𝐴a^{\prime}:A are equal terms in context ΓΓ\Gamma (formally Γa=a:AprovesΓ𝑎superscript𝑎:𝐴\Gamma\vdash a=a^{\prime}:A).

These judgments are derived by certain rules allowing one to make a new valid judgment τ𝜏\tau from a list of valid judgments σ1,,σnsubscript𝜎1subscript𝜎𝑛\sigma_{1},\dots,\sigma_{n}. Usually in type theory, this is written down in a strictly formalized way as

σ1σnτsubscript𝜎1subscript𝜎𝑛𝜏\frac{\sigma_{1}\dots\sigma_{n}}{\tau}

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 σ1,,σnsubscript𝜎1subscript𝜎𝑛\sigma_{1},\dots,\sigma_{n} are valid judgments, then τ𝜏\tau 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 x1A1,,xn:An:subscript𝑥1subscript𝐴1subscript𝑥𝑛subscript𝐴𝑛x_{1}\in A_{1},\dots,x_{n}:A_{n} where each type may depend on the previous one, so the contexts are generated by the rules

  • The empty list \emptyset is a context.

  • If ΓΓ\Gamma is a context and ΓA(x)TypeprovesΓ𝐴𝑥Type\Gamma\vdash A(x)\;\text{Type} a type dependent on ΓΓ\Gamma, then Γ,x:A:Γ𝑥𝐴\Gamma,x:A is a context, where x𝑥x is required to be a new variable not in ΓΓ\Gamma.

There are more structural rules. A variable in a context can be declared a term:

  • If Γ,x:A,Δ:Γ𝑥𝐴Δ\Gamma,x:A,\Delta is a context, then Γ,x:A,Δx:A:Γ𝑥𝐴Δproves𝑥:𝐴\Gamma,x:A,\Delta\vdash x:A is a term in context.

There are some coherence rules for equality:

  • If ΓA=BprovesΓ𝐴𝐵\Gamma\vdash A=B are equal types and Γa:AprovesΓ𝑎:𝐴\Gamma\vdash a:A is a term of A𝐴A in context ΓΓ\Gamma, then Γa:BprovesΓ𝑎:𝐵\Gamma\vdash a:B is a term of type B𝐵B in context ΓΓ\Gamma.

  • If Γa=a:AprovesΓ𝑎superscript𝑎:𝐴\Gamma\vdash a=a^{\prime}:A are equal terms of type A𝐴A, and ΓA=BprovesΓ𝐴𝐵\Gamma\vdash A=B type are equal types, then a=a:B:𝑎superscript𝑎𝐵a=a^{\prime}:B are equal terms of type B𝐵B.

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 ΓATypeprovesΓ𝐴Type\Gamma\vdash A\;\text{Type} is a type in context, then A𝐴A is equal to itself: ΓA=AprovesΓ𝐴𝐴\Gamma\vdash A=A.

  • If ΓA=BprovesΓ𝐴𝐵\Gamma\vdash A=B is an equality of types, then ΓB=AprovesΓ𝐵𝐴\Gamma\vdash B=A is an equality of types as well.

  • If ΓA=BprovesΓ𝐴𝐵\Gamma\vdash A=B and ΓB=CprovesΓ𝐵𝐶\Gamma\vdash B=C are equalities of types, then so is ΓA=CprovesΓ𝐴𝐶\Gamma\vdash A=C.

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 Γa:AprovesΓ𝑎:𝐴\Gamma\vdash a:A and Γ,x:A,Δb(x):B(x):Γ𝑥𝐴Δproves𝑏𝑥:𝐵𝑥\Gamma,x:A,\Delta\vdash b(x):B(x) are terms, then Γ,Δ[a/x]b(a):B(a)provesΓΔdelimited-[]𝑎𝑥𝑏𝑎:𝐵𝑎\Gamma,\Delta[a/x]\vdash b(a):B(a), where Δ[a/x]Δdelimited-[]𝑎𝑥\Delta[a/x] is ΔΔ\Delta with all mentions of x𝑥x replaced by a𝑎a.

  • If Γa:AprovesΓ𝑎:𝐴\Gamma\vdash a:A and Γ,x:A,Δb(x)=b(x):B(x):Γ𝑥𝐴Δproves𝑏𝑥superscript𝑏𝑥:𝐵𝑥\Gamma,x:A,\Delta\vdash b(x)=b^{\prime}(x):B(x) then Γ,Δb(a)=b(a):B(a)provesΓΔ𝑏𝑎superscript𝑏𝑎:𝐵𝑎\Gamma,\Delta\vdash b(a)=b^{\prime}(a):B(a).

The rules of weakening are

  • If ΓATypeprovesΓ𝐴Type\Gamma\vdash A\;\text{Type} is a type and Γ,Δb:BprovesΓΔ𝑏:𝐵\Gamma,\Delta\vdash b:B a term, then Γ,Δb:BprovesΓΔ𝑏:𝐵\Gamma,\Delta\vdash b:B is a term.

  • If ΓATypeprovesΓ𝐴Type\Gamma\vdash A\;\text{Type} is a type and Γ,Δb=b:BprovesΓΔ𝑏superscript𝑏:𝐵\Gamma,\Delta\vdash b=b^{\prime}:B an equality of terms, then Γ,x:A,Δb=b:B:Γ𝑥𝐴Δproves𝑏superscript𝑏:𝐵\Gamma,x:A,\Delta\vdash b=b^{\prime}:B 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. 1.

    Formation rules that say when the type constructor yields a new type.

  2. 2.

    Introduction rules that say how to define new terms of the newly constructed type.

  3. 3.

    Elimination rules that say how terms of the type are used.

  4. 4.

    Computation rules that say how the elimination and introduction rules are combined.

  5. 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 ΓA=AprovesΓ𝐴superscript𝐴\Gamma\vdash A=A^{\prime} and ΓB=BprovesΓ𝐵superscript𝐵\Gamma\vdash B=B^{\prime} are type equalities, then there is the type equality ΓA+B=A+BprovesΓ𝐴𝐵superscript𝐴superscript𝐵\Gamma\vdash A+B=A^{\prime}+B^{\prime}.

  • If Γa=a:AprovesΓ𝑎superscript𝑎:𝐴\Gamma\vdash a=a^{\prime}:A are equal terms, then Γι1(a)=ι1(a):A+BprovesΓsubscript𝜄1𝑎subscript𝜄1superscript𝑎:𝐴𝐵\Gamma\vdash\iota_{1}(a)=\iota_{1}(a^{\prime}):A+B 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

Refer to caption
Figure 1: Reproduced from [Maietti, 2003]

The basic type theory for arithmetic universes 𝒜u𝒜𝑢\mathcal{A}u is the dependent type theory that consists of all the above type constructors. It is possible to extend the basic type theory 𝒜u𝒜𝑢\mathcal{A}u to something larger.

Definition 4.5.

A theory of 𝒜u𝒜𝑢\mathcal{A}u is a typed calculus 𝒯𝒯\mathcal{T} that consists of the type constructors of 𝒜u𝒜𝑢\mathcal{A}u containing possible additional type judgments ΓATypeprovesΓ𝐴Type\Gamma\vdash A\;\text{Type}, term judgments Γa:AprovesΓ𝑎:𝐴\Gamma\vdash a:A, type equality judgments ΓA=BprovesΓ𝐴𝐵\Gamma\vdash A=B and term equality judgments Γa=AaprovesΓsubscript𝐴𝑎superscript𝑎\Gamma\vdash a=_{A}a^{\prime}. There are some obvious restrictions: Γa:AprovesΓ𝑎:𝐴\Gamma\vdash a:A can only be added if ΓATypeprovesΓ𝐴Type\Gamma\vdash A\;\text{Type} is derivable in 𝒯𝒯\mathcal{T}, ΓA=BprovesΓ𝐴𝐵\Gamma\vdash A=B if ΓATypeprovesΓ𝐴Type\Gamma\vdash A\;\text{Type} and ΓBTypeprovesΓ𝐵Type\Gamma\vdash B\;\text{Type} are derivable in 𝒯𝒯\mathcal{T}, and Γa=AaprovesΓsubscript𝐴𝑎superscript𝑎\Gamma\vdash a=_{A}a^{\prime} if Γa:AprovesΓ𝑎:𝐴\Gamma\vdash a:A and Γa:AprovesΓsuperscript𝑎:𝐴\Gamma\vdash a^{\prime}:A are derivable in 𝒯𝒯\mathcal{T}. A morphism of theories 𝒯𝒯𝒯superscript𝒯\mathcal{T}\to\mathcal{T^{\prime}} is an assignment of judgements of 𝒯𝒯\mathcal{T} to the judgements of 𝒯superscript𝒯\mathcal{T}^{\prime} 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 𝒰𝒰\mathcal{U} we may interpret types in 𝒯AUsubscript𝒯𝐴𝑈\mathcal{T}_{AU} as objects in 𝒰𝒰\mathcal{U} and types in context in its slice categories 𝒰/c𝒰𝑐\mathcal{U}/c (where c𝑐c is the context). Operations like sum and product of types in the type theory correspond to sum and product in the category 𝒰𝒰\mathcal{U}. An operation like the existence operator \exists 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 𝒞𝒞\mathcal{C} be any category. Let 𝒯𝒞subscript𝒯𝒞\mathcal{T}_{\mathcal{C}} be the theory which is obtained by adding to the calculus of 𝒜u𝒜𝑢\mathcal{A}u one closed type (i.e. in which the context is empty) ATypeprovesabsent𝐴Type\vdash A\;\text{Type} for every object A𝐴A of 𝒞𝒞\mathcal{C}, a term x:Af(x):B:𝑥𝐴proves𝑓𝑥:𝐵x:A\vdash f(x):B for every morphism f:AB:𝑓𝐴𝐵f:A\to B in 𝒞𝒞\mathcal{C}, a type equality A=B𝐴𝐵A=B type if A𝐴A and B𝐵B are the same objects in 𝒞𝒞\mathcal{C} and a term equality x:Af(x)=g(x):B:𝑥𝐴proves𝑓𝑥𝑔𝑥:𝐵x:A\vdash f(x)=g(x):B if f𝑓f and g𝑔g are the same morphisms in 𝒞𝒞\mathcal{C}.

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 𝒯AUsubscript𝒯𝐴𝑈\mathcal{T}_{AU} and T𝒰subscript𝑇𝒰T_{\mathcal{U}}. Both are often called the ’internal language’. Roughly, the latter regards the arithmetic universe 𝒰𝒰\mathcal{U} 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: T𝒰subscript𝑇𝒰T_{\mathcal{U}} is build from 𝒯AUsubscript𝒯𝐴𝑈\mathcal{T}_{AU} by adding certain types, terms, and equalities — but no new rules! In short, T𝒰subscript𝑇𝒰T_{\mathcal{U}} concerns mathematics internal to a given mathematical universe 𝒰𝒰\mathcal{U} while 𝒯AUsubscript𝒯𝐴𝑈\mathcal{T}_{AU} is the language that is used between different mathematical universes.

Definition 4.9.

Let 𝒯𝒯\mathcal{T} be a theory in the above sense. The syntactic category of 𝒯𝒯\mathcal{T} is a category 𝒞𝒯subscript𝒞𝒯\mathcal{C}_{\mathcal{T}} with as objects the closed types ATypeprovesabsent𝐴Type\vdash A\;\text{Type} of 𝒯𝒯\mathcal{T}. If ATypeprovesabsent𝐴Type\vdash A\;\text{Type} and BTypeprovesabsent𝐵Type\vdash B\;\text{Type} are two closed types, then a morphism from ATypeprovesabsent𝐴Type\vdash A\;\text{Type} to BTypeprovesabsent𝐵Type\vdash B\;\text{Type} is defined as a term x:Af(x):B:𝑥𝐴proves𝑓𝑥:𝐵x:A\vdash f(x):B, where two morphisms x:Af(x):B:𝑥𝐴proves𝑓𝑥:𝐵x:A\vdash f(x):B and x:Ag(x):B:𝑥𝐴proves𝑔𝑥:𝐵x:A\vdash g(x):B are considered to be equal if x:Af(x)=g(x):B:𝑥𝐴proves𝑓𝑥𝑔𝑥:𝐵x:A\vdash f(x)=g(x):B is derivable. Composition is given by substitution and the identity is represented by x:Ax:A:𝑥𝐴proves𝑥:𝐴x:A\vdash x:A.

Let 𝒯𝒯\mathcal{T} be a theory of 𝒜u𝒜𝑢\mathcal{A}u. Then 𝒞𝒯subscript𝒞𝒯\mathcal{C}_{\mathcal{T}} is an arithmetic universe.

Remark 4.10 (Syntax-Semantics adjunction).

We will focus on the initial object 𝒰insubscript𝒰𝑖𝑛\mathcal{U}_{in} of the category of Arithmetic Universes 𝒜𝒰𝒜𝒰\mathcal{AU}. Initiality of the model will mean roughly that 𝒯AU=𝒯𝒰insubscript𝒯𝐴𝑈subscript𝒯subscript𝒰𝑖𝑛\mathcal{T}_{AU}=\mathcal{T}_{\mathcal{U}_{in}}; one also says that 𝒰insubscript𝒰𝑖𝑛\mathcal{U}_{in} is the syntactic category for the type theory 𝒯AUsubscript𝒯𝐴𝑈\mathcal{T}_{AU}. Let 𝒜𝒰𝒜𝒰\mathcal{AU} denote the category of arithmetic universes, and morphisms preserving all structure, let 𝒯AUTypesubscript𝒯𝐴𝑈𝑇𝑦𝑝𝑒\mathcal{T}_{AU}-Type denote type theories over 𝒯AUsubscript𝒯𝐴𝑈\mathcal{T}_{AU} with maps interpretations preserving structure up to isomorphism — we will explain this in more detail later. We have an ’syntax-semantics’ adjunction

𝒯AUTypesubscript𝒯𝐴𝑈𝑇𝑦𝑝𝑒{\mathcal{T}_{AU}-Type}𝒜𝒰𝒜𝒰{\mathcal{AU}}Syn𝑆𝑦𝑛\scriptstyle{Syn}Lan𝐿𝑎𝑛\scriptstyle{Lan}does-not-prove\dashv

where the Lan𝐿𝑎𝑛Lan-functor produces the internal language T𝒰subscript𝑇𝒰T_{\mathcal{U}} of an arithmetic universe 𝒰𝒰\mathcal{U} and the Syn𝑆𝑦𝑛Syn-functor the syntactic category 𝒞𝒯subscript𝒞𝒯\mathcal{C}_{\mathcal{T}} for a given 𝒯AUsubscript𝒯𝐴𝑈\mathcal{T}_{AU}-type theory T𝑇T. In this case, the adjunction is in fact an equivalence.

Given a theory 𝒯𝒯\mathcal{T} we may construct its syntactic category Syn(𝒯)𝑆𝑦𝑛𝒯Syn(\mathcal{T}). In our case we will take 𝒯=𝒯AU𝒯subscript𝒯𝐴𝑈\mathcal{T}=\mathcal{T}_{AU}. This type theory can encode primitive recursive arithmetic.

Theorem 4.11.

The syntactic category coincides with Joyal’s construction: Syn(𝒯AU)𝒰0:=Pred(Σ0)ex/reg𝑆𝑦𝑛subscript𝒯𝐴𝑈subscript𝒰0assign𝑃𝑟𝑒𝑑subscriptsubscriptΣ0𝑒𝑥𝑟𝑒𝑔Syn(\mathcal{T}_{AU})\cong\mathcal{U}_{0}:=Pred(\Sigma_{0})_{ex/reg}.

Proof.

Theorem 6.6 of [Maietti, 2003]. ∎

Given a sentence ϕitalic-ϕ\phi in the language of 𝒯𝒯\mathcal{T} we may ask whether 𝒯𝒯\mathcal{T} proves ϕitalic-ϕ\phi. The sentence ϕitalic-ϕ\phi also appears as a subobject of 111 in Syn(𝒯)𝑆𝑦𝑛𝒯Syn(\mathcal{T}). Its provability is exactly the assertion that it is the maximal subobject of 111. This motivates the following definition.

Definition 4.12.

An arithmetic universe U𝑈U is consistent if 0𝒫10𝒫10\in\mathcal{P}1 and 1𝒫11𝒫11\in\mathcal{P}1 are distinct. A theory U𝑈U is complete if given u𝒫1𝑢𝒫1u\in\mathcal{P}1, we have u=0𝑢0u=0 or u=1𝑢1u=1 [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 Syn(𝒯)𝑆𝑦𝑛𝒯Syn(\mathcal{T}). Indeed, this is already apparent in the classical formulation of syntactic completeness as the existence of a proof ϕitalic-ϕ\phi or its negation ¬ϕitalic-ϕ\neg\phi for all sentences ϕitalic-ϕ\phi 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 𝒯𝒯\mathcal{T} is semantically consistent 333This is sometimes also called satisfiability of 𝒯𝒯\mathcal{T}. if it has a model M𝑀M. A theory is semantically complete444This is sometimes called validity of T𝑇T. if for any formula ϕitalic-ϕ\phi in the language of 𝒯𝒯\mathcal{T} it is provable if and only if it is true in all models. A theory T𝑇T is syntactically consistent if it does not prove a contradiction, i.e. if it does not derive the falsum bottom\bot. A theory is syntactically complete if for any ϕitalic-ϕ\phi either 𝒯𝒯\mathcal{T} proves ϕitalic-ϕ\phi or it proves its negation ¬ϕitalic-ϕ\neg\phi. 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 S={Mi}iI𝑆subscriptsubscript𝑀𝑖𝑖𝐼S=\{M_{i}\}_{i\in I} for the theory T𝑇T, 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 𝒯𝒯\mathcal{T} that is consistent and can encode arithmetic is syntactically incomplete. The Second Incompleteness Theorem states if a recursively enumerable theory 𝒯𝒯\mathcal{T} 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 P𝑃P be an object of a category C𝐶C. We say P𝑃P is projective if given any epimorphism ST𝑆𝑇S\twoheadrightarrow T we have a lift

S𝑆{S}P𝑃{P}T𝑇{T}

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 \mathcal{E} a topos in which 111 is projective. If there exists an enumeration f:A𝒫A:𝑓𝐴𝒫𝐴f:A\twoheadrightarrow\mathcal{P}A , then \mathcal{E} is degenerate.

Proof.

Indeed, suppose f𝑓f exists, form the pullback

D𝐷{D}11{1}A𝐴{A}A×A𝐴𝐴{A\times A}A×𝒫A𝐴𝒫𝐴{A\times\mathcal{P}A}𝒫1𝒫1{\mathcal{P}1}{\lrcorner}false𝑓𝑎𝑙𝑠𝑒\scriptstyle{false}ΔAsubscriptΔ𝐴\scriptstyle{\Delta_{A}}1A×fsubscript1𝐴𝑓\scriptstyle{1_{A}\times f}eval𝑒𝑣𝑎𝑙\scriptstyle{eval}

and consider nameD:1𝒫A:𝑛𝑎𝑚𝑒𝐷1𝒫𝐴name{D}:1\to\mathcal{P}A. By definition of projectivity of 111 there is a lifting a𝑎a of D𝐷\ulcorner D\urcorner

A𝐴{A}11{1}𝒫A𝒫𝐴{\mathcal{P}A}a𝑎\scriptstyle{a}nameD𝑛𝑎𝑚𝑒𝐷\scriptstyle{nameD}

then aDdelimited-⟦⟧𝑎𝐷\llbracket a\in D\rrbracket is defined by the pullback

aDdelimited-⟦⟧𝑎𝐷{\llbracket a\in D\rrbracket}D𝐷{D}11{1}A𝐴{A}{\lrcorner}a𝑎\scriptstyle{a}

the composite pullback

aDdelimited-⟦⟧𝑎𝐷{\llbracket a\in D\rrbracket}D𝐷{D}11{1}11{1}A𝐴{A}A×A𝐴𝐴{A\times A}A×𝒫𝐴𝒫{A\times\mathcal{P}}𝒫1𝒫1{\mathcal{P}1}{\lrcorner}{\lrcorner}false𝑓𝑎𝑙𝑠𝑒\scriptstyle{false}a𝑎\scriptstyle{a}ΔAsubscriptΔ𝐴\scriptstyle{\Delta_{A}}1A×fsubscript1𝐴𝑓\scriptstyle{1_{A}\times f}eval𝑒𝑣𝑎𝑙\scriptstyle{eval}

is then just

aDdelimited-⟦⟧𝑎𝐷{\llbracket a\in D\rrbracket}11{1}11{1}𝒫1.𝒫1{\mathcal{P}1.}{\lrcorner}false𝑓𝑎𝑙𝑠𝑒\scriptstyle{false}aD\scriptstyle{\ulcorner\llbracket a\in D\rrbracket\urcorner}

It follows that

aDdelimited-⟦⟧𝑎𝐷{\llbracket a\in D\rrbracket}11{1}𝒫1𝒫1{\mathcal{P}1}00\scriptstyle{\ulcorner 0\urcorner}11\scriptstyle{\ulcorner 1\urcorner}

is an equalizer. Indeed, suppose

Z𝑍{Z}11{1}𝒫1𝒫1{\mathcal{P}1}!Z\scriptstyle{!_{Z}}00\scriptstyle{\ulcorner 0\urcorner}11\scriptstyle{\ulcorner 1\urcorner}

is a commutative diagram. Then we have, since Sub(Z)=hom(Z,P1)𝑆𝑢subscript𝑏𝑍subscripthom𝑍𝑃1Sub_{\mathcal{E}}(Z)=\hom_{\mathcal{E}}(Z,P1) is a poset with 0!Z\ulcorner 0\urcorner\ \circ\ !_{Z} as bottom and 1!Z\ulcorner 1\urcorner\ \circ\ !_{Z} as top, that 0!ZaD1!Z=0!Z\ulcorner 0\urcorner\ \circ\ !_{Z}\leq\llbracket a\in D\rrbracket\leq\ulcorner 1\urcorner\ \circ\ !_{Z}=\ulcorner 0\urcorner\ \circ\ !_{Z}. Thus aD=1!Z=0!Z\llbracket a\in D\rrbracket=\ulcorner 1\urcorner\ \circ\ !_{Z}=\ulcorner 0\urcorner\ \circ\ !_{Z}. Then, by one of the two pullbacks above, !Z!_{Z} factors through aDdelimited-⟦⟧𝑎𝐷\llbracket a\in D\rrbracket. It then follows that (aD1)(01)(\llbracket a\in D\rrbracket\hookrightarrow 1)\simeq(0\hookrightarrow 1).

Next, aDdelimited-⟦⟧𝑎𝐷\llbracket a\in D\rrbracket is also the pullback of false𝑓𝑎𝑙𝑠𝑒false along false𝑓𝑎𝑙𝑠𝑒false, so (aD1(11)(\llbracket a\in D\rrbracket\hookrightarrow 1\simeq(1\hookrightarrow 1) as well; but then 0=1010=1 . ∎

Definition 5.3.

Let U𝑈U be an arithmetic universe. An AU-object \mathcal{E} is an internal category

1×0110subscriptsubscript0subscript1subscript1subscript1subscript0\mathcal{E}_{1}\times_{\mathcal{E}_{0}}\mathcal{E}_{1}\xrightarrow{\circ}\mathcal{E}_{1}\rightrightarrows\mathcal{E}_{0}

such that internally \mathcal{E} is a list-arithmetic pretopos. Arithmetic universe objects (AUO’s) and their internal functors form a (large, external) category AUO𝒰𝐴𝑈subscript𝑂𝒰AUO_{\mathcal{U}}; hence it makes sense to talk about limits, colimits, initiality, et cetera of AU-objects.

Definition 5.4.

A sketch is quadruple K=(G,U,D,C)𝐾𝐺𝑈𝐷𝐶K=(G,U,D,C) where G𝐺G is a graph, U:G0G1:𝑈subscript𝐺0subscript𝐺1U:G_{0}\to G_{1} is a function, D𝐷D is a collection of diagrams in G𝐺G and C𝐶C is a collection of cones in G𝐺G. A sketch morphism T:KK:𝑇𝐾superscript𝐾T:K\to K^{\prime} is a graph homomorphism T:GG:𝑇𝐺superscript𝐺T:G\to G^{\prime} such that (i)TU=UT𝑖𝑇𝑈superscript𝑈𝑇(i)T\circ U=U^{\prime}\circ T, (ii) every diagram in D𝐷D is mapped to a diagram in Dsuperscript𝐷D^{\prime} and (iii) every cone in C𝐶C is mapped to a cone in Csuperscript𝐶C^{\prime}.

Definition 5.5.

If 𝒞𝒞\mathcal{C} is a category then the underlying sketch K𝒞=(G,U,D,C)subscript𝐾𝒞𝐺𝑈𝐷𝐶K_{\mathcal{C}}=(G,U,D,C) is given as

  • G𝐺G is the underlying graph of 𝒞𝒞\mathcal{C}

  • U𝑈U is the map which picks out the identity arrows of 𝒞𝒞\mathcal{C}

  • D𝐷D is the collection of all commutative diagrams of 𝒞𝒞\mathcal{C}

  • C𝐶C is the collection of all limit cones of 𝒞𝒞\mathcal{C}.

Definition 5.6.

A model for a sketch K𝐾K in a category 𝒞𝒞\mathcal{C} is a morphisms of sketches from K𝐾K to the underlying sketch K𝒞subscript𝐾𝒞K_{\mathcal{C}} of 𝒞𝒞\mathcal{C}.

Note that the models Mod(K,𝒞)𝑀𝑜𝑑𝐾𝒞Mod(K,\mathcal{C}) of K𝐾K in 𝒞𝒞\mathcal{C} form a category.

Lemma 5.7.

There is a sketch KSkolemsubscript𝐾𝑆𝑘𝑜𝑙𝑒𝑚K_{Skolem} of Skolem categories.

Proof.

See Lemma 7.12 in [Morrison, 1996]. ∎

Theorem 5.8.

Let \mathcal{E} be any arithmetic universe. Internally, we may construct the initial arithmetic universe object 𝕌0(E)subscript𝕌0𝐸\mathbb{U}_{0}(E).

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 Σ0superscriptsubscriptΣ0\Sigma_{0}^{\prime}. 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 KSkolemsubscript𝐾𝑆𝑘𝑜𝑙𝑒𝑚K_{Skolem} and the empty sketch K0subscript𝐾0K_{0}. We have a morphism of sketches K0KSkolemsubscript𝐾0subscript𝐾𝑆𝑘𝑜𝑙𝑒𝑚K_{0}\to K_{Skolem} which induces the forgetful functor K:KSkolem(𝒰0)K0(𝒰0):𝐾subscript𝐾𝑆𝑘𝑜𝑙𝑒𝑚subscript𝒰0subscript𝐾0subscript𝒰0K:K_{Skolem}(\mathcal{U}_{0})\to K_{0}(\mathcal{U}_{0}); by the free model theorem [Theorem 29 of [Palmgren and Vickers, 2007]] there is a free left adjoint L:{}=K0(𝒰0)KSkolem(𝒰0):𝐿subscript𝐾0subscript𝒰0subscript𝐾𝑆𝑘𝑜𝑙𝑒𝑚subscript𝒰0L:\{\bullet\}=K_{0}(\mathcal{U}_{0})\to K_{Skolem}(\mathcal{U}_{0}). The internal initial Skolem theory is Σ:=L()assignsuperscriptΣ𝐿\Sigma^{\prime}:=L(\bullet).

Let the following denote ΣsuperscriptΣ\Sigma^{\prime}

Σ1subscriptsuperscriptΣ1{\Sigma^{\prime}_{1}}Σ0subscriptsuperscriptΣ0{\Sigma^{\prime}_{0}}Σ1subscriptsuperscriptΣ1{\Sigma^{\prime}_{1}}δ1subscript𝛿1\scriptstyle{\delta_{1}}δ0subscript𝛿0\scriptstyle{\delta_{0}}e𝑒\scriptstyle{e}Σ1×Σ0Σ1subscriptsubscriptsuperscriptΣ0subscriptsuperscriptΣ1superscriptsubscriptΣ1{\Sigma^{\prime}_{1}\times_{\Sigma^{\prime}_{0}}\Sigma_{1}^{\prime}}Σ1subscriptsuperscriptΣ1{\Sigma^{\prime}_{1}}m𝑚\scriptstyle{m}

We construct internally Pred(Σ)𝑃𝑟𝑒𝑑superscriptΣPred(\Sigma^{\prime}). The object of objects of Pred(Σ)𝑃𝑟𝑒𝑑superscriptΣPred(\Sigma^{\prime}) is all predicates, i.e. the following equaliser

Σ1×Σ0Σ1subscriptsuperscriptsubscriptΣ0superscriptsubscriptΣ1superscriptsubscriptΣ1{\Sigma_{1}^{\prime}\times_{\Sigma_{0}^{\prime}}\Sigma_{1}^{\prime}}Pred(Σ)0𝑃𝑟𝑒𝑑subscriptsuperscriptΣ0{Pred(\Sigma^{\prime})_{0}}Σ1subscriptsuperscriptΣ1{\Sigma^{\prime}_{1}}Σ1subscriptsuperscriptΣ1{\Sigma^{\prime}_{1}}m𝑚\scriptstyle{m}ΔΔ\scriptstyle{\Delta}id𝑖𝑑\scriptstyle{id}

The arrows from A𝐴A to B𝐵B in Pred(Σ)𝑃𝑟𝑒𝑑superscriptΣPred(\Sigma^{\prime}) are equivalence classes of the set

{f:𝒰0𝒰0|ABf}conditional-set𝑓subscriptsubscript𝒰0conditionalsubscriptsubscript𝒰0𝐴𝐵𝑓\{f:\mathbb{N}_{\mathcal{U}_{0}}\to\mathbb{N}_{\mathcal{U}_{0}}|A\leq B\circ f\}

which is internally constructed as the equalizer

Σ1×Pred(Σ0)superscriptsubscriptΣ1𝑃𝑟𝑒𝑑subscriptsuperscriptΣ0{\Sigma_{1}^{\prime}\times Pred(\Sigma^{\prime}_{0})}X𝑋{X}Σ1×Pred(Σ0)×Pred(Σ0)superscriptsubscriptΣ1𝑃𝑟𝑒𝑑superscriptsubscriptΣ0𝑃𝑟𝑒𝑑superscriptsubscriptΣ0{\Sigma_{1}^{\prime}\times Pred(\Sigma_{0}^{\prime})\times Pred(\Sigma_{0}^{\prime})}Σ0subscriptsuperscriptΣ0{\Sigma^{\prime}_{0}}\scriptstyle{\leq}(π2,m(π1,π3))subscript𝜋2𝑚subscript𝜋1subscript𝜋3\scriptstyle{(\pi_{2}{,}m\circ(\pi_{1}{,}\pi_{3}))}True𝑇𝑟𝑢𝑒\scriptstyle{True}

Next, define

d0:XΣ1×Pred(Σ0)×Pred(Σ0)π2Pred(Σ0):subscript𝑑0𝑋superscriptsubscriptΣ1𝑃𝑟𝑒𝑑superscriptsubscriptΣ0𝑃𝑟𝑒𝑑superscriptsubscriptΣ0subscript𝜋2𝑃𝑟𝑒𝑑superscriptsubscriptΣ0d_{0}:X\hookrightarrow\Sigma_{1}^{\prime}\times Pred(\Sigma_{0}^{\prime})\times Pred(\Sigma_{0}^{\prime})\xrightarrow{\pi_{2}}Pred(\Sigma_{0}^{\prime})
d1:XΣ1×Pred(Σ0)×Pred(Σ0)π3Pred(Σ0):subscript𝑑1𝑋superscriptsubscriptΣ1𝑃𝑟𝑒𝑑superscriptsubscriptΣ0𝑃𝑟𝑒𝑑superscriptsubscriptΣ0subscript𝜋3𝑃𝑟𝑒𝑑superscriptsubscriptΣ0d_{1}:X\hookrightarrow\Sigma_{1}^{\prime}\times Pred(\Sigma_{0}^{\prime})\times Pred(\Sigma_{0}^{\prime})\xrightarrow{\pi_{3}}Pred(\Sigma_{0}^{\prime})

We have fgsimilar-to𝑓𝑔f\sim g if and only if Aeq(f,g)𝐴𝑒𝑞𝑓𝑔A\leq eq(f,g). We construct the pullback of f,g𝑓𝑔f,g such that f,g𝑓𝑔f,g have the same source and target as

Y𝑌{Y}X𝑋{X}X𝑋{X}Pred(Σ1)×Pred(Σ1)𝑃𝑟𝑒𝑑superscriptsubscriptΣ1𝑃𝑟𝑒𝑑superscriptsubscriptΣ1{Pred(\Sigma_{1}^{\prime})\times Pred(\Sigma_{1}^{\prime})}p1subscript𝑝1\scriptstyle{p_{1}}p2subscript𝑝2\scriptstyle{p_{2}}(d0,d1)subscript𝑑0subscript𝑑1\scriptstyle{(d_{0}{,}d_{1})}(d0,d1)subscript𝑑0subscript𝑑1\scriptstyle{(d_{0}{,}d_{1})}

The subset R𝑅R of Y𝑌Y with (f,g)R𝑓𝑔𝑅(f,g)\in R if and only if src(f)eq(f,g)𝑠𝑟𝑐𝑓𝑒𝑞𝑓𝑔src(f)\leq eq(f,g) is build as the equalizer:

Pred(Σ0)×Y×Y𝑃𝑟𝑒𝑑superscriptsubscriptΣ0𝑌𝑌{Pred(\Sigma_{0}^{\prime})\times Y\times Y}Pred(Σ0)×Σ0𝑃𝑟𝑒𝑑superscriptsubscriptΣ0superscriptsubscriptΣ0{Pred(\Sigma_{0}^{\prime})\times\Sigma_{0}^{\prime}}R𝑅{R}Y𝑌{Y}Σ0superscriptsubscriptΣ0{\Sigma_{0}^{\prime}}(srcp1,p1,p2)𝑠𝑟𝑐subscript𝑝1subscript𝑝1subscript𝑝2\scriptstyle{(src\circ p_{1}{,}p_{1}{,}p_{2})}True𝑇𝑟𝑢𝑒\scriptstyle{True}

The object of morphisms Pred(Σ)1𝑃𝑟𝑒𝑑subscriptsuperscriptΣ1Pred(\Sigma^{\prime})_{1} is given as the quotient of RY𝑅𝑌R\hookrightarrow Y. 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 \mathbb{C} inside a category D𝐷D with finite limits we may take the externalisation, taking objectwise global sections: Ext()=(HomD(1,Ob(C)),HomD(1,Mor()))𝐸𝑥𝑡𝐻𝑜subscript𝑚𝐷1𝑂𝑏𝐶𝐻𝑜subscript𝑚𝐷1𝑀𝑜𝑟Ext(\mathbb{C})=(Hom_{D}(1,Ob\mathbb{(}C)),Hom_{D}(1,Mor(\mathbb{C}))) with the obvious maps. We obtain an external category Ext()𝐸𝑥𝑡Ext(\mathbb{C}).

Remark 5.11.

There is a different kind of externalization that is more common. That is the Grothendieck-externalization \int\mathbb{C} whose objects are X:IOb():𝑋𝐼𝑂𝑏X:I\to Ob(\mathbb{C}) and morphisms are diagrams

Mor()𝑀𝑜𝑟{Mor(\mathbb{C})}I𝐼{I}Ob()𝑂𝑏{Ob(\mathbb{C})}<cod,dom>\scriptstyle{<cod{,}dom>}f𝑓\scriptstyle{f}<X,Y>\scriptstyle{<X{,}Y>}

It is well-known that this gives a 2-functor :(U0)Fib/U0:subscript𝑈0𝐹𝑖𝑏subscript𝑈0\int:\mathbb{C}(U_{0})\to Fib/U_{0} from the 2-category of internal categories to fibrations over U0subscript𝑈0U_{0}. 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 Ext()𝐸𝑥𝑡Ext(\bullet) is simply the fiber over the terminal object, in other words Ext()=𝐸𝑥𝑡Ext(\mathbb{C})=\int\mathbb{C}. That means that if \mathbb{C} has a certain limit or colimit Ext()𝐸𝑥𝑡Ext(\mathbb{C}) 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 \mathbb{C} has an internal terminal object. Local existence would say that in the Kripke-Joyal semantics  1:such that 1 is a terminal object:models1such that 1 is a terminal object\mathbb{C}\models\exists\,1:\mathbb{C}\,\textit{such that 1 is a terminal object} which is different from the statement that there exists an object 1:1U0:subscript1subscript1subscript𝑈01_{\mathbb{C}}:1_{U_{0}}\to\mathbb{C} such that 1 is a terminal objectmodelssubscript1 is a terminal object\mathbb{C}\models 1_{\mathbb{C}}\textit{ is a terminal object}. In the construction we actually get global existence for the objects that we construct and this is key.

Proposition 5.13.

Let E𝐸E be an arithmetic universe equipped with an internal arithmetic universe object 𝕌𝕌\mathbb{U}. The externalisation Ext(𝕌)𝐸𝑥𝑡𝕌Ext(\mathbb{U}) of an internal arithmetic universe object 𝕌𝕌\mathbb{U} is an (external) arithmetic universe.

Proof.

An arithmetic universe is a list-arithmetic pretopos. That means that 𝕌0subscript𝕌0\mathbb{U}_{0} is internal category that is internally

  • Finitely complete
    By the above remarks on the Grothendieck-externalization \int this is immediate.

  • Finite disjoint stable coproducts
    Similarly. In fact, we have all finite colimits.

  • Parameterized list objects
    We have internal list objects in 𝕌0subscript𝕌0\mathbb{U}_{0}. As we have global existence of our objects this means that for any object A:1Ob(𝕌0):𝐴1𝑂𝑏subscript𝕌0A:1\to Ob(\mathbb{U}_{0}) there is a diagram (1consAappA×L(A)):𝕌0(1):𝑐𝑜𝑛𝑠1𝐴𝑎𝑝𝑝𝐴𝐿𝐴subscript𝕌01(1\xrightarrow{cons}A\xleftarrow{app}A\times L(A)):\mathbb{U}_{0}(1) such that 𝕌0For all 1𝑐Y𝑓Y×A!rec(f,g):L(A)Ysuch that the natural diagrams commute:modelssubscript𝕌0For all1𝑐𝑌𝑓𝑌𝐴𝑟𝑒𝑐𝑓𝑔𝐿𝐴𝑌such that the natural diagrams commute\mathbb{U}_{0}\models\ulcorner\textit{For all}\,1\xrightarrow{c}Y\xleftarrow{f}Y\times A\>\>\exists!rec(f,g):L(A)\to Y\,\textit{such that the natural diagrams commute}\urcorner. Let’s write that out using the Kripke-Joyal semantics. The above maybe be translated as

    for allg1:I11(B𝑐Y𝑓Y×g1A):𝕌0(I1) there existsp2:I2I1:for allsubscript𝑔1subscript𝐼11𝑐𝐵𝑌𝑓𝑌superscriptsubscript𝑔1𝐴:subscript𝕌0subscript𝐼1 there existssubscript𝑝2:subscript𝐼2subscript𝐼1\displaystyle\textit{for all}\>\>g_{1}:I_{1}\to 1\,(B\xrightarrow{c}Y\xleftarrow{f}Y\times g_{1}^{\ast}A):\mathbb{U}_{0}(I_{1})\>\>\textit{ there exists}\>\>p_{2}:I_{2}\twoheadrightarrow I_{1}
    and a unique(rec(c,f):p2p2p1L(A)):𝕌0such that\displaystyle\textit{and a unique}\,\,(rec(c,f):p_{2}^{\ast}\to p_{2}^{\ast}p_{1}^{\ast}L(A)):\mathbb{U}_{0}\quad\textit{such that}
    I2p2g11p2g1L(A)p2g1L(A)×p2g1Ap2Yp2Y×p2g1Arec(c,f)rec(c,f)modelssubscript𝐼2superscriptsubscript𝑝2superscriptsubscript𝑔11superscriptsubscript𝑝2superscriptsubscript𝑔1𝐿𝐴superscriptsubscript𝑝2superscriptsubscript𝑔1𝐿𝐴superscriptsubscript𝑝2superscriptsubscript𝑔1𝐴superscript𝑝2𝑌superscriptsubscript𝑝2𝑌superscriptsubscript𝑝2superscriptsubscript𝑔1𝐴𝑟𝑒𝑐𝑐𝑓𝑟𝑒𝑐𝑐𝑓I_{2}\models\leavevmode\hbox to205.76pt{\vbox to51.52pt{\pgfpicture\makeatletter\hbox{\hskip 102.88051pt\lower-25.80815pt\hbox to0.0pt{\pgfsys@beginscope\pgfsys@invoke{ }\definecolor{pgfstrokecolor}{rgb}{0,0,0}\pgfsys@color@rgb@stroke{0}{0}{0}\pgfsys@invoke{ }\pgfsys@color@rgb@fill{0}{0}{0}\pgfsys@invoke{ }\pgfsys@setlinewidth{0.4pt}\pgfsys@invoke{ }\nullfont\hbox to0.0pt{\pgfsys@beginscope\pgfsys@invoke{ }{}{}{}{{}}\hbox{\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }{\offinterlineskip{}{}{{{}}{{}}{{}}{{}}{{}}}{{{}}}{{}{}{{ {}{}}}{ {}{}} {{}{{}}}{{}{}}{}{{}{}} { }{{{{}}\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@transformcm{1.0}{0.0}{0.0}{1.0}{-102.88051pt}{-25.70831pt}\pgfsys@invoke{ }\hbox{\vbox{\halign{\pgf@matrix@init@row\pgf@matrix@step@column{\pgf@matrix@startcell#\pgf@matrix@endcell}&#\pgf@matrix@padding&&\pgf@matrix@step@column{\pgf@matrix@startcell#\pgf@matrix@endcell}&#\pgf@matrix@padding\cr\hfil\hskip 14.68541pt\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }{{}}\hbox{\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }{{}{}{{ {}{}}}{ {}{}} {{}{{}}}{{}{}}{}{{}{}} { }{{{{}}\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@transformcm{1.0}{0.0}{0.0}{1.0}{-10.37987pt}{0.0pt}\pgfsys@invoke{ }\hbox{{\definecolor{pgfstrokecolor}{rgb}{0,0,0}\pgfsys@color@rgb@stroke{0}{0}{0}\pgfsys@invoke{ }\pgfsys@color@rgb@fill{0}{0}{0}\pgfsys@invoke{ }\hbox{${p_{2}^{\ast}g_{1}^{\ast}1}$} }}\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope{}}}&\hskip 14.68541pt\hfil&\hfil\hskip 47.22707pt\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }{{}}\hbox{\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }{{}{}{{ {}{}}}{ {}{}} {{}{{}}}{{}{}}{}{{}{}} { }{{{{}}\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@transformcm{1.0}{0.0}{0.0}{1.0}{-18.92155pt}{0.0pt}\pgfsys@invoke{ }\hbox{{\definecolor{pgfstrokecolor}{rgb}{0,0,0}\pgfsys@color@rgb@stroke{0}{0}{0}\pgfsys@invoke{ }\pgfsys@color@rgb@fill{0}{0}{0}\pgfsys@invoke{ }\hbox{${p_{2}^{\ast}g_{1}^{\ast}L(A)}$} }}\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope{}}}&\hskip 23.2271pt\hfil&\hfil\hskip 64.968pt\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }{{}}\hbox{\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }{{}{}{{ {}{}}}{ {}{}} {{}{{}}}{{}{}}{}{{}{}} { }{{{{}}\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@transformcm{1.0}{0.0}{0.0}{1.0}{-36.66249pt}{0.0pt}\pgfsys@invoke{ }\hbox{{\definecolor{pgfstrokecolor}{rgb}{0,0,0}\pgfsys@color@rgb@stroke{0}{0}{0}\pgfsys@invoke{ }\pgfsys@color@rgb@fill{0}{0}{0}\pgfsys@invoke{ }\hbox{${p_{2}^{\ast}g_{1}^{\ast}L(A)\times p_{2}^{\ast}g_{1}^{\ast}A}$} }}\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}&\hskip 40.96803pt\hfil\cr\vskip 18.00005pt\cr\hfil\hskip 0.0pt\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}&\hskip 0.0pt\hfil&\hfil\hskip 38.73503pt\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }{{}}\hbox{\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }{{}{}{{ {}{}}}{ {}{}} {{}{{}}}{{}{}}{}{{}{}} { }{{{{}}\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@transformcm{1.0}{0.0}{0.0}{1.0}{-10.42952pt}{0.0pt}\pgfsys@invoke{ }\hbox{{\definecolor{pgfstrokecolor}{rgb}{0,0,0}\pgfsys@color@rgb@stroke{0}{0}{0}\pgfsys@invoke{ }\pgfsys@color@rgb@fill{0}{0}{0}\pgfsys@invoke{ }\hbox{${p^{2}{\ast}Y}$} }}\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}&\hskip 14.73506pt\hfil&\hfil\hskip 53.97597pt\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }{{}}\hbox{\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }{{}{}{{ {}{}}}{ {}{}} {{}{{}}}{{}{}}{}{{}{}} { }{{{{}}\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@transformcm{1.0}{0.0}{0.0}{1.0}{-25.67046pt}{0.0pt}\pgfsys@invoke{ }\hbox{{\definecolor{pgfstrokecolor}{rgb}{0,0,0}\pgfsys@color@rgb@stroke{0}{0}{0}\pgfsys@invoke{ }\pgfsys@color@rgb@fill{0}{0}{0}\pgfsys@invoke{ }\hbox{${p_{2}^{\ast}Y\times p_{2}^{\ast}g_{1}^{\ast}A}$} }}\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}&\hskip 29.976pt\hfil\cr}}}\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}}{{{{}}}{{}}{{}}{{}}{{}}{{}}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} { {}{}{}}{}{ {}{}{}} {{{{{}}{ {}{}}{}{}{{}{}}}}}{}{{{{{}}{ {}{}}{}{}{{}{}}}}}{{}}{}{}{}\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@setlinewidth{0.39998pt}\pgfsys@invoke{ }{}{}{}{}{{}}{}{}{{}}\pgfsys@moveto{-73.36292pt}{3.14032pt}\pgfsys@lineto{-41.26797pt}{-14.81998pt}\pgfsys@stroke\pgfsys@invoke{ }{{}{{}}{}{}{{}}{{{}}}}{{}{{}}{}{}{{}}{{{}}{{{}}{\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@transformcm{0.87267}{-0.48834}{0.48834}{0.87267}{-41.09346pt}{-14.91763pt}\pgfsys@invoke{ }\pgfsys@invoke{ \lxSVG@closescope }\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}{{}}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope{ {}{}{}}{}{ {}{}{}} {{{{{}}{ {}{}}{}{}{{}{}}}}}{}{{{{{}}{ {}{}}{}{}{{}{}}}}}{{}}{}{}{}\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@setlinewidth{0.39998pt}\pgfsys@invoke{ }{}{}{}{}{{}}{}{}{{}}\pgfsys@moveto{-73.3097pt}{11.44447pt}\pgfsys@lineto{-50.10968pt}{11.44447pt}\pgfsys@stroke\pgfsys@invoke{ }{{}{{}}{}{}{{}}{{{}}}}{{}{{}}{}{}{{}}{{{}}{{{}}{\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@transformcm{1.0}{0.0}{0.0}{1.0}{-49.9097pt}{11.44447pt}\pgfsys@invoke{ }\pgfsys@invoke{ \lxSVG@closescope }\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}{{}}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope{}{ {}{}{}}{}{ {}{}{}} {{{{{}}{ {}{}}{}{}{{}{}}}}}{}{{{{{}}{ {}{}}{}{}{{}{}}}}}{{}}{}{}{}{}{}{{{}{}}}{}{{}}{}{}{}{{{}{}}}\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@setlinewidth{0.39998pt}\pgfsys@invoke{ }{}{}{}{}{{}}{}{}{{}}\pgfsys@moveto{-26.28262pt}{2.58476pt}\pgfsys@lineto{-26.28262pt}{-14.61533pt}\pgfsys@stroke\pgfsys@invoke{ }{{}{{}}{}{}{{}}{{{}}}}{{}{{}}{}{}{{}}{{{}}{{{}}{\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@transformcm{0.0}{-1.0}{1.0}{0.0}{-26.28262pt}{-14.8153pt}\pgfsys@invoke{ }\pgfsys@invoke{ \lxSVG@closescope }\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}{{}}}}\hbox{\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }{{}{}{{ {}{}}}{ {}{}} {{}{{}}}{{}{}}{}{{}{}} { }{{{{}}\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@transformcm{1.0}{0.0}{0.0}{1.0}{-23.92986pt}{-7.96526pt}\pgfsys@invoke{ }\hbox{{\definecolor{pgfstrokecolor}{rgb}{0,0,0}\pgfsys@color@rgb@stroke{0}{0}{0}\pgfsys@invoke{ }\pgfsys@color@rgb@fill{0}{0}{0}\pgfsys@invoke{ }\hbox{$\scriptstyle{rec(c{,}f)}$} }}\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope{ {}{}{}}{}{ {}{}{}} {{{{{}}{ {}{}}{}{}{{}{}}}}}{}{{{{{}}{ {}{}}{}{}{{}{}}}}}{{}}{}{}{}\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@setlinewidth{0.39998pt}\pgfsys@invoke{ }{}{}{}{}{{}}{}{}{{}}\pgfsys@moveto{20.74445pt}{11.44447pt}\pgfsys@lineto{-2.45557pt}{11.44447pt}\pgfsys@stroke\pgfsys@invoke{ }{{}{{}}{}{}{{}}{{{}}}}{{}{{}}{}{}{{}}{{{}}{{{}}{\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@transformcm{-1.0}{0.0}{0.0}{-1.0}{-2.65555pt}{11.44447pt}\pgfsys@invoke{ }\pgfsys@invoke{ \lxSVG@closescope }\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}{{}}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope{}{ {}{}{}}{}{ {}{}{}} {{{{{}}{ {}{}}{}{}{{}{}}}}}{}{{{{{}}{ {}{}}{}{}{{}{}}}}}{{}}{}{}{}{}{}{{{}{}}}{}{{}}{}{}{}{{{}{}}}\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@setlinewidth{0.39998pt}\pgfsys@invoke{ }{}{}{}{}{{}}{}{}{{}}\pgfsys@moveto{61.91248pt}{2.58476pt}\pgfsys@lineto{61.91248pt}{-14.61533pt}\pgfsys@stroke\pgfsys@invoke{ }{{}{{}}{}{}{{}}{{{}}}}{{}{{}}{}{}{{}}{{{}}{{{}}{\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@transformcm{0.0}{-1.0}{1.0}{0.0}{61.91248pt}{-14.8153pt}\pgfsys@invoke{ }\pgfsys@invoke{ \lxSVG@closescope }\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}{{}}}}\hbox{\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }{{}{}{{ {}{}}}{ {}{}} {{}{{}}}{{}{}}{}{{}{}} { }{{{{}}\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@transformcm{1.0}{0.0}{0.0}{1.0}{64.26524pt}{-7.96526pt}\pgfsys@invoke{ }\hbox{{\definecolor{pgfstrokecolor}{rgb}{0,0,0}\pgfsys@color@rgb@stroke{0}{0}{0}\pgfsys@invoke{ }\pgfsys@color@rgb@fill{0}{0}{0}\pgfsys@invoke{ }\hbox{$\scriptstyle{rec(c{,}f)}$} }}\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope{ {}{}{}}{}{ {}{}{}} {{{{{}}{ {}{}}{}{}{{}{}}}}}{}{{{{{}}{ {}{}}{}{}{{}{}}}}}{{}}{}{}{}\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@setlinewidth{0.39998pt}\pgfsys@invoke{ }{}{}{}{}{{}}{}{}{{}}\pgfsys@moveto{31.73648pt}{-23.20831pt}\pgfsys@lineto{-10.9476pt}{-23.20831pt}\pgfsys@stroke\pgfsys@invoke{ }{{}{{}}{}{}{{}}{{{}}}}{{}{{}}{}{}{{}}{{{}}{{{}}{\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@transformcm{-1.0}{0.0}{0.0}{-1.0}{-11.14758pt}{-23.20831pt}\pgfsys@invoke{ }\pgfsys@invoke{ \lxSVG@closescope }\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope}}{{}}}} \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope \pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope{}{}{}\hss}\pgfsys@discardpath\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope\hss}}\lxSVG@closescope\endpgfpicture}}

    We may specialise to I1=1subscript𝐼11I_{1}=1. Then we have

    I2subscript𝐼2{I_{2}}Mor(𝕌0)𝑀𝑜𝑟subscript𝕌0{Mor(\mathbb{U}_{0})}11{1}Ob(𝕌0)×Ob(𝕌0)𝑂𝑏subscript𝕌0𝑂𝑏subscript𝕌0{Ob(\mathbb{U}_{0})\times Ob(\mathbb{U}_{0})}rec(f,c)𝑟𝑒𝑐𝑓𝑐\scriptstyle{rec(f{,}c)}p2Y×p2L(A)superscriptsubscript𝑝2𝑌superscriptsubscript𝑝2𝐿𝐴\scriptstyle{p_{2}^{\ast}Y\times p_{2}^{\ast}L(A)}

    By uniqueness of rec(c,f)𝑟𝑒𝑐𝑐𝑓rec(c,f) it descends to 111 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 𝕌0subscript𝕌0\mathbb{U}_{0} 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 I1=1subscript𝐼11I_{1}=1 yields the regularity of 𝕌0(1)subscript𝕌01\int\mathbb{U}_{0}(1).

  • Exactness
    This means that for any given equivalence relation RA×A𝑅𝐴𝐴R\hookrightarrow A\times A we have

    𝕌0R is a kernel pairmodelssubscript𝕌0𝑅 is a kernel pair\mathbb{U}_{0}\models\ulcorner R\,\>\textit{ is a kernel pair}\urcorner

    i.e. if A/R𝐴𝑅A/R denotes the coequalizer of A×A𝐴𝐴{A\times A}A𝐴{A}p1subscript𝑝1\scriptstyle{p_{1}}p2subscript𝑝2\scriptstyle{p_{2}} then we claim that 𝕌0R=A×A/RAmodelssubscript𝕌0𝑅subscript𝐴𝑅𝐴𝐴\mathbb{U}_{0}\models\ulcorner R=A\times_{A/R}A\urcorner which is a simple equality, containing no existence quantifiers hence by the Kripke-Joyal semantics it follows that Ext(𝕌0)𝐸𝑥𝑡subscript𝕌0Ext(\mathbb{U}_{0}) is exact.

Let U0subscript𝑈0U_{0} be the initial arithmetic universe, and 𝕌0superscriptsubscript𝕌0\mathbb{U}_{0}^{\prime} its internal initial arithmetic universe. Let \mathbb{N} denote the natural number object in U0subscript𝑈0U_{0} and superscript\mathbb{N}^{\prime} the natural number object in 𝕌0superscriptsubscript𝕌0\mathbb{U}_{0}^{\prime}. Construct the externalization U0:=ExtU0(𝕌0)assignsuperscriptsubscript𝑈0𝐸𝑥subscript𝑡subscript𝑈0superscriptsubscript𝕌0U_{0}^{\prime}:=Ext_{U_{0}}(\mathbb{U}_{0}^{\prime}). Since U0subscript𝑈0U_{0} is the initial arithmetic universe there is the initial functor R:U0Ext(𝕌0):𝑅subscript𝑈0𝐸𝑥𝑡superscriptsubscript𝕌0R:U_{0}\to Ext(\mathbb{U}_{0}^{\prime}). Roughly speaking it interprets any construction that can be done in a general arithmetic universe in the specific universe Ext(𝕌0)𝐸𝑥𝑡superscriptsubscript𝕌0Ext(\mathbb{U}_{0}^{\prime}), which why we’ll often denote R(A)=A𝑅𝐴superscript𝐴R(A)=A^{\prime} for AU0𝐴subscript𝑈0A\in U_{0}.

We also have a global section functor Γ:Ext(𝕌0)U0:Γ𝐸𝑥𝑡superscriptsubscript𝕌0subscript𝑈0\Gamma:Ext(\mathbb{U}_{0})^{\prime}\to U_{0}. Let us see how it acts. On objects: we construct the generic family of objects as a pullback

1(1,)subscript11{\mathbb{C}_{1}(1,\bullet)}1subscript1{\mathbb{C}_{1}}0subscript0{\mathbb{C}_{0}}0×0subscript0subscript0{\mathbb{C}_{0}\times\mathbb{C}_{0}}p𝑝\scriptstyle{p}<cod,dom>\scriptstyle{<cod{,}dom>}<1,Id>\scriptstyle{<1{,}Id>}

Given a representing code/name/arrow X:10:𝑋1subscript0X:1\to\mathbb{C}_{0} for an object in U0superscriptsubscript𝑈0U_{0}^{\prime} we compute Γ(X)Γ𝑋\Gamma(X) as the pullback

Γ(X)Γ𝑋{\Gamma(X)}1(1,)subscript1superscript1{\mathbb{C}_{1}(1^{\prime},\bullet)}11{1}0subscript0{\mathbb{C}_{0}}p𝑝\scriptstyle{p}

where p:1(1,)0:𝑝subscript1superscript1subscript0p:\mathbb{C}_{1}(1^{\prime},\bullet)\to\mathbb{C}_{0} denotes the projection to the codomain.

On arrows: let T0subscript𝑇0T_{0} be the pullback

T0subscript𝑇0{T_{0}}1(1,)subscript1superscript1{\mathbb{C}_{1}(1^{\prime},\bullet)}1subscript1{\mathbb{C}_{1}}0subscript0{\mathbb{C}_{0}}p𝑝\scriptstyle{p}dom𝑑𝑜𝑚\scriptstyle{dom}

let T1subscript𝑇1T_{1} be the pullback

T1subscript𝑇1{T_{1}}1(1,)subscript1superscript1{\mathbb{C}_{1}(1^{\prime},\bullet)}1subscript1{\mathbb{C}_{1}}0subscript0{\mathbb{C}_{0}}r𝑟\scriptstyle{r}p𝑝\scriptstyle{p}cod𝑐𝑜𝑑\scriptstyle{cod}

The way we constructed T0subscript𝑇0T_{0} implies it is a subobject of 2=1×01subscript2subscriptsubscript0subscript1subscript1\mathbb{C}_{2}=\mathbb{C}_{1}\times_{\mathbb{C}_{0}}\mathbb{C}_{1} and the composition map :21\circ:\mathbb{C}_{2}\to\mathbb{C}_{1} restrict to a map T01(1,)subscript𝑇0subscript11T_{0}\to\mathbb{C}_{1}(1,\bullet) such that

T0subscript𝑇0{T_{0}}1(1,)subscript1superscript1{\mathbb{C}_{1}(1^{\prime},\bullet)}1subscript1{\mathbb{C}_{1}}0subscript0{\mathbb{C}_{0}}\scriptstyle{\circ}p𝑝\scriptstyle{p}cod𝑐𝑜𝑑\scriptstyle{cod}

commutes. By the universal property of the pullback we obtain a map s:T0T1:𝑠subscript𝑇0subscript𝑇1s:T_{0}\to T_{1}. The generic family is given by

T0subscript𝑇0{T_{0}}T1subscript𝑇1{T_{1}}1subscript1{\mathbb{C}_{1}}s𝑠\scriptstyle{s}True𝑇𝑟𝑢superscript𝑒\scriptstyle{True^{\prime}}

Given a code for an arrow 1𝑓𝑓11\xrightarrow{f}\mathbb{C} with domain R=domf𝑅𝑑𝑜𝑚𝑓R=dom\circ f and codomain S=codf𝑆𝑐𝑜𝑑𝑓S=cod\circ f we pullback

fT0superscript𝑓subscript𝑇0{f^{\ast}T_{0}}T1subscript𝑇1{T_{1}}11{1}f(s)superscript𝑓𝑠\scriptstyle{f^{\ast}(s)}

where we notice that f(T0)=R,f(T1)=Sformulae-sequencesuperscript𝑓subscript𝑇0𝑅superscript𝑓subscript𝑇1𝑆f^{\ast}(T_{0})=R,f^{\ast}(T_{1})=S, so we get a map Γ(f):RS:Γ𝑓𝑅𝑆\Gamma(f):R\to S.

Caution 5.14.

The functor ΓΓ\Gamma is not a morphism of arithmetic universes!

Lemma 5.15.

Let ηA:AU0:subscript𝜂𝐴𝐴subscript𝑈0\eta_{A}:A\in U_{0}. We have a map AΓ(A)=A𝐴Γsuperscript𝐴𝐴A\to\Gamma(A^{\prime})=\square A.

Proof.

This follows from the existence of the Freyd cover obtained from gluing along the global section functor ΓΓ\Gamma and the initiality of U0subscript𝑈0U_{0}. We consider the arithmetic universe U0=Ext(𝕌)superscriptsubscript𝑈0𝐸𝑥𝑡𝕌U_{0}^{\prime}=Ext(\mathbb{U}). There is a functor Γ:Ext(𝕌)𝕌0:Γ𝐸𝑥𝑡𝕌subscript𝕌0\Gamma:Ext(\mathbb{U})\to\mathbb{U}_{0}. Construct the Artin-Wraith gluing or Freyd cover Gl(Γ)𝐺𝑙ΓGl(\Gamma) along ΓΓ\Gamma. Its objects are triple (A,B,α:AΓ(B)):𝐴𝐵𝛼𝐴Γ𝐵(A,B,\alpha:A\to\Gamma(B)) where AU0,BExt(𝕌)formulae-sequence𝐴subscript𝑈0𝐵𝐸𝑥𝑡𝕌A\in U_{0},B\in Ext(\mathbb{U}). There is a projection map p:Gl(Γ)Ext(𝕌):𝑝𝐺𝑙Γ𝐸𝑥𝑡𝕌p:Gl(\Gamma)\to Ext(\mathbb{U}) acting as (A,B,α:AΓ(B))B(A,B,\alpha:A\to\Gamma(B))\mapsto B which is an AU functor. By initiality we have a map T:U0Gl(Γ):𝑇subscript𝑈0𝐺𝑙ΓT:U_{0}\to Gl(\Gamma). Again by initiality the diagram

Ext(𝕌)𝐸𝑥𝑡𝕌{Ext(\mathbb{U})}Gl(Γ)]{Gl(\Gamma)]}U0subscript𝑈0{U_{0}}p𝑝\scriptstyle{p}T𝑇\scriptstyle{T}R𝑅\scriptstyle{R}

commutes. Hence T𝑇T acts as A(A,R(A)=A,ηA:AΓ(A)A\mapsto(A,R(A)=A^{\prime},\eta_{A}:A\to\Gamma(A^{\prime}). The map ηA:AΓ(A):subscript𝜂𝐴𝐴Γsuperscript𝐴\eta_{A}:A\to\Gamma(A^{\prime}) furnishes our required map. ∎

Remark 5.16 (Ingo).

Remark that this is quite curious as it would appear to say that: U0AAis provablemodelssubscript𝑈0𝐴superscript𝐴is provableU_{0}\models A\Rightarrow A^{\prime}\text{is provable} which seems false. Indeed the analogous statement

PA(ϕ(PAϕ)PA\vdash(\phi\to(PA\vdash\phi)

is absolutely false. Take ϕ=Con(PA)italic-ϕ𝐶𝑜𝑛𝑃𝐴\phi=Con(PA), then we conclude that if PA𝑃𝐴PA were consistent it would prove its own consistency, hence would be inconsistent by Godel II. We are saved however by the observation that Con(PA)𝐶𝑜𝑛𝑃𝐴Con(PA) 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 𝕌0subscript𝕌0\mathbb{U}_{0} does not have power objects. However, the power object do exist, one level higher, in U0subscript𝑈0U_{0}. Let X:1𝕌0:𝑋1subscript𝕌0X:1\to\mathbb{U}_{0} be a (global) object of 𝕌0subscript𝕌0\mathbb{U}_{0}. We have 𝕌0(,X)subscript𝕌0𝑋\mathbb{U}_{0}(\bullet,X). To construct the power object of subobject 𝒫(X)𝒫𝑋\mathcal{P}(X) 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 i:YX:𝑖𝑌𝑋i:Y\to X is a monomorphism if in the following diagram

Y×XYsubscript𝑋𝑌𝑌{Y\times_{X}Y}Y𝑌{Y}Y𝑌{Y}X𝑋{X}p1subscript𝑝1\scriptstyle{p_{1}}p2subscript𝑝2\scriptstyle{p_{2}}

we have p1=p2subscript𝑝1subscript𝑝2p_{1}=p_{2}. Hence the object of monomorphisms is constructed as Mono(X)=Σf:𝕌0(,X)p1=p2𝑀𝑜𝑛𝑜𝑋subscriptΣ:𝑓subscript𝕌0𝑋subscript𝑝1subscript𝑝2Mono(X)=\Sigma_{f:\mathbb{U}_{0}(\bullet,X)}p_{1}=p_{2}. The subobjects may be similarly constructed by defining the relation SXsubscript𝑆𝑋S_{X} on Mono(X)𝑀𝑜𝑛𝑜𝑋Mono(X) given by fSg=Σf,g:Mono(X)Cod(f)Cod(g)subscriptsimilar-to𝑆𝑓𝑔subscriptΣ:𝑓𝑔𝑀𝑜𝑛𝑜𝑋𝐶𝑜𝑑𝑓𝐶𝑜𝑑𝑔f\sim_{S}g=\Sigma_{f,g:Mono(X)}Cod(f)\to Cod(g) and then taking the quotient.

Given a subobject 1𝐴𝒫1𝐴1𝒫superscript11\xrightarrow{A}\mathcal{P}1^{\prime} there are two natural subobjects in U0subscript𝑈0U_{0} associated to A𝐴A: the equalizer

A=Truedelimited-⟦⟧𝐴𝑇𝑟𝑢superscript𝑒{\llbracket A=True^{\prime}\rrbracket}11{1}𝒫1𝒫superscript1{\mathcal{P}1^{\prime}}A𝐴\scriptstyle{A}True𝑇𝑟𝑢superscript𝑒\scriptstyle{True^{\prime}}

and the global sections Γ(A)=𝕌0(1,A)Γ𝐴subscriptsuperscript𝕌0superscript1𝐴\Gamma(A)=\mathbb{U}^{\prime}_{0}(1^{\prime},A). These notions coincide:

Proposition 5.17.

Let 1𝐴𝒫(1)𝐴1𝒫superscript11\xrightarrow{A}\mathcal{P}(1^{\prime}). The following subobjects are equal:

Γ(A)=𝕌0(1,A)=A=True\Gamma(A)=\mathbb{U}^{\prime}_{0}(1^{\prime},A)=\llbracket A=True^{\prime}\rrbracket
Proof.

Let’s investigate the relation between Γ(A)Γ𝐴\Gamma(A) and A=Truedelimited-⟦⟧𝐴𝑇𝑟𝑢superscript𝑒\llbracket A=True^{\prime}\rrbracket. Recall how Γ(A)Γ𝐴\Gamma(A) is constructed: Let K0subscript𝐾0K_{0} denote the pullback

K0subscript𝐾0{K_{0}}𝕌1(1,)subscript𝕌1superscript1{\mathbb{U}_{1}(1^{\prime},\bullet)}Mono(,1)𝑀𝑜𝑛𝑜superscript1{Mono(\bullet,1^{\prime})}𝕌0subscript𝕌0{\mathbb{U}_{0}}cod𝑐𝑜𝑑\scriptstyle{cod}

over 𝒫1𝒫superscript1\mathcal{P}1^{\prime} we have the commutative triangle

K0subscript𝐾0{K_{0}}11{1}𝒫1𝒫superscript1{\mathcal{P}1^{\prime}}True𝑇𝑟𝑢superscript𝑒\scriptstyle{True^{\prime}}

pullback this triangle along 1𝐴𝒫1𝐴1𝒫superscript11\xrightarrow{A}\mathcal{P}1^{\prime} to obtain

Γ(A)Γ𝐴{\Gamma(A)}K0subscript𝐾0{K_{0}}11{1}11{1}11{1}𝒫1𝒫superscript1{\mathcal{P}1^{\prime}}True𝑇𝑟𝑢superscript𝑒\scriptstyle{True^{\prime}}A𝐴\scriptstyle{A}

where the front and back faces are pullback squares. We obtain a map Γ(A)A=True\Gamma(A)\to\llbracket A=True^{\prime}\rrbracket by the universal property of the equalizer.

We have a map True:1K0:𝑇𝑟𝑢superscript𝑒1subscript𝐾0True^{\prime}:1\to K_{0}. Compose this with the arrow A=True1\llbracket A=True^{\prime}\rrbracket\to 1 to obtain a map A=TrueK0\llbracket A=True^{\prime}\rrbracket\to K_{0}. Together with the map A=True1\llbracket A=True^{\prime}\rrbracket\to 1 this produces a map A=TrueΓ(A)\llbracket A=True^{\prime}\rrbracket\to\Gamma(A) by the universal property of the pullback. ∎

Proposition 5.18.
  1. 1.

    If 1𝒰0superscript1superscriptsubscript𝒰01\xrightarrow{\mathbb{N}^{\prime}}\mathcal{U}_{0}^{\prime} is the formal natural numbers object, then there is an enumeration

    e:𝒫:𝑒superscript𝒫superscripte:\mathbb{N}\twoheadrightarrow\mathcal{P}^{\prime}\mathbb{N}^{\prime}

    of "all formulae with one variable free."

  2. 2.

    The terminal object 111 is projective.

Proof.

Recall that the initial arithmetic universe U0subscript𝑈0U_{0} is constructed in three stages: take the initial Skolem theory Σ0subscriptΣ0\Sigma_{0}, take its category of predicates Pred(Σ0)𝑃𝑟𝑒𝑑subscriptΣ0Pred(\Sigma_{0}) and finally construct the ex/reg-completion.

The construction of Σ0superscriptsubscriptΣ0\Sigma_{0}^{\prime} i complicated but essentially the morphisms Mor(Σ0)𝑀𝑜𝑟superscriptsubscriptΣ0Mor(\Sigma_{0}^{\prime}) are given by primitive recursive functions. These are primitive recursively enumerable hence we have an epimorphism Mor(Σ0)𝑀𝑜𝑟superscriptsubscriptΣ0\mathbb{N}\twoheadrightarrow Mor(\Sigma_{0}^{\prime}). Similarly, for Mor(U0)𝑀𝑜𝑟superscriptsubscript𝑈0Mor(U_{0}^{\prime}). Observe that we have a map Im:Mor(U0)Mono(U0):𝐼𝑚𝑀𝑜𝑟superscriptsubscript𝑈0𝑀𝑜𝑛𝑜superscriptsubscript𝑈0Im:Mor(U_{0}^{\prime})\to Mono(U_{0}^{\prime}) which is defined by sending f:AB:𝑓𝐴𝐵f:A\to B to im(f)B𝑖𝑚𝑓𝐵im(f)\hookrightarrow B. Next, for a superscript\mathbb{N}^{\prime} apply the quotient map Mono(,)P()𝑀𝑜𝑛𝑜superscript𝑃superscriptMono(\bullet,\mathbb{N}^{\prime})\twoheadrightarrow P(\mathbb{N}^{\prime}). Notice that after applying this quotient map it will be the identity on monomorphisms. We conclude that we have the required epimorphism 𝒫()𝒫superscript\mathbb{N}\twoheadrightarrow\mathcal{P}(\mathbb{N}^{\prime}).

Suppose we have an epimorphism f:(Y1,A1)(Y2,A2):𝑓subscript𝑌1subscript𝐴1subscript𝑌2subscript𝐴2f:(Y_{1},A_{1})\to(Y_{2},A_{2}) for equivalence relations A1,A2subscript𝐴1subscript𝐴2A_{1},A_{2} on objects Y1,Y2Pred(Σ0)subscript𝑌1subscript𝑌2𝑃𝑟𝑒𝑑subscriptΣ0Y_{1},Y_{2}\in Pred(\Sigma_{0}), and a map x:1(Y2,A2):𝑥1subscript𝑌2subscript𝐴2x:1\to(Y_{2},A_{2}). By construction of the exact/regular completion the map x:1(Y2,A2):𝑥1subscript𝑌2subscript𝐴2x:1\to(Y_{2},A_{2}) lifts to a map x~:1Y2(Y2,A2):~𝑥1subscript𝑌2subscript𝑌2subscript𝐴2\tilde{x}:1\to Y_{2}\twoheadrightarrow(Y_{2},A_{2}). Take the pullback

(Y1,A1)×(Y2,A2)Y2subscriptsubscript𝑌2subscript𝐴2subscript𝑌1subscript𝐴1subscript𝑌2{(Y_{1},A_{1})\times_{(Y_{2},A_{2})}Y_{2}}Y2subscript𝑌2{Y_{2}}(Y1,A1)subscript𝑌1subscript𝐴1{(Y_{1},A_{1})}(Y2,A2)subscript𝑌2subscript𝐴2{(Y_{2},A_{2})}

where we used that epimorphisms are stable under pullback. The pullback (Y1,A1)×(Y2,A2)Y2subscriptsubscript𝑌2subscript𝐴2subscript𝑌1subscript𝐴1subscript𝑌2(Y_{1},A_{1})\times_{(Y_{2},A_{2})}Y_{2} is also of the form (Y3,A3)subscript𝑌3subscript𝐴3(Y_{3},A_{3}) for some equivalence relation A3subscript𝐴3A_{3} on Y3Pred(Σ0)subscript𝑌3𝑃𝑟𝑒𝑑subscriptΣ0Y_{3}\in Pred(\Sigma_{0}). Hence we have an epimorphism Y3(Y3,A3)subscript𝑌3subscript𝑌3subscript𝐴3Y_{3}\twoheadrightarrow(Y_{3},A_{3}); composing with (Y1,A1)×(Y2,A2)Y2Y2subscriptsubscript𝑌2subscript𝐴2subscript𝑌1subscript𝐴1subscript𝑌2subscript𝑌2(Y_{1},A_{1})\times_{(Y_{2},A_{2})}Y_{2}\twoheadrightarrow Y_{2} we get an epimorphism Y3Y2subscript𝑌3subscript𝑌2Y_{3}\twoheadrightarrow Y_{2} using that an epimorphism in an exact/completion of a category C𝐶C between objects in the image of C𝐶C yields an epimorphism in C𝐶C. In Pred(Σ0)𝑃𝑟𝑒𝑑subscriptΣ0Pred(\Sigma_{0}) we know that every map factor through a split epimorphism followed by a monomorphism. We conclude that the map Y3Y2subscript𝑌3subscript𝑌2Y_{3}\twoheadrightarrow Y_{2} splits hence by composition we obtain a map 1Y31subscript𝑌31\to Y_{3} and hence a map 1(Y1,A1)1subscript𝑌1subscript𝐴11\to(Y_{1},A_{1}). ∎

Finally, we construct

(ι:[1,])\mathbb{N}\mapsto(\iota:\mathbb{N}\to[1^{\prime},\mathbb{N}^{\prime}])

where η=ιsubscript𝜂𝜄\eta_{\mathbb{N}}=\iota is the map which assigns each natural number n𝑛n its "formal expression" nsuperscript𝑛n^{\prime}.

Theorem 5.19 (Gödel’s First Incompleteness Theorem).

If an arithmetic universe object 𝕌𝕌\mathbb{U} in 𝒰recsubscript𝒰𝑟𝑒𝑐\mathcal{U}_{rec} is [syntactically] complete then it is the trivial AU𝐴𝑈AU-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:

D𝐷{D}11{1}{\mathbb{N}}×{\mathbb{N}\times\mathbb{N}}[1,]×𝒫superscript1superscriptsuperscript𝒫superscript{\left[1^{\prime},\mathbb{N}^{\prime}\right]\times\mathcal{P}^{\prime}\mathbb{N}^{\prime}}𝒫1superscript𝒫superscript1{\mathcal{P}^{\prime}1^{\prime}}false𝑓𝑎𝑙𝑠superscript𝑒\scriptstyle{false^{\prime}}ΔsubscriptΔ\scriptstyle{\Delta_{\mathbb{N}}}ι×e𝜄𝑒\scriptstyle{\iota\times e}eval𝑒𝑣𝑎𝑙\scriptstyle{eval}

Since 1 is projective in the initial AU form the lift n𝑛n of Dsuperscript𝐷D^{\prime}:

{\mathbb{N}}11{1}𝒫superscript𝒫superscript{\mathcal{P}^{\prime}\mathbb{N}^{\prime}}e𝑒\scriptstyle{e}n𝑛\scriptstyle{n}Dsuperscript𝐷\scriptstyle{D^{\prime}}

then

nDdelimited-⟦⟧𝑛𝐷{\llbracket n\in D\rrbracket}D𝐷{D}11{1}11{1}{\mathbb{N}}×{\mathbb{N}\times\mathbb{N}}[1,]×𝒫superscript1superscriptsuperscript𝒫superscript{\left[1^{\prime},\mathbb{N}^{\prime}\right]\times\mathcal{P}^{\prime}\mathbb{N}^{\prime}}𝒫1superscript𝒫superscript1{\mathcal{P}^{\prime}1^{\prime}}false𝑓𝑎𝑙𝑠superscript𝑒\scriptstyle{false^{\prime}}n𝑛\scriptstyle{n}ΔsubscriptΔ\scriptstyle{\Delta_{\mathbb{N}}}ι×e𝜄𝑒\scriptstyle{\iota\times e}eval𝑒𝑣𝑎𝑙\scriptstyle{eval}

is given by pullback. The subobject nDdelimited-⟦⟧𝑛𝐷\llbracket n\in D\rrbracket is the categorical incarnation of the Gödel sentence G𝐺G; asking whether this subobject factors through 111 is equivalent to asking whether G𝐺G is provable.

Consider nD:1𝒫1\llbracket n\in D\rrbracket^{\prime}:1\hookrightarrow\mathcal{P}^{\prime}1^{\prime} , it follows that this is a pullback square by composition

nDdelimited-⟦⟧𝑛𝐷{\llbracket n\in D\rrbracket}11{1}11{1}𝒫1superscript𝒫superscript1{\mathcal{P}^{\prime}1^{\prime}}false𝑓𝑎𝑙𝑠superscript𝑒\scriptstyle{false^{\prime}}

The bottom map is the composition evalι×eΔn𝑒𝑣𝑎𝑙𝜄𝑒subscriptΔ𝑛eval\circ\iota\times e\circ\Delta_{\mathbb{N}}\circ n; we claim this composition coincides with nD\llbracket n\in D\rrbracket^{\prime}. Indeed en=D=R(D)𝑒𝑛superscript𝐷𝑅𝐷e\circ n=D^{\prime}=R(D) by definition of n𝑛n. By construction also ι(n)=R(n)=n𝜄𝑛𝑅𝑛superscript𝑛\iota(n)=R(n)=n^{\prime} hence the composition is nD=nD\llbracket n^{\prime}\in D^{\prime}\rrbracket=\llbracket n\in D\rrbracket^{\prime}.

If nDdelimited-⟦⟧𝑛𝐷\llbracket n\in D\rrbracket equals 0=False0𝐹𝑎𝑙𝑠𝑒0=False then nDdelimited-⟦⟧𝑛𝐷\llbracket n\in D\rrbracket is the pullback of false𝑓𝑎𝑙𝑠superscript𝑒false^{\prime} along false𝑓𝑎𝑙𝑠superscript𝑒false^{\prime},hence we conclude nDdelimited-⟦⟧𝑛𝐷\llbracket n\in D\rrbracket equals 1=True1𝑇𝑟𝑢𝑒1=True. This contradicts the consistency of 𝒰0subscript𝒰0\mathcal{U}_{0}. On the other hand, if nDdelimited-⟦⟧𝑛𝐷\llbracket n\in D\rrbracket equals 1=True1𝑇𝑟𝑢𝑒1=True then nDdelimited-⟦⟧𝑛𝐷\llbracket n\in D\rrbracket is the pullback of True𝑇𝑟𝑢superscript𝑒True^{\prime} along False𝐹𝑎𝑙𝑠superscript𝑒False^{\prime}, hence we conclude nDdelimited-⟦⟧𝑛𝐷\llbracket n\in D\rrbracket equals 0=False0𝐹𝑎𝑙𝑠𝑒0=False, contradiction. We conclude that the Gödel sentence nDdelimited-⟦⟧𝑛𝐷\llbracket n\in D\rrbracket is neither 00 or 111. ∎

We are now ready to see the proof of Godel’s second incompleteness theorem for PRA. Let U0,U0subscript𝑈0superscriptsubscript𝑈0U_{0},U_{0}^{\prime} be as before. The arithmetic universe U0subscript𝑈0U_{0} proves the consistency of U0superscriptsubscript𝑈0U_{0}^{\prime} if True=False1\llbracket True^{\prime}=False^{\prime}\rrbracket\hookrightarrow 1 equals the minimal subobject 01010\hookrightarrow 1.

Theorem 5.20 (Gödel’s Second Incompleteness Theorem).

Assume that U0subscript𝑈0U_{0} is consistent. Then the subobject True=False1\llbracket True^{\prime}=False^{\prime}\rrbracket\hookrightarrow 1 does not equal the minimal subobject 01010\hookrightarrow 1 in U0subscript𝑈0U_{0}.

Proof.

We have the diagram

nDdelimited-⟦⟧𝑛𝐷{\llbracket n\in D\rrbracket}11{1}11{1}𝒫1superscript𝒫superscript1{\mathcal{P}^{\prime}1^{\prime}}false𝑓𝑎𝑙𝑠superscript𝑒\scriptstyle{false^{\prime}}nD\scriptstyle{\llbracket n\in D\rrbracket^{\prime}}

we also have

nDdelimited-⟦⟧𝑛𝐷{\llbracket n\in D\rrbracket}11{1}11{1}𝒫1superscript𝒫superscript1{\mathcal{P}^{\prime}1^{\prime}}true𝑡𝑟𝑢superscript𝑒\scriptstyle{true^{\prime}}nD\scriptstyle{\llbracket n\in D\rrbracket^{\prime}}

this follows from the canonical map nDΓ(nD)=nD=True\llbracket n\in D\rrbracket\to\Gamma(\llbracket n\in D\rrbracket^{\prime})=\llbracket\llbracket n\in D\rrbracket^{\prime}=True^{\prime}\rrbracket. In turn the above implies that

nDdelimited-⟦⟧𝑛𝐷{\llbracket n\in D\rrbracket}11{1}𝒫1superscript𝒫superscript1{\mathcal{P}^{\prime}1^{\prime}}false𝑓𝑎𝑙𝑠superscript𝑒\scriptstyle{false^{\prime}}true𝑡𝑟𝑢superscript𝑒\scriptstyle{true^{\prime}}

commutes. We will show that it is also an equalizer. Let

Z𝑍{Z}11{1}𝒫1superscript𝒫superscript1{\mathcal{P^{\prime}}1^{\prime}}!Z\scriptstyle{!_{Z}}false𝑓𝑎𝑙𝑠superscript𝑒\scriptstyle{false^{\prime}}true𝑡𝑟𝑢superscript𝑒\scriptstyle{true^{\prime}}

be a commutative diagram. The object P1𝑃1P1 is an internal poset with least element false𝑓𝑎𝑙𝑠superscript𝑒false^{\prime} and largest element true𝑡𝑟𝑢superscript𝑒true^{\prime}. Therefore the externalization hom(Z,𝒫1)hom𝑍superscript𝒫superscript1\hom(Z,\mathcal{P^{\prime}}1^{\prime}) is also a poset with bottom false!Zfalse^{\prime}\circ\ !_{Z} and top true!Ztrue^{\prime}\circ\ !_{Z}. Also false!ZnDtrue!Z=false!Zfalse^{\prime}\circ\ !_{Z}\leq\llbracket n\in D\rrbracket^{\prime}\leq true^{\prime}\circ\ !_{Z}=false^{\prime}\circ\ !_{Z}. Thus nD=true!Z=false!Z\llbracket n\in D\rrbracket^{\prime}=true^{\prime}\circ\ !_{Z}=false^{\prime}\circ\ !_{Z}. By the above pullback !Z!_{Z} factors through nDdelimited-⟦⟧𝑛𝐷\llbracket n\in D\rrbracket.

If nDdelimited-⟦⟧𝑛𝐷\llbracket n\in D\rrbracket equals 0=False0𝐹𝑎𝑙𝑠𝑒0=False then nDdelimited-⟦⟧𝑛𝐷\llbracket n\in D\rrbracket is the pullback of false𝑓𝑎𝑙𝑠superscript𝑒false^{\prime} along false𝑓𝑎𝑙𝑠superscript𝑒false^{\prime},hence we conclude nDdelimited-⟦⟧𝑛𝐷\llbracket n\in D\rrbracket equals 1=True1𝑇𝑟𝑢𝑒1=True. This contradicts the consistency of 𝒰0subscript𝒰0\mathcal{U}_{0}. It follows that nD=True=False\llbracket n\in D\rrbracket=\llbracket True^{\prime}=False^{\prime}\rrbracket is not 00 and the consistency of 𝒰0superscriptsubscript𝒰0\mathcal{U}_{0}^{\prime} 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 U=U0𝑈subscript𝑈0U=U_{0} 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 ϕitalic-ϕ\phi implies ψ𝜓\psi in U𝑈U, written Uϕψprovesmodels𝑈italic-ϕ𝜓U\models\phi\vdash\psi, if there is an inclusion of subobjects ϕψitalic-ϕ𝜓\phi\hookrightarrow\psi. We interpret ϕitalic-ϕ\phi as the judgement ϕ\top\vdash\phi.

Notice that as defined above, a judgement ϕψprovesitalic-ϕ𝜓\phi\vdash\psi is not itself a proposition. It is therefore not immediately apparent how to interpret the (conceptually distinct) sentences like (ϕψ)χitalic-ϕ𝜓𝜒(\phi\rightarrow\psi)\rightarrow\chi or ϕ(ψχ)italic-ϕ𝜓𝜒\phi\rightarrow(\psi\rightarrow\chi).

An arithmetic universe is typically not cartesian closed, so the usual way of talking about implication will not work here. Let U𝑈U be an arithmetic universe, let ϕ,ψ1italic-ϕ𝜓1\phi,\psi\hookrightarrow 1 be monomorphisms/propositions. Let U[ϕψ]=U[ϕψ]𝑈delimited-[]italic-ϕ𝜓𝑈delimited-[]italic-ϕ𝜓U[\phi\to\psi]=U[\phi\leq\psi] be the classifying AU of ϕψitalic-ϕ𝜓\phi\leq\psi. We have an adjoint pair of AU functors

U𝑈{\quad U}U[ϕψ]𝑈delimited-[]italic-ϕ𝜓{\quad U[\phi\leq\psi]}isuperscript𝑖\scriptstyle{i^{\ast}}isubscript𝑖\scriptstyle{i_{\ast}}does-not-prove{\dashv}

Moreover, we also know U[ϕ]=u[ϕ]=U/ϕU[\top\leq\phi]=u[\phi]=U/\phi, we may then identify isuperscript𝑖i^{\ast} with the pullback along i:ϕ1:𝑖italic-ϕ1i:\phi\hookrightarrow 1

Definition 6.2.

Given two judgements ϕψprovesitalic-ϕ𝜓\phi\vdash\psi and στproves𝜎𝜏\sigma\vdash\tau we interpret implication of judgements (ϕψ)(στ)(\phi\vdash\psi)\rightarrow(\sigma\vdash\tau) as the statement that there is a morphism of subobjects i(σ)i(τ)superscript𝑖𝜎superscript𝑖𝜏i^{*}(\sigma)\hookrightarrow i^{*}(\tau) in U[ϕψ]𝑈delimited-[]italic-ϕ𝜓U[\phi\leq\psi].

Definition 6.3.

We say Umodels𝑈absentU\models Uϕψprovesmodels𝑈italic-ϕ𝜓\ulcorner U\models\phi\vdash\psi\urcorner if the subobject Hom(ϕ,ψ)1𝐻𝑜𝑚superscriptitalic-ϕsuperscript𝜓1Hom(\phi^{\prime},\psi^{\prime})\hookrightarrow 1 is inhabited.

We will also write U(ϕψ)U\models\square(\phi\vdash\psi) for Umodels𝑈absentU\models Uϕψprovesmodels𝑈italic-ϕ𝜓\ulcorner U\models\phi\vdash\psi\urcorner.

Theorem 6.4 (Löb).

Let U𝑈U as above, let ϕ1italic-ϕ1\phi\hookrightarrow 1 be a given proposition (=monomorphism). Then Uϕϕprovesmodels𝑈italic-ϕitalic-ϕU\models\square\phi\vdash\phi implies Uϕmodels𝑈italic-ϕU\models\phi.

We will need to verify a number of properties of the implication as defined as above.

Proposition 6.5.

If Uϕmodels𝑈italic-ϕU\models\phi then Uϕmodels𝑈italic-ϕU\models\square\phi

Proof.

Immediate from lemma 5.15. ∎

Proposition 6.6.

Uϕ(ϕ)provesmodels𝑈italic-ϕitalic-ϕU\models\square\phi\vdash\square(\square\phi)

Proof.

Apply the functor =ΓRΓ𝑅\square=\Gamma\circ R to ϕϕitalic-ϕitalic-ϕ\phi\to\square\phi. ∎

Proposition 6.7 (Modus Ponens).

Uϕmodels𝑈italic-ϕU\models\phi and Uϕψprovesmodels𝑈italic-ϕ𝜓U\models\phi\vdash\psi then Uψmodels𝑈𝜓U\models\psi.

Proof.

Immediate from the definitions. ∎

Proposition 6.8 (Internal Modus Ponens).

UUϕψ(ϕψ)U\models\ulcorner\ulcorner U\models\phi\vdash\psi\urcorner\rightarrow(\square\phi\vdash\square\psi)\urcorner.

Proof.

Let U[Hom(ϕ,ψ)]=U/Hom(ϕ,ψ)𝑈delimited-[]𝐻𝑜𝑚superscriptitalic-ϕsuperscript𝜓𝑈𝐻𝑜𝑚superscriptitalic-ϕsuperscript𝜓U[Hom(\phi^{\prime},\psi^{\prime})]=U/Hom(\phi^{\prime},\psi^{\prime}) denote the classifying AU of the proposition Hom(ϕ,ψ)𝐻𝑜𝑚superscriptitalic-ϕsuperscript𝜓Hom(\phi^{\prime},\psi^{\prime}). Write out to see that (ϕ)=Γ(ϕ)=Hom(1,ϕ)italic-ϕΓsuperscriptitalic-ϕ𝐻𝑜𝑚superscript1superscriptitalic-ϕ\square(\phi)=\Gamma(\phi^{\prime})=Hom(1^{\prime},\phi^{\prime}). We have an evaluation map ev:Hom(ϕ,ψ)×Hom(1,ϕ)Hom(1,ψ):𝑒𝑣𝐻𝑜𝑚superscriptitalic-ϕsuperscript𝜓𝐻𝑜𝑚superscript1superscriptitalic-ϕ𝐻𝑜𝑚superscript1superscript𝜓ev:Hom(\phi^{\prime},\psi^{\prime})\times Hom(1^{\prime},\phi^{\prime})\to Hom(1^{\prime},\psi^{\prime}). Remark that i(χ)=Hom(ϕ,ψ)×χsuperscript𝑖𝜒𝐻𝑜𝑚superscriptitalic-ϕsuperscript𝜓𝜒i^{\ast}(\chi)=Hom(\phi^{\prime},\psi^{\prime})\times\chi.

We want to prove that there is an arrow i(ϕ)i(ψ)superscript𝑖italic-ϕsuperscript𝑖𝜓i^{\ast}(\square\phi)\to i^{\ast}(\square\psi). We have the following diagram

Hom(ϕ,ψ)×(ϕ)𝐻𝑜𝑚superscriptitalic-ϕsuperscript𝜓italic-ϕ{Hom(\phi^{\prime},\psi^{\prime})\times\square(\phi)}Hom(ϕ,ψ)×(ψ)𝐻𝑜𝑚superscriptitalic-ϕsuperscript𝜓𝜓{Hom(\phi^{\prime},\psi^{\prime})\times\square(\psi)}Hom(ϕ,ψ){Hom(^{\prime}\phi^{\prime},\psi^{\prime})}<id,ev>\scriptstyle{<id{,}ev>}

Hence there is an arrow i(ϕ)i(ψ)superscript𝑖italic-ϕsuperscript𝑖𝜓i^{\ast}(\square\phi)\to i^{\ast}(\square\psi). ∎

Proposition 6.9.

Uϕψprovesmodels𝑈italic-ϕ𝜓U\models\phi\vdash\psi and Uψχprovesmodels𝑈𝜓𝜒U\models\psi\vdash\chi then Uϕχprovesmodels𝑈italic-ϕ𝜒U\models\phi\vdash\chi

Proof.

Immediate. ∎

Proposition 6.10.

Uϕψprovesmodels𝑈italic-ϕ𝜓U\models\phi\vdash\psi and Uϕ(ψχ)U\models\phi\rightarrow(\psi\vdash\chi) implies Uϕχprovesmodels𝑈italic-ϕ𝜒U\models\phi\vdash\chi

Proof.

Consider the classifying arithmetic universe U[ϕ]=U/ϕ𝑈delimited-[]italic-ϕ𝑈italic-ϕU[\phi]=U/\phi. By assumption we have a morphism a:ϕψ:𝑎italic-ϕ𝜓a:\phi\to\psi and a morphism b:iψ=ϕ×ψiχ=ϕ×χ:𝑏superscript𝑖𝜓italic-ϕ𝜓superscript𝑖𝜒italic-ϕ𝜒b:i^{\ast}\psi=\phi\times\psi\to i^{\ast}\chi=\phi\times\chi over idϕ:ϕϕ:𝑖subscript𝑑italic-ϕitalic-ϕitalic-ϕid_{\phi}:\phi\to\phi. The composition p2b<idϕ,a>:ϕχp_{2}\circ b\circ<id_{\phi},a>:\phi\to\chi furnishes the required morphism. Here p2subscript𝑝2p_{2} 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 f:XX:𝑓𝑋𝑋f:X\to X be a map. Let x:1X:𝑥1𝑋x:1\to X be a global point. We say x𝑥x is a fixed point of f𝑓f if f(x):=fx=x.assign𝑓𝑥𝑓𝑥𝑥f(x):=f\circ x=x.

Lemma 6.12.

Let T:𝒫1𝒫1:𝑇𝒫superscript1𝒫superscript1T:\mathcal{P}1^{\prime}\to\mathcal{P}1^{\prime} be a map in U𝑈U. Then T𝑇T has a fixed point.

Proof.

Let g𝑔g be the composition

×{\mathbb{N}\times\mathbb{N}}[1,]×𝒫superscript1superscript𝒫superscript{{[1^{\prime},\mathbb{N}^{\prime}]}\times\mathcal{P}\mathbb{N}^{\prime}}𝒫1𝒫superscript1{\mathcal{P}1^{\prime}}{\mathbb{N}}𝒫1𝒫superscript1{\mathcal{P}1^{\prime}}i×e𝑖𝑒\scriptstyle{i\times e}eval𝑒𝑣𝑎𝑙\scriptstyle{eval}T𝑇\scriptstyle{T}ΔΔ\scriptstyle{\Delta}g𝑔\scriptstyle{g}

Construct E𝐸E as the pullback

E𝐸{E}11{1}{\mathbb{N}}𝒫1𝒫superscript1{\mathcal{P}1^{\prime}}True𝑇𝑟𝑢superscript𝑒\scriptstyle{True^{\prime}}

By projectivity of 111 we have a lift

{\mathbb{N}}11{1}𝒫𝒫superscript{\mathcal{P}\mathbb{N}^{\prime}}e𝑒\scriptstyle{e}n𝑛\scriptstyle{n}Esuperscript𝐸\scriptstyle{E^{\prime}}

where E=R(E),R:UExt(U):superscript𝐸𝑅𝐸𝑅𝑈𝐸𝑥𝑡superscript𝑈E^{\prime}=R(E),R:U\to Ext(U^{\prime}). Consider the composition

×1Id×n×𝑓𝒫11𝐼𝑑𝑛𝑓𝒫superscript1\mathbb{N}\cong\mathbb{N}\times 1\xrightarrow{Id\times n}\mathbb{N}\times\mathbb{N}\xrightarrow{f}\mathcal{P}1^{\prime}

where f𝑓f denotes the morphism

×i×e[1,]×𝒫eval𝒫1𝑖𝑒superscript1superscript𝒫superscript𝑒𝑣𝑎𝑙𝒫1\mathbb{N}\times\mathbb{N}\xrightarrow{i\times e}[1^{\prime},\mathbb{N}^{\prime}]\times\mathcal{P}\mathbb{N}^{\prime}\xrightarrow{eval}\mathcal{P}1

This is equal to g𝑔g. Finally, the claim is that g(n)𝑔𝑛g(n) is a fixpoint for T𝑇T. By construction we have f(t,n)=g(t)𝑓𝑡𝑛𝑔𝑡f(t,n)=g(t). Therefore, T(g(n))=T(f(n,n))=g(n)𝑇𝑔𝑛𝑇𝑓𝑛𝑛𝑔𝑛T(g(n))=T(f(n,n))=g(n) by definition of g𝑔g as the composition in the first square. ∎

Let ϕ1italic-ϕ1\phi\hookrightarrow 1 be a proposition. Consider the operator Tϕ:𝒫1𝒫1:subscript𝑇italic-ϕ𝒫superscript1𝒫superscript1T_{\phi}:\mathcal{P}1^{\prime}\to\mathcal{P}1^{\prime} defined as Tϕ(β)=RHom(β,R(ϕ))subscript𝑇italic-ϕ𝛽𝑅𝐻𝑜𝑚𝛽𝑅italic-ϕT_{\phi}(\beta)=RHom(\square\beta,R(\phi)). Apply the diagonalization lemma to obtain the Lob sentence Lϕsubscript𝐿italic-ϕL_{\phi}. It satisfies RHom(R(Lϕ),R(ϕ))=Lϕ𝑅𝐻𝑜𝑚𝑅subscript𝐿italic-ϕ𝑅italic-ϕsubscript𝐿italic-ϕRHom(R\square(L_{\phi}),R(\phi))=L_{\phi}.

Recall our formulation of Lob’s theorem:

Theorem 6.13.

Let U𝑈U as above, let ϕ1italic-ϕ1\phi\hookrightarrow 1 be a given proposition (=monomorphism). Then U(Uϕ)ϕmodels𝑈models𝑈italic-ϕitalic-ϕU\models(U\models\phi)\rightarrow\phi implies Uϕmodels𝑈italic-ϕU\models\phi.

Proof.
  1. 1.

    Start with L=Lϕ:1𝒫1:𝐿subscript𝐿italic-ϕ1𝒫superscript1L=L_{\phi}:1\to\mathcal{P}1^{\prime}, the Lob sentence constructed using Lemma 6.12 using the operator Tϕsubscript𝑇italic-ϕT_{\phi} acting as Tϕ(β)=RHom(β),R(ϕ)):𝒫1𝒫1T_{\phi}(\beta)=RHom(\square\beta),R(\phi)):\mathcal{P}1^{\prime}\to\mathcal{P}1^{\prime}. We have the equivalence Tϕ(L)=Lsubscript𝑇italic-ϕ𝐿𝐿T_{\phi}(L)=L.

  2. 2.

    By assumption we have Uϕϕprovesmodels𝑈italic-ϕitalic-ϕU\models\square\phi\vdash\phi.

  3. 3.

    U(ULϕ)(ULϕ)U\models(\ulcorner U\models L\urcorner\vdash\phi)\to(\ulcorner U\models L\urcorner\vdash\square\phi) by proposition 6.8.

  4. 4.

    UUL(UULUϕU\models\ulcorner U\models L\urcorner\to(\ulcorner U\models\ulcorner U\models L\urcorner\urcorner\to\ulcorner U\models\phi\urcorner by steps 1,3 and proposition 6.9

  5. 5.

    UULUUϕmodels𝑈𝑈models𝐿𝑈models𝑈modelsitalic-ϕU\models\ulcorner U\models L\urcorner\to\ulcorner U\models\ulcorner U\models\phi\urcorner\urcorner by proposition 6.6.

  6. 6.

    UULUϕmodels𝑈𝑈models𝐿𝑈modelsitalic-ϕU\models\ulcorner U\models L\urcorner\to\ulcorner U\models\phi\urcorner by steps 4, 5 and proposition 6.10.

  7. 7.

    UULϕmodels𝑈𝑈models𝐿italic-ϕU\models\ulcorner U\models L\urcorner\to\phi by steps 2, 6 and proposition 6.9.

  8. 8.

    UUULϕmodels𝑈𝑈models𝑈models𝐿italic-ϕU\models\ulcorner U\models\ulcorner U\models L\urcorner\to\phi\urcorner by Step 7 and proposition 6.5.

  9. 9.

    UULmodels𝑈𝑈models𝐿U\models\ulcorner U\models L\urcorner by step 1 and proposition 6.7 [Modus Ponens].

  10. 10.

    Uϕmodels𝑈italic-ϕU\models\phi by steps 7, 9 and proposition 6.7 [Modus Ponens].

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.