forked from stacks/stacks-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
homology.tex
7760 lines (7017 loc) · 254 KB
/
homology.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
\input{preamble}
% OK, start here.
%
\begin{document}
\title{Homological Algebra}
\maketitle
\phantomsection
\label{section-phantom}
\tableofcontents
\section{Introduction}
\label{section-introduction}
\noindent
Basic homological algebra will be explained in this document.
We add as needed in the other parts, since there is clearly
an infinite amount of this stuff around.
A reference is \cite{Maclane}.
\section{Basic notions}
\label{section-topology-basic}
\noindent
The following notions are considered basic and will not be defined,
and or proved. This does not mean they are all necessarily easy or
well known.
\begin{enumerate}
\item Nothing yet.
\end{enumerate}
\section{Preadditive and additive categories}
\label{section-additive-categories}
\noindent
Here is the definition of a preadditive category.
\begin{definition}
\label{definition-preadditive}
A category $\mathcal{A}$ is called {\it preadditive} if each
morphism set $\Mor_\mathcal{A}(x, y)$ is endowed
with the structure of an abelian group such that the
compositions
$$
\Mor(x, y) \times \Mor(y, z)
\longrightarrow
\Mor(x, z)
$$
are bilinear. A functor $F : \mathcal{A} \to \mathcal{B}$ of
preadditive categories is called {\it additive} if and only
if $F : \Mor(x, y) \to \Mor(F(x), F(y))$
is a homomorphism of abelian groups for all
$x, y \in \Ob(\mathcal{A})$.
\end{definition}
\noindent
In particular for every $x, y$ there exists at least
one morphism $x \to y$, namely the zero map.
\begin{lemma}
\label{lemma-preadditive-zero}
Let $\mathcal{A}$ be a preadditive category.
Let $x$ be an object of $\mathcal{A}$.
The following are equivalent
\begin{enumerate}
\item $x$ is an initial object,
\item $x$ is a final object, and
\item $\text{id}_x = 0$ in $\Mor_\mathcal{A}(x, x)$.
\end{enumerate}
Furthermore, if such an object $0$ exists, then a morphism
$\alpha : x \to y$ factors through $0$ if and only if $\alpha = 0$.
\end{lemma}
\begin{proof}
First assume that $x$ is either (1) initial or (2) final.
In both cases, it follows that $\Mor(x,x)$ is a trivial abelian group
containing $\text{id}_x$, thus $\text{id}_x = 0$ in
$\Mor(x, x)$, which shows that each of (1) and (2) implies (3).
\medskip\noindent
Now assume that $\text{id}_x = 0$ in $\Mor(x,x)$. Let $y$
be an arbitrary object of $\mathcal{A}$ and let $f \in \Mor(x ,y)$.
Denote $C : \Mor(x,x) \times \Mor(x,y) \to \Mor(x,y)$ the composition map.
Then $f = C(0, f)$ and since $C$ is bilinear we have $C(0, f) = 0$.
Thus $f = 0$. Hence $x$ is initial in $\mathcal{A}$.
A similar argument for $f \in \Mor(y, x)$ can be used to show that
$x$ is also final. Thus (3) implies both (1) and (2).
\end{proof}
\begin{definition}
\label{definition-zero-object}
In a preadditive category $\mathcal{A}$ we call
{\it zero object}, and we denote it $0$
any final and initial object as in Lemma \ref{lemma-preadditive-zero} above.
\end{definition}
\begin{lemma}
\label{lemma-preadditive-direct-sum}
Let $\mathcal{A}$ be a preadditive category.
Let $x, y \in \Ob(\mathcal{A})$.
If the product $x \times y$ exists, then so does
the coproduct $x \amalg y$.
If the coproduct $x \amalg y$ exists, then so does
the product $x \times y$. In this case
also $x \amalg y \cong x \times y$.
\end{lemma}
\begin{proof}
Suppose that $z = x \times y$ with projections
$p : z \to x$ and $q : z \to y$. Denote $i : x \to z$
the morphism corresponding to $(1, 0)$. Denote $j : y \to z$
the morphism corresponding to $(0, 1)$. Thus we have the
commutative diagram
$$
\xymatrix{
x \ar[rr]^1 \ar[rd]^i & & x \\
& z \ar[ru]^p \ar[rd]^q & \\
y \ar[rr]^1 \ar[ru]^j & & y
}
$$
where the diagonal compositions are zero. It follows that
$i \circ p + j \circ q : z \to z$ is the identity since
it is a morphism which upon composing with $p$ gives $p$
and upon composing with $q$ gives $q$.
Suppose given morphisms $a : x \to w$ and $b : y \to w$.
Then we can form the map $a \circ p + b \circ q : z \to w$.
In this way we get a bijection $\Mor(z, w)
= \Mor(x, w) \times \Mor(y, w)$ which
show that $z = x \amalg y$.
\medskip\noindent
We leave it to the reader to construct the morphisms
$p, q$ given a coproduct $x \amalg y$ instead of a
product.
\end{proof}
\begin{definition}
\label{definition-direct-sum}
Given a pair of objects $x, y$ in a preadditive category $\mathcal{A}$,
the {\it direct sum} $x \oplus y$ of $x$ and $y$ is the direct
product $x \times y$ endowed with the morphisms
$i, j, p, q$ as in Lemma \ref{lemma-preadditive-direct-sum} above.
\end{definition}
\begin{remark}
\label{remark-direct-sum}
Note that the proof of Lemma \ref{lemma-preadditive-direct-sum}
shows that given $p$ and $q$ the morphisms $i$, $j$ are uniquely
determined by the rules $p \circ i = \text{id}_x$,
$q \circ j = \text{id}_y$, $p \circ j = 0$, $q \circ i = 0$.
Moreover, we automatically have
$i \circ p + j \circ q = \text{id}_{x \oplus y}$.
Similarly, given $i$, $j$ the morphisms $p$ and $q$ are uniquely determined.
Finally, given objects $x, y, z$ and morphisms
$i : x \to z$, $j : y \to z$, $p : z \to x$ and
$q : z \to y$ such that $p \circ i = \text{id}_x$,
$q \circ j = \text{id}_y$, $p \circ j = 0$, $q \circ i = 0$
and $i \circ p + j \circ q = \text{id}_z$, then $z$
is the direct sum of $x$ and $y$ with the four morphisms
equal to $i, j, p, q$.
\end{remark}
\begin{lemma}
\label{lemma-additive-additive}
Let $\mathcal{A}$, $\mathcal{B}$ be preadditive categories.
Let $F : \mathcal{A} \to \mathcal{B}$ be an additive functor.
Then $F$ transforms direct sums to direct sums and zero to zero.
\end{lemma}
\begin{proof}
Suppose $F$ is additive. A direct sum $z$
of $x$ and $y$ is characterized by having morphisms
$i : x \to z$, $j : y \to z$, $p : z \to x$ and
$q : z \to y$ such that $p \circ i = \text{id}_x$,
$q \circ j = \text{id}_y$, $p \circ j = 0$, $q \circ i = 0$
and $i \circ p + j \circ q = \text{id}_z$, according
to Remark \ref{remark-direct-sum}. Clearly $F(x), F(y), F(z)$
and the morphisms $F(i), F(j), F(p), F(q)$ satisfy exactly the
same relations (by additivity) and we see that $F(z)$ is
a direct sum of $F(x)$ and $F(y)$.
Hence, $F$ transforms direct sums to direct sums.
\medskip\noindent
To see that $F$ transforms zero to zero, use the
characterization (3) of the zero object in
Lemma \ref{lemma-preadditive-zero}.
\end{proof}
\begin{definition}
\label{definition-additive-category}
A category $\mathcal{A}$ is called {\it additive}
if it is preadditive and finite products exist, in other
words it has a zero object and direct sums.
\end{definition}
\noindent
Namely the empty product is a finite product and
if it exists, then it is a final object.
\begin{definition}
\label{definition-kernel}
Let $\mathcal{A}$ be a preadditive category.
Let $f : x \to y$ be a morphism.
\begin{enumerate}
\item A {\it kernel} of $f$ is a morphism
$i : z \to x$ such that (a) $f \circ i = 0$ and (b)
for any $i' : z' \to x$ such that $f \circ i' = 0$ there
exists a unique morphism $g : z' \to z$ such that
$i' = i \circ g$.
\item If the kernel of $f$ exists, then we denote
this $\Ker(f) \to x$.
\item A {\it cokernel} of $f$ is a morphism
$p : y \to z$ such that (a) $p \circ f = 0$ and (b)
for any $p' : y \to z'$ such that $p' \circ f = 0$ there
exists a unique morphism $g : z \to z'$ such that
$p' = g \circ p$.
\item If a cokernel of $f$ exists we denote this
$y \to \Coker(f)$.
\item If a kernel of $f$ exists, then a {\it coimage
of $f$} is a cokernel for the morphism $\Ker(f) \to x$.
\item If a kernel and coimage exist then we denote this
$x \to \Coim(f)$.
\item If a cokernel of $f$ exists, then the {\it image of
$f$} is a kernel of the morphism $y \to \Coker(f)$.
\item If a cokernel and image of $f$ exist then we denote
this $\Im(f) \to y$.
\end{enumerate}
\end{definition}
\noindent
In the above definition, we have spoken of ``the kernel'' and
``the cokernel'', tacitly using their uniqueness
up to unique isomorphism. This follows from the Yoneda lemma
(Categories, Section \ref{categories-section-opposite})
because the kernel of $f : x \to y$ represents the functor
sending an object $z$ to the set
$\Ker(\Mor_\mathcal{A}(z, x) \to \Mor_\mathcal{A}(z, y))$.
The case of cokernels is dual.
\medskip\noindent
We first relate the direct sum to kernels as follows.
\begin{lemma}
\label{lemma-additive-cat-biproduct-kernel}
Let $\mathcal{C}$ be a preadditive category.
Let $x \oplus y$ with morphisms $i, j, p, q$ as in
Lemma \ref{lemma-preadditive-direct-sum}
be a direct sum in $\mathcal{C}$. Then $i : x \to x \oplus y$
is a kernel of $q : x \oplus y \rightarrow y$. Dually, $p$ is
a cokernel for $j$.
\end{lemma}
\begin{proof}
Let $f : z' \to x \oplus y$ be a morphism such that $q \circ f = 0$.
We have to show that there exists a unique morphism $g : z' \to x$
such that $f = i \circ g$. Since $i \circ p + j \circ q$ is the identity on
$x \oplus y$ we see that
$$
f = (i \circ p + j \circ q) \circ f = i \circ p \circ f
$$
and hence $g = p \circ f$ works. Uniqueness holds because $p \circ i$
is the identity on $x$. The proof of the second statement is dual.
\end{proof}
\begin{lemma}
\label{lemma-kernel-mono}
Let $\mathcal{C}$ be a preadditive category.
Let $f : x \to y$ be a morphism in $\mathcal{C}$.
\begin{enumerate}
\item If a kernel of $f$ exists, then
this kernel is a monomorphism.
\item If a cokernel of $f$ exists, then
this cokernel is an epimorphism.
\item If a kernel and coimage of $f$ exist, then
the coimage is an epimorphism.
\item If a cokernel and image of $f$ exist, then
the image is a monomorphism.
\end{enumerate}
\end{lemma}
\begin{proof}
Part (1) follows easily from the uniqueness required in the
definition of a kernel. The proof of (2) is dual.
Part (3) follows from (2), since the coimage is a cokernel.
Similarly, (4) follows from (1).
\end{proof}
\begin{lemma}
\label{lemma-coim-im-map}
Let $f : x \to y$ be a morphism in a preadditive category
such that the kernel, cokernel, image and coimage all exist.
Then $f$ can be factored uniquely as
$x \to \Coim(f) \to \Im(f) \to y$.
\end{lemma}
\begin{proof}
There is a canonical morphism $\Coim(f) \to y$
because $\Ker(f) \to x \to y$ is zero.
The composition $\Coim(f) \to y \to \Coker(f)$
is zero, because it is the unique morphism which gives
rise to the morphism $x \to y \to \Coker(f)$ which
is zero
(the uniqueness follows from
Lemma \ref{lemma-kernel-mono} (3)).
Hence $\Coim(f) \to y$ factors uniquely through
$\Im(f) \to y$, which gives us the desired map.
\end{proof}
\begin{example}
\label{example-not-abelian}
Let $k$ be a field.
Consider the category
of filtered vector spaces over $k$.
(See Definition \ref{definition-filtered}.)
Consider the filtered vector spaces $(V, F)$ and $(W, F)$ with
$V = W = k$ and
$$
F^iV
=
\left\{
\begin{matrix}
V & \text{if} & i < 0 \\
0 & \text{if} & i \geq 0
\end{matrix}
\right.
\text{ and }
F^iW
=
\left\{
\begin{matrix}
W & \text{if} & i \leq 0 \\
0 & \text{if} & i > 0
\end{matrix}
\right.
$$
The map $f : V \to W$ corresponding to $\text{id}_k$ on the underlying
vector spaces has trivial kernel and cokernel but is not
an isomorphism. Note also that $\Coim(f) = V$ and $\Im(f) = W$.
This means that the category of filtered vector spaces over $k$
is not abelian.
\end{example}
\section{Karoubian categories}
\label{section-karoubian}
\noindent
Skip this section on a first reading.
\begin{definition}
\label{definition-karoubian}
Let $\mathcal{C}$ be a preadditive category. We say $\mathcal{C}$
is {\it Karoubian} if every idempotent endomorphism of an object
of $\mathcal{C}$ has a kernel.
\end{definition}
\noindent
The dual notion would be that every idempotent endomorphism of an
object has a cokernel. However, in view of the (dual of the)
following lemma that would be an equivalent notion.
\begin{lemma}
\label{lemma-karoubian}
Let $\mathcal{C}$ be a preadditive category. The following
are equivalent
\begin{enumerate}
\item $\mathcal{C}$ is Karoubian,
\item every idempotent endomorphism of an object of $\mathcal{C}$ has a
cokernel, and
\item given an idempotent endomorphism $p : z \to z$ of $\mathcal{C}$
there exists a direct sum decomposition $z = x \oplus y$ such
that $p$ corresponds to the projection onto $y$.
\end{enumerate}
\end{lemma}
\begin{proof}
Assume (1) and let $p : z \to z$ be as in (3).
Let $x = \Ker(p)$ and $y = \Ker(1 - p)$. There are maps
$x \to z$ and $y \to z$. Since $(1 - p)p = 0$ we see that $p : z \to z$
factors through $y$, hence we obtain a morphism $z \to y$. Similarly
we obtain a morphism $z \to x$. We omit the verification that these
four morphisms induce an isomorphism $x = y \oplus z$ as in
Remark \ref{remark-direct-sum}.
Thus (1) $\Rightarrow$ (3). The implication (2) $\Rightarrow$ (3)
is dual. Finally, condition (3) implies (1) and (2) by
Lemma \ref{lemma-additive-cat-biproduct-kernel}.
\end{proof}
\begin{lemma}
\label{lemma-projectors-have-images}
Let $\mathcal{D}$ be a preadditive category.
\begin{enumerate}
\item If $\mathcal{D}$ has countable products and kernels of maps which
have a right inverse, then $\mathcal{D}$ is Karoubian.
\item If $\mathcal{D}$ has countable coproducts and cokernels of
maps which have a left inverse, then $\mathcal{D}$ is Karoubian.
\end{enumerate}
\end{lemma}
\begin{proof}
Let $X$ be an object of $\mathcal{D}$ and let $e : X \to X$ be an idempotent.
The functor
$$
W \longmapsto \Ker(
\Mor_\mathcal{D}(W, X)
\xrightarrow{e}
\Mor_\mathcal{D}(W, X)
)
$$
if representable if and only if $e$ has a kernel. Note that for any
abelian group $A$ and idempotent endomorphism $e : A \to A$ we have
$$
\Ker(e : A \to A)
= \Ker(\Phi :
\prod\nolimits_{n \in \mathbf{N}} A
\to
\prod\nolimits_{n \in \mathbf{N}} A
)
$$
where
$$
\Phi(a_1, a_2, a_3, \ldots) = (ea_1 + (1 - e)a_2, ea_2 + (1 - e)a_3, \ldots)
$$
Moreover, $\Phi$ has the right inverse
$$
\Psi(a_1, a_2, a_3, \ldots) =
(a_1, (1 - e)a_1 + ea_2, (1 - e)a_2 + ea_3, \ldots).
$$
Hence (1) holds. The proof of (2) is dual (using the dual definition
of a Karoubian category, namely condition (2) of
Lemma \ref{lemma-karoubian}).
\end{proof}
\section{Abelian categories}
\label{section-abelian-categories}
\noindent
An abelian category is a category satisfying just enough axioms so the
snake lemma holds. An axiom (that is sometimes forgotten)
is that the canonical map $\Coim(f) \to \Im(f)$
of Lemma \ref{lemma-coim-im-map} is always an isomorphism.
Example \ref{example-not-abelian} shows that it is necessary.
\begin{definition}
\label{definition-abelian-category}
A category $\mathcal{A}$ is {\it abelian} if
it is additive, if all kernels and cokernels exist,
and if the natural map $\Coim(f) \to \Im(f)$
is an isomorphism for all morphisms $f$ of
$\mathcal{A}$.
\end{definition}
\begin{lemma}
\label{lemma-abelian-opposite}
Let $\mathcal{A}$ be a preadditive category.
The additions on sets of morphisms make
$\mathcal{A}^{opp}$ into a preadditive category.
Furthermore, $\mathcal{A}$ is additive if and only if $\mathcal{A}^{opp}$
is additive, and
$\mathcal{A}$ is abelian if and only if $\mathcal{A}^{opp}$ is abelian.
\end{lemma}
\begin{proof}
The first statement is straightforward.
To see that $\mathcal{A}$ is additive if and only if $\mathcal{A}^{opp}$
is additive, recall that additivity can be characterized by
the existence of a zero object and direct sums, which are both
preserved when passing to the opposite category.
Finally, to see that
$\mathcal{A}$ is abelian if and only if $\mathcal{A}^{opp}$ is abelian,
observes that kernels, cokernels, images and coimages in
$\mathcal{A}^{opp}$ correspond to
cokernels, kernels, coimages and images in $\mathcal{A}$,
respectively.
\end{proof}
\begin{definition}
\label{definition-injective-surjective}
Let $f : x \to y$ be a morphism in an abelian category.
\begin{enumerate}
\item We say $f$ is {\it injective} if $\Ker(f) = 0$.
\item We say $f$ is {\it surjective} if $\Coker(f) = 0$.
\end{enumerate}
If $x \to y$ is injective, then we say that $x$ is a {\it subobject}
of $y$ and we use the notation $x \subset y$. If $x \to y$ is
surjective, then we say that $y$ is a {\it quotient} of $x$.
\end{definition}
\begin{lemma}
\label{lemma-characterize-injective}
Let $f : x \to y$ be a morphism in an abelian category $\mathcal{A}$. Then
\begin{enumerate}
\item $f$ is injective if and only if $f$ is a monomorphism, and
\item $f$ is surjective if and only if $f$ is an epimorphism.
\end{enumerate}
\end{lemma}
\begin{proof}
Proof of (1). Recall that $\Ker(f)$ is an object representing the
functor sending $z$ to
$\Ker(\Mor_\mathcal{A}(z, x) \to \Mor_\mathcal{A}(z, y))$, see
Definition \ref{definition-kernel}.
Thus $\Ker(f)$ is $0$ if and only if
$\Mor_\mathcal{A}(z, x) \to \Mor_\mathcal{A}(z, y)$
is injective for all $z$ if and only if $f$ is a monomorphism.
The proof of (2) is similar.
\end{proof}
\noindent
In an abelian category, if $x \subset y$ is a subobject,
then we denote
$$
y/x = \Coker(x \to y).
$$
\begin{lemma}
\label{lemma-colimit-abelian-category}
Let $\mathcal{A}$ be an abelian category.
All finite limits and finite colimits exist in $\mathcal{A}$.
\end{lemma}
\begin{proof}
To show that finite limits exist it suffices to show
that finite products and equalizers exist, see
Categories, Lemma \ref{categories-lemma-finite-limits-exist}.
Finite products exist
by definition and the equalizer of $a, b : x \to y$ is
the kernel of $a - b$. The argument for finite colimits
is similar but dual to this.
\end{proof}
\begin{example}
\label{example-fibre-product-pushouts}
Let $\mathcal{A}$ be an abelian category.
Pushouts and fibre products in $\mathcal{A}$ have the following
simple descriptions:
\begin{enumerate}
\item If $a : x \to y$, $b : z \to y$ are morphisms in $\mathcal{A}$, then
we have the fibre product:
$x \times_y z = \Ker((a, -b) : x \oplus z \to y)$.
\item If $a : y \to x$, $b : y \to z$ are morphisms in $\mathcal{A}$, then
we have the pushout:
$x \amalg_y z = \Coker((a, -b) : y \to x \oplus z)$.
\end{enumerate}
\end{example}
\begin{definition}
\label{definition-exact}
Let $\mathcal{A}$ be an additive category. Consider a sequence of morphisms
$$
\ldots \to x \to y \to z \to \ldots
\quad\text{or}\quad
x_1 \to x_2 \to \ldots \to x_n
$$
in $\mathcal{A}$. We say such a sequence is a {\it complex} if the
composition of any two consecutive (drawn) arrows is zero.
If $\mathcal{A}$ is abelian then we say a complex of the first
type above is {\it exact at $y$} if $\Im(x \to y) = \Ker(y \to z)$
and we say a complex of the second kind is {\it exact at $x_i$}
where $1 < i < n$ if
$\Im(x_{i - 1} \to x_i) = \Ker(x_i \to x_{i + 1})$. We a
sequence as above is {\it exact} or is an {\it exact sequence} or is an
{\it exact complex} if it is a complex and exact at every object (in
the first case) or exact at $x_i$ for all $1 < i < n$ (in the second case).
There are variants of these notions for sequences of the form
$$
\ldots \to x_{-3} \to x_{-2} \to x_{-1}
\quad\text{and}\quad
x_1 \to x_2 \to x_3 \to \ldots
$$
A {\it short exact sequence} is an exact complex of the form
$$
0 \to A \to B \to C \to 0.
$$
\end{definition}
\noindent
In the following lemma we assume the reader knows what it means
for a sequence of abelian groups to be exact.
\begin{lemma}
\label{lemma-check-exactness}
Let $\mathcal{A}$ be an abelian category.
Let $0 \to M_1 \to M_2 \to M_3 \to 0$ be a complex of $\mathcal{A}$.
\begin{enumerate}
\item $M_1 \to M_2 \to M_3 \to 0$ is exact if and only if
$$
0 \to \Hom_\mathcal{A}(M_3, N) \to
\Hom_\mathcal{A}(M_2, N) \to \Hom_\mathcal{A}(M_1, N)
$$
is an exact sequence of abelian groups for all objects $N$ of
$\mathcal{A}$, and
\item $0 \to M_1 \to M_2 \to M_3$ is exact if and only if
$$
0 \to \Hom_\mathcal{A}(N, M_1) \to \Hom_\mathcal{A}(N, M_2) \to
\Hom_\mathcal{A}(N, M_3)
$$
is an exact sequence of abelian groups for all objects $N$ of $\mathcal{A}$.
\end{enumerate}
\end{lemma}
\begin{proof}
Omitted. Hint: See
Algebra, Lemma \ref{algebra-lemma-hom-exact}.
\end{proof}
\begin{definition}
\label{definition-ses-split}
Let $\mathcal{A}$ be an abelian category.
Let $i : A \to B$ and $q : B \to C$ be morphisms
of $\mathcal{A}$ such that
$0 \to A \to B \to C \to 0$ is a short
exact sequence. We say the short exact
sequence is {\it split} if there exist
morphisms $j : C \to B$ and $p : B \to A$ such
that $(B, i, j, p, q)$ is the direct sum of $A$ and $C$.
\end{definition}
\begin{lemma}
\label{lemma-ses-split}
Let $\mathcal{A}$ be an abelian category.
Let $0 \to A \to B \to C \to 0$
be a short exact sequence.
\begin{enumerate}
\item Given a morphism $s : C \to B$ left inverse to
$B \to C$, there exists a unique $\pi : B \to A$
such that $(s, \pi)$ splits the short exact sequence
as in Definition \ref{definition-ses-split}.
\item Given a morphism $\pi : B \to A$ right inverse to
$A \to B$, there exists a unique $s : C \to B$
such that $(s, \pi)$ splits the short exact sequence
as in Definition \ref{definition-ses-split}.
\end{enumerate}
\end{lemma}
\begin{proof}
Omitted.
\end{proof}
\begin{lemma}
\label{lemma-characterize-cartesian}
Let $\mathcal{A}$ be an abelian category. Let
$$
\xymatrix{
w\ar[r]^f\ar[d]_g
& y\ar[d]^h\\
x\ar[r]^k
& z
}
$$
be a commutative diagram.
\begin{enumerate}
\item The diagram is cartesian if and only if
$$
0 \to w \xrightarrow{(g, f)} x \oplus y \xrightarrow{(k, -h)} z
$$
is exact.
\item The diagram is cocartesian if and only if
$$
w \xrightarrow{(g, -f)} x \oplus y \xrightarrow{(k, h)} z \to 0
$$
is exact.
\end{enumerate}
\end{lemma}
\begin{proof}
Let $u = (g, f) : w \to x \oplus y$ and $v = (k, -h) : x \oplus y \to z$.
Let $p : x \oplus y \to x$ and $q : x \oplus y \to y$ be the canonical
projections. Let $i : \Ker(v) \to x \oplus y$ be the canonical
injection. By Example \ref{example-fibre-product-pushouts}, the diagram is
cartesian if and only if there exists an isomorphism
$r : \Ker(v) \to w$ with $f \circ r = q \circ i$ and
$g \circ r = p \circ i$. The sequence
$0 \to w \overset{u} \to x \oplus y \overset{v} \to z$ is exact if and
only if there exists an isomorphism $r : \Ker(v) \to w$ with
$u \circ r = i$. But given $r : \Ker(v) \to w$, we have
$f \circ r = q \circ i$ and $g \circ r = p \circ i$ if and
only if $q \circ u \circ r= f \circ r = q \circ i$ and
$p \circ u \circ r = g \circ r = p \circ i$, hence if and only if
$u \circ r = i$. This proves (1), and then (2) follows by duality.
\end{proof}
\begin{lemma}
\label{lemma-cartesian-kernel}
Let $\mathcal{A}$ be an abelian category. Let
$$
\xymatrix{
w\ar[r]^f\ar[d]_g
& y\ar[d]^h\\
x\ar[r]^k
& z
}
$$
be a commutative diagram.
\begin{enumerate}
\item If the diagram is cartesian, then the morphism
$\Ker(f)\to\Ker(k)$ induced by $g$ is an isomorphism.
\item If the diagram is cocartesian, then the morphism
$\Coker(f)\to\Coker(k)$ induced by $h$ is an isomorphism.
\end{enumerate}
\end{lemma}
\begin{proof}
Suppose the diagram is cartesian. Let
$e:\Ker(f)\to\Ker(k)$ be induced by $g$. Let
$i:\Ker(f)\to w$ and $j:\Ker(k)\to x$ be the canonical
injections. There exists $t:\Ker(k)\to w$ with $f\circ t=0$
and $g\circ t=j$. Hence, there exists $u:\Ker(k)\to\Ker(f)$
with $i\circ u=t$. It follows
$g\circ i\circ u\circ e=g\circ t\circ e=j\circ e=g\circ i$ and
$f\circ i\circ u\circ e=0=f\circ i$, hence $i\circ u\circ e=i$. Since
$i$ is a monomorphism this implies $u\circ e=\text{id}_{\Ker(f)}$.
Furthermore, we have $j\circ e\circ u=g\circ i\circ u=g\circ t=j$.
Since $j$ is a monomorphism this implies $e\circ u=\text{id}_{\Ker(k)}$.
This proves (1). Now, (2) follows by duality.
\end{proof}
\begin{lemma}
\label{lemma-cartesian-cocartesian}
Let $\mathcal{A}$ be an abelian category. Let
$$
\xymatrix{
w\ar[r]^f\ar[d]_g
& y\ar[d]^h\\
x\ar[r]^k
& z
}
$$
be a commutative diagram.
\begin{enumerate}
\item If the diagram is cartesian and $k$ is an epimorphism,
then the diagram is cocartesian and $f$ is an epimorphism.
\item If the diagram is cocartesian and $g$ is a monomorphism,
then the diagram is cartesian and $h$ is a monomorphism.
\end{enumerate}
\end{lemma}
\begin{proof}
Suppose the diagram is cartesian and $k$ is an epimorphism.
Let $u = (g, f) : w \to x \oplus y$ and let $v = (k, -h) : x \oplus y \to z$.
As $k$ is an epimorphism, $v$ is an epimorphism, too. Therefore
and by Lemma \ref{lemma-characterize-cartesian}, the sequence
$0\to w\overset{u}\to x\oplus y\overset{v}\to z\to 0$ is exact. Thus, the
diagram is cocartesian by Lemma \ref{lemma-characterize-cartesian}. Finally,
$f$ is an epimorphism by Lemma \ref{lemma-cartesian-kernel} and
Lemma \ref{lemma-characterize-injective}. This proves (1), and (2)
follows by duality.
\end{proof}
\begin{lemma}
\label{lemma-epimorphism-universal-abelian-category}
Let $\mathcal{A}$ be an abelian category.
\begin{enumerate}
\item If $x \to y$ is surjective, then for every $z \to y$ the
projection $x \times_y z \to z$ is surjective.
\item If $x \to y$ is injective, then for every $x \to z$ the
morphism $z \to z \amalg_x y$ is injective.
\end{enumerate}
\end{lemma}
\begin{proof}
Immediately from Lemma \ref{lemma-characterize-injective} and
Lemma \ref{lemma-cartesian-cocartesian}.
\end{proof}
\begin{lemma}
\label{lemma-check-exactness-fibre-product}
Let $\mathcal{A}$ be an abelian category. Let $f:x\to y$ and $g:y\to z$
be morphisms with $g\circ f=0$. Then, the following statements are equivalent:
\begin{enumerate}
\item The sequence $x\overset{f}\to y\overset{g}\to z$ is exact.
\item For every $h:w\to y$ with $g\circ h=0$ there exist an object $v$,
an epimorphism $k:v\to w$ and a morphism $l:v\to x$ with $h\circ k=f\circ l$.
\end{enumerate}
\end{lemma}
\begin{proof}
Let $i:\Ker(g)\to y$ be the canonical injection. Let
$p:x\to\Coim(f)$ be the canonical projection. Let
$j:\Im(f)\to\Ker(g)$ be the canonical injection.
\medskip\noindent
Suppose (1) holds. Let $h:w\to y$ with $g\circ h=0$. There exists
$c:w\to\Ker(g)$ with $i\circ c=h$.
Let $v=x\times_{\Ker(g)}w$ with canonical projections
$k:v\to w$ and $l:v\to x$, so that $c\circ k=j\circ p\circ l$.
Then, $h\circ k=i\circ c\circ k=i\circ j\circ p\circ l=f\circ l$.
As $j\circ p$ is an epimorphism by hypothesis, $k$ is an
epimorphism by Lemma \ref{lemma-cartesian-cocartesian}. This implies (2).
\medskip\noindent
Suppose (2) holds. Then, $g\circ i=0$. So, there are an object
$w$, an epimorphism $k:w\to\Ker(g)$ and a morphism
$l:w\to x$ with $f\circ l=i\circ k$. It follows
$i\circ j\circ p\circ l=f\circ l=i\circ k$. Since $i$ is a
monomorphism we see that $j\circ p\circ l=k$ is an epimorphism.
So, $j$ is an epimorphisms and thus an isomorphism. This implies (1).
\end{proof}
\begin{lemma}
\label{lemma-exact-kernel-sequence}
Let $\mathcal{A}$ be an abelian category. Let
$$
\xymatrix{
x \ar[r]^f \ar[d]^\alpha &
y \ar[r]^g \ar[d]^\beta &
z \ar[d]^\gamma\\
u \ar[r]^k & v \ar[r]^l & w
}
$$
be a commutative diagram.
\begin{enumerate}
\item If the first row is exact and $k$ is a monomorphism, then the induced
sequence $\Ker(\alpha) \to \Ker(\beta) \to \Ker(\gamma)$
is exact.
\item If the second row is exact and $g$ is an epimorphism, then the induced
sequence
$\Coker(\alpha) \to \Coker(\beta) \to \Coker(\gamma)$
is exact.
\end{enumerate}
\end{lemma}
\begin{proof}
Suppose the first row is exact and $k$ is a monomorphism. Let
$a:\Ker(\alpha)\to\Ker(\beta)$ and
$b:\Ker(\beta)\to\Ker(\gamma)$ be the induced morphisms.
Let $h:\Ker(\alpha)\to x$, $i:\Ker(\beta)\to y$ and
$j:\Ker(\gamma)\to z$ be the canonical injections. As $j$ is
a monomorphism we have $b\circ a=0$. Let $c:s\to\Ker(\beta)$
with $b\circ c=0$. Then, $g\circ i\circ c=j\circ b\circ c=0$. By
Lemma \ref{lemma-check-exactness-fibre-product} there are an object $t$, an
epimorphism $d:t\to s$ and a morphism $e:t\to x$ with
$i\circ c\circ d=f\circ e$. Then,
$k\circ \alpha\circ e=\beta\circ f\circ e=\beta\circ i\circ c\circ d=0$.
As $k$ is a monomorphism we get $\alpha\circ e=0$. So, there exists
$m:t\to\Ker(\alpha)$ with $h\circ m=e$. It follows
$i\circ a\circ m=f\circ h\circ m=f\circ e=i\circ c\circ d$.
As $i$ is a monomorphism we get $a\circ m=c\circ d$. Thus,
Lemma \ref{lemma-check-exactness-fibre-product} implies (1), and then
(2) follows by duality.
\end{proof}
\begin{lemma}
\label{lemma-snake}
Let $\mathcal{A}$ be an abelian category. Let
$$
\xymatrix{
& x \ar[r]^f \ar[d]^\alpha &
y \ar[r]^g \ar[d]^\beta &
z \ar[r] \ar[d]^\gamma &
0 \\
0 \ar[r] & u \ar[r]^k & v \ar[r]^l & w
}
$$
be a commutative diagram with exact rows.
\begin{enumerate}
\item There exists a unique morphism
$\delta : \Ker(\gamma) \to \Coker(\alpha)$
such that the diagram
$$
\xymatrix{
y \ar[d]_\beta &
y \times_z \Ker(\gamma) \ar[l]_{\pi'} \ar[r]^{\pi} &
\Ker(\gamma) \ar[d]^\delta \\
v \ar[r]^{\iota'} & \Coker(\alpha) \amalg_u v &
\Coker(\alpha) \ar[l]_\iota
}
$$
commutes, where $\pi$ and $\pi'$ are the canonical projections
and $\iota$ and $\iota'$ are the canonical coprojections.
\item The induced sequence
$$
\Ker(\alpha) \xrightarrow{f'} \Ker(\beta) \xrightarrow{g'}
\Ker(\gamma) \xrightarrow{\delta} \Coker(\alpha) \xrightarrow{k'}
\Coker(\beta) \xrightarrow{l'} \Coker(\gamma)
$$
is exact. If $f$ is injective then so is $f'$, and if $l$ is
surjective then so is $l'$.
\end{enumerate}
\end{lemma}
\begin{proof}
As $\pi$ is an epimorphism and $\iota$ is a monomorphism by
Lemma \ref{lemma-cartesian-cocartesian}, uniqueness of $\delta$ is clear.
Let $p = y \times_z \Ker(\gamma)$ and $q = \Coker(\alpha) \amalg_u v$.
Let $h : \Ker(\beta) \to y$, $i : \Ker(\gamma) \to z$ and
$j : \Ker(\pi) \to p$ be the canonical injections.
Let $\pi'' : u \to \Coker(\alpha)$ be the canonical projection.
Keeping in mind Lemma \ref{lemma-cartesian-cocartesian} we get a commutative
diagram with exact rows
$$
\xymatrix{
0 \ar[r] &
\Ker(\pi) \ar[r]^j &
p \ar[r]^{\pi} \ar[d]_{\pi'} &
\Ker(\gamma) \ar[d]_i \ar[r] & 0 \\
& x \ar[r]^f \ar[d]_\alpha & y \ar[r]^g \ar[d]_\beta &
z \ar[d]_\gamma \ar[r] & 0 \\
0 \ar[r] & u \ar[r]^k \ar[d]_{\pi''} &
v \ar[r]^l \ar[d]_{\iota'} & w & \\
0 \ar[r] & \Coker(\alpha) \ar[r]^\iota & q & &
}
$$
As $l \circ \beta \circ \pi' = \gamma \circ i \circ \pi = 0$ and as the third
row of the diagram above is exact, there is an $a : p \to u$
with $k \circ a = \beta \circ \pi'$. As the upper right quadrangle of the
diagram above is cartesian, Lemma \ref{lemma-cartesian-kernel} yields an
epimorphism $b : x \to \Ker(\pi)$ with $\pi' \circ j \circ b = f$.
It follows
$k \circ a \circ j \circ b = \beta \circ \pi' \circ j \circ b =
\beta \circ f = k \circ \alpha$.
As $k$ is a monomorphism this implies $a \circ j \circ b = \alpha$. It follows
$\pi'' \circ a \circ j \circ b = \pi'' \circ \alpha = 0$. As $b$ is an
epimorphism this
implies $\pi'' \circ a \circ j = 0$. Therefore, as the top row of the diagram
above is exact, there exists
$\delta : \Ker(\gamma) \to \Coker(\alpha)$ with
$\delta \circ \pi = \pi'' \circ a$. It follows
$\iota \circ \delta \circ \pi = \iota \circ \pi'' \circ a =
\iota' \circ k \circ a = \iota' \circ \beta \circ \pi'$
as desired.
\medskip\noindent
As the upper right quadrangle in the diagram above is cartesian there
is a $c : \Ker(\beta) \to p$ with $\pi' \circ c = h$ and $\pi \circ c = g'$.
It follows
$\iota \circ \delta \circ g' = \iota \circ \delta \circ \pi \circ c =
\iota' \circ \beta \circ \pi' \circ c = \iota' \circ \beta \circ h = 0$.
As $\iota$ is a monomorphism this implies $\delta \circ g' = 0$.
\medskip\noindent
Next, let $d : r \to \Ker(\gamma)$ with $\delta \circ d = 0$. Applying
Lemma \ref{lemma-check-exactness-fibre-product} to the exact sequence
$p \xrightarrow{\pi} \Ker(\gamma) \to 0$ and $d$ yields an object $s$,
an epimorphism $m : s \to r$ and a morphism $n : s \to p$ with
$\pi \circ n = d \circ m$. As
$\pi'' \circ a \circ n = \delta \circ d \circ m = 0$,
applying Lemma \ref{lemma-check-exactness-fibre-product} to the exact sequence
$x \xrightarrow{\alpha} u \xrightarrow{p} \Coker(\alpha)$ and
$a \circ n$ yields an object $t$, an epimorphism $\varepsilon : t \to s$ and
a morphism $\zeta : t \to x$ with
$a \circ n \circ \varepsilon = \alpha \circ \zeta$.
It holds
$\beta \circ \pi' \circ n \circ \varepsilon =
k \circ \alpha \circ \zeta = \beta \circ f \circ \zeta$.
Let $\eta = \pi' \circ n \circ \varepsilon - f \circ \zeta : t \to y$. Then,
$\beta \circ \eta = 0$. It follows that there is a
$\vartheta : t \to \Ker(\beta)$ with $\eta = h \circ \vartheta$. It holds
$i \circ g' \circ \vartheta = g \circ h \circ \vartheta =
g \circ \pi' \circ n \circ \varepsilon - g \circ f \circ \zeta =
i \circ \pi \circ n \circ \varepsilon = i \circ d \circ m \circ \varepsilon$.
As $i$ is a monomorphism we get
$g' \circ \vartheta = d \circ m \circ \varepsilon$.
Thus, as $m \circ \varepsilon$ is an epimorphism,
Lemma \ref{lemma-check-exactness-fibre-product} implies that
$\Ker(\beta) \xrightarrow{g'} \Ker(\gamma) \xrightarrow{\delta} \Coker(\alpha)$
is exact. Then, the claim follows by Lemma \ref{lemma-exact-kernel-sequence}
and duality.
\end{proof}
\begin{lemma}
\label{lemma-snake-natural}
Let $\mathcal{A}$ be an abelian category. Let
$$
\xymatrix{
& & & x\ar[ld]\ar[rr]\ar[dd]^(.4)\alpha
& & y\ar[ld]\ar[rr]\ar[dd]^(.4)\beta
& & z\ar[ld]\ar[rr]\ar[dd]^(.4)\gamma
& & 0\\
& & x'\ar[rr]\ar[dd]^(.4){\alpha'}
& & y'\ar[rr]\ar[dd]^(.4){\beta'}
& & z'\ar[rr]\ar[dd]^(.4){\gamma'}
& & 0
& \\
& 0\ar[rr]
& & u\ar[ld]\ar[rr]
& & v\ar[ld]\ar[rr]
& & w\ar[ld]
& & \\
0\ar[rr]