a very very small intro to category theory

to model something we can use:

A category is a

Where a homomorphism is a map between two algebraic structures of the same type that preserves the operations of the structures. We define

Examples:

  1. Let O={X,Y,Z,...}O = \{X, Y, Z, ...\} collection of sets
  1. Let O={X,Y,Z,...}O = \{X, Y, Z, ...\} collection of natural numbers
  1. Let O={A,B,C,...}O = \{A, B, C, ...\} collection of natural numbers
  1. Let O={P,Q,R,...}O = \{P, Q, R, ...\} collection of propositions about natural numbers

We define product operation ×\times: C    s1:CA,s2:CB,!  tCA×B\forall C \;|\; s1 : C \rightarrow A, s2 : C \rightarrow B, \exists!\; t \:|\: C \rightarrow A \times B (note that the product is unique modulo isomorphisms.)

                    -------- C --------
                    |        : t      |              
                    |        :        |              
                    |        v        |              
                 s1 |      A x B      | s2                
                    |   p1 |   |  p2  |              
                    |      |   |      |
                    |      v   v      |
                    -----> A   B <-----

Note that t is unique. If this happens we say “the diagram commutes”: s1=p1ts1 = p1 \circ t, s2=p2ts2 = p2 \circ t.

In the natural number with \le example:

                    n       m   
                    ^       ^    
                    |\     /|       
                    | \   / |       
                    |  \ /  |
                    |   k   |
                    |   ^   |
                    |   :   |
                    --- l ---

knk \le n, kmk \le m, l,lnlm    lk\forall l, l \le n \land l \le m \implies l \le k

Some examples:

  1.  4       9       
     ^       ^    
     |\     /|       
     | \   / |       
     |  \ /  |
     |   3   |
     |   ^   |
     |   :   |
     --- 2 ---
    34,393 \le 4, 3 \le 9 and l,l4l9    l3\forall l, l \le 4 \land l \le 9 \implies l \le 3 : this is not correct, since e.g. l=4l = 4 does not satisfy 434 \le 3
  2.  4       9     
     ^       ^    
     |\     /|       
     | \   / |       
     |  \ /  |         
     |   4   |
     |   ^   |
     |   :   |
     --- 2 ---
    44,494 \le 4, 4 \le 9 and l,l4l9    l3\forall l, l \le 4 \land l \le 9 \implies l \le 3 : this is correct, since any number that is 4  (0,1,2,3)\le 4\; (0, 1, 2, 3) and 9  (0,1,2,3,4,5,6,7,8)\le 9\; (0, 1, 2, 3, 4, 5, 6, 7, 8) is also 4\le 4
  3.  P       Q    
     ^       ^    
     |\     /|       
     | \   / |       
     |  \ /  |        
     | P & Q |
     |   ^   |
     |   :   |
     --- R ---
    (PQ)=>P,(PQ)=>Q(P \land Q) => P, (P \land Q) => Q and R,(R    PR    Q)    (R    PQ)\forall R, (R \implies P \land R \implies Q) \implies (R \implies P \land Q) : this is correct, since any prop that     \implies P and Q also     \implies P & Q
  4. Let O=category  of  sets  of  cardinality2O = category\; of\; sets\; of\; cardinality \le 2: even though it does not have all products. Consider A={,{}}A = \{\empty, \{\empty\}\} and B={,{}}B = \{\empty, \{\empty\}\}, we know that the product should have four elements! but the category OO only contains elements with size 2\le 2, so this such product does not exist

A few last notes:

A colimit is like product but arrows go in the opposite direction:

        ------> D <-------
        |       ^ t      |
        |       :        |
        |       :        |
    s1  |       Q        | s2
        |  p1 ^   ^  p2  |
        |     |   |      |
        |     |   |      |
        ----- A   B ------

for sets this corresponds to disjoint union (“smallest thing”) an example I don’t understand:

                 f
              A --> B
            g |     :
              v     v
              C .. > B |_| C / f ~ g ("B disjoint union C quotiented by ~")

—> the product is unique modulo isomorphisms another example I don’t understand:

             C ---- D
            A        E              ===>                E,A         or          A,C - D,E
            |       /                                 /  |                       |  /
            |      /                               F,D - B,C                     B,F
            |     /
            B    F

and defining different colimits gives you different ways to glue up these things and define different shapes (e.g. torus) —> you need category theory to discuss the glueing