Implicative algebras II:
completeness w.r.t. Set-based triposes
Abstract.
We prove that all -based triposes are implicative triposes.
1. Introduction
In [3], we introduced the notion of implicative algebra, a simple algebraic structure that is intended to factorize the model constructions underlying forcing and realizability, both in intuitionistic and classical logic. We showed that this algebraic structure induces a large class of (-based) triposes—the implicative triposes—, that encompasses all (intuitionistic and classical) forcing triposes, all classical realizability triposes (both in the sense of Streicher [6] and Krivine [3]) as well as all the intuitionistic realizability triposes induced by partial combinatory algebras (in the style of Hyland, Johnstone and Pitts [2]).
The aim of this paper is to prove that the class of implicative triposes actually encompasses all -based triposes, in the sense that:
Theorem 1.1.
Each -based tripos is (isomorphic to) an implicative tripos.
For that, we first recall some notions about triposes and implicative algebras.
1.1. -based triposes
In what follows, we write:
-
•
the category of sets equipped with all functions;
-
•
the category of posets equipped with monotonic functions;
-
•
the category of Heyting algebras equipped with the corresponding morphisms.
In the category , we write:
-
•
the terminal object (i.e. a fixed singleton);
-
•
the unique map from a given set to ;
-
•
the Cartesian product of two sets and , and
-
•
and the associated projections.
-
•
Finally, given two functions and , we write the unique function such that and .
Definition 1.2 (-based triposes).
A -based tripos is a functor that fulfills the following three conditions:
-
(1)
For each map (), the corresponding map has left and right adjoints in , that are monotonic maps such that
-
(2)
Beck-Chevalley condition. Each pullback square in (on the left-hand side) induces the following two commutative diagrams in (on the right-hand side):
That is: and .
-
(3)
The functor has a generic predicate, that is: a predicate (for some set ) such that for all sets , the following map is surjective:
Remarks 1.3.
(1) Given a map , the left and right adjoints of the substitution map are always monotonic functions (due to the adjunction), but in general they are not morphisms of Heyting algebras. Moreover, both correspondences and are functorial, in the sense that
for all sets , , and for all maps and . So that we can see and as covariant functors from to , whose action on sets is given by .
(2) When defining the notion of tripos, some authors [5] require that the Beck-Chevalley condition hold only for the pullback squares of the form
Here, we follow [2, 3] by requiring that the Beck-Chevalley condition hold more generally for all pullback squares in .
(3) The meaning of the generic predicate will be explained in Section 2.1.
Let us also recall that:
Definition 1.4 (Isomorphism of triposes).
Two triposes are isomorphic when there is a natural isomorphism .
Remark 1.5.
By a natural isomorphism , we mean any family of isomorphisms (indexed by ) such that for all maps (), the following diagram commutes:
Note that here, the notion of isomorphism can be taken indifferently in the sense of or , since a map is an isomorphism of Heyting algebras if and only if it is an isomorphism between the underlying posets.
To conclude this presentation of triposes, we recall a few facts about left and right adjoints:
Lemma 1.6.
For all maps and for all predicates , we have:
Proof.
Let us treat the case of . For all , we have
hence . Moreover, we have , hence , and thus . The proofs of the corresponding properties for proceed dually. ∎
Lemma 1.7.
Given a map :
-
(1)
If has an inverse (i.e. is bijective), then and are the inverse of :
-
(2)
If has a right inverse, then and are left inverses of :
-
(3)
If has a left inverse, then and are right inverses of :
Proof.
(1) If is bijective, then for all and , we have
-
•
, hence:
-
•
, hence:
(2) Let such that . By functoriality, we get , hence the map is an embedding of posets. For all , we thus have:
-
•
, hence .
-
•
, hence .
(3) Let such that . By functoriality, we get , hence are embeddings of posets. For all , we thus have:
-
•
, hence .
-
•
, hence .∎
1.2. Implicative algebras
Recall that:
-
•
An implicative structure is a complete (meet-semi)lattice equipped with a binary operation such that:
-
(1)
If and , then .
-
(2)
For all and , we have: .
-
(1)
-
•
A separator of an implicative structure is a subset such that:
-
(1)
If and , then .
-
(2)
and
. -
(3)
If and , then .
Moreover, we say that a separator is classical when
-
(4)
.
-
(1)
-
•
An implicative algebra is a quadruple where is an implicative structure and where is a separator. An implicative algebra is classical when the underlying separator is classical.
In [3, §4], we have seen that each implicative algebra induces a -based tripos that is defined as follows:
-
•
For each set , the corresponding Heyting algebra is defined as the poset reflection of the preordered set whose preorder is given by
The quotient is also written .
-
•
For each map , the corresponding substitution map is the (unique) morphism of Heyting algebras that factors the map through the quotients and .
The aim of this paper is thus to show that all -based triposes are of this form.
2. Anatomy of a -based tripos
2.1. The generic predicate
From now on, we work with a fixed tripos .
From the definition, has a generic predicate, that is: a predicate (for some set ) such that for each set , the corresponding ‘decoding map’ is surjective:
Intuitively, can be thought of as the set of (codes of) propositions, whereas can be thought of as the set of propositional functions over . The above condition thus expresses that each predicate is represented by at least one propositional function such that , which we shall call a code for the predicate .
Notation 2.1.
Given a code , the predicate will be often written . In particular, given an individual code , we write the corresponding constant family indexed by the singleton , and the associated predicate.
Fact 2.2 (Naturality of ).
The decoding map is natural in , in the sense that for each map , the following diagram commutes:
Proof.
For all , we have . ∎
Remarks 2.3 (Non-uniqueness of generic predicates).
It is important to observe that in a -based tripos , the generic predicate is never unique.
-
•
Indeed, given a generic predicate and a surjection , we can always construct another generic predicate by letting 111To prove that is another generic predicate, we actually need a right inverse of , which exists by (AC). Without (AC), the same argument works by replacing ‘surjective’ with ‘having a right inverse’..
-
•
More generally, if and are two generic predicates of the same tripos , then there always exist two conversion maps and such that and .
In what follows, we will work with a fixed generic predicate .
2.2. Defining connectives on
We want to show that the operations , and on each Heyting algebra () can be derived from analogous operations on the generic set of propositions. For that, we pick codes such that
writing the two projections from to .
Proposition 2.4.
Let be a set. For all codes , we have
Proof.
Let us treat (for instance) the case of implication:
∎ |
Similarly, we pick codes such that
Again, we easily check that:
Proposition 2.5.
For each set , we have:
Proof.
Let us treat (for instance) the case of :
(writing the unique map from to ). ∎
2.3. Defining quantifiers on
In this section, we propose to show that the adjoints
can be derived from suitable quantifiers on the generic set of propositions. For that, we consider the membership relation and write and the corresponding projections. We pick two codes such that
Proposition 2.6.
Given a code and a map , we have:
Proof.
Let us define the map by for all . From this definition and from the definitions of , , we get
Let us now consider the set defined by as well as the two functions and given by
We observe that the following diagram is a pullback in :
Hence and (Beck-Chevalley), and thus:
Now we consider the map defined by for all . Since is surjective, it has a right inverse by (AC), hence we have by Lemma 1.7 (2). Therefore:
(since and ). And similarly for . ∎
2.4. Defining the ‘filter’
In Sections 2.2 and 2.3, we introduced codes and such that for all sets and for all predicates :
-
•
If are codes for , respectively, then:
-
•
If is a code for and if is any map, then:
It now remains to characterize the ordering on each Heyting algebra from the above constructions in . For that, we consider the set defined by , writing the top element of . We check that:
Proposition 2.7.
For all and , we have
Proof.
Writing the unique map from to , we have:
∎ |
So that we can complete the above correspondence between the operations on the Heyting algebra and the analogous operations on the set by concluding that:
-
•
If are codes for , respectively, then:
Remark 2.8.
At this stage, it would be tempting to see the set as a complete Heyting algebra whose structure is given by the operations , while seeing the subset as a particular filter of . Alas, the above operations come with absolutely no algebraic property, since in general we have
So that in the end, these operations fail to endow the set with the structure of a (complete) Heyting algebra—although they are sufficient in practice to characterize the whole structure of the tripos via the pseudo-filter . However, we shall see in Section 3 that the set generates an implicative algebra whose operations (arbitrary meets and implication) capture the whole structure of the tripos in a more natural way.
2.5. Miscellaneous properties
In this section, we present some properties of the set that will be useful to construct the implicative algebra .
Proposition 2.9 (Merging quantifications).
Proof.
Let us consider:
-
•
The membership relation equipped with the projections and (see Section 2.3 above);
-
•
The membership relation equipped with the projections and ;
-
•
The composed membership relation equipped with the functions and defined by and for all .
By construction, we have the following pullback:
hence and (Beck-Chevalley). Therefore:
And similarly for . ∎
The following proposition expresses that the codes for universal quantification and implication fulfill the usual property of distributivity (on the right-hand side of implication):
Proposition 2.10.
We have: .
Proof.
Let us consider the set with the corresponding projections and . We also write the first projection from to . For all , we observe that:
From which we get the desired equality. ∎
Corollary 2.11.
Given a set and two families and , we have:
Proof.
Indeed, we have
From now on, we consider the inclusion relation together with the corresponding projections and . The following proposition expresses that the operators and are respectively monotonic and antitonic w.r.t. the domain of quantification:
Proposition 2.12.
and .
Proof.
Let us consider the set equipped with the three projections and . We have
Let us now consider the function defined by for all . Since , we have and thus
(by left/right adjunction) |
Combining the above inequalities with the fact that , we deduce that:
∎ |
Corollary 2.13.
Given a set and two families such that for all , we have: and .
Proof.
Let . From Prop. 2.12 we get:
∎ |
3. Extracting the implicative algebra
In Section 2.4, we have seen that the structure of the tripos can be fully characterized from the binary operations and the infinitary operations via some subset (the ‘pseudo-filter’). However, these operations fail to endow the set itself with the structure of a complete Heyting algebra, for they lack the most basic algebraic properties that are required by such a structure.
In this section, we shall construct a particular implicative structure from the set equipped with the only operations and , using a construction that is reminiscent from the construction of graph models [1]. As we shall see, the main interest of such a construction is that:
-
(1)
The carrier set can be used as an alternative set of propositions, for it possesses its own generic predicate .
-
(2)
The two operations and that naturally come with the implicative structure constitute codes (in the sense of the new generic predicate ) for implication and universal quantification in the tripos .
-
(3)
The ordering on each Heyting algebra (for ) can be characterized from the above two operations via a particular separator .
From the above properties, we shall easily conclude that the tripos is isomorphic to the tripos induced by the implicative algebra .
3.1. Defining the set of atoms
The construction of the implicative structure is achieved in two steps. First we construct from the set of propositions a (larger) set of atoms equipped with a preorder . Then we let , where denotes the set of all upwards closed subsets of w.r.t. the preorder . Formally, the set of atoms is inductively defined from the following two clauses:
-
(1)
If , then 222Here, we use the dot notation only to distinguish the code from its image . (base case).
-
(2)
If and , then (inductive case).
In other words, each atom is a finite list of subsets of terminated by an element of , that is: for some and . The set is equipped with the binary relation that is inductively defined from the two rules
Fact 3.1.
The relation is a preorder on .
Proof.
By induction on , we successively prove (1) that and (2) that and together imply that , for all . ∎
Finally, the set is equipped with a conversion function that is defined by
(Note that by construction, this function is surjective.)
Remark 3.2 (Relationship with graph models).
In the theory of graph models [1], the set of atoms would be naturally defined from the grammar
that is, as the least solution of the set-theoretic equation . However, such a construction would yield an applicative structure upon the set —it would even constitute a (-like) model of the -calculus—, but it would not yield an implicative structure, for the restriction to the finite subsets of in the left-hand side of the construction actually prevents defining an implication with the desired properties.
To fix this problem, it would be natural to relax the condition of finiteness, by considering instead the equation . Alas, such an equation has no solution (for obvious cardinality reasons), so that the trick consists to replace arbitrary subsets of (in the left-hand side of the construction ) by arbitrary subsets of , using the fact that the subsets of can always be converted (element-wise) into subsets of , via the conversion function . So that in the end, we obtain the set-theoretic equation , whose least solution is precisely the set we defined above.
3.2. Defining the implicative structure
Let be the set of upwards closed subsets of (w.r.t. the preorder on ), equipped with the ordering defined by iff (reverse inclusion) for all . It is clear that:
Proposition 3.3.
The poset is a complete lattice.
Note that in this complete lattice, (finitary or infinitary) meets and joins are respectively given by unions and intersections. In particular, we have and .
Let be the function defined by for all . For each set of codes , we write . We now equip the complete lattice with the implication defined by
Note that by construction, we have for all .
Proposition 3.4.
The triple is an implicative structure.
Proof.
Variance of implication. Let such that and , that is: and . We observe that
(since and ), which means that .
Distributivity of meets w.r.t. . Given and , we observe that
∎ |
3.3. Viewing as a new set of propositions
Let us now consider the two conversion functions and defined by
as well as the predicate . We easily check that:
Lemma 3.5.
.
Proof.
Since for all , we have:
∎ |
Therefore:
Proposition 3.6.
The predicate is a generic predicate for the tripos .
Proof.
For each set , we want to show that the function defined by for all is surjective. For that, we take and pick a code such that . From the above lemma, we get:
hence is a code for in the sense of the predicate . ∎
To sum up, we now have two sets of propositions and , two generic predicates and , as well as two decoding functions and . As usual, we write and (for ) the natural transformations induced by the two maps and . We easily check that:
Proposition 3.7.
For each set , the following two diagrams commute:
Proof.
For all , we have .
And for all , we have .
∎
3.4. Universal quantification in
By analogy with the construction performed in Section 2.3, we now consider the membership relation together with the corresponding projections and .
The following proposition states that the operator is a code for universal quantification in the sense of the generic predicate :
Proposition 3.8.
.
Proof.
Indeed, we have:
From the above result, we deduce that:
Proposition 3.9.
Given a code and a map , we have:
3.5. Implication in
It now remains to show that the operation is a code for implication in the sense of the generic predicate . For that, we first need to prove the following technical lemma:
Lemma 3.10.
.
Proof.
Let us consider the set equipped with the four projections , and the function defined by for all . We observe that
whereas
So that we have to prove that .
We observe that
since and . By right adjunction we thus get
using the fact that .
From Coro. 2.13, we get (since for all ). Hence , and thus:
∎ |
We can now state the desired property:
Proposition 3.11.
,
writing the two projections from
to .
Proof.
Indeed, we have:
Proposition 3.12.
Let be a set. For all codes , we have
3.6. Defining the separator
By analogy with the construction of the pseudo-filter (cf Section 2.4), we let
writing the top element of . Note that by construction, we have
Proposition 3.13.
The subset is a separator of the implicative structure .
Proof.
is upwards closed. Let such that and (that is: ). From these assumptions, we have and , hence
(from Coro. 2.13) and thus . Therefore .
contains and . We observe that
hence . The proof that is analogous.
is closed under modus ponens. Suppose that and . This means that and . Hence , and thus . ∎
Similarly to Prop. 2.7 p. 2.7, the following proposition characterizes the ordering on each Heyting algebra from the operations of and the separator :
Proposition 3.14.
For all sets and for all codes , we have:
Proof.
Writing the unique map from to , we have:
∎ |
3.7. Constructing the isomorphism
Let us now write the tripos induced by the implicative algebra (Section 1.2). Recall that for each set , the Heyting algebra is the poset reflection of the preordered set whose preorder is given by
It now remains to show that:
Proposition 3.15.
The implicative tripos is isomorphic to the tripos .
Proof.
Let us consider the family of maps , which is clearly natural in the parameter set . From Prop. 3.14, we have
hence induces an embedding of posets through the quotient . Moreover, the map is surjective (since is), therefore it is an isomorphism from the tripos to the tripos . ∎
3.8. The case of classical triposes
In [3], we showed that each classical implicative tripos (that is: a tripos induced by a classical implicative algebra ) is isomorphic to a Krivine tripos (that is: a tripos induced by an abstract Krivine structure). Combining this result with Theorem 1.1, we deduce that classical realizability provides a complete description of all classical triposes (writing the full subcategory of Boolean algebras):
Corollary 3.16.
Each classical tripos is isomorphic to a Krivine tripos.
Acknowledgements
We would like to thank Étienne Miquey and Luc Pellissier for their useful remarks and corrections in an earlier version of this draft.
References
- [1] E. Engeler. Algebras and combinators. Algebra Universalis, 13(1):389–392, 1981.
- [2] J. M. E. Hyland, P. T. Johnstone, and A. M. Pitts. Tripos theory. In Math. Proc. Cambridge Philos. Soc., volume 88, pages 205–232, 1980.
- [3] A. Miquel. Implicative algebras: a new foundation for realizability and forcing. Math. Struct. Comput. Sci., 30(5):458–510, 2020.
- [4] A. M. Pitts. The theory of triposes. PhD thesis, University of Cambridge, 1981.
- [5] A. M. Pitts. Tripos theory in retrospect. Math. Struct. Comput. Sci., 12(3):265–279, 2002.
- [6] T. Streicher. Krivine’s classical realisability from a categorical perspective. Math. Struct. Comput. Sci., 23(6):1234–1256, 2013.