Misplaced Pages

Allegory (mathematics)

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Allegory (category theory))

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 RS means "first do S, then do R".

Definition

An allegory is a category in which

  • every morphism R : X Y {\displaystyle R\colon X\to Y} is associated with an anti-involution, i.e. a morphism R : Y X {\displaystyle R^{\circ }\colon Y\to X} with R = R {\displaystyle R^{\circ \circ }=R} and ( R S ) = S R ; {\displaystyle (RS)^{\circ }=S^{\circ }R^{\circ }{\text{;}}} and
  • every pair of morphisms R , S : X Y {\displaystyle R,S\colon X\to Y} with common domain/codomain is associated with an intersection, i.e. a morphism R S : X Y {\displaystyle R\cap S\colon X\to Y}

all such that

  • intersections are idempotent: R R = R , {\displaystyle R\cap R=R,} commutative: R S = S R , {\displaystyle R\cap S=S\cap R,} and associative: ( R S ) T = R ( S T ) ; {\displaystyle (R\cap S)\cap T=R\cap (S\cap T);}
  • anti-involution distributes over intersection: ( R S ) = R S ; {\displaystyle (R\cap S)^{\circ }=R^{\circ }\cap S^{\circ };}
  • composition is semi-distributive over intersection: R ( S T ) R S R T {\displaystyle R(S\cap T)\subseteq RS\cap RT} and ( R S ) T R T S T ; {\displaystyle (R\cap S)T\subseteq RT\cap ST;} and
  • the modularity law is satisfied: R S T ( R T S ) S . {\displaystyle RS\cap T\subseteq (R\cap TS^{\circ })S.}

Here, we are abbreviating using the order defined by the intersection: R S {\displaystyle R\subseteq S} means R = R S . {\displaystyle R=R\cap S.}

A first example of an allegory is the category of sets and relations. The objects of this allegory are sets, and a morphism X Y {\displaystyle X\to Y} is a binary relation between X and Y. Composition of morphisms is composition of relations, and the anti-involution of R {\displaystyle R} is the converse relation R {\displaystyle R^{\circ }} : y R x {\displaystyle yR^{\circ }x} if and only if x R y {\displaystyle xRy} . Intersection of morphisms is (set-theoretic) intersection of relations.

Regular categories and allegories

Allegories of relations in regular categories

In a category C, a relation between objects X and Y is a span of morphisms X R Y {\displaystyle X\gets R\to Y} that is jointly monic. Two such spans X S Y {\displaystyle X\gets S\to Y} and X T Y {\displaystyle X\gets T\to Y} are considered equivalent when there is an isomorphism between S and T 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 C has products, a relation between X and Y is the same thing as a monomorphism into X × Y (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 R Y S Z {\displaystyle X\gets R\to Y\gets S\to Z} is found by first pulling back the cospan R Y S {\displaystyle R\to Y\gets S} and then taking the jointly-monic image of the resulting span X R S Z . {\displaystyle X\gets R\gets \bullet \to S\to Z.}

Composition of relations will be associative if the factorization system is appropriately stable. In this case, one can consider a category Rel(C), with the same objects as C, but where morphisms are relations between the objects. The identity relations are the diagonals X X × X . {\displaystyle X\to X\times 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 R in an allegory A is called a map if it is entire ( 1 R R ) {\displaystyle (1\subseteq R^{\circ }R)} and deterministic ( R R 1 ) . {\displaystyle (RR^{\circ }\subseteq 1).} Another way of saying this is that a map is a morphism that has a right adjoint in A when A 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 Map(A) of A with the same objects but only the maps as morphisms. For a regular category C, there is an isomorphism of categories C Map ( Rel ( C ) ) . {\displaystyle C\cong \operatorname {Map} (\operatorname {Rel} (C)).} In particular, a morphism in Map(Rel(Set)) is just an ordinary set function.

In an allegory, a morphism R : X Y {\displaystyle R\colon X\to Y} is tabulated by a pair of maps f : Z X {\displaystyle f\colon Z\to X} and g : Z Y {\displaystyle g\colon Z\to Y} if g f = R {\displaystyle gf^{\circ }=R} and f f g g = 1. {\displaystyle f^{\circ }f\cap g^{\circ }g=1.} An allegory is called tabular if every morphism has a tabulation. For a regular category C, the allegory Rel(C) is always tabular. On the other hand, for any tabular allegory A, the category Map(A) 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 Map(A), and in this setting, A Rel ( Map ( A ) ) . {\displaystyle A\cong \operatorname {Rel} (\operatorname {Map} (A)).}

Unital allegories and regular categories of maps

A unit in an allegory is an object U for which the identity is the largest morphism U U , {\displaystyle U\to U,} and such that from every other object, there is an entire relation to U. An allegory with a unit is called unital. Given a tabular allegory A, the category Map(A) is a regular category (it has a terminal object) if and only if A 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

Categories: