Smallest Category => No Objects
Is this Void in the Category of All Categories?
Generate Categories from Graphs
=> Free Categories
1. Add Identity Arrows
2. Compose Morphisms
Orders
minimum order to be a category?
Partial order:
Preorder:
every two objects need to relate to each other
Example: reachability in a directed graph with cycles
Example: numbers <=
a <= b & b <= c => a <= c
Total order:
a <= b & b <= a => a == b
=> Partial order
Not all sets are related. For example: {1} and {2,3}
=> Partial order
Not all types are subtypes.
associative
neutral element
(a - b) - c = a - (b - c)
0 - a = a
a - 0 = a
not associative
no neutral element
(a - b) - c = a - (b - c)
(5 - 4) - 1 = 5 - (4 - 1)
0 = 2
0 - a = -a
a - 0 = a
a & (b & c) = (a & b) & c
a | (b | c) = (a | b) | c
a & true = a
true & a = a
a | false = a
false | a = a
Monoid => Mono => Single object Category
mappend maps from integers to adders
mappend : Int -> (Int -> Int)
Morphisms => Set (HomSet)
only for locally small categories
id = (AND True)
id . (AND False) = (AND False)
(AND False) . (AND False) = (AND False)
(AND False) . id = (AND False)
id . id = id