Maths - Category Theory - Adjunctions

Example - Monoid

'term' or 'word' algebras determines an adjunction

This example looks at extremes such as the forgetful functor in one direction (which removes all structure and leaves the underlying set) and the free algebra in the other direction (see Presentation of a group. Free algebra has generators without constraints).

Free Monoid

Here we have a set {a,b,c...} with a binary operation. When we apply the binary operation to two elements of the set, say a × b, we get a new element which we could notate as 'ab'.

List

Another way to think of this free monoid is by representing a × b = [a,b]

So this list is an element of the free monoid. The function which takes a list 'T A' to the new element 'A' is called θ:

θ : T A -> A

Here think of 'T' as a generic notation for 'List'.

Functors between Set and Monoid

list as free monoid

So,

therefore:

Forgetful functor from monoid to set.

Takes the algebra and returns the underlying set

forgetful

Free functor from set to monoid.

Takes the underlying set and returns a monoid with a multiplication.

free functor to monoid

Adjunction to Monad

So we have two functors 'F' and 'G'. If we start with set and apply the free functor 'F' first and then the forgetful functor 'G' which we denote as 'GF' we get a set containing all possible lists of elements which is 'T'.

Monad to Adjunction

The final and initial adjunctions from 'T' are given by the base category (in this case set) with the monoid which can be generated in the following ways:

Eilenberg-Moore Category for Monoid

This is final in the categories for the monad.

So we just 'freely' apply θ to the elements of the underlying set to produce the elements of the monoid.

Kleisli Category for Monoid

This is initial in the categories for the monad.

In other words the morphisms wrap the elements in a list: A -> List B.

This makes function composition more complicated. When we compose

A -> List B

with B -> List C

we get

A -> List (List C)

but we want:

A -> List C

So we have to apply μ to get from List (List C) to List C.

In this case μ just flattens the nested list to produce one list with all the elements.


metadata block
see also:

 

Adjunctions from Morphisms

Other Pages on this site

  • Category of graphs described on page here.
  • Implementing Graphs in FriCas program is discussed on page here.
  • Implementing Posets in FriCas program is discussed on page here.
Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

flag flag flag flag flag flag Conceptual Mathematics - This is a book about category theory that does not assume an extensive knowledge over a wide area of mathematics. The style of the book is a bit quirky though.

 

Terminology and Notation

Specific to this page here:

 

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2024 Martin John Baker - All rights reserved - privacy policy.