Definition 1.1 (Category). A category C consists of:

  • (a)
    a collection obC of objects A,B,C,.
  • (b)
    a collection morC of morphisms f,g,h,.
  • (c)
    two operations dom, cod from morC to obC: we write f:AB for “f is a morphism and domf=A and codf=B”.
  • (d)
    an operation from obC to morC sending A to 1A:AA.
  • (e)
    a partial binary operation (f,g)fg on morC, such that fg is defined if and only if domf=codg, and in this case we have domfg=domg and codfg=codf.

These are subject to the axioms:

  • (f)
    f1A=f and 1Ag=g when the composites are defined.
  • (g)
    f(gh)=(fg)h whenever fg and gh are defined.