10

So I generally understand the idea of a monoid from set theory, but I'm trying to understand better the mapping to category theory.

http://en.wikipedia.org/wiki/Monoid#Relation_to_category_theory

I think there are a couple of things that are tripping me up, and I think it'd be instructive to have a concrete example, so let's do the monoid of integers. So the associative operator is +, and the zero is 0.

As a category, it has one object.. what is that object? And according to the wikipedia link, we have morphisms for every element... so we have a category whose object is Int, and the morphisms are 0, 1, 2, 3... (important question: can an object have multiple distinct morphisms? I didn't think that was defined, as I thought that morphisms were completely defined by the domain and codomain). So now we need our associative operator, ideally such that the map named 1 composed with the map named two is the same as the map named 3. I think this is where there is a breakdown in how I am thinking about these. How do we think about that last property?

Thank you very much for any help you have.

Update: the answer given gets me 95% of the way there, but there is one lingering question: The one thing I'm not sure about is how do we formalize equivalence? Like, we can definitely say that (a * b) * c = a * (b * c) (by the definition of a category), but how do we "define" 1 * 2 = 3 and think about it in a rigorous way when they are all morphisms with the same domain and codomain. Another way of asking this is if we have a morphism called 2, and a morphism called 3, and a morphism called 7, how do we know that 2*3=7?

  • I'm not sure I understand your update, but would it help to think of the following example? A category with one object $S$, which is a set, and the morphisms are all functions from $S$ to $S$. The "composition" operation is composition of functions. – user180040 Oct 04 '14 at 14:36
  • My question is this: how do we know that 1+2=3 but 1+2 != 7? How do we reason about the values of the compositions of these morphisms? – A Question Asker Oct 04 '14 at 17:04
  • 2
    When defining a category, you get to choose what the composition operation is for morphisms. – user180040 Oct 04 '14 at 17:07
  • Really? I thought all morphisms had to compose! – A Question Asker Oct 04 '14 at 17:46
  • Any associative operation with a identity element can be chosen. In many important categories, this operation is indeed composition of mappings. The reason the operation is called "composition" in all cases is because we want to think of composition of morphisms as being analogous to composition of mappings, even if the "morphisms" being "composed" aren't really mappings at all. – user180040 Oct 05 '14 at 03:51
  • 1
    Considering your update: Define a category $\mathcal{N}$ via: $\operatorname{Ob}(\mathcal{N}) := {}$, $\operatorname{Hom}_\mathcal{N}(,*) := {f_i|i\in\mathbb{N}}$, and composition $f_i\circ f_j = f_{i+j}$. This might seem cheap, but it's easy to see that this $\mathcal{N}$ satisfies every axiom for a category (of course this is only one representant for the categorical monoid, since objects in $\mathcal{Cat}$ are only known up to isomorphisms). – roman Oct 07 '14 at 08:20
  • Another elaboration on the update: it's often left out as obvious, but in category theory one assumes the notion of morphism equality as primitive—that is, one can always ask whether two morphisms are one and the same. Otherwise, we wouldn't even be able to state the laws that define a category as equations—if you write that $\mathrm{id}\circ f = f$ there has to be some meaning ascribed to $=$. So "formalization of equivalence" reduces to this notion of equality. – askyle Feb 17 '15 at 22:43

3 Answers3

4

It doesn't make a difference what the object is, so I doubt anybody has ever specified what it is. This is the same kind of thing as when you consider a "one-point space" $\{*\}$ in topology.

You said that a morphism is determined by its domain and codomain. (Or source and target object, so to speak.) That's not true, even in the category of sets. There's usually more than one mapping from a set $A$ to a set $B$.

For the last thing, what you wrote is correct. Of course $1$ and $2$ are not true "mappings," but they're what stands in for mappings in this category. If $1$ and $2$ are thought of as analogous to mappings, then the operation $+$ should be thought of as analogous to $\circ$. So $1 \circ 2 = 3$, etc.

By the way, this category has a concrete realization as the category with a single object $\mathbf{Z}$ whose morphisms are all automorphisms of $\mathbf{Z}$ as an ordered set.

  • 1
    Thank you! The one thing I'm not sure about is how do we formalize equivalence? Like, we can definitely say that (a * b) * c = a * (b * c) (by the definition of a category), but how do we "define" 1 * 2 = 3 and think about it in a rigorous way when they are all morphisms with the same domain and codomain. – A Question Asker Oct 04 '14 at 14:33
3

You already know what the integers with addition are.

When you construct this category, you define composition to be addition. There's not a problem doing that, because you already know what addition is.

important question: can an object have multiple distinct morphisms

Yes, if I understand you: in general, the set of homomorphisms from $X$ to $Y$ may have many elements. One of the typical examples of a category is $\mathbf{Set}$, the category whose objects are sets and the whose morphisms are functions.

I this category, the domain and codomain of a function in the sense of the category is its given by its domain and codomain in the sense of set theory. (I'm assuming a definition of 'function' that includes the domain and codomain as part of the definition. If you pick a different definition: e.g. that a function is simply the graph of a relation, you'll have to modify the definition of morphism in $\mathbf{Set}$ appropriately)

And in $\mathbf{Set}$, the product of two morphisms is their composite.

In this category, we can easily see that $\hom(X,Y)$ generally has lots and lots of elements, except in special cases. (e.g. $X = \varnothing$ or $|Y| = 1$)

0

I just want to add that since groups, monoids, semigroups are modeled this way, as one-object categories, we have that if $A$ is the additive group of a ring or field $R$, and $\mathcal{A}$ is the one-object category modeling $A$, then what must $(R, \cdot)$ be modeled by, i.e. what is the ring's multiplicative monoid, for example?

That becomes modeled by the bifunctor $M(x,y) = x\cdot y$. If you don't want to introduce another operation $\cdot$ on the morphisms, then you can do $x + x + \dots + x \ (y \text{ times})$ for rings where that will work, and wlog assume $y \geq 0$.

The proof that $M$ forms a bifunctor is just an application of the left & right distributive law of the ring $R$.

Thus a ring is a one-object category of $(R,+)$ together with an endo-bifunctor on that category.