Allegory (mathematics) explained

In the mathematical field of category theory, an allegory is a category that has some of the structure of the category Rel of sets and binary relations between them. Allegories can be used as an abstraction of categories of relations, and in this sense the theory of allegories is a generalization of relation algebra to relations between different sorts. Allegories are also useful in defining and investigating certain constructions in category theory, such as exact completions.

In this article we adopt the convention that morphisms compose from right to left, so means "first do, then do ".

Definition

An allegory is a category in which

R\colonX\toY

is associated with an anti-involution, i.e. a morphism

R\circ\colonY\toX

with

R\circ\circ=R

and

(RS)\circ=S\circR\circ;

and

R,S\colonX\toY

with common domain/codomain is associated with an intersection, i.e. a morphism

R\capS\colonX\toY

all such that

R\capR=R,

commutative:

R\capS=S\capR,

and associative:

(R\capS)\capT=R\cap(S\capT);

(R\capS)\circ=R\circ\capS\circ;

R(S\capT)\subseteqRS\capRT

and

(R\capS)T\subseteqRT\capST;

and

RS\capT\subseteq(R\capTS\circ)S.

Here, we are abbreviating using the order defined by the intersection:

R\subseteqS

means

R=R\capS.

A first example of an allegory is the category of sets and relations. The objects of this allegory are sets, and a morphism

X\toY

is a binary relation between and . Composition of morphisms is composition of relations, and the anti-involution of

R

is the converse relation

R\circ

:

yR\circx

if and only if

xRy

. Intersection of morphisms is (set-theoretic) intersection of relations.

Regular categories and allegories

Allegories of relations in regular categories

In a category, a relation between objects and is a span of morphisms

X\getsR\toY

that is jointly monic. Two such spans

X\getsS\toY

and

X\getsT\toY

are considered equivalent when there is an isomorphism between and that make everything commute; strictly speaking, relations are only defined up to equivalence (one may formalise this either by using equivalence classes or by using bicategories). If the category has products, a relation between and is the same thing as a monomorphism into (or an equivalence class of such). In the presence of pullbacks and a proper factorization system, one can define the composition of relations. The composition

X\getsR\toY\getsS\toZ

is found by first pulling back the cospan

R\toY\getsS

and then taking the jointly-monic image of the resulting span

X\getsR\gets\bullet\toS\toZ.

Composition of relations will be associative if the factorization system is appropriately stable. In this case, one can consider a category, with the same objects as, but where morphisms are relations between the objects. The identity relations are the diagonals

X\toX x X.

A regular category (a category with finite limits and images in which covers are stable under pullback) has a stable regular epi/mono factorization system. The category of relations for a regular category is always an allegory. Anti-involution is defined by turning the source/target of the relation around, and intersections are intersections of subobjects, computed by pullback.

Maps in allegories, and tabulations

A morphism in an allegory is called a map if it is entire

(1\subseteqR\circR)

and deterministic

(RR\circ\subseteq1).

Another way of saying this is that a map is a morphism that has a right adjoint in when is considered, using the local order structure, as a 2-category. Maps in an allegory are closed under identity and composition. Thus, there is a subcategory of with the same objects but only the maps as morphisms. For a regular category, there is an isomorphism of categories

C\cong\operatorname{Map}(\operatorname{Rel}(C)).

In particular, a morphism in is just an ordinary set function.

In an allegory, a morphism

R\colonX\toY

is tabulated by a pair of maps

f\colonZ\toX

and

g\colonZ\toY

if

gf\circ=R

and

f\circf\capg\circg=1.

An allegory is called tabular if every morphism has a tabulation. For a regular category, the allegory is always tabular. On the other hand, for any tabular allegory, the category of maps is a locally regular category: it has pullbacks, equalizers, and images that are stable under pullback. This is enough to study relations in, and in this setting,

A\cong\operatorname{Rel}(\operatorname{Map}(A)).

Unital allegories and regular categories of maps

A unit in an allegory is an object for which the identity is the largest morphism

U\toU,

and such that from every other object, there is an entire relation to . An allegory with a unit is called unital. Given a tabular allegory, the category is a regular category (it has a terminal object) if and only if is unital.

More sophisticated kinds of allegory

Additional properties of allegories can be axiomatized. Distributive allegories have a union-like operation that is suitably well-behaved, and division allegories have a generalization of the division operation of relation algebra. Power allegories are distributive division allegories with additional powerset-like structure. The connection between allegories and regular categories can be developed into a connection between power allegories and toposes.

References