Epimorphism and monomorphism explained without math?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
5
down vote

favorite
1












I'm trying to understand category theory to increase my coding skills and epimorphism and monomorphism aren't clear to me.

Unfortunately, my last formal education was when I was 12 due to circumstances and I have a hard time understanding algebraic expressions.



I understand what morphisms are and what isomorphism is. $f : X to Y$ and $g : Y to X$. Meaning, if there is a morphism going from $X$ to $Y$ then there must be a morphism that goes back and reverses it.



But I don't understand what epimorphism and monomorphism are. Could someone please elaborate in a way a non-mathematician could understand?







share|cite|improve this question






















  • hm... this is tough to do without writing fluff (as I am finding out.) I assume you dont want tags group theory or general topology.
    – Andres Mejia
    Aug 16 at 20:03






  • 1




    @AndresMejia I can understand pseudo-math, if it looks like code syntax. I understand logic, but when I see symbols like a reversed A and reversed E it's confusing. I understand it must be hard to explain, if there is anything I can do to make it easier I'd love to help.
    – J. Reku
    Aug 16 at 20:13






  • 2




    @DavidC.Ullrich Firstly, general curiousity. Secondary, functional programming. I want deep knowledge in FP paradigm.
    – J. Reku
    Aug 16 at 20:14






  • 2




    I confess I don't see the connection. Regardless, given that you're saying things like "I have a hard time understanding algebraic expressions", I really doubt that category theory is the place to start learning math! Something less abstract would surely give you a better chance. Like maybe a little "abstract algebra" - groups and so on. After knowing a little math you'd have a chance of understanding what category theory is about...
    – David C. Ullrich
    Aug 16 at 20:48






  • 1




    Your whole premise is wrong. You admit "my last formal education was when I was 12". This implies you have no mathematical maturity to even begin to understand category theory. Second, you want "to increase my coding skills" but learning category theory wont help you in that area. FP in no way depends on category theory. The Wikipedia article "Functional programming" only mentions it once in the context of Haskell.
    – Somos
    Aug 16 at 21:30















up vote
5
down vote

favorite
1












I'm trying to understand category theory to increase my coding skills and epimorphism and monomorphism aren't clear to me.

Unfortunately, my last formal education was when I was 12 due to circumstances and I have a hard time understanding algebraic expressions.



I understand what morphisms are and what isomorphism is. $f : X to Y$ and $g : Y to X$. Meaning, if there is a morphism going from $X$ to $Y$ then there must be a morphism that goes back and reverses it.



But I don't understand what epimorphism and monomorphism are. Could someone please elaborate in a way a non-mathematician could understand?







share|cite|improve this question






















  • hm... this is tough to do without writing fluff (as I am finding out.) I assume you dont want tags group theory or general topology.
    – Andres Mejia
    Aug 16 at 20:03






  • 1




    @AndresMejia I can understand pseudo-math, if it looks like code syntax. I understand logic, but when I see symbols like a reversed A and reversed E it's confusing. I understand it must be hard to explain, if there is anything I can do to make it easier I'd love to help.
    – J. Reku
    Aug 16 at 20:13






  • 2




    @DavidC.Ullrich Firstly, general curiousity. Secondary, functional programming. I want deep knowledge in FP paradigm.
    – J. Reku
    Aug 16 at 20:14






  • 2




    I confess I don't see the connection. Regardless, given that you're saying things like "I have a hard time understanding algebraic expressions", I really doubt that category theory is the place to start learning math! Something less abstract would surely give you a better chance. Like maybe a little "abstract algebra" - groups and so on. After knowing a little math you'd have a chance of understanding what category theory is about...
    – David C. Ullrich
    Aug 16 at 20:48






  • 1




    Your whole premise is wrong. You admit "my last formal education was when I was 12". This implies you have no mathematical maturity to even begin to understand category theory. Second, you want "to increase my coding skills" but learning category theory wont help you in that area. FP in no way depends on category theory. The Wikipedia article "Functional programming" only mentions it once in the context of Haskell.
    – Somos
    Aug 16 at 21:30













up vote
5
down vote

favorite
1









up vote
5
down vote

favorite
1






1





I'm trying to understand category theory to increase my coding skills and epimorphism and monomorphism aren't clear to me.

Unfortunately, my last formal education was when I was 12 due to circumstances and I have a hard time understanding algebraic expressions.



I understand what morphisms are and what isomorphism is. $f : X to Y$ and $g : Y to X$. Meaning, if there is a morphism going from $X$ to $Y$ then there must be a morphism that goes back and reverses it.



But I don't understand what epimorphism and monomorphism are. Could someone please elaborate in a way a non-mathematician could understand?







share|cite|improve this question














I'm trying to understand category theory to increase my coding skills and epimorphism and monomorphism aren't clear to me.

Unfortunately, my last formal education was when I was 12 due to circumstances and I have a hard time understanding algebraic expressions.



I understand what morphisms are and what isomorphism is. $f : X to Y$ and $g : Y to X$. Meaning, if there is a morphism going from $X$ to $Y$ then there must be a morphism that goes back and reverses it.



But I don't understand what epimorphism and monomorphism are. Could someone please elaborate in a way a non-mathematician could understand?









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 17 at 14:08

























asked Aug 16 at 19:58









J. Reku

284




284











  • hm... this is tough to do without writing fluff (as I am finding out.) I assume you dont want tags group theory or general topology.
    – Andres Mejia
    Aug 16 at 20:03






  • 1




    @AndresMejia I can understand pseudo-math, if it looks like code syntax. I understand logic, but when I see symbols like a reversed A and reversed E it's confusing. I understand it must be hard to explain, if there is anything I can do to make it easier I'd love to help.
    – J. Reku
    Aug 16 at 20:13






  • 2




    @DavidC.Ullrich Firstly, general curiousity. Secondary, functional programming. I want deep knowledge in FP paradigm.
    – J. Reku
    Aug 16 at 20:14






  • 2




    I confess I don't see the connection. Regardless, given that you're saying things like "I have a hard time understanding algebraic expressions", I really doubt that category theory is the place to start learning math! Something less abstract would surely give you a better chance. Like maybe a little "abstract algebra" - groups and so on. After knowing a little math you'd have a chance of understanding what category theory is about...
    – David C. Ullrich
    Aug 16 at 20:48






  • 1




    Your whole premise is wrong. You admit "my last formal education was when I was 12". This implies you have no mathematical maturity to even begin to understand category theory. Second, you want "to increase my coding skills" but learning category theory wont help you in that area. FP in no way depends on category theory. The Wikipedia article "Functional programming" only mentions it once in the context of Haskell.
    – Somos
    Aug 16 at 21:30

















  • hm... this is tough to do without writing fluff (as I am finding out.) I assume you dont want tags group theory or general topology.
    – Andres Mejia
    Aug 16 at 20:03






  • 1




    @AndresMejia I can understand pseudo-math, if it looks like code syntax. I understand logic, but when I see symbols like a reversed A and reversed E it's confusing. I understand it must be hard to explain, if there is anything I can do to make it easier I'd love to help.
    – J. Reku
    Aug 16 at 20:13






  • 2




    @DavidC.Ullrich Firstly, general curiousity. Secondary, functional programming. I want deep knowledge in FP paradigm.
    – J. Reku
    Aug 16 at 20:14






  • 2




    I confess I don't see the connection. Regardless, given that you're saying things like "I have a hard time understanding algebraic expressions", I really doubt that category theory is the place to start learning math! Something less abstract would surely give you a better chance. Like maybe a little "abstract algebra" - groups and so on. After knowing a little math you'd have a chance of understanding what category theory is about...
    – David C. Ullrich
    Aug 16 at 20:48






  • 1




    Your whole premise is wrong. You admit "my last formal education was when I was 12". This implies you have no mathematical maturity to even begin to understand category theory. Second, you want "to increase my coding skills" but learning category theory wont help you in that area. FP in no way depends on category theory. The Wikipedia article "Functional programming" only mentions it once in the context of Haskell.
    – Somos
    Aug 16 at 21:30
















hm... this is tough to do without writing fluff (as I am finding out.) I assume you dont want tags group theory or general topology.
– Andres Mejia
Aug 16 at 20:03




hm... this is tough to do without writing fluff (as I am finding out.) I assume you dont want tags group theory or general topology.
– Andres Mejia
Aug 16 at 20:03




1




1




@AndresMejia I can understand pseudo-math, if it looks like code syntax. I understand logic, but when I see symbols like a reversed A and reversed E it's confusing. I understand it must be hard to explain, if there is anything I can do to make it easier I'd love to help.
– J. Reku
Aug 16 at 20:13




@AndresMejia I can understand pseudo-math, if it looks like code syntax. I understand logic, but when I see symbols like a reversed A and reversed E it's confusing. I understand it must be hard to explain, if there is anything I can do to make it easier I'd love to help.
– J. Reku
Aug 16 at 20:13




2




2




@DavidC.Ullrich Firstly, general curiousity. Secondary, functional programming. I want deep knowledge in FP paradigm.
– J. Reku
Aug 16 at 20:14




@DavidC.Ullrich Firstly, general curiousity. Secondary, functional programming. I want deep knowledge in FP paradigm.
– J. Reku
Aug 16 at 20:14




2




2




I confess I don't see the connection. Regardless, given that you're saying things like "I have a hard time understanding algebraic expressions", I really doubt that category theory is the place to start learning math! Something less abstract would surely give you a better chance. Like maybe a little "abstract algebra" - groups and so on. After knowing a little math you'd have a chance of understanding what category theory is about...
– David C. Ullrich
Aug 16 at 20:48




I confess I don't see the connection. Regardless, given that you're saying things like "I have a hard time understanding algebraic expressions", I really doubt that category theory is the place to start learning math! Something less abstract would surely give you a better chance. Like maybe a little "abstract algebra" - groups and so on. After knowing a little math you'd have a chance of understanding what category theory is about...
– David C. Ullrich
Aug 16 at 20:48




1




1




Your whole premise is wrong. You admit "my last formal education was when I was 12". This implies you have no mathematical maturity to even begin to understand category theory. Second, you want "to increase my coding skills" but learning category theory wont help you in that area. FP in no way depends on category theory. The Wikipedia article "Functional programming" only mentions it once in the context of Haskell.
– Somos
Aug 16 at 21:30





Your whole premise is wrong. You admit "my last formal education was when I was 12". This implies you have no mathematical maturity to even begin to understand category theory. Second, you want "to increase my coding skills" but learning category theory wont help you in that area. FP in no way depends on category theory. The Wikipedia article "Functional programming" only mentions it once in the context of Haskell.
– Somos
Aug 16 at 21:30











3 Answers
3






active

oldest

votes

















up vote
3
down vote



accepted










When we were little we learned that $$c+a=c+b ;;iff;; a=b$$ and the notions of epi- and mono-morphism are the same idea of cancellation but for functions, or morphisms of a category. Simply replace "$+$" with "$circ$", composition ;-)




Now addition doesn't care about the order of its arguments, it's symmetric: $x + y = y + x$. However this is not the case for morphisms in-general!



As such we have two cancellation properties and we name them



  • epi: $f$ is pre-cancellable, i.e., can be cancelled at the beginning of a composition; i.e., $$g circ f = h circ f ;;iff;; g = h$$

  • mono: $f$ is post-cancellable, i.e., can be cancelled at the end of a composition; i.e., $$f circ g = f circ g ;;iff;; g = h$$


It is interesting to note that we speak of a particular $f$ having such a cancellation property, whereas for numbers we know that the cancellation property holds for all numbers.



Can the same be done for all functions?



No, an immediate counterexample is the always-zero function $Z(x)=0$.
It is in-general neither epic nor monic! Hence, for functions these properties do not always hold. As such, we may refine our analogy to be more like multiplication than addition: $$text Provided c ne 0: quad c times a = c times b ;;iff;; a = b$$
Just as "Provided $c$ is non-zero, we have (post)cancellation", we can say
"Provided $f$ is monic, we have post-cancellation."




Aside: That $f circ g ;=; g circ f$ is not generally true can be seen by considering a counter example.



Indeed, consider the functions $f(x) = x+1$ and $g(x) = 0$ then
$$(f circ g)(x) = f(g;x) = f(0) = 1 ;;neq;; 0 = g(x + 1) = g(f; x) = (g circ f)(x)$$






share|cite|improve this answer



























    up vote
    3
    down vote













    I've been recently starting to learn some category theory, and even though it's fairly self-contained (or, at least, the basics are), from it's very construction it was made to generalize situations arising in mathematics (of course, it has afterwards developed an intrinsic importance).



    This means that it will be a bit hard to fully get why some things are the way the are without some mathematical examples from other topics.



    The definitions state that a morphism $h: X to Y$ is a monomorphism if and only if for all $f,g : Z to Y$ we have that $hf = hg$. That is, $h$ embodies left-cancellability in an equality of morphisms. In the same spirit, $h$ will be an epimorphism if $fh = gh$ impies $f = g$ for all $f,g$, that is, we can right-cancel $h$ from an equality of morphisms.



    In a way, this is related to the reversibility you had mentioned: if two morphisms are equal after being composed with a monomorphism, then they must be equal. Dually, if two morphisms 'transform' an epimorphism in the same way, they must be the same. That is, epis and monos give us information about other morphisms depending on how they 'change' or 'get changed' by them.



    This can give (at least intuitive) information about objets as well. I don't think much else can be said without being a bit technical, but let's try a simple example. Take the integers $mathbbZ$ and the rational numbers (i.e. 'fractions') $mathbbQ$. These are two examples of rings, which intuitively are mathematical objects in which you can sum and multiply as you are used to, but with much more generality. These form a category, $operatornameRing$, and the morphisms are functions which behave well with respect to sums and multiplication. Concretely, if $R$ and $S$ are objects of $operatornameRing$, then a morphism between them is a function $f : R to S$ that verifies




    (i) $f(x+y) = f(x) + f(y)$ for all $x$ and $y$ elements of $R$.



    (ii) $f(xy) = f(x)f(y)$ for all $x$ and $y$ elements of $R$.




    Let's see an example: the inclusion morphism from the integers to the fractions,



    $$
    iota : mathbbZ rightarrow mathbbQ \
    k mapsto frack1
    $$



    which in a sense, does 'nothing': we are just thinking about the integers in the context of fractions as a special kind of them. However, from the rigid structure that the morphisms of $operatornameRing$ have, and by that I mean that they verify some strong properties, it is not hard to show that $iota$ is actually an epimorphism: if $f iota = g iota$ , then $f = g$. What this tells us is that it is this category, it is enough to see if two morphisms behave in the same way with the integers, to know if they behave in the same way with any fraction. I hope this gives at least some motivation for the usefulness of this concepts.






    share|cite|improve this answer





























      up vote
      1
      down vote













      In the context of standard algebra, a morphism is a map that is transparent to the laws of structured sets.



      For example, let $X = (mathbbZ, +)$, integers with addition, and $Y = (mathbbR^*, times)$ the reals with standard multiplication. In this case, both structures are groups, but this is not specific to the definition.



      Then, a morphism (or homomorphism) $f: X rightarrow Y$ is a map such that for any $a, b in mathbbN, f(a+b) = f(a) times f(b)$. In this case, $f(a), f(b) in mathbbR$.



      An example of this would be $f: a mapsto 2^a$.
      The values taken by $f$ include $2^-1 = 1/2$, $2^3 = 8$ and so on. You can check that $f(a + b) = 2^a+b = 2^a2^b = f(a)f(b)$.



      Then, an epimorphism is another word for a surjective morphism. A monomorphism is way to denote an injective morphism.



      To understand this, you only need the definitions of injectivity and surjectivity.



      A function $phi : A mapsto B$ is injective if it has the following property: for $a, b in A$, $phi(a) = phi(b) Rightarrow a = b$. In other word, it cannot map two distinct elements to the same value.



      A function $phi : A mapsto B$ is surjective if it has the following property: for any $x in B$, you can find an $a$ in $A$ such that $phi(a) = x$. In other word, you can build the set $B$ only by applying $phi$ to the elements of $A$.



      In our case, you can check that $f$ is a monomorphism. However, real numbers such as 3 will never be reached by $f$, thus it is not a bijective function, i.e. this is not an epimorphism.






      share|cite|improve this answer






















      • In the category of sets, "surjective morphism" is synonymous with "epimorphism", but that's not true in general: for example, $mathbbZ to mathbbQ$ is an epimorphism of rings. Similarly with injective vs monomorphism, although I think counterexamples are less common.
        – Hurkyl
        Aug 17 at 1:03











      • Good to know, thanks. Although, I am not sure how this will benefit the author in intuitive understanding.
        – horace
        Aug 17 at 7:54











      • This is factually correct, but a bad answer to the question OP asked. They specifically said they don’t know much about maths!
        – Andrea
        Aug 17 at 7:57










      • @AndreaDiBiagio I did not use any quantifier to explain the concepts. Do you think I could have used more examples?
        – horace
        Aug 17 at 8:04










      • @Hurkyl apparently this equivalence also holds in the case of groups.
        – horace
        Aug 17 at 8:09










      Your Answer




      StackExchange.ifUsing("editor", function ()
      return StackExchange.using("mathjaxEditing", function ()
      StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
      StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
      );
      );
      , "mathjax-editing");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "69"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      noCode: true, onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2885126%2fepimorphism-and-monomorphism-explained-without-math%23new-answer', 'question_page');

      );

      Post as a guest






























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote



      accepted










      When we were little we learned that $$c+a=c+b ;;iff;; a=b$$ and the notions of epi- and mono-morphism are the same idea of cancellation but for functions, or morphisms of a category. Simply replace "$+$" with "$circ$", composition ;-)




      Now addition doesn't care about the order of its arguments, it's symmetric: $x + y = y + x$. However this is not the case for morphisms in-general!



      As such we have two cancellation properties and we name them



      • epi: $f$ is pre-cancellable, i.e., can be cancelled at the beginning of a composition; i.e., $$g circ f = h circ f ;;iff;; g = h$$

      • mono: $f$ is post-cancellable, i.e., can be cancelled at the end of a composition; i.e., $$f circ g = f circ g ;;iff;; g = h$$


      It is interesting to note that we speak of a particular $f$ having such a cancellation property, whereas for numbers we know that the cancellation property holds for all numbers.



      Can the same be done for all functions?



      No, an immediate counterexample is the always-zero function $Z(x)=0$.
      It is in-general neither epic nor monic! Hence, for functions these properties do not always hold. As such, we may refine our analogy to be more like multiplication than addition: $$text Provided c ne 0: quad c times a = c times b ;;iff;; a = b$$
      Just as "Provided $c$ is non-zero, we have (post)cancellation", we can say
      "Provided $f$ is monic, we have post-cancellation."




      Aside: That $f circ g ;=; g circ f$ is not generally true can be seen by considering a counter example.



      Indeed, consider the functions $f(x) = x+1$ and $g(x) = 0$ then
      $$(f circ g)(x) = f(g;x) = f(0) = 1 ;;neq;; 0 = g(x + 1) = g(f; x) = (g circ f)(x)$$






      share|cite|improve this answer
























        up vote
        3
        down vote



        accepted










        When we were little we learned that $$c+a=c+b ;;iff;; a=b$$ and the notions of epi- and mono-morphism are the same idea of cancellation but for functions, or morphisms of a category. Simply replace "$+$" with "$circ$", composition ;-)




        Now addition doesn't care about the order of its arguments, it's symmetric: $x + y = y + x$. However this is not the case for morphisms in-general!



        As such we have two cancellation properties and we name them



        • epi: $f$ is pre-cancellable, i.e., can be cancelled at the beginning of a composition; i.e., $$g circ f = h circ f ;;iff;; g = h$$

        • mono: $f$ is post-cancellable, i.e., can be cancelled at the end of a composition; i.e., $$f circ g = f circ g ;;iff;; g = h$$


        It is interesting to note that we speak of a particular $f$ having such a cancellation property, whereas for numbers we know that the cancellation property holds for all numbers.



        Can the same be done for all functions?



        No, an immediate counterexample is the always-zero function $Z(x)=0$.
        It is in-general neither epic nor monic! Hence, for functions these properties do not always hold. As such, we may refine our analogy to be more like multiplication than addition: $$text Provided c ne 0: quad c times a = c times b ;;iff;; a = b$$
        Just as "Provided $c$ is non-zero, we have (post)cancellation", we can say
        "Provided $f$ is monic, we have post-cancellation."




        Aside: That $f circ g ;=; g circ f$ is not generally true can be seen by considering a counter example.



        Indeed, consider the functions $f(x) = x+1$ and $g(x) = 0$ then
        $$(f circ g)(x) = f(g;x) = f(0) = 1 ;;neq;; 0 = g(x + 1) = g(f; x) = (g circ f)(x)$$






        share|cite|improve this answer






















          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          When we were little we learned that $$c+a=c+b ;;iff;; a=b$$ and the notions of epi- and mono-morphism are the same idea of cancellation but for functions, or morphisms of a category. Simply replace "$+$" with "$circ$", composition ;-)




          Now addition doesn't care about the order of its arguments, it's symmetric: $x + y = y + x$. However this is not the case for morphisms in-general!



          As such we have two cancellation properties and we name them



          • epi: $f$ is pre-cancellable, i.e., can be cancelled at the beginning of a composition; i.e., $$g circ f = h circ f ;;iff;; g = h$$

          • mono: $f$ is post-cancellable, i.e., can be cancelled at the end of a composition; i.e., $$f circ g = f circ g ;;iff;; g = h$$


          It is interesting to note that we speak of a particular $f$ having such a cancellation property, whereas for numbers we know that the cancellation property holds for all numbers.



          Can the same be done for all functions?



          No, an immediate counterexample is the always-zero function $Z(x)=0$.
          It is in-general neither epic nor monic! Hence, for functions these properties do not always hold. As such, we may refine our analogy to be more like multiplication than addition: $$text Provided c ne 0: quad c times a = c times b ;;iff;; a = b$$
          Just as "Provided $c$ is non-zero, we have (post)cancellation", we can say
          "Provided $f$ is monic, we have post-cancellation."




          Aside: That $f circ g ;=; g circ f$ is not generally true can be seen by considering a counter example.



          Indeed, consider the functions $f(x) = x+1$ and $g(x) = 0$ then
          $$(f circ g)(x) = f(g;x) = f(0) = 1 ;;neq;; 0 = g(x + 1) = g(f; x) = (g circ f)(x)$$






          share|cite|improve this answer












          When we were little we learned that $$c+a=c+b ;;iff;; a=b$$ and the notions of epi- and mono-morphism are the same idea of cancellation but for functions, or morphisms of a category. Simply replace "$+$" with "$circ$", composition ;-)




          Now addition doesn't care about the order of its arguments, it's symmetric: $x + y = y + x$. However this is not the case for morphisms in-general!



          As such we have two cancellation properties and we name them



          • epi: $f$ is pre-cancellable, i.e., can be cancelled at the beginning of a composition; i.e., $$g circ f = h circ f ;;iff;; g = h$$

          • mono: $f$ is post-cancellable, i.e., can be cancelled at the end of a composition; i.e., $$f circ g = f circ g ;;iff;; g = h$$


          It is interesting to note that we speak of a particular $f$ having such a cancellation property, whereas for numbers we know that the cancellation property holds for all numbers.



          Can the same be done for all functions?



          No, an immediate counterexample is the always-zero function $Z(x)=0$.
          It is in-general neither epic nor monic! Hence, for functions these properties do not always hold. As such, we may refine our analogy to be more like multiplication than addition: $$text Provided c ne 0: quad c times a = c times b ;;iff;; a = b$$
          Just as "Provided $c$ is non-zero, we have (post)cancellation", we can say
          "Provided $f$ is monic, we have post-cancellation."




          Aside: That $f circ g ;=; g circ f$ is not generally true can be seen by considering a counter example.



          Indeed, consider the functions $f(x) = x+1$ and $g(x) = 0$ then
          $$(f circ g)(x) = f(g;x) = f(0) = 1 ;;neq;; 0 = g(x + 1) = g(f; x) = (g circ f)(x)$$







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Aug 16 at 23:33









          Musa Al-hassy

          1,0831710




          1,0831710




















              up vote
              3
              down vote













              I've been recently starting to learn some category theory, and even though it's fairly self-contained (or, at least, the basics are), from it's very construction it was made to generalize situations arising in mathematics (of course, it has afterwards developed an intrinsic importance).



              This means that it will be a bit hard to fully get why some things are the way the are without some mathematical examples from other topics.



              The definitions state that a morphism $h: X to Y$ is a monomorphism if and only if for all $f,g : Z to Y$ we have that $hf = hg$. That is, $h$ embodies left-cancellability in an equality of morphisms. In the same spirit, $h$ will be an epimorphism if $fh = gh$ impies $f = g$ for all $f,g$, that is, we can right-cancel $h$ from an equality of morphisms.



              In a way, this is related to the reversibility you had mentioned: if two morphisms are equal after being composed with a monomorphism, then they must be equal. Dually, if two morphisms 'transform' an epimorphism in the same way, they must be the same. That is, epis and monos give us information about other morphisms depending on how they 'change' or 'get changed' by them.



              This can give (at least intuitive) information about objets as well. I don't think much else can be said without being a bit technical, but let's try a simple example. Take the integers $mathbbZ$ and the rational numbers (i.e. 'fractions') $mathbbQ$. These are two examples of rings, which intuitively are mathematical objects in which you can sum and multiply as you are used to, but with much more generality. These form a category, $operatornameRing$, and the morphisms are functions which behave well with respect to sums and multiplication. Concretely, if $R$ and $S$ are objects of $operatornameRing$, then a morphism between them is a function $f : R to S$ that verifies




              (i) $f(x+y) = f(x) + f(y)$ for all $x$ and $y$ elements of $R$.



              (ii) $f(xy) = f(x)f(y)$ for all $x$ and $y$ elements of $R$.




              Let's see an example: the inclusion morphism from the integers to the fractions,



              $$
              iota : mathbbZ rightarrow mathbbQ \
              k mapsto frack1
              $$



              which in a sense, does 'nothing': we are just thinking about the integers in the context of fractions as a special kind of them. However, from the rigid structure that the morphisms of $operatornameRing$ have, and by that I mean that they verify some strong properties, it is not hard to show that $iota$ is actually an epimorphism: if $f iota = g iota$ , then $f = g$. What this tells us is that it is this category, it is enough to see if two morphisms behave in the same way with the integers, to know if they behave in the same way with any fraction. I hope this gives at least some motivation for the usefulness of this concepts.






              share|cite|improve this answer


























                up vote
                3
                down vote













                I've been recently starting to learn some category theory, and even though it's fairly self-contained (or, at least, the basics are), from it's very construction it was made to generalize situations arising in mathematics (of course, it has afterwards developed an intrinsic importance).



                This means that it will be a bit hard to fully get why some things are the way the are without some mathematical examples from other topics.



                The definitions state that a morphism $h: X to Y$ is a monomorphism if and only if for all $f,g : Z to Y$ we have that $hf = hg$. That is, $h$ embodies left-cancellability in an equality of morphisms. In the same spirit, $h$ will be an epimorphism if $fh = gh$ impies $f = g$ for all $f,g$, that is, we can right-cancel $h$ from an equality of morphisms.



                In a way, this is related to the reversibility you had mentioned: if two morphisms are equal after being composed with a monomorphism, then they must be equal. Dually, if two morphisms 'transform' an epimorphism in the same way, they must be the same. That is, epis and monos give us information about other morphisms depending on how they 'change' or 'get changed' by them.



                This can give (at least intuitive) information about objets as well. I don't think much else can be said without being a bit technical, but let's try a simple example. Take the integers $mathbbZ$ and the rational numbers (i.e. 'fractions') $mathbbQ$. These are two examples of rings, which intuitively are mathematical objects in which you can sum and multiply as you are used to, but with much more generality. These form a category, $operatornameRing$, and the morphisms are functions which behave well with respect to sums and multiplication. Concretely, if $R$ and $S$ are objects of $operatornameRing$, then a morphism between them is a function $f : R to S$ that verifies




                (i) $f(x+y) = f(x) + f(y)$ for all $x$ and $y$ elements of $R$.



                (ii) $f(xy) = f(x)f(y)$ for all $x$ and $y$ elements of $R$.




                Let's see an example: the inclusion morphism from the integers to the fractions,



                $$
                iota : mathbbZ rightarrow mathbbQ \
                k mapsto frack1
                $$



                which in a sense, does 'nothing': we are just thinking about the integers in the context of fractions as a special kind of them. However, from the rigid structure that the morphisms of $operatornameRing$ have, and by that I mean that they verify some strong properties, it is not hard to show that $iota$ is actually an epimorphism: if $f iota = g iota$ , then $f = g$. What this tells us is that it is this category, it is enough to see if two morphisms behave in the same way with the integers, to know if they behave in the same way with any fraction. I hope this gives at least some motivation for the usefulness of this concepts.






                share|cite|improve this answer
























                  up vote
                  3
                  down vote










                  up vote
                  3
                  down vote









                  I've been recently starting to learn some category theory, and even though it's fairly self-contained (or, at least, the basics are), from it's very construction it was made to generalize situations arising in mathematics (of course, it has afterwards developed an intrinsic importance).



                  This means that it will be a bit hard to fully get why some things are the way the are without some mathematical examples from other topics.



                  The definitions state that a morphism $h: X to Y$ is a monomorphism if and only if for all $f,g : Z to Y$ we have that $hf = hg$. That is, $h$ embodies left-cancellability in an equality of morphisms. In the same spirit, $h$ will be an epimorphism if $fh = gh$ impies $f = g$ for all $f,g$, that is, we can right-cancel $h$ from an equality of morphisms.



                  In a way, this is related to the reversibility you had mentioned: if two morphisms are equal after being composed with a monomorphism, then they must be equal. Dually, if two morphisms 'transform' an epimorphism in the same way, they must be the same. That is, epis and monos give us information about other morphisms depending on how they 'change' or 'get changed' by them.



                  This can give (at least intuitive) information about objets as well. I don't think much else can be said without being a bit technical, but let's try a simple example. Take the integers $mathbbZ$ and the rational numbers (i.e. 'fractions') $mathbbQ$. These are two examples of rings, which intuitively are mathematical objects in which you can sum and multiply as you are used to, but with much more generality. These form a category, $operatornameRing$, and the morphisms are functions which behave well with respect to sums and multiplication. Concretely, if $R$ and $S$ are objects of $operatornameRing$, then a morphism between them is a function $f : R to S$ that verifies




                  (i) $f(x+y) = f(x) + f(y)$ for all $x$ and $y$ elements of $R$.



                  (ii) $f(xy) = f(x)f(y)$ for all $x$ and $y$ elements of $R$.




                  Let's see an example: the inclusion morphism from the integers to the fractions,



                  $$
                  iota : mathbbZ rightarrow mathbbQ \
                  k mapsto frack1
                  $$



                  which in a sense, does 'nothing': we are just thinking about the integers in the context of fractions as a special kind of them. However, from the rigid structure that the morphisms of $operatornameRing$ have, and by that I mean that they verify some strong properties, it is not hard to show that $iota$ is actually an epimorphism: if $f iota = g iota$ , then $f = g$. What this tells us is that it is this category, it is enough to see if two morphisms behave in the same way with the integers, to know if they behave in the same way with any fraction. I hope this gives at least some motivation for the usefulness of this concepts.






                  share|cite|improve this answer














                  I've been recently starting to learn some category theory, and even though it's fairly self-contained (or, at least, the basics are), from it's very construction it was made to generalize situations arising in mathematics (of course, it has afterwards developed an intrinsic importance).



                  This means that it will be a bit hard to fully get why some things are the way the are without some mathematical examples from other topics.



                  The definitions state that a morphism $h: X to Y$ is a monomorphism if and only if for all $f,g : Z to Y$ we have that $hf = hg$. That is, $h$ embodies left-cancellability in an equality of morphisms. In the same spirit, $h$ will be an epimorphism if $fh = gh$ impies $f = g$ for all $f,g$, that is, we can right-cancel $h$ from an equality of morphisms.



                  In a way, this is related to the reversibility you had mentioned: if two morphisms are equal after being composed with a monomorphism, then they must be equal. Dually, if two morphisms 'transform' an epimorphism in the same way, they must be the same. That is, epis and monos give us information about other morphisms depending on how they 'change' or 'get changed' by them.



                  This can give (at least intuitive) information about objets as well. I don't think much else can be said without being a bit technical, but let's try a simple example. Take the integers $mathbbZ$ and the rational numbers (i.e. 'fractions') $mathbbQ$. These are two examples of rings, which intuitively are mathematical objects in which you can sum and multiply as you are used to, but with much more generality. These form a category, $operatornameRing$, and the morphisms are functions which behave well with respect to sums and multiplication. Concretely, if $R$ and $S$ are objects of $operatornameRing$, then a morphism between them is a function $f : R to S$ that verifies




                  (i) $f(x+y) = f(x) + f(y)$ for all $x$ and $y$ elements of $R$.



                  (ii) $f(xy) = f(x)f(y)$ for all $x$ and $y$ elements of $R$.




                  Let's see an example: the inclusion morphism from the integers to the fractions,



                  $$
                  iota : mathbbZ rightarrow mathbbQ \
                  k mapsto frack1
                  $$



                  which in a sense, does 'nothing': we are just thinking about the integers in the context of fractions as a special kind of them. However, from the rigid structure that the morphisms of $operatornameRing$ have, and by that I mean that they verify some strong properties, it is not hard to show that $iota$ is actually an epimorphism: if $f iota = g iota$ , then $f = g$. What this tells us is that it is this category, it is enough to see if two morphisms behave in the same way with the integers, to know if they behave in the same way with any fraction. I hope this gives at least some motivation for the usefulness of this concepts.







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited Aug 17 at 12:26

























                  answered Aug 16 at 20:23









                  Guido A.

                  4,367726




                  4,367726




















                      up vote
                      1
                      down vote













                      In the context of standard algebra, a morphism is a map that is transparent to the laws of structured sets.



                      For example, let $X = (mathbbZ, +)$, integers with addition, and $Y = (mathbbR^*, times)$ the reals with standard multiplication. In this case, both structures are groups, but this is not specific to the definition.



                      Then, a morphism (or homomorphism) $f: X rightarrow Y$ is a map such that for any $a, b in mathbbN, f(a+b) = f(a) times f(b)$. In this case, $f(a), f(b) in mathbbR$.



                      An example of this would be $f: a mapsto 2^a$.
                      The values taken by $f$ include $2^-1 = 1/2$, $2^3 = 8$ and so on. You can check that $f(a + b) = 2^a+b = 2^a2^b = f(a)f(b)$.



                      Then, an epimorphism is another word for a surjective morphism. A monomorphism is way to denote an injective morphism.



                      To understand this, you only need the definitions of injectivity and surjectivity.



                      A function $phi : A mapsto B$ is injective if it has the following property: for $a, b in A$, $phi(a) = phi(b) Rightarrow a = b$. In other word, it cannot map two distinct elements to the same value.



                      A function $phi : A mapsto B$ is surjective if it has the following property: for any $x in B$, you can find an $a$ in $A$ such that $phi(a) = x$. In other word, you can build the set $B$ only by applying $phi$ to the elements of $A$.



                      In our case, you can check that $f$ is a monomorphism. However, real numbers such as 3 will never be reached by $f$, thus it is not a bijective function, i.e. this is not an epimorphism.






                      share|cite|improve this answer






















                      • In the category of sets, "surjective morphism" is synonymous with "epimorphism", but that's not true in general: for example, $mathbbZ to mathbbQ$ is an epimorphism of rings. Similarly with injective vs monomorphism, although I think counterexamples are less common.
                        – Hurkyl
                        Aug 17 at 1:03











                      • Good to know, thanks. Although, I am not sure how this will benefit the author in intuitive understanding.
                        – horace
                        Aug 17 at 7:54











                      • This is factually correct, but a bad answer to the question OP asked. They specifically said they don’t know much about maths!
                        – Andrea
                        Aug 17 at 7:57










                      • @AndreaDiBiagio I did not use any quantifier to explain the concepts. Do you think I could have used more examples?
                        – horace
                        Aug 17 at 8:04










                      • @Hurkyl apparently this equivalence also holds in the case of groups.
                        – horace
                        Aug 17 at 8:09














                      up vote
                      1
                      down vote













                      In the context of standard algebra, a morphism is a map that is transparent to the laws of structured sets.



                      For example, let $X = (mathbbZ, +)$, integers with addition, and $Y = (mathbbR^*, times)$ the reals with standard multiplication. In this case, both structures are groups, but this is not specific to the definition.



                      Then, a morphism (or homomorphism) $f: X rightarrow Y$ is a map such that for any $a, b in mathbbN, f(a+b) = f(a) times f(b)$. In this case, $f(a), f(b) in mathbbR$.



                      An example of this would be $f: a mapsto 2^a$.
                      The values taken by $f$ include $2^-1 = 1/2$, $2^3 = 8$ and so on. You can check that $f(a + b) = 2^a+b = 2^a2^b = f(a)f(b)$.



                      Then, an epimorphism is another word for a surjective morphism. A monomorphism is way to denote an injective morphism.



                      To understand this, you only need the definitions of injectivity and surjectivity.



                      A function $phi : A mapsto B$ is injective if it has the following property: for $a, b in A$, $phi(a) = phi(b) Rightarrow a = b$. In other word, it cannot map two distinct elements to the same value.



                      A function $phi : A mapsto B$ is surjective if it has the following property: for any $x in B$, you can find an $a$ in $A$ such that $phi(a) = x$. In other word, you can build the set $B$ only by applying $phi$ to the elements of $A$.



                      In our case, you can check that $f$ is a monomorphism. However, real numbers such as 3 will never be reached by $f$, thus it is not a bijective function, i.e. this is not an epimorphism.






                      share|cite|improve this answer






















                      • In the category of sets, "surjective morphism" is synonymous with "epimorphism", but that's not true in general: for example, $mathbbZ to mathbbQ$ is an epimorphism of rings. Similarly with injective vs monomorphism, although I think counterexamples are less common.
                        – Hurkyl
                        Aug 17 at 1:03











                      • Good to know, thanks. Although, I am not sure how this will benefit the author in intuitive understanding.
                        – horace
                        Aug 17 at 7:54











                      • This is factually correct, but a bad answer to the question OP asked. They specifically said they don’t know much about maths!
                        – Andrea
                        Aug 17 at 7:57










                      • @AndreaDiBiagio I did not use any quantifier to explain the concepts. Do you think I could have used more examples?
                        – horace
                        Aug 17 at 8:04










                      • @Hurkyl apparently this equivalence also holds in the case of groups.
                        – horace
                        Aug 17 at 8:09












                      up vote
                      1
                      down vote










                      up vote
                      1
                      down vote









                      In the context of standard algebra, a morphism is a map that is transparent to the laws of structured sets.



                      For example, let $X = (mathbbZ, +)$, integers with addition, and $Y = (mathbbR^*, times)$ the reals with standard multiplication. In this case, both structures are groups, but this is not specific to the definition.



                      Then, a morphism (or homomorphism) $f: X rightarrow Y$ is a map such that for any $a, b in mathbbN, f(a+b) = f(a) times f(b)$. In this case, $f(a), f(b) in mathbbR$.



                      An example of this would be $f: a mapsto 2^a$.
                      The values taken by $f$ include $2^-1 = 1/2$, $2^3 = 8$ and so on. You can check that $f(a + b) = 2^a+b = 2^a2^b = f(a)f(b)$.



                      Then, an epimorphism is another word for a surjective morphism. A monomorphism is way to denote an injective morphism.



                      To understand this, you only need the definitions of injectivity and surjectivity.



                      A function $phi : A mapsto B$ is injective if it has the following property: for $a, b in A$, $phi(a) = phi(b) Rightarrow a = b$. In other word, it cannot map two distinct elements to the same value.



                      A function $phi : A mapsto B$ is surjective if it has the following property: for any $x in B$, you can find an $a$ in $A$ such that $phi(a) = x$. In other word, you can build the set $B$ only by applying $phi$ to the elements of $A$.



                      In our case, you can check that $f$ is a monomorphism. However, real numbers such as 3 will never be reached by $f$, thus it is not a bijective function, i.e. this is not an epimorphism.






                      share|cite|improve this answer














                      In the context of standard algebra, a morphism is a map that is transparent to the laws of structured sets.



                      For example, let $X = (mathbbZ, +)$, integers with addition, and $Y = (mathbbR^*, times)$ the reals with standard multiplication. In this case, both structures are groups, but this is not specific to the definition.



                      Then, a morphism (or homomorphism) $f: X rightarrow Y$ is a map such that for any $a, b in mathbbN, f(a+b) = f(a) times f(b)$. In this case, $f(a), f(b) in mathbbR$.



                      An example of this would be $f: a mapsto 2^a$.
                      The values taken by $f$ include $2^-1 = 1/2$, $2^3 = 8$ and so on. You can check that $f(a + b) = 2^a+b = 2^a2^b = f(a)f(b)$.



                      Then, an epimorphism is another word for a surjective morphism. A monomorphism is way to denote an injective morphism.



                      To understand this, you only need the definitions of injectivity and surjectivity.



                      A function $phi : A mapsto B$ is injective if it has the following property: for $a, b in A$, $phi(a) = phi(b) Rightarrow a = b$. In other word, it cannot map two distinct elements to the same value.



                      A function $phi : A mapsto B$ is surjective if it has the following property: for any $x in B$, you can find an $a$ in $A$ such that $phi(a) = x$. In other word, you can build the set $B$ only by applying $phi$ to the elements of $A$.



                      In our case, you can check that $f$ is a monomorphism. However, real numbers such as 3 will never be reached by $f$, thus it is not a bijective function, i.e. this is not an epimorphism.







                      share|cite|improve this answer














                      share|cite|improve this answer



                      share|cite|improve this answer








                      edited Aug 16 at 20:41

























                      answered Aug 16 at 20:32









                      horace

                      1313




                      1313











                      • In the category of sets, "surjective morphism" is synonymous with "epimorphism", but that's not true in general: for example, $mathbbZ to mathbbQ$ is an epimorphism of rings. Similarly with injective vs monomorphism, although I think counterexamples are less common.
                        – Hurkyl
                        Aug 17 at 1:03











                      • Good to know, thanks. Although, I am not sure how this will benefit the author in intuitive understanding.
                        – horace
                        Aug 17 at 7:54











                      • This is factually correct, but a bad answer to the question OP asked. They specifically said they don’t know much about maths!
                        – Andrea
                        Aug 17 at 7:57










                      • @AndreaDiBiagio I did not use any quantifier to explain the concepts. Do you think I could have used more examples?
                        – horace
                        Aug 17 at 8:04










                      • @Hurkyl apparently this equivalence also holds in the case of groups.
                        – horace
                        Aug 17 at 8:09
















                      • In the category of sets, "surjective morphism" is synonymous with "epimorphism", but that's not true in general: for example, $mathbbZ to mathbbQ$ is an epimorphism of rings. Similarly with injective vs monomorphism, although I think counterexamples are less common.
                        – Hurkyl
                        Aug 17 at 1:03











                      • Good to know, thanks. Although, I am not sure how this will benefit the author in intuitive understanding.
                        – horace
                        Aug 17 at 7:54











                      • This is factually correct, but a bad answer to the question OP asked. They specifically said they don’t know much about maths!
                        – Andrea
                        Aug 17 at 7:57










                      • @AndreaDiBiagio I did not use any quantifier to explain the concepts. Do you think I could have used more examples?
                        – horace
                        Aug 17 at 8:04










                      • @Hurkyl apparently this equivalence also holds in the case of groups.
                        – horace
                        Aug 17 at 8:09















                      In the category of sets, "surjective morphism" is synonymous with "epimorphism", but that's not true in general: for example, $mathbbZ to mathbbQ$ is an epimorphism of rings. Similarly with injective vs monomorphism, although I think counterexamples are less common.
                      – Hurkyl
                      Aug 17 at 1:03





                      In the category of sets, "surjective morphism" is synonymous with "epimorphism", but that's not true in general: for example, $mathbbZ to mathbbQ$ is an epimorphism of rings. Similarly with injective vs monomorphism, although I think counterexamples are less common.
                      – Hurkyl
                      Aug 17 at 1:03













                      Good to know, thanks. Although, I am not sure how this will benefit the author in intuitive understanding.
                      – horace
                      Aug 17 at 7:54





                      Good to know, thanks. Although, I am not sure how this will benefit the author in intuitive understanding.
                      – horace
                      Aug 17 at 7:54













                      This is factually correct, but a bad answer to the question OP asked. They specifically said they don’t know much about maths!
                      – Andrea
                      Aug 17 at 7:57




                      This is factually correct, but a bad answer to the question OP asked. They specifically said they don’t know much about maths!
                      – Andrea
                      Aug 17 at 7:57












                      @AndreaDiBiagio I did not use any quantifier to explain the concepts. Do you think I could have used more examples?
                      – horace
                      Aug 17 at 8:04




                      @AndreaDiBiagio I did not use any quantifier to explain the concepts. Do you think I could have used more examples?
                      – horace
                      Aug 17 at 8:04












                      @Hurkyl apparently this equivalence also holds in the case of groups.
                      – horace
                      Aug 17 at 8:09




                      @Hurkyl apparently this equivalence also holds in the case of groups.
                      – horace
                      Aug 17 at 8:09

















                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2885126%2fepimorphism-and-monomorphism-explained-without-math%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Comments

                      Popular posts from this blog

                      What does second last employer means? [closed]

                      List of Gilmore Girls characters

                      Confectionery