In mathematics, especially in category theory and homotopy theory, a groupoid (less often Brandt groupoid or virtual group) generalises the notion of group in several equivalent ways. A groupoid can be seen as a:
Group with a partial function replacing the binary operation; Category in which every morphism is invertible. A category of this sort can be viewed as augmented with a unary operation on the morphisms, called inverse by analogy with group theory. A groupoid where there is only one object is a usual group. In the presence of dependent typing, a category in general can be viewed as a typed monoid, and similarly, a groupoid can be viewed as simply a typed group. The morphisms take one from one object to another, and form a dependent family of types, thus morphisms might be typed g:A→B, h:B→C, say. Composition is then a total function: ∘:(B→C)→(A→B)→(A→C), so that h∘g:A→C. Special cases include:
Setoid: a set that comes with an equivalence relation, G-set: a set equipped with an action of a group G. Groupoids are often used to reason about geometrical objects such as manifolds. Heinrich Brandt (1927) introduced groupoids implicitly via Brandt semigroups.
Definitions
Algebraic A groupoid can be viewed as an algebraic structure consisting of a set with a binary partial function. Precisely, it is a non-empty set G with a unary operation −1:G→G, and a partial function ∗:G×G⇀G. Here ∗ is not a binary operation because it is not necessarily defined for all pairs of elements of G. The precise conditions under which ∗ is defined are not articulated here and vary by situation. The operations ∗ and −1 have the following axiomatic properties: For all a, b, and c in G,
Associativity: If a∗b and b∗c are defined, then (a∗b)∗c and a∗(b∗c) are defined and are equal. Conversely, if one of (a∗b)∗c or a∗(b∗c) is defined, then they are both defined (and they are equal to each other), and a∗b and b∗c are also defined. Inverse: a−1∗a and a∗a−1 are always defined. Identity: If a∗b is defined, then a∗b∗b−1=a, and a−1∗a∗b=b. (The previous two axioms already show that these expressions are defined and unambiguous.) Two convenient properties follow from these axioms:
(a−1)−1=a, If a∗b is defined, then (a∗b)−1=b−1∗a−1.
Category-theoretic A groupoid is a small category in which every morphism is an isomorphism, i.e., invertible. More explicitly, a groupoid G is a set G0 of objects with
for each pair of objects x and y, a (possibly empty) set G(x,y) of morphisms (or arrows) from x to y; we write f:x→y to indicate that f is an element of G(x,y); for each triple of objects x, y, and z, a function compx,y,z:G(y,z)×G(x,y)→G(x,z) (g,f)↦gf that is associative. That is, for every four objects x, y, z, w and functions f:x→y,g:y→z,h:z→w h(gf)=(hg)f for every object x, a designated element idx of G(x,x) satisfying, for any morphism f:x→y f idx=f and idy f=f; for each pair of objects x, y, a function inv:G(x,y)→G(y,x):f↦f−1 satisfying, for any f:x→y: ff−1=idy and f−1f=idx. If the requirement that inverses exist is removed while keeping everything else, this is then the definition of a category. Thus, a groupoid is a category in which every morphism has an inverse. If f is an element of G(x,y), then x is called the source of f, written s(f), and y is called the target of f, written t(f). A groupoid G is sometimes denoted as G1⇉G0, where G1 is the set of all morphisms, and the two arrows G1→G0 represent the source and the target. More generally, one can consider a groupoid object in an arbitrary category admitting finite fiber products.
Comparing the definitions The algebraic and category-theoretic definitions are equivalent, as we now show. Given a groupoid in the category-theoretic sense, let G be the disjoint union of all of the sets G(x,y) (i.e. the sets of morphisms from x to y). Then comp and inv become partial operations on G, and inv will in fact be defined everywhere. We define ∗ to be comp and −1 to be inv, which gives a groupoid in the algebraic sense. Explicit reference to G0 (and hence to id) can be dropped. Conversely, given a groupoid G in the algebraic sense, define an equivalence relation ∼ on its elements by a∼b iff a∗a−1=b∗b−1. Let G0 be the set of equivalence classes of ∼, i.e. G0:=G/∼. Denote a∗a−1 by 1x if a∈G with x∈G0. Now define G(x,y) as the set of all elements f such that 1x∗f∗1y exists. Given f∈G(x,y) and g∈G(y,z), their composite is defined as gf:=f∗g∈G(x,z). To see that this is well defined, observe that since (1x∗f)∗1y and 1y∗(g∗1z) exist, so does (1x∗f∗1y)∗(g∗1z)=f∗g. The identity morphism on x is then 1x, and the category-theoretic inverse of f is f−1. Sets in the definitions above may be replaced with classes, as is generally the case in category theory.
Vertex groups and orbits Given a groupoid G, the vertex groups or isotropy groups or object groups in G are the subsets of the form G(x,x), where x is any object of G. It follows easily from the axioms above that these are indeed groups, as every pair of elements is composable and inverses are in the same vertex group. The orbit of a groupoid G at a point x∈X is given by the set s(t−1(x))⊆X containing every point that can be joined to x by a morphism in G. If two points x and y are in the same orbits, their vertex groups G(x) and G(y) are isomorphic: if f is any morphism from x to y, then the isomorphism is given by the mapping g→fgf−1. Orbits form a partition of the set X, and a groupoid is called transitive if it has only one orbit (equivalently, if it is connected as a category). In that case, all the vertex groups are isomorphic (on the other hand, this is not a sufficient condition for transitivity; see the section below for counterexamples).
… excerpt ends here. Continue reading the full article.