Saturday, June 7, 2025

category-group-groupoid

category-group-groupoid

Exploring Algebraic Structures: Categories, Groups, and Groupoids

Category theory diagram

In modern mathematics, algebraic structures offer a powerful language for expressing symmetry, computation, and relationships between objects. In this post, we’ll explore three fundamental structures: categories, groups & monoids, and groupoids. Each section introduces the basic definitions and gives concrete examples to bring the abstract concepts to life.


1. Categories and the Category of Sets

A category is a mathematical structure that abstracts the idea of objects and the relationships (called morphisms) between them. Categories provide a unified framework for discussing many different mathematical systems.

Definition: Category

A category C\mathcal{C} consists of:

  • A collection of objects (denoted A,B,C,A, B, C, \dots),

  • A collection of morphisms (also called arrows) between objects. A morphism f:ABf: A \to B goes from object AA to object BB,

  • For each object AA, an identity morphism idA:AA\mathrm{id}_A: A \to A,

  • A composition rule: if f:ABf: A \to B and g:BCg: B \to C, then there is a morphism gf:ACg \circ f: A \to C.

They must satisfy:

  1. Associativity:

    h(gf)=(hg)fh \circ (g \circ f) = (h \circ g) \circ f,

  2. Identity laws:

    idBf=f=fidA\mathrm{id}_B \circ f = f = f \circ \mathrm{id}_A

Example: The Category of Sets

The most familiar category is Set\mathbf{Set}, where:

  • Objects are sets (like N,a,b,\mathbb{N}, {a, b}, \emptyset),

  • Morphisms are functions between sets,

  • Composition is the usual function composition,

  • Identity morphism is the identity function idA(x)=x\mathrm{id}_A(x) = x.

In Set\mathbf{Set}, associativity and identity laws are satisfied naturally by function composition.


2. Groups and Monoids

Groups and monoids are algebraic structures that capture the idea of combining elements.

Definition: Monoid

A monoid is a set MM with:

  • A binary operation :M×MM\cdot: M \times M \to M (often written as multiplication),

  • An identity element eMe \in M,

such that:

  1. Associativity: (ab)c=a(bc)(a \cdot b) \cdot c = a \cdot (b \cdot c) for all a,b,cMa, b, c \in M,

  2. Identity: ea=a=aee \cdot a = a = a \cdot e for all aMa \in M.

Definition: Group

A group is a monoid where every element also has an inverse. That is:

  • For each aGa \in G, there exists a1Ga^{-1} \in G such that

aa1=e=a1aa \cdot a^{-1} = e = a^{-1} \cdot a

Example: Integers and Natural Numbers

  • The set Z\mathbb{Z} of integers with addition forms a group:

    • Identity: 00, inverse of aa is a-a.
  • The set N\mathbb{N} (non-negative integers) with addition forms a monoid:

    • Identity: 00, but most elements don’t have inverses (no negative numbers), so it’s not a group.

Groups capture symmetry—you can do and undo an operation. Monoids capture processes—you can combine actions, but not necessarily undo them.


3. Groupoids and Symmetries with Partial Inverses

A groupoid generalizes the idea of a group by allowing partial symmetries between different objects. Instead of a single set, we now think in terms of objects and invertible morphisms.

Definition: Groupoid

A groupoid is a category where:

  • Every morphism is invertible, i.e., for every f:ABf: A \to B, there exists f1:BAf^{-1}: B \to A such that

    ff1=idBandf1f=idAf \circ f^{-1} = \mathrm{id}_B \quad \text{and} \quad f^{-1} \circ f = \mathrm{id}_A

In other words, a groupoid is like a group, but with possibly many objects, and morphisms only between some pairs of objects.

Example: The Fundamental Groupoid of a Space

Let XX be a topological space. The fundamental groupoid Π1(X)\Pi_1(X) is a groupoid that captures how points in XX are connected by paths (up to deformation). It is defined as follows:

  • Objects: the points of XX.

  • Morphisms: a morphism from xXx \in X to yXy \in X is a homotopy class of paths from xx to yy.

    A path from xx to yy is a continuous function:

    γ:[0,1]Xwithγ(0)=x,γ(1)=y\gamma: [0, 1] \to X \quad \text{with} \quad \gamma(0) = x, \quad \gamma(1) = y

    Two paths γ0\gamma_0 and γ1\gamma_1 from xx to yy are considered equivalent if there exists a homotopy between them—i.e., a continuous function:

    H:[0,1]×[0,1]XH:[0,1]×[0,1]→X

    such that:

    H(t,0)=γ0(t),H(t,1)=γ1(t)H(t,0)=γ_0(t),H(t,1)=γ_1(t)

    for all t,s[0,1]t, s \in [0,1]. This ensures the endpoints stay fixed during the deformation.

  • Composition: if [γ1]:xy[\gamma_1]: x \to y and [γ2]:yz[\gamma_2]: y \to z are morphisms, then their composition is the homotopy class of the concatenated path:

    [γ2γ1]:xz[γ_2*γ_1]:x→z

    where (γ2γ1)(t)(\gamma_2 * \gamma_1)(t) first follows γ1\gamma_1 from xx to yy, then γ2\gamma_2 from yy to zz (reparametrized to fit in [0,1][0,1]).

  • Inverses: each path γ:xy\gamma: x \to y has an inverse path γ1:yx\gamma^{-1}: y \to x given by:

    γ1(t)=γ(1t).\gamma^{-1}(t) = \gamma(1 - t).

    This defines an inverse morphism [γ1]:yx[\gamma^{-1}]: y \to x.

Connection to the Fundamental Group

If we fix a base point xXx \in X, then the set of morphisms from xx to itself in the groupoid Π1(X)\Pi_1(X) forms a group, called the fundamental group of XX at xx, denoted π1(X,x)\pi_1(X, x).

So π1(X,x)\pi_1(X, x) is a group of loops at xx up to homotopy, with group operation given by concatenation of loops.

This shows that the fundamental group is just a special case of the more general structure of a groupoid, where we allow paths between all points in XX, not just loops based at a single point.


Closing Thoughts

These algebraic structures—categories, monoids, groups, and groupoids—form the language of modern mathematics, from algebra and geometry to computer science and logic. Understanding them provides a unifying perspective and opens doors to deeper theory, including functors, natural transformations, and higher category theory.

Popular Posts