Context
Topos Theory
topos theory
Background
Toposes
Internal Logic
Topos morphisms
Cohomology and homotopy
In higher category theory
Theorems
Constructivism, Realizability, Computability
Contents
Overview
Here we give the proofs that are necessary to show that the definition of the effective topos does in fact give a well-defined category.
In general, this follows the strategy of taking a proof that the category of partial setoids (where an object is a set equipped with a partial equivalence relation and a morphism is a respectful functional relation) is a category, and keeping track of realizers at each step. The resulting partial recursive functions will generally be closely related to the corresponding proof terms under the Curry-Howard correspondence.
Category
Equivalence relation
We first need to show that equivalence of effective functional relations is in fact an equivalence relation.
The reflexivity property is easy, since the identity function on works for .
For symmetry, suppose that are two equivalent effective functional relations, and choose an equivalence tracker , along with trackers associated with and being effective functional relations. Now, suppose that
Then
Now, it is easy to see that the function which takes and follows the steps on the right to calculate is a partial recursive function, which satisfies the necessary property for .
For transitivity, this is again easy: given equivalence trackers and , then the composition satisfies the necessary property for .
Well-definedness of category operations
Here, we first show that is an effective functional relation.
(Domain condition) Suppose
Then
Therefore, the composition on the right satisfies the necessary property for .
(Codomain condition) Similarly, if we replace the last line in the proof directly above with
then the composition on the right satisfies the necessary property for .
(Image uniqueness) Suppose
and
Then
Therefore, the composition on the right satisfies the necessary property for .
(Totality) Suppose
Then
Thus, the identity function satisfies the necessary property for .
(Respectfulness) Suppose
and
Then
Therefore, the composition on the right satisfies the necessary property for .
Similarly, we need to show that the composition of two effective functional relations between and , and between and , is again an effective functional relation between and .
(Domain condition) Suppose
Then there exists such that
Therefore, the composition on the right satisfies the necessary property for .
(Codomain condition) Similarly, if we replace the last line in the proof directly above with
then the composition in on the right satisfies the necessary property for .
(Image uniqueness) Suppose
and
Then there exist such that
Therefore, the composition on the right satisfies the necessary property for .
(Totality) Suppose
Then there exists such that
It follows that there exists such that
Therefore, the composition on the right satisfies the necessary property for .
(Respectfulness) Suppose
and
Then there exists such that
Therefore, the composition on the right satisfies the necessary property for .
Finally, we show that composition is well-defined up to equivalence of effective functional relations. Thus, suppose we have equivalence trackers and , where are effective functional relations between and , and are effective functional relations between and . Then whenever
then there exists such that
Therefore, the composition on the right satisfies the necessary property for .
Identity properties
In order to establish the identity properties of the category, it suffices to show that for an effective functional relation between and , and are both equivalent to . Thus, suppose that
Then
Therefore, the composition on the right satisfies the necessary property for .
Similarly,
Therefore, the composition on the right satisfies the necessary property for .
Associativity of composition
In order to establish associativity of composition in the category, it suffices to show that for an effective functional relation between and , an effective functional relation between and , and an effective functional relation between and , then is equivalent to . Thus, suppose that
Then there exists such that
By the condition, we can also find such that
Therefore, the composition on the right satisfies the necessary property for . (This composition can be described as the function .)
Finite completeness
Terminal object
We define the terminal object to have underlying set and effective PER . For and , we can in fact choose any full recursive functions.
Given any object , we can define an effective functional relation between and by
Checking the required properties is easy:
(Domain condition) The identity function satisfies the required condition for .
(Codomain condition) Any full recursive function satisfies the required condition for .
(Image uniqueness) Any full recursive function satisfies the required condition for .
(Totality condition) The identity function satisfies the required condition for .
(Respectfulness condition) Suppose we have
and
Then certainly , and
so
Therefore, the function satisfies the required condition for .
Now suppose we have any other effective functional relation between and . Then whenever
we have , and
so
Therefore, satisfies the required condition for , showing that is equivalent to .
Binary products
Given two objects , we will define their binary product to have underlying set , and effective PER
For symmetry, we can use the function
and for transitivity, we can use the function
To define the first projection, we will use the effective functional relation defined by
To check the required properties:
(Domain condition) Suppose
Then
Therefore, the composition on the right satisfies the required condition for .
(Codomain condition) Suppose
Then
Therefore, the composition on the right satisfies the required condition for .
(Uniqueness of images) Suppose
and
Then
Therefore, the composition on the right satisfies the required condition for .
(Totality) Suppose
Then
Therefore, the identity function satisfies the required condition for .
(Respectfulness) Suppose
and
Then
Therefore, the composition on the right satisfies the required condition for .
Similarly, we will let be the effective functional relation between and defined by
The proof that this is an effective functional relation is similar to the proof for .
Now, suppose we have two effective functional relations, between and , and between and . We will then let be the effective functional relation defined by
To check this does indeed give an effective functional relation:
(Domain condition) Suppose
Then
Therefore, the composition satisfies the required condition for .
(Codomain condition) Suppose
Then
Therefore, the composition on the right satisfies the required condition for .
(Image uniqueness) Suppose
and
Then
Therefore, the composition on the right satisfies the required condition for .
(Totality) Suppose
Then
Therefore, the composition on the right satisfies the required condition for .
(Respectfulness) Suppose
and
Then
Therefore, the composition on the right satisfies the required condition for .
We now claim that is equivalent to . Thus, suppose that
Then there exists such that
Therefore, the composition on the right satisfies the required condition for . The proof that is equivalent to is similar,
Finally, to establish the uniqueness of up to equivalence, it suffices to show that the pair of morphisms is jointly monomorphic. Thus, suppose we have two effective functional relations between and such that is equivalent to , . Now suppose that
Then
Therefore, the composition on the right satisfies the required condition for .
Equalizers
Suppose we have two effective functional relations between and . We can then define the equalizer to have underlying set , and effective PER where we will say
if and only if
and
(Here, will be syntactic sugar for , and we will define corresponding projections for . We will use similar notations for other arities of tuples below.)
To construct the required symmetry tracker, we can use the function which transports and to using respectfulness of and , and applies symmetry to and . Similarly, for the transitivity tracker, we preserve the and components of the first input, and apply transitivity to the and components.
For the inclusion map, we will define an effective functional relation between and where
if and only if
and
(Domain condition) Suppose
Then
Therefore, the composition on the right satisfies the required condition for .
(Codomain condition) Suppose
Therefore, the composition on the right satisfies the required condition for .
(Image uniqueness) Suppose
and
Then
Therefore, the composition on the right satisfies the required condition for .
(Totality) Suppose
Then
Therefore, satisfies the required condition for .
(Respectfulness) Suppose
and
Then
Therefore, the composition on the right satisfies the required condition for .
We first claim that is equivalent to . Thus, suppose
Then there exists such that
Therefore, the composition on the right satisfies the required condition for .
Now, suppose we have an effective functional relation between and such that is equivalent to ; we then want to show factors through . To this end, we will define an effective functional relation between and where
if and only if
and
The following intermediate result will be useful several times:
Lemma
There is a partial recursive function such that whenever
and
then is defined and
Proof
We have
Therefore, the composition on the right satisfies the required condition for .
(Domain condition) Suppose
Then
so
Thus, satisfies the required condition for .
(Codomain condition) Suppose
Then
Therefore, the composition on the right satisfies the required condition for .
(Image uniqueness) Suppose
and
Then
Therefore, the composition on the right satisfies the required condition for .
(Totality) Suppose
Then
Therefore, the composition on the right satisfies the required condition for .
(Respectfulness) Suppose
and
Then
Therefore, the composition on the right satisfies the required condition for .
We now claim that is equivalent to . Thus, suppose
Then there exists such that
Therefore, the composition on the right satisfies the required condition for .
Finally, in order to establish that is unique up to equivalence, it suffices to show that the equivalence class of is a monomorphism. Thus, suppose we have two functional relations between and such that is equivalent to . Now suppose that
Then
Therefore, the composition on the right satisfies the required condition for .
Power objects
Preliminaries
Since the definition of power objects involves pullback squares and monomorphisms, it will be appropriate to establish convenient criteria for establishing both. First, we start with isomorphisms.
Lemma
Suppose is an effective functional relation between and . Then the equivalence class of is an isomorphism if and only if
(a) There exists a partial recursive function such that whenever
and
then is defined and
(b) There exists a partial recursive function such that whenever
then is defined and there exists such that
Proof
() Suppose the equivalence class of is inverse to the equivalence class of .
To establish (a), suppose
and
Then
Therefore, the composition on the right satisfies the required condition for .
To establish (b), suppose
Then there exists such that
Therefore, the composition on the right satisfies the required condition for .
() Let be the relational inverse of . Then we can see that condition (a) is exactly in the form needed for , and condition (b) is exactly in the form needed for . On the other hand, the other conditions for to be an effective functional relation between and are automatic: namely, we can use
and
Thus, is an effective functional relation between and . We now claim that the equivalence class of is inverse to the equivalence class of . To see this, suppose
Then there exists such that
Therefore, the composition on the right satisfies the required condition for .
Similarly, suppose
Then there exists such that
Therefore, the composition on the right satisfies the required condition for .