Notes from Paolo Aluffi's Algebra: Chapter 0. A course on modern algebra written from the get-go in the language of category theory.

Set theory and categories

naive set theory

set theory is a field in itself. its proper treatment (e.g. Zermelo-Fränkel axioms with axiom of choice or the Von Neumann–Bernays–Gödel extension) is beyond our scope.

sets

sets are defined by a precise recipe determining which elements are in them. e.g.

A:={1,2,3} A := \left{1,2,3\right} (TeX formula: 
A := \left\{1,2,3\right\}
)

order and repetitions are inmaterial (#multisets will be defined later):

{1,2,3}={1,3,2}={1,2,1,3,3,2} \left{1,2,3\right} = \left{1,3,2\right} = \left{1,2,1,3,3,2\right} (TeX formula: 
\left\{1,2,3\right\} = \left\{1,3,2\right\} = \left\{1,2,1,3,3,2\right\}
)

definitions may use a pattern to obviate a larger list,

E={...,2,0,2,4,...} E = \left{..., -2, 0, 2, 4, ...\right} (TeX formula: 
E = \left\{..., -2, 0, 2, 4, ...\right\}
)

or reference a subset satisfying some property of another set.1 this is useful for bigger sets, infinite sets, and sets which aren't even countable (an infinite list is not enough), as famously proven by Cantor for the reals and other sets with cardinality bigger than ℵ0.

A={sS|ssatisfiesP} A = \left{s ∈ S | s \; \text{satisfies} \; P\right} (TeX formula: 
A = \left\{s ∈ S | s \; \text{satisfies} \; P\right\}
)

term singleton refers to any set with single element.

quantifiers from predicate and higher-order logics are a convenient way to condense logical formulas over large (potentially infinite) sets:

  • existential ∃: read as "there exists", is an n-ary extension of the logical OR, meaning (a)P(a)=P(a1)...P(an)(TeX formula: (∃a) P(a) = P(a_1) ∨ ... ∨ P(a_n)) .
  • universal ∀: read as "for all", is an n-ary extension of the logical AND, meaning (a)P(a)=P(a1)...P(an)(TeX formula: (∀a) P(a) = P(a_1) ∧ ... ∧ P(a_n)) .
  • ∃! is used to mean "there exists a unique".

the order in which quantifiers are written may make a difference. e.g:

(a)(b)b=2a (∀a∈\mathbb{Z})(∃b∈\mathbb{Z}) \; b = 2a (TeX formula: 
(∀a∈\mathbb{Z})(∃b∈\mathbb{Z}) \; b = 2a
)

is true. for every integer it's true that there is another integer which is its double. whereas the following is false. there is no single integer which is the double of every integer.

(b)(a)b=2a (∃b∈\mathbb{Z})(∀a∈\mathbb{Z}) \; b = 2a (TeX formula: 
(∃b∈\mathbb{Z})(∀a∈\mathbb{Z}) \; b = 2a
)

inclusion of sets

we will use S⊆T for subsets and S⊊T for proper subset. the subset operator can be defined using the element operator and the logical operator ⇒:

sSsT s∈S \implies s∈T (TeX formula: 
s∈S \implies s∈T
)

or more formally, using quantifiers:

(s)sSsT (∀s) \; s∈S \implies s∈T (TeX formula: 
(∀s) \; s∈S \implies s∈T
)

note that:

  • for all sets, S(TeX formula: ∅⊆S)

  • for all sets, SS(TeX formula: S⊆S)

  • STTSS=T(TeX formula: S⊆T \; ∧ T⊆S \; ⇔ \; S=T)

symbol |S| denotes cardinality. if S and T are finite, then:

ST|S||T| S\subseteq T \Rightarrow \left| S\right| \leq \left| T\right| (TeX formula: 
S\subseteq T \Rightarrow \left| S\right| \leq \left| T\right|
)

the subsets of a set S form another set, called its power set or the set of parts. this is denoted 𝒫 (S) or 2S, because |𝒫 (S)| = 2|S| if S is finite.

operations

  • ∪ : union
  • ∩ : intersection
  • \ : difference
    • S \ s: complement of a subset
  • ∐: disjoint union
  • × : Cartesian product: S×T=(s,t):sS,tT(TeX formula: S×T={(s,t) : s∈S, t∈T})

and their indexed n-ary generalizations. e.g:

i=1nSi=S1S2Sn \bigcap_{i=1}^{n} S_{i} = S_{1}\cap S_{2}\cap \ldots \cap S_{n} (TeX formula: 
\bigcap_{i=1}^{n} S_{i} = S_{1}\cap S_{2}\cap \ldots \cap S_{n}
)

more generally, if 𝒫 is a set of sets, we may write:

S𝒫,S𝒫,S𝒫,S𝒫 \bigcap_{S∈𝒫}, \bigcup_{S∈𝒫}, ∐{S∈𝒫}, \prod (TeX formula: 
\bigcap_{S∈𝒫}, \bigcup_{S∈𝒫}, ∐_{S∈𝒫}, \prod_{S∈𝒫}
)

there is an important subtlety about these definitions. if all S∈𝒫 are nonempty, does it follow that ΠS𝒫(TeX formula: Π_{S∈𝒫}) is nonempty? if 𝒫 is finite this is obviously true, but if it's infinite this thorny issue amounts to the axiom of choice, which in 1963 Paul Cohen proved to be an unprovable statement within ZF set theory. This is a constructive example of Gödel's first incompleteness theorem at work.

equivalence relations, partitions, quotients

intuitively, a relation is an affinity among selections of elements of S. For example, for all practical purposes the relation < on ℤ can be perfectly captured and defined by the set of pairs (a, b) of integers such that a<b. This leads to a straighforward definition of the notation of any relation.

a relation on set S is simply a subset R of the product S×S:

aRb(a,b)R,RS×S aRb ⇔ (a,b)∈R, \; R⊆S×S (TeX formula: 
aRb ⇔ (a,b)∈R, \; R⊆S×S
)

the prototype of a well-behaved relation is =, which corresponds to "the diagonal" in S×S:

{(a,b)S×S|a=b}={(a,a)|aS}S×S { \left( a,b\right) \in S\times S| a= b} =\left{ \left( a,a\right) | a\in S\right} \subseteq S\times S (TeX formula: 
\{ \left( a,b\right) \in S\times S| a= b\} =\left\{  \left( a,a\right) | a\in S\right\} \subseteq S\times S
)

if ~ denotes the equality relation for a moment, then ~ satisfies the following important properties:

  • reflexivity: (∀a ∈ S) a ∼ a
  • symmetry: (∀a ∈ S) (∀b ∈ S) a ∼ b ⟹ b ∼ a
  • transitivity: (∀a ∈ S) (∀b ∈ S) (∀c ∈ S), (a ∼ b ∧ b ∼ c) ⟹ a ∼ c

functions

multisets, indexed sets

composition

injections, surjections, bijections

monomorphisms and epimorphisms

canonical decomposition

categories

morphisms

isomorphisms

monomorphisms and epimorphisms II

universal properties

initial and final objects

universal properties

quotients

products

coproducts

Groups

Rings and modules

Groups II

Irreducibility and factorization in integral domains

Linear algebra

Fields

Linear algebra II

Homological algebra


  1. Which can still lead to pathologies such as Russell's paradox. All is well so long as S is already known to be a set.