nLab
allegory

Contents

Idea

In category theory, an allegory is a category with properties meant to reflect properties that hold in a category Rel of relations. The notion was first introduced (as far as we know) and certainly first made famous in the book Categories, Allegories (Freyd-Scedrov).

Freyd and Scedrov argue that a categorical calculus of relations is an alternative and often more amenable framework for developing concepts traditionally couched in “functional” language (i.e., concepts which apply to sets and functions); for instance, a principal raison d’etre for regular categories is precisely that one can do relational calculus in them (as had been long known, e.g., Saunders MacLane showed how to calculate with relations to do diagram chases in abelian categories). Allegories, and correlative notions such as bicategories of relations, also offer a smooth approach to regular and exact completions, as used for example in the construction of realizability toposes.

A signal feature of allegories is emphasis on the modular law (see def. 1 below), which generalizes the modular law in lattices to more general relations, and which generalizes also so-called Frobenius reciprocity in categorical logic.

Definition

Definition

An allegory is a (1,2)-category A equipped with an involution () o:A opA which is the identity on objects, such that

  1. each hom-poset A(x,y) has binary intersections, and
  2. the modular law holds: for ϕ:xy, ψ:yz, and χ:xz, we have ψϕχψ(ϕψ oχ).

Examples

Maps, tabulations, and units

A map in an allegory is a morphism that has a right adjoint. If rs, then s=r o (hint: use the modular law to show rsr o and rs os).

Any 2-category has a bicategory of maps. In an allegory, the ordering between maps is discrete, meaning that if fg then f=g. Consequently, the bicategory of maps of an allegory is a category.

A tabulation of a morphism ϕ is a pair of maps f,g such that ϕ=g of and f ofg og=1. An allegory is tabular if every morphism has a tabulation, and pretabular if every morphism is contained in one that has a tabulation.

Every regular category, and indeed every locally regular category, has a tabular allegory of internal binary relations. Conversely, by restricting to the morphisms with left adjoints (“maps”) in a tabular allegory, we obtain a locally regular category. These constructions are inverse, so tabular allegories are equivalent to locally regular categories.

A locally regular category has finite products if and only if its tabular allegory of relations has top elements in its hom-posets.

Finally, a unit in an allegory is an object U such that 1 U is the greatest morphism UU, and every object X admits a morphism ϕ:XU such that 1 Xϕ oϕ. A locally regular category has a terminal object (hence is regular) if and only if its tabular allegory of relations has a unit.

Thus, regular categories are equivalent to unital (or unitary) tabular allegories. For more details, see Categories, Allegories, the Elephant, or Theory of units and tabulations in allegories.

Division allegories and power allegories

A distributive allegory is an allegory whose hom-posets have finite joins that are preserved by composition. Thus a distributive allegory is locally a lattice. The category of maps in a unitary tabular distributive allegory is a pre-logos, and conversely the bicategory of relations in a pre-logos is a unitary tabular distributive allegory.

A division allegory is a distributive allegory in which composition on one (and therefore the other) side has a right adjoint (left or right division). That is: given r:AB and s:AC, there exists r/s:BC such that

ts/rhom(B,C)trshom(A,C)t \leq s/r \in \hom(B, C) \Leftrightarrow t \circ r \leq s \in \hom(A, C)

(so that r has right adjoint /r: an example of a right Kan extension). Composition on the other side, r, has a right adjoint (an example of a right Kan lift) given by

r\u(u o/r o) o.r\backslash u \coloneqq (u^o/r^o)^o.

In the bicategory of sets and relations, with notation as above, we have

(s/r)(b,c) a:Ar(a,b)s(a,c)(s/r)(b, c) \dashv \vdash \forall_{a \colon A} r(a, b) \Rightarrow s(a, c)

where r(a,b) is shorthand for ”(a,b) belongs to r”.

The category of maps (functional relations) of a unitary/unital tabular division allegory is a logos, and conversely the bicategory of relations in a logos is a unitary tabular division allegory. (Categories, Allegories, 2.32, page 227.)

A power allegory is an allegory 𝒜 such that the inclusion functor Map(𝒜)𝒜 has a right adjoint P. The counit at an object B may be written

B:P(B)B\ni_B \colon P(B) \to B

and we have the comprehension axiom? that to each r:AB there is a map χ r:AP(B) such that r= Bχ r.

Theorem

A power allegory is a division allegory.

Proof (sketch)

Let r:AC and s:BC be morphisms; we construct a right Kan lift s\r of r through s. This means that for all t:AB we have str if and only if ts\r.

We construct s\r as χ s o[]χ r where []:P(C)P(C) is a relation opposite to the internalization [] of the external order. One way to define [] is

[]=(P(C) oPP(C)P(C)[\leq] = (P(C) \stackrel{\ni^o}{\to} P P(C) \stackrel{\bigcup}{\to} P(C)

where :PP(C)P(C) internalizes the union operation, and is defined to be the map that classifies the composite

PP(C) P(C)P(C) CC.P P(C) \stackrel{\ni_{P(C)}}{\to} P(C) \stackrel{\ni_C}{\to} C.

(Full details to appear.)

In other language, a power allegory is a division allegory which associates to each object B a morphism B:P(B)B such that for all r:AB

  • 1 A(r\ B)( B\r)

which expresses the truth of the formula a:A S:P(B) b:BS Bbr(a,b), and

  • ( B\ B)( B\ B) o1 P(B)

which internalizes an axiom of extensionality, which reads b:B(S Bb)(T Bb)S=T. Given those axioms, and given r:AB, one may define

χ r( B\r)(r\ B) o,\chi_r \coloneqq (\ni_B \backslash r) \wedge (r\backslash \ni_B)^o,

which internalizes the formula-definition χ r(a,S) bS Bbr(a,b), and then show χ r is a map. (See Categories, Allegories, pp. 235-236.)

The bicategory of relations in a topos is a power allegory; conversely, the category of maps in a unitary tabular power allegory is a topos.

Syntactic allegories

Let T be a regular theory. There is then an allegory 𝒜 T given as follows:

  • the objects are finite strings of sorts of T;
  • a morphism XY is a predicate P(x,y) of sort X,Y (or rather a provable-equivalence class of such predicates);
  • the identity XX is (named by) x 1=x 1x 2=x 2x n=x n;
  • the composite of R:XY and S:YX is named by y.R(x,y)S(y,z).

That 𝒜 T is an allegory is B.311 in Freyd–Scedrov; that it is in fact unitary and pre-tabular is B.312.

Further structure on T gives rise to further structure on 𝒜 T (B.313): if T is a coherent, first-order or higher-order theory, then 𝒜 T will be a distributive, division or power allegory respectively.

Every pre-tabular allegory has a tabular completion, given by splitting its coreflexive morphisms (i.e. those endomorphisms R such that Rid). The category of maps in the coreflexive splitting of 𝒜 T is precisely the syntactic category of T.

The existential quantifier

There are two possible ways to interpret a regular formula of the form y.R(x,y)S(y,z) in a unitary pre-tabular allegory, if R and S are interpreted as r:XY and s:YZ respectively: as the composite sr, or more ‘literally’ by:

  • pulling r and s o back to the same hom set and taking their intersection: (p 1 orp 1)(p 2 os op 2):X×ZY×Y;
  • then forcing the two Ys to be equal by post-composing with Δ Y o:Y×YY, applying the existential quantifier by post-composing with the unique map ! Y to the unit, and post-composing with ! Z o to get a morphism into Z;
  • then forcing the Z in the domain to be equal to the Z in the codomain by taking the meet with p 2:X×ZZ;
  • and finally pulling back along (precomposing with the right adjoint of) p 1:X×ZX to get a morphism XZ.

We would like to know that these morphisms are equal, so that an existential formula will have a unique interpretation:

Proposition
sr=(p 2! Z o! YΔ Y o((p 1 orp 1)(p 2 os op 2)))p 1 os r = (p_2 \cap !_Z^o !_Y \Delta_Y^o ((p_1^o r p_1) \cap (p_2^o s^o p_2))) p_1^o
Proof

We show inclusion in each direction.

Firstly, sr=srp 2p 1 o, because the product projections tabulate the top morphism. Notice also that the RHS above is equal to

( YZ(rp 1s op 2)p 2)p 1 o(\top_{Y Z} (r p_1 \cap s^o p_2) \cap p_2) p_1^o

where YZ is the top morphism YZ.

Now we can calculate:

srp 2p 1 o =(srp 1p 2)p 1 o modular law =(srp 1p 2p 2)p 1 o (s(rp 1s op 2)p 2)p 1 o modular law ( YZ(rp 1s op 2)p 2)p 1 o\begin{aligned} s r \cap p_2 p_1^o & = (s r p_1 \cap p_2) p_1^o & \text{modular law} \\ & = (s r p_1 \cap p_2 \cap p_2) p_1^o \\ & \leq (s(r p_1 \cap s^o p_2) \cap p_2) p_1^o & \text{modular law} \\ & \leq (\top_{Y Z} (r p_1 \cap s^o p_2) \cap p_2) p_1^o \end{aligned}

In the other direction, we have

( YZ(rp 1s op 2)p 2)p 1 o ( YZs o(srp 1p 2)p 2)p 1 o modular law ( YY(srp 1p 2)p 2)p 1 o YZs 0 YY =(p 2(p 1 osrp 1p 1 op 2)p 2)p 1 o YY=p 2p 1 o =p 2(p 1 osrp 1p 1 op 2p 2 op 2)p 1 o modular law =p 2(p 1 osrp 1(p 1 op 2 o)p 2)p 1 o maps distribute =p 2(p 1 osrp 1Δp 2)p 1 o see below =p 2Δ(Δ op 1 osrp 1p 2)p 1 o modular law =(srp 1p 2)p 1 o p 1Δ=p 2Δ=id =srp 2p 1 o modular law\begin{aligned} (\top_{Y Z} (r p_1 \cap s^o p_2) \cap p_2) p_1^o & \leq (\top_{Y Z} s^o (s r p_1 \cap p_2) \cap p_2) p_1^o & \text{modular law} \\ & \leq (\top_{Y Y} (s r p_1 \cap p_2) \cap p_2) p_1^o & \top_{Y Z} s^0 \leq \top_{Y Y}\\ & = (p_2 (p_1^o s r p_1 \cap p_1^o p_2) \cap p_2) p_1^o & \top{Y Y} = p_2 p_1^o \\ & = p_2 (p_1^o s r p_1 \cap p_1^o p_2 \cap p_2^o p_2) p_1^o & \text{modular law} \\ & = p_2 (p_1^o s r p_1 \cap (p_1^o \cap p_2^o) p_2) p_1^o & \text{maps distribute} \\ & = p_2 (p_1^o s r p_1 \cap \Delta p_2) p_1^o & \text{see below} \\ & = p_2 \Delta (\Delta^o p_1^o s r p_1 \cap p_2) p_1^o & \text{modular law} \\ & = (s r p_1 \cap p_2) p_1^o & p_1 \Delta = p_2 \Delta = id \\ & = s r \cap p_2 p_1^o & \text{modular law} \end{aligned}

and we are back to where we started. In the fourth-last step we used the fact that if p 1,p 2:Z×ZZ are the projections, then p 1p 2=Δ o. But Δ=id,id, and from lemma 1 here we have that id,id=p 1 op 2 o.

Other attempted axiomatizations of the same idea “something that acts like the category of relations in a regular category” include:

Discussion of the relation between pretabular unitary allegories and bicategories of relations, and also between tabular unitary allegories and regular categories is in

References

The standard monograph is

The notion is discussed also in chapter A3 of

In

it is shown that any bicategory of relations is an allegory.

See also

Revised on March 30, 2013 20:34:35 by Todd Trimble (67.81.93.26)