basic constructions:
strong axioms
further
This is Part II of an exposition by Todd Trimble on ETCS.
See also
Part I, ZFC and ETCS
Part III, ETCS: Building joins and coproducts
Editing help wanted
This is what it is supposed to look like.
Starting with the raw Wordpress text, I first replaced “$latex” with “$”, which fixed >300 instances. The next big fix is to replace “<blockquote>” with “$” and “</blockquote>” with “$”. That puts it into pretty good shape.
Replace “\mbox” with “:\text”
Some remaining issues:
Jon Awbrey: Maybe this is an old note, but I’m reading \cong okay. Otherwise, I think I used to use an underlined \asymp or something, can’t recall, will check.
The easy thing to do is to Edit this page, copy the text to your favorite editor, find/replace, paste text back here.
Jon Awbrey: I think I took care of all the remaining formatting issues, but a 2nd or 3rd pair of eyes would be good.
Jon Phillips: I’m a 2nd pair of eyes - corrected a couple of minor things (hopefully my changes will come out as I expect)
This post is a continuation of the discussion of “the elementary theory of the category of sets” [ETCS] which we had begun last time, here and in the comments which followed. My thanks go to all who commented, for some useful feedback and thought-provoking questions.
Today I’ll describe some of the set-theoretic operations and “internal logic” of ETCS. I have a feeling that some people are going to love this, and some are going to hate it. My main worry is that it will leave some readers bewildered or exasperated, thinking that category theory has an amazing ability to make easy things difficult.
In an attempt to nip my concerns in the bud, let me remind my readers that there are major differences between the way that standard set theories like ZFC treat membership and the way ETCS treats membership, and that differences at such a fundamental level are bound to propagate throughout the theoretical development, and impart a somewhat different character or feel between the theories. The differences may be summarized as follows:
Membership in ZFC is a global relation between objects of the same type (sets).
Membership in ETCS is a local relation between objects of different types (“generalized” elements or functions, and sets).
Part of what we meant by “local” is that an element per se is always considered relative to a particular set to which it belongs; strictly speaking, as per the discussion last time, the same element is never considered as belonging to two different sets. That is, in ETCS, an (ordinary) element of a set $A$ is defined to be a morphism $x : 1 \to A$; since the codomain is fixed, the same morphism cannot be an element $1 \to B$ of a different set $B$. This implies in particular that in ETCS, there is no meaningful global intersection operation on sets, which in ZFC is defined by:
Instead, in ETCS, what we have is a local intersection operation on subsets $A \hookrightarrow X, B \hookrightarrow X$ of a set. But even the word “subset” requires care, because of how we are now treating membership. So let’s back up, and lay out some simple but fundamental definitions of terms as we are now using them.
Given two monomorphisms $i : A \to X, j : B \to X$, we write $i \subseteq j$ ($A \subseteq B$ if the monos are understood, or $A \subseteq_X B$ if we wish to emphasize this is local to $X$) if there is a morphism $k : A \to B$ such that $i = j k$. Since $j$ is monic, there can be at most one such morphism $k$; since $i$ is monic, such $k$ must be monic as well. We say $i, j$ define the same subset if this $k$ is an isomorphism. So: subsets of $X$ are defined to be isomorphism classes of monomorphisms into $X$. As a simple exercise, one may show that monos $i, j$ into $X$ define the same subset if and only if $i \subseteq j$ and $j \subseteq i$. The (reflexive, transitive) relation $\subseteq_X$ on monomorphisms thus induces a reflexive, transitive, antisymmetric relation, i.e., a partial order on subsets of $X$.
Taking some notational liberties, we write $A \subseteq X$ to indicate a subset of $X$ (as isomorphism class of monos). If $x : U \to X$ is a generalized element, let us say $x$ is in a subset $A \subseteq X$ if it factors (evidently uniquely) through any representative mono $i : A \to X$, i.e., if there exists $x' : U \to A$ such that $x = i x'$. Now the intersection of two subsets $A \subseteq X$ and $B \subseteq X$ is defined to be the subset $A \cap B \subseteq X$ defined by the pullback of any two representative monos $i : A \to X, j : B \to X$. Following the “Yoneda principle”, it may equivalently be defined up to isomorphism by specifying its generalized elements:
Thus, intersection works essentially the same way as in ZFC, only it’s local to subsets of a given set.
While we’re at it, let’s reformulate the power set axiom in this language: it says simply that for each set $B$ there is a set $P(B)$ and a subset $\in_B \subseteq B \times P(B)$, such that for any relation $R \subseteq B \times A$, there is a unique “classifying map” $\chi_R : A \to P(B)$ whereby, under $1_B \times \chi_R : B \times A \to B \times P(B)$, we have
The equality is an equality between subsets, and the inverse image on the right is defined by a pullback. In categorical set theory notation,
Hence, there are natural bijections
between subsets and classifying maps. The subset corresponding to $\phi : A \to P(B)$ is denoted $\left[\phi\right] \subseteq B \times A$ or $\left[\phi\right] \subseteq A \times B$, and is called the extension of $\phi$.
The set $P(1)$ plays a particularly important role; it is called the “subset classifier” because subsets $A \subseteq X$ are in natural bijection with functions $\chi : X \to P(1)$. [Cf. classifying spaces in the theory of fiber bundles.]
In ordinary set theory, the role of $P(1)$ is played by the 2-element set $\{ f, t \}$. Here subsets $A \subseteq X$ are classified by their characteristic functions $\chi_A : X \to \{ f, t \}$, defined by $\chi_A(x) := t$ iff $x \in A$. We thus have $A = \chi_A^{-1}(t)$; the elementhood relation $\in_1 \hookrightarrow 1 \times P(1)$ boils down to $t : 1 \to P(1)$. Something similar happens in ETCS set theory:
Lemma 1. The domain of elementhood $\in_1 \to 1 \times P(1) \cong P(1)$ is terminal.
Proof. A map $X \to \in_1$, that is, a map $\chi : X \to P(1)$ which is in $\in_1 \subseteq P(1)$, corresponds exactly to a subset $\chi^{-1}(\in_1) \subseteq X$ which contains all of $X$ (_i.e._, the subobject $1_X : X \subseteq X$). Since the only such subset is $1_X$, there is exactly one map $X \to \in_1$. $\Box$
Hence elementhood $\in_1 \subseteq 1 \times P(1)$ is given by an element $t : 1 \to P(1)$. The power set axiom says that a subset $A \subseteq X$ is retrieved from its classifying map $\chi_A : X \to P(1)$ as the pullback $\chi^{-1}_A (t) \subseteq X$.
Part of the power of, well, power sets is in a certain dialectic between external operations on subsets and internal operations on $P(1)$; one can do some rather amazing things with this. The intuitive (and pre-axiomatic) point is that if $C$ has finite products, equalizers, and power objects, then $P(1)$ is a representing object for the functor
which maps an object $X$ to the collection of subobjects of $X$, and which maps a morphism (“function”) $f : X \to Y$ to the “inverse image” function $f^{-1} : Sub(Y) \to Sub(X)$, that sends a subset $j : B \subseteq Y$ to the subset $f^{-1}(B) \subseteq X$ given by the pullback of the arrows $f : X \to Y$, $j : B \subseteq Y$. By the Yoneda lemma, this representability means that external natural operations on the $Sub(X)$ correspond to internal operations on the object $P(1)$. As we will see, one can play off the external and internal points of view against each other to build up a considerable amount of logical structure, enough for just about any mathematical purpose.
To continue this train of thought: by the Yoneda lemma, the representing isomorphism
is determined by a universal element $\theta_{P(1)}(1_{P(1)})$, i.e., a subset of $P(1)$, namely the mono $t : 1 \to P(1)$. In that sense, $t : 1 \to P(1)$ plays the role of a universal subset. The Yoneda lemma implies that external natural operations on general posets $Sub(X)$ are completely determined by how they work on the universal subset.
To illustrate these ideas, let us consider intersection. Externally, the intersection operation is a natural transformation
This corresponds to a natural transformation
which (by Yoneda) is given by a function $\wedge : P(1) \times P(1) \to P(1)$. Working through the details, this function is obtained by putting $X = P(1) \times P(1)$ and chasing
through the composite
Let’s analyze this bit by bit. The subset $\left[\pi_1\right] = \pi_{1}^{-1}(t) \subseteq P(1) \times P(1)$ is given by
and the subset $\left[\pi_2\right] = \pi_{2}^{-1}(t) \subseteq P(1) \times P(1)$ is given by
Hence $\left[\pi_1\right] \cap \left[\pi_2\right] \subseteq P(1) \times P(1)$ is given by the pullback of the functions $t \times id$ and $id \times t$, which is just
The map $\wedge : P(1) \times P(1) \to P(1)$ is thus defined to be the classifying map of $t \times t : 1 \times 1 \subseteq P(1) \times P(1)$.
To go from the internal meet $\wedge : P(1) \times P(1) \to P(1)$ back to the external intersection operation, let $A \subseteq X, B \subseteq X$ be two subsets, with classifying maps $\chi_A, \chi_B : X \to P(1)$. By the definition of $\wedge$, we have that for all generalized elements $x \in X$
(where the equality signs are interpreted with the help of equalizers). This holds true iff $x$ is in the subset $A \subseteq X$ and is in the subset $B \subseteq X$, i.e., if and only if $x$ is in the subset $A \cap B \subseteq X$. Thus $\chi_A \wedge \chi_B$ is indeed the classifying map of $A \cap B \subseteq X$. In other words, $\chi_{A \cap B} = \chi_A \wedge \chi_B$.
A by-product of the interplay between the internal and external is that the internal intersection operator
is the meet operator of an internal meet-semilattice structure on $P(1)$: it is commutative, associative, and idempotent (because that is true of external intersection). The identity element for $\wedge$ is the element $t : 1 \to P(1)$. In particular, $P(1)$ carries an internal poset structure: given generalized elements $u, v : A \to P(1)$, we may define
and this defines a reflexive, symmetric, antisymmetric relation $\left[\leq\right] \subseteq P(1) \times P(1)$:
equivalently described as the equalizer
of the maps $\pi_1 : P(1) \times P(1) \to P(1)$ and $\wedge : P(1) \times P(1) \to P(1)$. We have that $u \leq v$ if and only if $\left[u\right] \subseteq \left[v\right]$.
Here we begin to see some of the amazing power of the interplay between internal and external logical operations. We will prove that $P(1)$ carries an internal Heyting algebra structure (ignoring joins for the time being).
Let’s recall the notion of Heyting algebra in ordinary naive set-theoretic terms: it’s a lattice $P$ that has a material implication operator “$\Rightarrow$” such that, for all $x, y, z \in P$,
Now: by the universal property of $P(1)$, a putative implication operation $\Rightarrow : P(1) \times P(1) \to P(1)$ is uniquely determined as the classifying map of its inverse image $(\Rightarrow)^{-1}(t) \subseteq P(1) \times P(1)$, whose collection of generalized elements is
Given $\langle u, v \rangle : A \to P(1) \times P(1)$, the equality here is equivalent to
(because $t : 1 \to P(1)$ is maximal), which in turn is equivalent to
This means we should define $\Rightarrow : P(1) \times P(1) \to P(1)$ to be the classifying map of the subset
Theorem 1. $P(1)$ admits internal implication.
Proof. We must check that for any three generalized elements $u, v, w : A \to P(1)$, we have
Passing to the external picture, let $\left[u\right], \left[v\right], \left[w\right]$ be the corresponding subsets of $A$. Now: according to how we defined $\Rightarrow,$ a generalized element $e \in A$ is in $\left[u \Rightarrow v\right]$ if and only if $u(e) \leq v(e)$. This applies in particular to any monomorphism $e: \left[w\right] \to A$ that represents the subset $\left[w\right] \subseteq A$.
Lemma 2. The composite
is the classifying map of the subset $\left[w\right] \cap \left[u\right] \subseteq \left[w\right]$.
Proof. As subsets of $\left[w\right]$,
where the last equation holds because both sides are the subsets defined as the pullback of two representative monos $e : \left[w\right] \to A$, $i : \left[u\right] \to A$. $\Box$
Continuing the proof of Theorem 1, we see by Lemma 2 that the condition $u(e) \leq v(e)$ corresponds externally to the condition
and this condition is equivalent to $\left[w\right] \cap \left[u\right] \subseteq \left[v\right]$.
Passing back to the internal picture, this is equivalent to $w \wedge u \leq v$, and the proof of Theorem 1 is complete. $\Box$
Next we address a comment made by “James”, that a category satisfying the ETCS axioms is cartesian closed. As everything else in this article, this uses only the fact that such a category is a topos: has finite products, equalizers, and “power sets”.
Proposition 1. If $A, B$ are “sets”, then $P(A \times B)$ represents an exponential $P(B)^A.$
Proof. By the power set axiom, there is a bijection between maps into the power set and relations:
which is natural in $X$. By the same token, there is a natural bijection
Putting these together, we have a natural isomorphism $\hom(-, P(A \times B)) \cong \hom(- \times A, P(B))$
and this representability means precisely that $P(A \times B)$ plays the role of an exponential $P(B)^A$. $\Box$
Corollary 1. $P(A) \cong P(1)^A$. $\Box$
The universal element of this representation is an evaluation map $A \times P(A) \to P(1)$, which is just the classifying map of the subset $\in_A \subseteq A \times P(A)$.
Thus, $P(B)^A \cong P(A \times B)$ represents the set of all functions $\phi : A \to P(B)$ (that is, relations from $A$ to $B$). This is all we need to continue the discussion of internal logic in this post, but let’s also sketch how we get full cartesian closure. [Warning: for those who are not comfortable with categorical reasoning, this sketch could be rough going in places.]
As per our discussion, we want to internalize the set of such relations which are graphs of functions, i.e., maps $\phi$ where each $\phi(a) \subseteq B$ is a singleton, in other words which factor as
where $\sigma : B \to P(B)$ is the singleton mapping:
We see from this set-theoretic description that $\sigma : B \to P(B)$ classifies the equality relation
which we can think of as either the equalizer of the pair of maps $\pi_1, \pi_2 : B \times B \to B$ or, what is the same, the diagonal map $\delta_B = \langle 1_B, 1_B \rangle : B \to B \times B$.
Thus, we put $\sigma = \chi_{\delta} : B \to P(B)$, and it is not too hard to show that the singleton mapping $\sigma$ is a monomorphism. As usual, we get this monomorphism as the pullback $\chi_{\sigma}^{-1}(t)$ of $t : 1 \to P(1)$ along its classifying map $\chi_{\sigma} : P(B) \to P(1)$.
Now: a right adjoint such as $(-)^A$ preserves all limits, and in particular pullbacks, so we ought then to have a pullback
Of course, we don’t even have $B^A$ yet, but this should give us an idea: define $\sigma^A$, and in particular its domain $B^A$, by taking the pullback of the right-hand map along the bottom map. In case there is doubt, the map on the bottom is defined Yoneda-wise, applying the isomorphism
to the element in the hom-set (on the left) given by the composite
The map on the right of the pullback is defined similarly. That this recipe really gives a construction of $B^A$ will be left as an exercise for the reader.
As further evidence of the power of the internal-external dialectic, we show how to internalize universal quantification.
As we are dealing here now with predicate logic, let’s begin by defining some terms as to be used in ETCS and topos theory:
An ordinary predicate of type $A$ is a function $\phi : A \to P(1)$. Alternatively, it is an ordinary element $\phi' : 1 \to P(1)^A \cong P(A)$. It corresponds (naturally and bijectively) to a subset $\left[\phi\right]: S \subseteq A$.
A generalized predicate of type $A$ is a function $\phi' : X \to P(A) \cong P(1)^A$. It may be identified with (corresponds naturally and bijectively to) a function $\phi : X \times A \to P(1)$, or to a subset $\left[\phi\right] : S \subseteq X \times A$.
We are trying to define an operator $\forall_A$ which will take a predicate of the form $\phi : X \times A \to P(1)$ [conventionally written ] to a predicate $\forall_A \phi : X \to P(1)$ [conventionally written ]. Externally, this corresponds to a natural operation which takes subsets of $X \times A$ to subsets of $X$. Internally, it corresponds to an operation of the form:
This function is determined by the subset $(\forall_A)^{-1}(t) \subseteq P(1)^A$, defined elementwise by
Now, in ordinary logic, $\forall_{a \in A} \phi(a)$ is true if and only if $\phi(a)$ is true for all $a \in A$, or, in slightly different words, if $\phi : A \to P(1)$ is constantly true over all of $A$:
The expression on the right (global truth over $A$) corresponds to a function $t_A : 1 \to P(1)^A$, indeed a monomorphism since any function with domain $1$ is monic. Thus we are led to define the desired quantification operator $\forall_A : P(1)^A \to P(1)$ as the classifying map of $t_A : 1 \subseteq P(1)^A$.
Let’s check how this works externally. Let $\phi : X \to P(1)^A$ be a generalized predicate of type $A$. Then according to how $\forall_A$ has just been defined, $\forall_A \phi : X \to P(1)$ classifies the subset
There is an interesting adjoint relationship between universal quantification and substitution (aka “pulling back”). By “substitution”, we mean that given any predicate $\psi : X \to P(1)$ on $X$, we can always pull back to a predicate on $X \times A$ (substituting in a dummy variable $a$ of type $A$, forming e.g. $\psi(x) \wedge \left[a=a\right]$) by composing with the projection $\pi : X \times A \to X$. In terms of subsets, substitution along $A$ is the natural external operation
Then, for any predicate $\phi : X \times A \to P(1)$, we have the adjoint relationship
so that substitution along $A$ is left adjoint to universal quantification along $A$. This is easy to check; I’ll leave that to the reader.
Now we put all of the above together, to define an internal intersection operator
which intuitively takes an element $1 \to PPX$ (a family $F$ of subsets of $X$) to its intersection $1 \to PX$, as a subset $\bigcap F \subseteq X$.
Let’s first write out a logical formula which expresses intersection:
Jon Awbrey: There seemed to be an orphan right bracket in the above line, also on your blog.
We have all the ingredients to deal with the logical formula on the right: we have an implication operator “$\Rightarrow$” as part of the internal Heyting algebra structure on $P(1)$, and we have the quantification operator “$\forall_{PX}$”. The atomic expressions $(S \in F)$ and $(x \in S)$ refer to internal elementhood: $(x \in S)$ means $\langle x, S \rangle \in X \times PX$ is in $\in_{X} \subseteq X \times PX$, and $(S \in F)$ means $\langle S, F \rangle \in PX \times PPX$ is in $\in_{PX} \subseteq PX \times PPX$.
Jon Awbrey: I didn’t know what to do with the extra slashes in the above paragraph that weren’t parsing, so I deleted them.
There is a slight catch, in that the predicates “$(S \in_{PX} F)$” and “$(x \in_X S)$” (as generalized predicates over $PX$, where $S$ lives) are taken over different domains. The first is of the form $\phi_1 : PPX \to P(1)^{PX}$, and the second is of the form $\phi_2 : X \to P(1)^{PX}$. No matter: we just substitute in some dummy variables. That is, we just pull these maps back to a common domain $PPX \times X$, forming the composites
and
Putting all this together, we form the composite
This composite directly expresses the definition of the internal predicate $(x \in \bigcap F)$ given above. By cartesian closure, this map $PPX \times X \to P(1)$ induces the desired internal intersection operator, $\bigcap : PPX \to PX$.
This construction provides an important bridge to getting the rest of the internal logic of ETCS. Since we can can construct the intersection of arbitrary definable families of subsets, the power sets $PX$ are internal inf-lattices. But inf-lattices are sup-lattices as well; on this basis we will be able to construct the colimits ( e.g., finite sums, coequalizers) that we need. Similarly, the intersection operators easily allow us to construct image factorizations: any function $f : X \to Y$ can be factored (in an essentially unique way) as an epi or surjection $X \to I$ to the image, followed by a mono or injection $I \to Y$. The trick is to define the image as the smallest subset of $Y$ through which $f$ factors, by taking the intersection of all such subsets. Image factorization leads in turn to the construction of existential quantification.
As remarked above, the internal logic of a topos is generally intuitionistic (the law of excluded middle is not satisfied). But, if we add in the axiom of strong extensionality of ETCS, then we’re back to ordinary classical logic, where the law of excluded middle is satisfied, and where we just have the two truth values “true” and “false”. This means we will be able to reason in ETCS set theory just as we do in ordinary mathematics, taking just a bit of care with how we treat membership. The foregoing discussion gives indication that logical operations in categorical set theory work in ways familiar from naive set theory, and that basic set-theoretic constructions like intersection are well-grounded in ETCS.