Monics and epics

An arrow f:aβ†’b in a category C is called monic (or a monomorphism) if it is left-cancellable; i.e., if whenever g1,g2:cβ†’a are arrows such that f∘g1=f∘g2, then g1=g2.

Dually, the arrow f is called epic (or epi, or an epimorphism) if it is right-cancellable; i.e., if whenever g1,g2:bβ†’c are arrows such that g1∘f=g2∘f, then g1=g2.

  1. In Set, show that a set map f:X→Y is monic (respectively, epic) if and only if it is injective (respectively, surjective).
  2. Show that, in a general category C, if an arrow f:a→b is an isomorphism (i.e., invertible), then f is both monic and epic.
  3. Show that in Ring, the ring inclusion i:Z→Q is both monic and epic, even though the map i is not surjective.