Toward compact double categories: Part 1

The twisted Hom double functor

Published

June 20, 2024

This post is cross-posted at the Topos Institute blog.

Lately I’ve been pursuing formal category theory using double categories. A first step in this program is to abstract from categories to category objects in a double category; for instance, internal categories are category objects in a double category of spans and enriched categories are category objects in a double category of matrices. The next step is to take structures defined on categories and generalize them to category objects in a double category. By the microcosm principle, that is possible when the double category possesses a categorified version of the very structure in question. The concepts from double category theory that I’ve used so far, like products and coproducts, indeed categorify familiar concepts from category theory. While there are interesting twists along the way, the one-dimensional story gives strong hints about how to generalize to double categories.

An operation on categories that has no direct analogue for sets is taking the opposite category. Though trivial to compute—simply turn the arrows around—the existence of a nontrivial symmetry on categories has the powerful consequence that every definition or result in the language of category theory has a dual. Ideas in category theory come at a two-for-the-price-of-one bargain. Opposites also occur constantly in everyday use of category theory, such as when taking a contravariant functor to be a (covariant) functor out of an opposite category.

An abstract account of categorical duality is thus essential for formal category theory: what structure must a double category possess for its category objects to admit a duality? Unfortunately, for all its apparent simplicity, categorical duality has resisted a satisfactory axiomatization. Ideally, we would find universal properties that determine the opposite category uniquely, at least up to equivalence. Let’s begin by seeing how a purely bicategorical approach founders.

The compact bicategory of profunctors

A basic property of the opposite category is that for any categories X, Y, and Z, profunctors X×YZ naturally correspond with profunctors XYop×Z. This property should remind you of how, for any finite-dimensional vector spaces U, V, and W, linear maps UVW naturally correspond with linear maps UVW, where V is the dual vector space of V. In the case of profunctors, the correspondence is captured by a compact closed bicategory (; ), or compact bicategory for short, the bicategorical analogue of a compact category. Specifically, under the set-theoretic cartesian product, categories, profunctors, and natural transformations form a symmetric monoidal bicategory (Prof,). It becomes a compact bicategory when the dual of a category is taken to be its opposite, as observed by Day and Street ().

Yet compact bicategories fall short of axiomatizing categorical duality via universal properties, in two ways.

First, a symmetric monoidal product is a structure on, not a universal property of, a bicategory. A purely bicategorical fix would be to use cartesian bicategories instead of monoidal bicategories, but as I have argued on this blog and in print (), cartesian or finite-product double categories are more elegant solutions, being defined by simpler universal properties. So double categories already neatly solve this problem.

Second—and this is the problem that will occupy us—even once the symmetric monoidal structure on the bicategory is fixed, duals are defined by a bicategorical universal property, which is too loose in key examples. In the case of profunctors, the universal property gives equivalences of hom-categories

Prof(XY,Z)Prof(X,YZ).

In particular, taking both X and Z to be 1, we have that the categories of presheaves on Y and of copresheaves on Y are equivalent. The general case gives no further information. Thus, the dual category Y is determined by the universal property up to Morita equivalence, under which two categories are considered to be the same if any of the following equivalent conditions hold:

  • the categories have equivalent categories of presheaves
  • the categories are equivalent in the bicategory Prof
  • the Cauchy completions of the categories are equivalent (in Cat).

So, if I asked you for the dual of a category, you would be allowed to take its opposite and then also take its Cauchy completion. But wait, that’s not what I asked for! To make this more vivid, the nLab notes that the Cauchy completion of the category of open subsets of Euclidean spaces and smooth maps is the category of smooth manifolds. If those two categories were the same, differential geometry wouldn’t be a subject!

The second problem cannot be solved in the same way as the first. In the first case, the trouble is that the bicategory Prof cannot detect the familiar universal property of products, since it holds with respect to tight morphisms in the double category Prof. But categorical duality really is a universal property with respect to loose morphisms in Prof. So one has to wonder whether double categories can help here at all. In this series of posts I will point out that, perhaps surprisingly, double categories do help in key examples, even if the general story remains mysterious to me.

Outline

With that preamble, our aim is to propose a definition of a compact double category. The definition will involve an adjunction in the loose direction of the double category, generalizing an adjunction in a bicategory. As far as I know, this notion of double adjunction has not yet been defined; the elegant theory of double adjunctions created by Grandis and Paré () refers to the tight direction. To define such adjunctions, I will employ a version of the Hom double functor, but again, the Hom double functor from the Yoneda theory for double categories () refers to the tight direction. Continuing to work backwards, to cook up this “twisted” Hom functor, which sends arrows to proarrows and vice versa, I will need similarly “twisted” notion of double functor.

So that’s where we will begin in the next section: defining a twisted lax functor between double categories. We then construct our motivating example, the twisted Hom functor on a double category. Only in the next post will get back to our original objective.

The upfront cost in machinery is admittedly high, but I find these ancillary ideas interesting in their own right and I believe they will find other uses. Still, everything explored here should be considered provisional.

Twisted double functors

The transpose of a strict double category D is a new double category D that exchanges the categories of horizontal and vertical morphisms, thus transposing the cells. That this is possible is a special situation. In general, a double category cannot be transposed due to the fundamental asymmetry of being strict in one direction and weak in the other. Nevertheless, it can be interesting to consider “double functors” DE that behave like double functors from D into the transpose of E, even when the transpose makes no formal sense. I call these “twisted double functors.”

Definition 1 A twisted lax double functor F:DE between double categories D and E consists of an assignment sending

  • each object x of D to an object Fx of E,
  • each arrow f:xy of D to a proarrow Ff:FxFy of E,
  • each proarrow m:xy of D to an arrow Fm:FxFy of E, and
  • each cell of D to a cell of E, as follows:

In addition, for composable arrows xfygz and for objects x in D, there are composition and identity comparison cells in E:

Similarly, for composable proarrows x m y n z and for objects x in D, there are comparison cells in E:

This data must satisfy the following axioms.

  • Naturality of composition comparisons, in both directions: for internally composable cells α and β in D,

    and for externally composable cells α and β in D,

  • Naturality of unitality comparisons, in both directions: analogous.

  • Associativity and unitality of composition and identity comparisons, in both directions: two instances of the usual associativity and unitality axioms for a lax functor; cf. (, Definition 3.5.1).

Notice that, when the domain D is strict, a twisted lax functor DE is more general than an ordinary lax functor DE, and when the codomain E is strict, it is more general than an ordinary lax functor DE, because a twisted lax functor is lax in both directions. For our purposes, laxness with respect to arrows, captured by the comparisons Ff,g, is the more essential feature, but in our main example we must at least allow a twisted functor to be pseudo with respect to proarrows, so that the comparisons Fm,n are non-identity cells invertible with respect to external composition in E.

The rules for composing ordinary and twisted lax functors deserve more attention than I’ve given them. For now, I’ll just say that twisted lax functors can be precomposed with ordinary ones. Specifically, given a lax functor H:CD and a twisted lax functor F:DE, there is another twisted lax functor FH:CE.

The twisted Hom functor

In his “Yoneda theory for double categories,” Paré () introduces the Hom double functor

Hom:Dop×DSpan,

in which Dop is the tight dual of D, reversing its arrows and cells. The Hom functor is a lax double functor that sends a pair of objects x and y in D to the hom-set Hom(x,y):=D0(x,y) consisting of arrows xy, as usual, and sends a pair of proarrows m:xy and n:wz in D to the span

Hom(m,n):=(D0(x,w)sD1(m,n)tD0(y,z))

whose apex is the set of cells mn. The action on arrows and cells is given by composition in D0 and D1, respectively, and the comparison cells are given by external composition and identities in D. In this way, the Hom double functor faithfully encodes all the operations of a double category.

Most parallel and economical would be to define a “twisted Hom functor” of the form

Hom:Dco×D?Span,

in which Dco is the loose dual of D, reversing its proarrows and cells. However, Span is too strict to make this definition: composition of proarrows in a double category D obeys the category laws only up to natural isomorphism, whereas the only cells in Span that could furnish these composition comparisons are identities! The twisted Hom functor must be valued in Prof instead. That is arguably preferable anyway since, following the philosophy of pseudo double categories, proarrows are first and foremost the objects of a category and thus it would violate the principle of equivalence to not at least retain their globular isomorphisms.

Definition 2 The twisted Hom double functor on a double category D is the twisted lax functor

Hom:Dco×DProf

that maps

  • each pair of objects x and y in D to the hom-category D(x,y) comprising the proarrows xy and globular cells between them;

  • each pair of arrows f:xw and g:yz in D to the profunctor between hom-categories

    Hom(f,g):Hom(x,y)Hom(w,z)

    in which the heteromorphisms from a proarrow m:xy to another wz are just the cells in D of form

    on which globular cells act by pre- and post-composition;

  • each pair of proarrows p:xx and q:yy in D to the functor between hom-categories

    Hom(p,q):Hom(x,y)Hom(x,y)

    that sends a proarrow m:xy to the composite proarrow pmq:xy and a globular cell α:mn to the composite cell 1pα1q;

  • each pair of cells in D as on the left

    to the natural transformation on the right whose component Hom(ϕ,ψ)m,n at a pair of proarrows m:xy and n:wz in D is given by external composition:

The comparison cells of the twisted Hom functor are defined as follows. At pairs of composable arrows xfygz and xfygz in D, the composition comparison Hom(f,f),(g,g) is the natural transformation whose components act by composition in D1:

The identity comparison Hom(x,x) at a pair of objects x and x in D is just the identity on the hom-category D(x,x).

Finally, at pairs of composable proarrows x p x p x and y q y q y in D, the composition comparison Hom(p,q),(p,q) is the natural isomorphism whose component at m:xy is the globular isomorphism

p(pmq)q(pp)m(qq)

given by the associators of D. Similarly, the identity comparison Hom(x,y) at a pair of objects x and y in D is the natural isomorphism whose component at m:xy is the globular isomorphism

midxmidy

given by the unitors of D.

This completes the construction of the twisted Hom functor. We crucially used that it is valued in profunctors, not spans, when defining the final comparison cells. The twisted Hom functor is, in fact, a twisted normal lax functor, meaning that the identity comparisons in both directions are isomorphisms. Like the ordinary Hom functor, the twisted Hom functor faithfully encodes all the operations of a double category, but now in a transposed fashion.

Next time, we put the twisted Hom functor to work, defining a compact double category using a twisted double adjunction.

References

Aleiferi, Evangelia. 2018. “Cartesian Double Categories with an Emphasis on Characterizing Spans.” PhD thesis, Dalhousie University. arXiv:1809.06940.
Carmody, Sean Michael. 1995. “Cobordism Categories.” PhD thesis, University of Cambridge.
Day, Brian, and Ross Street. 1997. “Monoidal Bicategories and Hopf Algebroids.” Advances in Mathematics 129 (1): 99–157. DOI:10.1006/aima.1997.1649.
Grandis, Marco. 2019. Higher Dimensional Categories: From Double to Multiple Categories. World Scientific. DOI:10.1142/11406.
Grandis, Marco, and Robert Paré. 1999. “Limits in Double Categories.” Cahiers de Topologie Et géométrie Différentielle Catégoriques 40 (3): 162–220.
Niefield, Susan. 2024. “Cartesian Closed Double Categories.” Theory and Applications of Categories 40 (3): 63–79. http://www.tac.mta.ca/tac/volumes/40/3/40-03abs.html.
Paré, Robert. 2011. “Yoneda Theory for Double Categories.” Theory and Applications of Categories 25 (17): 436–89. http://www.tac.mta.ca/tac/volumes/25/17/25-17abs.html.
Patterson, Evan. 2024. “Products in Double Categories, Revisited.” arXiv:2401.08990.
Stay, Michael. 2016. “Compact Closed Bicategories.” Theory and Applications of Categories 31 (26): 755–98. http://www.tac.mta.ca/tac/volumes/31/26/31-26abs.html.

Footnotes

  1. There are at least two plausible and useful double-categorical analogues of cartesian categories: “cartesian double categories” () and “double categories with finite products” (). Furthermore, the latter tend to exhibit a laxness with no 1-categorical counterpart.↩︎

  2. A “compact bicategory” is sometimes taken to mean something different, namely a bicategory in which every morphism has a left and a right adjoint. In this series of posts we will only ever use “compact” to mean “compact closed.”↩︎

  3. Compact double categories have been contemplated by various people over the years, but so far no entirely definite proposal has emerged. On the nLab, Shulman has sketched an interesting unbiased approach to compact double categories and compact virtual double categories. Further afield, Niefield () studies cartesian closed double categories, which are closed in the tight direction, not the loose one.↩︎

  4. I follow the convention that double categories and double functors are pseudo by default.↩︎

  5. In the jargon of (, Definition 4.3.7), the double category Span is unit-pure: any cell between identity spans must itself be the external identity on a function. Thus, a twisted Hom functor valued in spans could only be defined for strict double categories. By contrast, the double category Prof is not unit-pure: the cells bounded by identity profunctors are arbitrary natural transformations between functors.↩︎