940 B
940 B
#Math #CT
Categories
Categories contain:
- A collection of objects
- A collection of morphisms (also called arrows) connecting objects denoted by
f: S \to T, wherefis the morphism,Sis the source, andTis the target- Note:
f: A \to Bandg: A \to BDOES NOT IMPLYf = g - Formally this can also be expressed as a relation between a collection of objects and a collection of morphisms
- Morphisms have a notion of composition, that being if
f: A \to B,g: B \to C, theng \circ f: A \to C
- Note:
There are three rules for categories:
- Associativity: For morphisms
a,b, andc,(a \circ b) \circ c = a \circ (b \circ c) - Closed composition: If for morphisms
aandb,a \circ bexists, then there must be morphismc = a \circ b - Identity morphisms: For every object
Ain a category, there must be an identity morphism\text{id}_A: A \to A