Loading [MathJax]/jax/output/CommonHTML/jax.js

10.1.2 Images


Next, we show that 𝒮et is a regular category, i.e.:

  1. 1.

    𝒮et is finitely complete.

  2. 2.

    The kernel pair 𝗉𝗋1,𝗉𝗋2:((x,y:A)f(x)=f(y))A of any function f:AB has a coequalizerMathworldPlanetmath.

  3. 3.

    PullbacksPlanetmathPlanetmath of regular epimorphisms are again regular epimorphisms.

Recall that a regular epimorphism is a morphismMathworldPlanetmathPlanetmath that is the coequalizer of some pair of maps. Thus in 3 the pullback of a coequalizer is required to again be a coequalizer, but not necessarily of the pulled-back pair.

The obvious candidate for the coequalizer of the kernel pair of f:AB is the image of f, as defined in \autorefsec:image-factorization. Recall that we defined 𝗂𝗆(f):(b:B)𝖿𝗂𝖻f(b), with functions ˜f:A𝗂𝗆(f) and if:𝗂𝗆(f)B defined by

˜f :λa.(f(a),|(a,𝗋𝖾𝖿𝗅f(a))|)
if :𝗉𝗋1

fitting into a diagram:

\xymatrix**[l]x,y:Af(x)=f(y)\ar@<0.25em>[r]𝗉𝗋1\ar@<-0.25em>[r]𝗉𝗋2&A\ar[r](0.4)˜f\ar[rd]f&𝗂𝗆(f)\ar@..>[d]if&&B

Recall that a function f:AB is called surjectivePlanetmathPlanetmath if (b:B).𝖿𝗂𝖻f(b), or equivalently (b:B).(a:A).f(a)=b. We have also said that a function f:AB between sets is called injectivePlanetmathPlanetmath if (a,a:A).(f(a)=f(a))(a=a), or equivalently if each of its fibers is a mere proposition. Since these are the (-1)-connectedPlanetmathPlanetmath and (-1)-truncated maps in the sense of \autorefcha:hlevels, the general theory there implies that ˜f above is surjective and if is injective, and that this factorization is stable under pullback.

We now identify surjectivity and injectivity with the appropriate category-theoretic notions. First we observe that categorical monomorphismsMathworldPlanetmathPlanetmathPlanetmathPlanetmath and epimorphismsMathworldPlanetmath have a slightly stronger equivalentMathworldPlanetmathPlanetmathPlanetmathPlanetmathPlanetmath formulation.

Lemma 10.1.1.

For a morphism f:homA(a,b) in a category A, the following are equivalent.

  1. 1.

    f is a monomorphism: for all x:A and g,h:homA(x,a), if fg=fh then g=h.

  2. 2.

    (If A has pullbacks) the diagonal map aa×ba is an isomorphismMathworldPlanetmathPlanetmathPlanetmathPlanetmath.

  3. 3.

    For all x:A and k:homA(x,b), the type (h:homA(x,a))(k=fh) is a mere proposition.

  4. 4.

    For all x:A and g:homA(x,a), the type (h:homA(x,a))(fg=fh) is contractibleMathworldPlanetmath.

Proof.

The equivalence of conditions 1 and 2 is standard category theoryMathworldPlanetmathPlanetmathPlanetmathPlanetmath. Now consider the function (f):homA(x,a)homA(x,b) between sets. Condition 1 says that it is injective, while 3 says that its fibers are mere propositions; hence they are equivalent. And 3 implies 4 by taking k:fg and recalling that an inhabited mere proposition is contractible. Finally, 4 implies 1 since if p:fg=fh, then (g,𝗋𝖾𝖿𝗅) and (h,p) both inhabit the type in 4, hence are equal and so g=h. ∎

Lemma 10.1.2.

A function f:AB between sets is injective if and only if it is a monomorphism in Set.

Proof.

Left to the reader. ∎

Of course, an epimorphism is a monomorphism in the opposite category. We now show that in 𝒮et, the epimorphisms are precisely the surjections, and also precisely the coequalizers (regular epimorphisms).

The coequalizer of a pair of maps f,g:AB in 𝒮et is defined as the 0-truncation of a general (homotopyMathworldPlanetmath) coequalizer. For clarity, we may call this the set-coequalizer. It is convenient to express its universal propertyMathworldPlanetmath as follows.

Lemma 10.1.3.

Let f,g:AB be functions between sets A and B. The set-coequalizer cf,g:BQ has the property that, for any set C and any h:BC with hf=hg, the type

k:QC(kcf,g=h)

is contractible.

Lemma 10.1.4.

For any function f:AB between sets, the following are equivalent:

  1. 1.

    f is an epimorphism.

  2. 2.

    Consider the pushout diagram

    \xymatrixA\ar[r]f\ar[d]&B\ar[d]ι𝟏\ar[r]t&Cf

    in 𝒮et defining the mapping cone. Then the type Cf is contractible.

  3. 3.

    f is surjective.

Proof.

Let f:AB be a function between sets, and suppose it to be an epimorphism; we show Cf is contractible. The constructor 𝟏Cf of Cf gives us an element t:Cf. We have to show that

x:Cfx=t.

Note that x=t is a mere proposition, hence we can use inductionMathworldPlanetmath on Cf. Of course when x is t we have 𝗋𝖾𝖿𝗅t:t=t, so it suffices to find

I0 :b:Bι(b)=t
I1 :a:Aα1(a)-1\centerdotI0(f(a))=𝗋𝖾𝖿𝗅t.

where ι:BCf and α1:(a:A)ι(f(a))=t are the other constructors of Cf. Note that α1 is a homotopy from ιf to 𝖼𝗈𝗇𝗌𝗍tf, so we find the elements

(ι,𝗋𝖾𝖿𝗅ιf),(𝖼𝗈𝗇𝗌𝗍t,α1):h:BCfιfhf.

By the dual of \autorefthm:mono4 (and function extensionality), there is a path

γ:(ι,𝗋𝖾𝖿𝗅ιf)=(𝖼𝗈𝗇𝗌𝗍t,α1).

Hence, we may define I0(b):𝗁𝖺𝗉𝗉𝗅𝗒(𝖺𝗉𝗉𝗋1(γ),b):ι(b)=t. We also have

𝖺𝗉𝗉𝗋2(γ):𝖺𝗉𝗉𝗋1(γ)*(𝗋𝖾𝖿𝗅ιf)=α1.

This transport involves precomposition with f, which commutes with 𝗁𝖺𝗉𝗉𝗅𝗒. Thus, from transport in path types we obtain I0(f(a))=α1(a) for any a:A, which gives us I1.

Now suppose Cf is contractible; we show f is surjective. We first construct a type family P:Cf𝖯𝗋𝗈𝗉 by recursion on Cf, which is valid since 𝖯𝗋𝗈𝗉 is a set. On the point constructors, we define

P(t) :𝟏
P(ι(b)) :𝖿𝗂𝖻f(b).

To completePlanetmathPlanetmathPlanetmathPlanetmathPlanetmathPlanetmath the construction of P, it remains to give a path 𝖿𝗂𝖻f(f(a))=𝖯𝗋𝗈𝗉𝟏 for all a:A. However, 𝖿𝗂𝖻f(f(a)) is inhabited by (f(a),𝗋𝖾𝖿𝗅f(a)). Since it is a mere proposition, this means it is contractible — and thus equivalent, hence equal, to 𝟏. This completes the definition of P. Now, since Cf is assumed to be contractible, it follows that P(x) is equivalent to P(t) for any x:Cf. In particular, P(ι(b))𝖿𝗂𝖻f(b) is equivalent to P(t)𝟏 for each b:B, and hence contractible. Thus, f is surjective.

Finally, suppose f:AB to be surjective, and consider a set C and two functions g,h:BC with the property that gf=hf. Since f is assumed to be surjective, for all b:B the type 𝖿𝗂𝖻f(b) is contractible. Thus we have the following equivalences:

b:B(g(b)=h(b)) b:B(𝖿𝗂𝖻f(b)(g(b)=h(b)))
b:B(𝖿𝗂𝖻f(b)(g(b)=h(b)))
(b:B)(a:A)(p:f(a)=b)g(b)=h(b)
a:Ag(f(a))=h(f(a))

using on the second line the fact that g(b)=h(b) is a mere proposition, since C is a set. But by assumptionPlanetmathPlanetmath, there is an element of the latter type. ∎

Theorem 10.1.5.

The category Set is regularPlanetmathPlanetmathPlanetmathPlanetmath. Moreover, surjective functions between sets are regular epimorphisms.

Proof.

It is a standard lemma in category theory that a category is regular as soon as it admits finite limits and a pullback-stable orthogonal factorization system (,) with the monomorphisms, in which case consists automatically of the regular epimorphisms. (See e.g. [elephant, A1.3.4].) The existence of the factorization system was proved in \autorefthm:orth-fact. ∎

Lemma 10.1.6.

Pullbacks of regular epis in Set are regular epis.

Proof.

We showed in \autorefthm:stable-images that pullbacks of n-connected functions are n-connected. By \autoreflem:images_are_coequalizers, it suffices to apply this when n=-1. ∎

One of the consequences of 𝒮et being a regular category is that we have an “image” operationMathworldPlanetmath on subsets. That is, given f:AB, any subset P:𝒫(A) (i.e. a predicateMathworldPlanetmath P:A𝖯𝗋𝗈𝗉) has an image which is a subset of B. This can be defined directly as \setofy:B|(x:A).f(x)=yP(x), or indirectly as the image (in the previous sense) of the composite function

\setofx:A|P(x)A𝑓B.

We will also sometimes use the common notation \setoff(x)|P(x) for the image of P.

Title 10.1.2 Images
\metatable