Every
group is a groupoid.
Fundamental groupoid Given a
topological space , let G_0 be the set . The morphisms from the point p to the point q are
equivalence classes of
continuous paths from p to , with two paths being equivalent if they are
homotopic. Two such morphisms are composed by first following the first path, then the second; the homotopy equivalence guarantees that this composition is
associative. This groupoid is called the
fundamental groupoid of , denoted \pi_1(X) (or sometimes, ). The usual fundamental group \pi_1(X,x) is then the vertex group for the point . The orbits of the fundamental groupoid \pi_1(X) are the path-connected components of . Accordingly, the fundamental groupoid of a
path-connected space is transitive, and we recover the known fact that the fundamental groups at any base point are isomorphic. Moreover, in this case, the fundamental groupoid and the fundamental groups are
equivalent as categories (see the section
below for the general theory). An important extension of this idea is to consider the fundamental groupoid \pi_1(X,A) where A\subset X is a chosen set of "base points". Here \pi_1(X,A) is a (full) subgroupoid of , where one considers only paths whose endpoints belong to . The set A may be chosen according to the geometry of the situation at hand.
Equivalence relation If X is a
setoid, i.e. a set with an
equivalence relation , then a groupoid "representing" this equivalence relation can be formed as follows: • The objects of the groupoid are the elements of ; • For any two elements x and y in , there is a single morphism from x to y (denote by ) if and only if ; • The composition of (z,y) and (y,x) is . The vertex groups of this groupoid are always trivial; moreover, this groupoid is in general not transitive and its orbits are precisely the equivalence classes. There are two extreme examples: • If every element of X is in relation with every other element of , we obtain the
pair groupoid of , which has the entire X \times X as set of arrows, and which is transitive. • If every element of X is only in relation with itself, one obtains the
unit groupoid, which has X as set of arrows, {{tmath|1= s = t = \mathrm{id}_X }}, and which is completely intransitive (every singleton \{x\} is an orbit).
Examples • If f: X_0 \to Y is a smooth
surjective submersion of
smooth manifolds, then X_0\times_YX_0 \subset X_0\times X_0 is an equivalence relationp. 5 is a special kind of groupoid associated to an equivalence relation given by an open cover \mathcal{U} = \{U_i\}_{i\in I} of some manifold . Its objects are given by the disjoint union \mathcal{G}_0 = \coprod U_i , and its arrows are the intersections \mathcal{G}_1 = \coprod U_{ij} . The source and target maps are then given by the induced maps\begin{align} s = \phi_j: U_{ij} \to U_j\\ t = \phi_i: U_{ij} \to U_i \end{align}and the inclusion map\varepsilon: U_i \to U_{ii}giving the structure of a groupoid. In fact, this can be further extended by setting\mathcal{G}_n = \mathcal{G}_1\times_{\mathcal{G}_0} \cdots \times_{\mathcal{G}_0}\mathcal{G}_1as the n-iterated fiber product where the \mathcal{G}_n represents n-tuples of composable arrows. The structure map of the fiber product is implicitly the target map, since\begin{matrix} U_{ijk} & \to & U_{ij} \\ \downarrow & & \downarrow \\ U_{ik} & \to & U_{i} \end{matrix}is a cartesian diagram where the maps to U_i are the target maps. This construction can be seen as a model for some
-groupoids. Also, another artifact of this construction is
-cocycles[\sigma] \in \check{H}^k(\mathcal{U}, \underline{A})for some constant
sheaf of abelian groups can be represented as a function\sigma:\coprod U_{i_1\cdots i_k} \to A giving an explicit representation of cohomology classes.
Group action If the
group G acts on the set , then we can form the
action groupoid (or
transformation groupoid) representing this
group action as follows: • The objects are the elements of ; • For any two elements x and y in , the
morphisms from x to y correspond to the elements g of G such that ; •
Composition of morphisms interprets the
binary operation of . More explicitly, the
action groupoid is a small category with \mathrm{ob}(C)=X and \mathrm{hom}(C)=G\times X and with source and target maps s(g,x) = x and . It is often denoted G \ltimes X (or X\rtimes G for a right action). Multiplication (or composition) in the groupoid is then , which is defined provided . For x in , the vertex group consists of those (g,x) with , which is just the
isotropy subgroup at x for the given action (which is why vertex groups are also called isotropy groups). Similarly, the orbits of the action groupoid are the
orbit of the group action, and the groupoid is transitive if and only if the group action is
transitive. Another way to describe G-sets is the
functor category {{tmath|1= [\mathrm{Gr},\mathrm{Set}] }}, where \mathrm{Gr} is the groupoid (category) with one element and
isomorphic to the group . Indeed, every functor F of this category defines a set X=F(\mathrm{Gr}) and for every g in G (i.e. for every morphism in {{tmath|1= \mathrm{Gr} }}) induces a
bijection F_g : . The categorical structure of the functor F assures us that F defines a G-action on the set . The (unique)
representable functor F : \mathrm{Gr} \to \mathrm{Set} is the
Cayley representation of . In fact, this functor is isomorphic to \mathrm{Hom}(\mathrm{Gr},-) and so sends \mathrm{ob}(\mathrm{Gr}) to the set \mathrm{Hom}(\mathrm{Gr},\mathrm{Gr}) which is by definition the "set" G and the morphism g of \mathrm{Gr} (i.e. the element g of ) to the permutation F_g of the set . We deduce from the
Yoneda embedding that the group G is isomorphic to the group {{tmath|1= \{F_g\mid g\in G\} }}, a
subgroup of the group of
permutations of .
Finite set Consider the group action of \Z/2\Z on the finite set X = \{-2, -1, 0, 1, 2\} where 1 acts by taking each number to its negative, so -2 \mapsto 2 and . The quotient groupoid [X/G] is the set of equivalence classes from this group action {{tmath|1= \{[0],[1],[2]\} }}, and [0] has a group action of \Z/2\Z on it.
Quotient variety Any finite group G that maps to \mathrm{GL}(n) gives a group action on the
affine space \mathbb{A}^n (since this is the group of automorphisms). Then, a quotient groupoid can be of the form {{tmath|1= [\mathbb{A}^n/G] }}, which has one point with stabilizer G at the origin. Examples like these form the basis for the theory of
orbifolds. Another commonly studied family of orbifolds are
weighted projective spaces \mathbb{P}(n_1,\ldots, n_k) and subspaces of them, such as
Calabi–Yau orbifolds.
Inertia groupoid The inertia groupoid of a groupoid is roughly a groupoid of loops in the given groupoid.
Fiber product of groupoids Given a diagram of groupoids with groupoid morphisms : \begin{align} & & X \\ & & \downarrow \\ Y &\rightarrow & Z \end{align} where f:X\to Z and , we can form the groupoid X\times_ZY whose objects are triples , where {{tmath|1= x \in \text{Ob}(X) }}, {{tmath|1= y \in \text{Ob}(Y) }}, and \phi: f(x) \to g(y) in . Morphisms can be defined as a pair of morphisms (\alpha,\beta) where \alpha: x \to x' and \beta: y \to y' such that for triples , there is a commutative diagram in Z of , g(\beta):g(y) \to g(y') and the .
Homological algebra A two term complex : C_1 ~\overset{d}{\rightarrow}~ C_0 of objects in a
concrete Abelian category can be used to form a groupoid. It has as objects the set C_0 and as arrows the set ; the source morphism is just the projection onto C_0 while the target morphism is the addition of projection onto C_1 composed with d and projection onto . That is, given , we have : t(c_1 + c_0) = d(c_1) + c_0. Of course, if the abelian category is the category of
coherent sheaves on a scheme, then this construction can be used to form a
presheaf of groupoids.
Puzzles While puzzles such as the
Rubik's Cube can be modeled using group theory (see ''
Rubik's Cube group''), certain puzzles are better modeled as groupoids. The transformations of the
fifteen puzzle form a groupoid (not a group, as not all moves can be composed). This
groupoid acts on configurations.
Mathieu groupoid The
Mathieu groupoid is a groupoid introduced by
John Horton Conway acting on 13 points such that the elements fixing a point form a copy of the
Mathieu group M12. == Relation to groups ==