-
Notifications
You must be signed in to change notification settings - Fork 0
/
adj.tex
1950 lines (1785 loc) · 55.9 KB
/
adj.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
% Basic Category Theory
% Tom Leinster <[email protected]>
%
% Copyright (c) Tom Leinster 2014-2016
%
% Chapter 2: Adjoints
%
\chapter{Adjoints}
\label{ch:adj}
The slogan of Saunders Mac Lane's book \emph{Categories for the Working
Mathematician} is:
%
\begin{slogan}
Adjoint functors arise everywhere.
\end{slogan}
%
We will see the truth of this, meeting examples of adjoint functors from
diverse parts of mathematics. To complement the understanding provided by
examples, we will approach the theory of adjoints from three different
directions, each of which carries its own intuition. Then we will prove
that the three approaches are equivalent.
Understanding adjointness gives you a valuable addition to your
mathematical toolkit. Most professional pure mathematicians know what
categories and functors are, but far fewer know about adjoints. More
should: adjoint functors are both common and easy, and knowing about
adjoints helps you to spot patterns in the mathematical landscape.
\section{Definition and examples}
\label{sec:adj-basics}
Consider a pair of functors in opposite directions, $F\from \cat{A} \to
\cat{B}$ and $G\from \cat{B} \to \cat{A}$. Roughly speaking, $F$ is said
to be left adjoint to $G$ if, whenever $A \in \cat{A}$ and $B \in \cat{B}$,
maps $F(A) \to B$ are essentially the same thing as maps $A \to G(B)$.
\begin{defn}
\label{defn:adjn}
Let $\oppairi{\cat{A}}{\cat{B}}{F}{G}$ be categories and functors. We say
that $F$ is \demph{left adjoint}%
%
\index{adjunction}
%
to $G$, and $G$ is \demph{right adjoint} to $F$, and write $F \ladj G$,%
%
\ntn{ladj}
%
if
%
\begin{equation}
\label{eq:adjn}
\cat{B}(F(A), B)
\iso
\cat{A}(A, G(B))
\end{equation}
%
naturally in $A \in \cat{A}$ and $B \in \cat{B}$. The meaning of
`naturally' is defined below. An \demph{adjunction} between $F$ and $G$ is
a choice of natural isomorphism~\eqref{eq:adjn}.
\end{defn}
`Naturally in $A \in \cat{A}$ and $B \in \cat{B}$' means that there is a
specified bijection~\eqref{eq:adjn} for each $A \in \cat{A}$ and $B \in
\cat{B}$, and that it satisfies a naturality axiom. To state it, we need
some notation. Given objects $A \in \cat{A}$ and $B \in \cat{B}$, the
correspondence~\eqref{eq:adjn} between maps $F(A) \to B$ and $A \to G(B)$
is denoted by a horizontal bar,%
%
\ntn{adj-bar}
%
in both directions:
\[
\begin{array}{ccc}
\Bigl(F(A) \toby{g} B\Bigr) &
\mapsto &
\Bigl(A \toby{\bar{g}} G(B)\Bigr), \\
\Bigl(F(A) \toby{\bar{f}} B\Bigr) &
\mapsfrom &
\Bigl(A \toby{f} G(B)\Bigr).
\end{array}
\]
So $\bar{\bar{f}} = f$ and $\bar{\bar{g}} = g$. We call
$\bar{f}$ the \demph{transpose}%
%
\index{transpose}
%
of $f$, and similarly for $g$. The naturality%
%
\index{adjunction!naturality axiom for}
%
axiom has two parts:
%
\begin{equation}
\label{eq:adj-nat-a}
\ovln{\Bigl(F(A) \toby{g} B \toby{q} B'\Bigr)}
\quad
=
\quad
\Bigl(A \toby{\bar{g}} G(B) \toby{G(q)} G(B')\Bigr)
\end{equation}
%
(that is, $\ovln{q \of g} = G(q) \of \bar{g}$) for all $g$ and $q$, and
%
\begin{equation}
\label{eq:adj-nat-b}
\ovln{\Bigl(A' \toby{p} A \toby{f} G(B)\Bigr)}
\quad
=
\quad
\Bigl(F(A') \toby{F(p)} F(A) \toby{\bar{f}} B\Bigr)
\end{equation}
%
for all $p$ and $f$. It makes no difference whether we put the long bar
over the left or the right of these equations, since bar is self-inverse.
\begin{remarks}
\label{rmks:adjts}
\begin{enumerate}[(b)]
\item
\label{rmk:adjts:nat}
The naturality axiom might seem ad hoc, but we will see in
Chapter~\ref{ch:rep} that it simply says that two particular functors are
naturally isomorphic. In this section, we ignore the naturality axiom
altogether, trusting that it embodies our usual intuitive idea of
naturality: something defined without making any arbitrary choices.
\item
The naturality axiom implies that from each array of maps
\[
A_0 \to \cdots \to A_n,
\quad
F(A_n) \to B_0,
\quad
B_0 \to \cdots \to B_m,
\]
it is possible to construct exactly one%
%
\index{uniqueness!constructions@of constructions}
%
map
\[
A_0 \to G(B_m).
\]
Compare the comments on the definitions of category, functor and natural
transformation (Remarks~\ref{rmks:defn-cat}\bref{rmk:defn-cat:loosely},
\ref{rmks:defn-ftr}\bref{rmk:defn-ftr:loosely},
and~\ref{rmks:defn-nt}\bref{rmk:defn-nt:loosely}).
\item
\label{rmk:Lie-ass}
Not only do adjoint functors arise everywhere; better, whenever you see a
pair of functors $\cat{A}\oppairu \cat{B}$, there is an excellent chance
that they are adjoint (one way round or the other).
For example, suppose you get talking to a mathematician who tells you that
her work involves Lie%
%
\index{algebra!associative|(}%
\index{associative algebra|(}%
\index{Lie algebra|(}
%
algebras and associative algebras. You try to object
that you don't know what either of those things is, but she carries on
talking anyway, explaining that there's a way of turning any Lie algebra
into an associative algebra, and also a way of turning any associative
algebra into a Lie algebra. At this point, even without knowing what she's
talking about, you should bet her that one process is adjoint to the other.
This almost always works.
\item
\label{rmks:adjts:uniqueness}
A given functor $G$ may or may not have a left adjoint, but if it does, it is
unique%
%
\index{adjunction!uniqueness of adjoints}
%
up to isomorphism, so we may speak of `\emph{the} left adjoint of $G$'.
The same goes for right adjoints. We prove this later
(Example~\ref{eg:yon-adjts-unique}).
You might ask `what do we gain from knowing that two functors are adjoint?'
The uniqueness is a crucial part of the answer. Let us return to the
example of~\bref{rmk:Lie-ass}. It would take you only a few minutes to
learn what Lie algebras are, what associative algebras are, and what the
standard functor $G$ is that turns an associative algebra into a Lie
algebra. What about the functor $F$ in the opposite direction? The
description of $F$ that you will find in most algebra books (under
`universal%
%
\index{universal!enveloping algebra}
%
enveloping algebra') takes much longer to understand. However, you can
bypass that process completely, just by knowing that $F$ is the left
adjoint of $G$. Since $G$ can have only \emph{one} left adjoint, this
characterizes $F$ completely. In a sense, it tells you all you need to
know.%
%
\index{algebra!associative|)}%
\index{associative algebra|)}%
\index{Lie algebra|)}
%
\end{enumerate}
\end{remarks}
\begin{examples}[Algebra: free $\ladj$ forgetful]
\label{egs:adjns-alg}
%
\index{adjunction!free--forgetful|(}
%
Forgetful%
%
\index{functor!forgetful!left adjoint to}
%
functors between categories of algebraic structures usually have left
adjoints. For instance:
%
\begin{enumerate}[(b)]
\item
\label{eg:adjns-alg:vs}
Let $k$ be a field. There is an adjunction
\[
\adjn{\Vect_k}{\Set,}{F}{U}
%
\index{vector space!free}
%
\]
where $U$ is the forgetful functor of
Example~\ref{egs:forgetful-functors}\bref{eg:forgetful-ring-vs} and $F$ is
the free functor of Example~\ref{egs:free-functors}\bref{eg:free-vs}.
Adjointness says that given a set $S$ and a vector space $V$, a linear map
$F(S) \to V$ is essentially the same thing as a function $S \to U(V)$.
We saw this in Example~\ref{eg:univ-basis}, but let us now check it in
detail.
Fix a set $S$ and a vector space $V$. Given a linear map $g\from F(S) \to
V$, we may define a map of sets $\bar{g}\from S \to U(V)$ by $\bar{g}(s) =
g(s)$ for all $s \in S$. This gives a function
\[
\begin{array}{ccc}
\Vect_k(F(S), V) &\to &\Set(S, U(V)) \\
g &\mapsto &\bar{g}.
\end{array}
\]
In the other direction, given a map of sets $f\from S \to U(V)$, we may
define a linear map $\bar{f}\from F(S) \to V$ by $\bar{f} \bigl( \sum_{s
\in S} \lambda_s s \bigr) = \sum_{s \in S} \lambda_s f(s)$ for all formal
linear combinations $\sum \lambda_s s \in F(S)$. This gives a function
\[
\begin{array}{ccc}
\Set(S, U(V)) &\to &\Vect_k(F(S), V) \\
f &\mapsto &\bar{f}.
\end{array}
\]
These two functions `bar' are mutually inverse: for any linear map $g\from
F(S) \to V$, we have
\[
\bar{\bar{g}} \Biggl( \sum_{s \in S} \lambda_s s \Biggr)
=
\sum_{s \in S} \lambda_s \bar{g}(s)
=
\sum_{s \in S} \lambda_s g(s)
=
g \Biggl( \sum_{s \in S} \lambda_s s \Biggr)
\]
for all $\sum \lambda_s s \in F(S)$, so $\bar{\bar{g}} = g$, and for any
map of sets $f\from S \to U(V)$, we have
\[
\bar{\bar{f}}(s)
=
\bar{f}(s)
=
f(s)
\]
for all $s \in S$, so $\bar{\bar{f}} = f$. We therefore have a canonical
bijection between $\Vect_k(F(S), V)$ and $\Set(S, U(V))$ for each $S \in
\Set$ and $V \in \Vect_k$, as required.
Here we have been careful to distinguish between the vector space $V$ and
its underlying set $U(V)$. Very often, though, in category theory as in
mathematics at large, the symbol for a forgetful functor is omitted. In
this example, that would mean dropping the $U$ and leaving the reader to
figure out whether each occurrence of $V$ is intended to denote the vector
space itself or its underlying set. We will soon start using such
notational shortcuts ourselves.
\item
\label{egs:adjns-alg:gp}
In the same way, there is an adjunction
\[
\adjn{\Grp}{\Set}{F}{U}
%
\index{group!free}
%
\]
where $F$ and $U$ are the free and forgetful functors of
Examples~\ref{egs:forgetful-functors}\bref{eg:forgetful-groups}
and~\ref{egs:free-functors}\bref{eg:free-group}.
The free group functor is tricky to construct explicitly. In
Chapter~\ref{ch:arl}, we will prove a result (the general adjoint functor
theorem) guaranteeing that $U$ and many functors like it all have left
adjoints. To some extent, this removes the need to construct $F$
explicitly, as observed in
Remark~\ref{rmks:adjts}\bref{rmks:adjts:uniqueness}. The point can be
overstated: for a group theorist, the more descriptions of free groups that
are available, the better. Explicit%
%
\index{explicit description}
%
constructions really can be useful. But it is an important general
principle that forgetful functors of this type always have left adjoints.
\item
There is an adjunction
\[
\adjn{\Ab}{\Grp}{F}{U}
\]
where $U$ is the inclusion functor of
Example~\ref{egs:forgetful-functors}\bref{eg:forgetful-ab}. If $G$ is a
group then $F(G)$ is the \demph{abelianization}%
%
\index{abelianization}%
\index{group!abelianization of}
%
$\abel{G}$%
%
\ntn{abel}
%
of $G$. This is an abelian quotient group of $G$, with the property that
every map from $G$ to an abelian group factorizes uniquely through
$\abel{G}$:
\[
\xymatrix{
G \ar[r]^-\eta \ar[dr]_{\forall\phi} &
\abel{G} \ar@{.>}[d]^{\exists!\bar{\phi}} \\
&
\forall A.
}
\]
Here $\eta$ is the natural map from $G$ to its quotient $\abel{G}$, and $A$
is any abelian group. (We have adopted the abuse of notation advertised in
example~\bref{eg:adjns-alg:vs}, omitting the symbol $U$ at several places
in this diagram.) The bijection
\[
\Ab(\abel{G}, A) \iso \Grp(G, U(A))
\]
is given in the left-to-right direction by $\psi \mapsto \psi\of\eta$, and
in the right-to-left direction by $\phi \mapsto \bar{\phi}$.
(To construct $\abel{G}$, let $G'$ be the smallest normal subgroup of $G$
containing $xyx^{-1}y^{-1}$ for all $x, y \in G$, and put $\abel{G} =
G/G'$. The kernel of any homomorphism from $G$ to an abelian group
contains $G'$, and the universal property follows.)
\item
\label{eg:adjns-alg:gp-mon}
There are adjunctions
\[
\xymatrix{
\Grp \ar[d]|{U\vphantom{gl'}} \\
\Mon \ar@<3ex>[u]^F_\ladj \ar@<-3ex>[u]_R^\ladj
}
%
\index{group!free on monoid}%
\index{monoid!free group on}
\]
between the categories of groups and monoids. The middle functor $U$ is
inclusion. The left adjoint $F$ is, again, tricky to describe explicitly.
Informally, $F(M)$ is obtained from $M$ by throwing in an inverse to every
element. (For example, if $M$ is the additive monoid of natural numbers
then $F(M)$ is the group of integers.) Again, the general adjoint functor
theorem (Theorem~\ref{thm:gaft}) guarantees the existence of this adjoint.
This example is unusual in that forgetful functors do not usually have
\emph{right} adjoints. Here, given a monoid $M$, the group $R(M)$ is the
submonoid of $M$ consisting of all the invertible elements.
The category $\Grp$ is both a \demph{reflective}%
%
\index{subcategory!reflective}%
\index{reflective}
%
and a \demph{coreflective}%
%
\index{coreflective}
%
subcategory of $\Mon$. This means, by definition, that the inclusion
functor $\Grp \incl \Mon$ has both a left and a right adjoint. The
previous example tells us that $\Ab$ is a reflective subcategory of $\Grp$.
\item
\label{egs:adjns-alg:fields}
Let $\Field$%
%
\ntn{Field}
%
be the category of fields,%
%
\index{field}
%
with ring homomorphisms as the maps. The forgetful functor $\Field \to \Set$
does \emph{not} have a left adjoint. (For a proof, see
Example~\ref{eg:no-free-field}.) The theory of fields is unlike the
theories of groups, rings, and so on, because the operation $x \mapsto
x^{-1}$ is not defined for \emph{all} $x$ (only for $x \neq 0$).
%
\index{adjunction!free--forgetful|)}
%
\end{enumerate}
\end{examples}
\begin{remark}
\label{rmk:alg-thy}
At several points in this book, we make contact with the idea of an
\demph{algebraic%
%
\index{algebraic theory}
%
theory}. You already know several examples: the theory of groups is an
algebraic theory, as are the theory of rings, the theory of vector spaces
over $\reals$, the theory of vector spaces over $\complexes$, the theory of
monoids, and (rather trivially) the theory of sets. After reading the
description below, you might conclude that the word `theory' is overly
grand, and that `definition' would be more appropriate. Nevertheless, this
is the established usage.
We will not need to define `algebraic theory' formally, but it will be
important to have the general idea. Let us begin by considering the theory
of groups.
A group can be defined as a set $X$ equipped with a function $\cdot \from X
\times X \to X$ (multiplication), another function $\blank^{-1}\from X \to
X$ (inverse), and an element $e \in X$ (the identity), satisfying a
familiar list of equations. More systematically, the three pieces of
structure on $X$ can be seen as maps of sets
\[
\cdot\from X^2 \to X,
\qquad
\blank^{-1}\from X^1 \to X,
\qquad
e\from X^0 \to X,
\]
where in the last case, $X^0$ is the one-element set $1$ and we are using
the observation that a map $1 \to X$ of sets is essentially the same thing
as an element of $X$.
(You may be more familiar with a definition of group in which only the
multiplication and perhaps the identity are specified as pieces of
\emph{structure}, with the existence of inverses required as a
\emph{property}. In that approach, the definition is swiftly followed by a
lemma on uniqueness of inverses, guaranteeing that it makes sense to speak
of \emph{the} inverse of an element. The two approaches are equivalent,
but for many purposes, it is better to frame the definition in the way
described in the previous paragraph.)
An algebraic theory consists of two things: first, a collection of
operations, each with a specified arity%
%
\index{arity}
%
(number of inputs), and second, a collection of equations. For example,
the theory of groups has one operation of arity $2$, one of arity $1$, and
one of arity $0$. An \demph{algebra}%
%
\index{algebra!algebraic theory@for algebraic theory}
%
or \demph{model}%
%
\index{model}
%
for an algebraic theory consists of a set $X$ together with a specified map
$X^n \to X$ for each operation of arity $n$, such that the equations hold
everywhere. For example, an algebra for the theory of groups is exactly a
group.
A more subtle example is the theory of vector spaces over $\reals$. This is
an algebraic theory with, among other things, an infinite number of
operations of arity $1$: for each $\lambda \in \reals$, we have the
operation $\lambda \cdot \dashbk\from X \to X$ of scalar multiplication by
$\lambda$ (for any vector space $X$). There is nothing special about the
field $\reals$ here; the only point is that it was chosen in advance. The
theory of vector spaces over $\reals$ is different from the theory of
vector spaces over $\complexes$, because they have different operations of
arity $1$.
In a nutshell, the main property of algebras for an algebraic theory is
that the operations are defined everywhere on the set, and the equations
hold everywhere too. For example, \emph{every} element of a group has a
specified inverse, and \emph{every} element $x$ satisfies the equation $x
\cdot x^{-1} = 1$. This is why the theories of groups, rings, and so on,
are algebraic theories, but the theory of fields is not.
\end{remark}
\begin{example}
\label{eg:adjn:spaces}
There are adjunctions
\[
\xymatrix{
\Tp \ar[d]|{U\vphantom{gl'}} \\
\Set \ar@<3ex>[u]^D_\ladj \ar@<-3ex>[u]_I^\ladj
}
\]
where $U$ sends a space to its set of points, $D$ equips a set with the
discrete%
%
\index{topological space!discrete}
%
topology, and $I$ equips a set with the indiscrete%
%
\index{topological space!indiscrete}%
\index{indiscrete space}
%
topology.
\end{example}
\begin{example}
\label{eg:adjn:cc}
Given sets $A$ and $B$, we can form their (cartesian) product%
%
\index{set!category of sets!products in}
%
$A \times B$. We can also form the set $B^A$%
%
\index{set!functions@of functions}%
\index{function!set of functions}
%
of functions from $A$ to $B$. This is the same as the set $\Set(A, B)$,
but we tend to use the notation $B^A$ when we want to emphasize that it is
an object of the same category as $A$ and $B$.
Now fix a set $B$. Taking the product with $B$ defines a functor
\[
\begin{array}{cccc}
\dashbk \times B\from &\Set &\to &\Set \\
&A &\mapsto&A \times B.
\end{array}
\]
(Here we are using the blank notation introduced in
Example~\ref{eg:fns-on-vs}.) There is also a functor
\[
\begin{array}{cccc}
(\dashbk)^B\from &\Set &\to &\Set \\
&C &\mapsto&C^B.
\end{array}
\]
Moreover, there is a canonical bijection
\[
\Set(A \times B, C)
\iso
\Set(A, C^B)
\]
for any sets $A$ and $C$. It is defined by simply changing the
punctuation: given a map $g\from A \times B \to C$, define $\bar{g}\from A
\to C^B$ by
\[
(\bar{g}(a))(b) = g(a, b)
\]
($a \in A$, $b \in B$), and in the other direction, given $f\from A \to
C^B$, define $\bar{f}\from A \times B \to C$ by
\[
\bar{f}(a, b) = (f(a))(b)
\]
($a \in A$, $b \in B$). Figure~\ref{fig:curry} shows an example with $A =
B = C = \reals$. By slicing up the surface as shown, a map $\reals^2 \to
\reals$ can be seen as a map from $\reals$ to $\{\text{maps } \reals \to
\reals\}$.
Putting all this together, we obtain an adjunction
\[
\adjn{\Set}{\Set}{\dashbk\times B}{(\dashbk)^B}
\]
for every set $B$.
\end{example}
\begin{figure}
\centering
\setlength{\unitlength}{1em}%
\begin{picture}(10,11.5)(-5,-.8)
\cell{0}{0}{b}{\includegraphics[width=10em]{curry}}
\cell{3.8}{-0.2}{c}{A}
\cell{2.2}{5.8}{c}{B}
\cell{-4.1}{10.1}{c}{C}
\end{picture}
\caption{In $\Set$, a map $A \times B \to C$ can be seen as a way of
assigning to each element of $A$ a map $B \to C$.}
\label{fig:curry}
\end{figure}
\begin{defn}
\label{defn:init-term}
Let $\cat{A}$ be a category. An object $I \in \cat{A}$ is \demph{initial}%
%
\index{object!initial}
%
if for every $A \in \cat{A}$, there is exactly one map $I \to A$. An
object $T \in \cat{A}$ is \demph{terminal}%
%
\index{object!terminal}
%
if for every $A \in \cat{A}$, there is exactly one map $A \to T$.
\end{defn}
For example, the empty set is initial in $\Set$, the trivial group is
initial in $\Grp$, and $\integers$%
%
\index{Z@$\integers$ (integers)!ring@as ring}
%
is initial in $\Ring$ (Example~\ref{eg:univ-Z}). The one-element set is
terminal in $\Set$, the trivial group is terminal (as well as initial) in
$\Grp$, and the trivial (one-element) ring is terminal in $\Ring$. The
terminal object of $\CAT$ is the category $\One$ containing just one object
and one map (necessarily the identity on that object).
A category need not have an initial object, but if it does have one, it is
unique%
%
\index{object!initial!uniqueness of}
%
up to isomorphism. Indeed, it is unique up to \emph{unique} isomorphism,
as follows.
\begin{lemma}
\label{lemma:init-unique}
Let $I$ and $I'$ be initial objects of a category. Then there is a unique
isomorphism $I \to I'$. In particular, $I \iso I'$.
\end{lemma}
\begin{pf}
Since $I$ is initial, there is a unique map $f\from I \to I'$. Since $I'$
is initial, there is a unique map $f'\from I' \to I$. Now $f' \of f$ and
$1_I$ are both maps $I \to I$, and $I$ is initial, so $f' \of f = 1_I$.
Similarly, $f \of f' = 1_{I'}$. Hence $f$ is an isomorphism, as required.
\end{pf}
\begin{example}
\label{eg:init-term}
%
\index{object!initial!adjoint@as adjoint}
%
Initial and terminal objects can be described as adjoints. Let $\cat{A}$
be a category. There is precisely one functor $\cat{A} \to \One$. Also, a
functor $\One \to \cat{A}$ is essentially just an object of $\cat{A}$
(namely, the object to which the unique object of $\One$ is mapped).
Viewing functors $\One \to \cat{A}$ as objects of $\cat{A}$, a left adjoint
to $\cat{A} \to \One$ is exactly an initial object of $\cat{A}$.
Similarly, a right adjoint to the unique functor $\cat{A} \to \One$ is
exactly a terminal object of $\cat{A}$.
\end{example}
\begin{remark}
In the language introduced in Remark~\ref{rmk:principle-duality}, the
concept of terminal object is dual%
%
\index{duality!principle of}
%
to the concept of initial object. (More generally, the concepts of left
and right adjoint are dual to one another.) Since any two initial objects
of a category are uniquely isomorphic, the principle of duality implies
that the same is true of terminal objects.
\end{remark}
\begin{remark}
Adjunctions can be composed.%
%
\index{adjunction!composition of adjunctions}
%
Take adjunctions
\[
\xymatrix{
\cat{A} \ar@<1.1ex>[r]^F_\bot &
\cat{A}' \ar@<1.1ex>[l]^G \ar@<1.1ex>[r]^{F'}_\bot &
\cat{A}'' \ar@<1.1ex>[l]^{G'}
}
\]
where the $\bot$%
%
\ntn{bot}
%
symbol is a rotated $\ladj$ (thus, $F \ladj G$ and $F' \ladj G'$). Then we
obtain an adjunction
\[
\xymatrix{
\cat{A} \ar@<1.1ex>[r]^{F' \of F}_\bot &
\cat{A}'', \ar@<1.1ex>[l]^{G \of G'}
}
\]
since for $A \in \cat{A}$ and $A'' \in \cat{A}''$,
\[
\cat{A}''\bigl( F'(F(A)), A''\bigr)
\iso
\cat{A}'\bigl(F(A), G'(A'')\bigr)
\iso
\cat{A}\bigl(A, G(G'(A''))\bigr)
\]
naturally in $A$ and $A''$.
\end{remark}
\exs
\begin{question}
Find three examples of adjoint functors not mentioned above. Do the same
for initial and terminal objects.
\end{question}
\begin{question}
What can be said about adjunctions between discrete categories?
\end{question}
\begin{question}
\label{ex:adj-nat-in-one}
Show that the naturality%
%
\index{adjunction!naturality axiom for}
%
equations~\eqref{eq:adj-nat-a} and~\eqref{eq:adj-nat-b} can equivalently be
replaced by the single equation
\[
\ovln{\Bigl( A' \toby{p} A \toby{f} G(B) \toby{G(q)} G(B') \Bigr)}
\quad
=
\quad
\Bigl(F(A') \toby{F(p)} F(A) \toby{\bar{f}} B \toby{q} B'\Bigr)
\]
for all $p$, $f$ and $q$.
\end{question}
\begin{question}
Show that left adjoints preserve initial objects: that is, if
$\hadjnli{\cat{A}}{\cat{B}}{F}{G}$ and $I$ is an initial object of
$\cat{A}$, then $F(I)$ is an initial object of $\cat{B}$. Dually, show
that right adjoints preserve terminal objects.
(In Section~\ref{sec:adj-lim}, we will see this as part of a bigger
picture: right adjoints preserve limits and left adjoints preserve
colimits.)
\end{question}
\begin{question}
\label{ex:G-set-adjns}
Let $G$ be a group.
%
\begin{enumerate}[(b)]
\item
%
\index{group!action of}%
\index{G-set@$G$-set}
%
What interesting functors are there (in either direction) between $\Set$
and the category $\ftrcat{G}{\Set}$ of left $G$-sets? Which of those
functors are adjoint to which?
\item
%
\index{representation!group or monoid@of group or monoid!linear}
%
Similarly, what interesting functors are there between $\Vect_k$ and the
category $\ftrcat{G}{\Vect_k}$ of $k$-linear representations of $G$, and
what adjunctions are there between those functors?
\end{enumerate}
\end{question}
\begin{question}
\label{ex:pshf-adjns}
Fix a topological space $X$, and write $\oset(X)$ for the poset of open
subsets of $X$, ordered by inclusion. Let
\[
\Delta \from \Set \to \ftrcat{\oset(X)^\op}{\Set}%
%
\index{functor!diagonal}%
\ntn{Delta}
%
\]
be the functor assigning to a set $A$ the presheaf%
%
\index{presheaf}
%
$\Delta A$ with constant value $A$. Exhibit a chain of adjoint functors
\[
\Lambda \ladj \Pi \ladj \Delta \ladj \Gamma \ladj \nabla.
\]
\end{question}
\section{Adjunctions via units and counits}
\label{sec:adj-units}
In the previous section, we met the definition of adjunction. In this
section and the next, we meet two ways of rephrasing the definition. The
one in this section is most useful for theoretical purposes, while the one
in the next fits well with many examples.
%
\index{adjunction!naturality axiom for|(}
%
To start building the theory of adjoint functors, we have to take seriously
the naturality requirement (equations~\eqref{eq:adj-nat-a}
and~\eqref{eq:adj-nat-b}), which has so far been ignored. Take an
adjunction $\hadjnli{\cat{A}}{\cat{B}}{F}{G}$. Intuitively, naturality
says that as $A$ varies in $\cat{A}$ and $B$ varies in $\cat{B}$, the
isomorphism between $\cat{B}(F(A), B)$ and $\cat{A}(A, G(B))$ varies in a
way that is compatible with all the structure already in place. In other
words, it is compatible with composition in the categories $\cat{A}$ and
$\cat{B}$ and the action of the functors $F$ and $G$.
But what does `compatible' mean? Suppose, for example, that we have maps
\[
F(A) \toby{g} B \toby{q} B'
\]
in $\cat{B}$. There are two things we can do with this data: either
compose then take the transpose, which produces a map $\ovln{q \of g}\from
A \to G(B')$, or take the transpose of $g$ then compose it with $G(q)$,
which produces a potentially different map $G(q) \of \bar{g}\from A \to
G(B')$. Compatibility means that they are equal; and that is the first
naturality equation~\eqref{eq:adj-nat-a}. The second is its dual, and can
be explained in a similar way.
For each $A \in \cat{A}$, we have a map
\[
\Bigl( A \toby{\eta_A} GF(A) \Bigr)
=
\ovln{\Bigl(F(A) \toby{1} F(A)\Bigr)}.%
%
\ntn{adj-unit}
%
\]
Dually, for each $B \in \cat{B}$, we have a map
\[
\Bigl( FG(B) \toby{\epsln_B} B \Bigr)
=
\ovln{\Bigl(G(B) \toby{1} G(B)\Bigr)}.%
%
\ntn{adj-counit}
%
\]
(We have begun to omit brackets, writing $GF(A)$ instead of $G(F(A))$,
etc.)%
%
\index{adjunction!naturality axiom for|)}
%
These define natural transformations
\[
\eta\from 1_\cat{A} \to G \of F,
\qquad
\epsln\from F \of G \to 1_\cat{B},
\]
called the \demph{unit}%
%
\index{unit and counit}
%
and \demph{counit} of the adjunction, respectively.
\begin{example}
Take the usual adjunction $\hadjnri{\Vect_k}{\Set}{U}{F}$.%
%
\index{vector space!free!unit of}
%
Its unit $\eta\from 1_\Set \to U \of F$ has components
\[
\begin{array}{ccccl}
\eta_S\from &S &\to &UF(S) &
\!\!\!\!
=
\bigl\{
\text{formal }k\text{-linear sums } \sum_{s \in S} \lambda_s s
\bigr\}\\
&s &\mapsto &s
\end{array}
\]
($S \in \Set$). The component of the counit $\epsln$ at a vector space
$V$ is the linear map
\[
\epsln_V\from FU(V) \to V
\]
that sends a \emph{formal} linear sum $\sum_{v \in V} \lambda_v v$ to its
\emph{actual} value in $V$.
The vector space $FU(V)$ is enormous. For instance, if $k = \reals$ and
$V$ is the vector space $\reals^2$, then $U(V)$ is the set $\reals^2$ and
$FU(V)$ is a vector space with one basis element for every element of
$\reals^2$; thus, it is uncountably infinite-dimensional. Then $\epsln_V$
is a map from this infinite-dimensional space to the $2$-dimensional space
$V$.
\end{example}
\begin{lemma}
\label{lemma:triangle-ids}
Given an adjunction $F \ladj G$ with unit $\eta$ and counit $\epsln$, the
triangles
\[
\begin{array}{c}
\xymatrix{
F \ar[r]^-{F\eta} \ar[dr]_{1_F} &
FGF \ar[d]^{\epsln F} \\
&
F
}
\end{array}
\qquad
\begin{array}{c}
\xymatrix{
G \ar[r]^-{\eta G} \ar[dr]_{1_G} &
GFG \ar[d]^{G \epsln} \\
&
G
}
\end{array}
\]
commute.
\end{lemma}
\begin{remark}
These are called the \demph{triangle%
%
\index{triangle identities}
%
identities}. They are commutative diagrams in the functor categories
$\ftrcat{\cat{A}}{\cat{B}}$ and $\ftrcat{\cat{B}}{\cat{A}}$, respectively.
For an explanation of the notation, see Remarks~\ref{rmks:2-cat-CAT}
(particularly the special cases mentioned on
page~\pageref{p:special-cases}). An equivalent statement is that the
triangles
%
\begin{equation}
\label{eq:triangle-ids}
\begin{array}{c}
\xymatrix{
F(A) \ar[r]^-{F(\eta_A)} \ar[dr]_{1_{F(A)}} &
FGF(A) \ar[d]^{\epsln_{F(A)}} \\
&
F(A)
}
\end{array}
\qquad
\begin{array}{c}
\xymatrix{
G(B) \ar[r]^-{\eta_{G(B)}} \ar[dr]_{1_{G(B)}} &
GFG(B) \ar[d]^{G(\epsln_B)} \\
&
G(B)
}
\end{array}
\end{equation}
%
commute for all $A \in \cat{A}$ and $B \in \cat{B}$.
\end{remark}
\begin{pfof}{Lemma~\ref{lemma:triangle-ids}}
We prove that the triangles~\eqref{eq:triangle-ids} commute.
Let $A \in \cat{A}$. Since $\ovln{1_{GF(A)}} = \epsln_{F(A)}$,
equation~\eqref{eq:adj-nat-b} gives
\[
\ovln{\Bigl(A \toby{\eta_A} GF(A) \toby{1} GF(A)\Bigr)}
\quad
=
\quad
\Bigl( F(A) \toby{F(\eta_A)} FGF(A) \toby{\epsln_{F(A)}} F(A) \Bigr).
\]
But the left-hand side is $\ovln{\eta_A} = \ovln{\ovln{1_{F(A)}}} =
1_{F(A)}$, proving the first identity. The second follows by duality.
\end{pfof}
Amazingly, the unit and counit determine the whole adjunction, even though
they appear to know only the transposes \emph{of identities}. This is the
main content of the following pair of results.
\begin{lemma}
\label{lemma:unit-determines-adjn}
%
\index{unit and counit!adjunction in terms of}
%
Let $\hadjnli{\cat{A}}{\cat{B}}{F}{G}$ be an adjunction, with unit $\eta$
and counit $\epsln$. Then
\[
\bar{g} = G(g) \of \eta_A
\]
for any $g\from F(A) \to B$, and
\[
\bar{f} = \epsln_B \of F(f)
\]
for any $f\from A \to G(B)$.
\end{lemma}