The Magnitude of an Enriched Category
Posted by Tom Leinster
Enriched category theory is a machine of great power. On the front of that machine is a dial:
Turning the dial selects the category in which you’re enriching — or more poetically, selects a branch of mathematics. Turning it to selects order theory. Turning it to selects metric geometry. Turning it to selects homological algebra. Turning it to selects category theory itself. Turning it to selects -category theory. Any definition framed in the full generality of enriched category theory is, therefore, extremely general.
Most of my work over the last few years has been directed towards understanding size. Many mathematical objects come with a canonical ‘size’ invariant: the cardinality of a set, the Euler characteristic of a topological space, the entropy of a probability space. There is a familial resemblance between these invariants, and I’ve been trying to pin it down.
In Cambridge on Tuesday I’ll give a talk about my best effort so far: a definition of the magnitude of an enriched category. This produces, automatically, many size-like invariants: some old and familiar, some half-familiar, and some that are completely unexplored. I thought I’d prepare for the seminar by telling the story here.
Regular readers of this blog will find much of what I’m about to say familiar — though I’ve tried to say it slightly differently, so that it’s not too familiar. But mostly, I’ve tried to write it so that it makes sense to those who’ve never read this blog before.
Background
I could launch in and give the definition of the magnitude of an enriched category straight away. It would then look mysterious and unmotivated. The following background story should dispel the mystery, even though it’s not strictly necessary for what follows.
Here are two elementary combinatorial formulas.
- Take a diagram of finite sets and injective maps. Then the cardinality of the pushout is given by the formula
- Take a finite group acting freely on a finite set . Then the cardinality of the set of orbits is given by the formula
In each case, we start with a finite category and a functor . (In the second case, is the one-object category corresponding to the group .) In each case, we give a formula for the cardinality of the colimit of as a weighted sum of the cardinalities of the individual sets : Here is some family of rational numbers, independent of . In each case, the formula is only asserted to hold when is a ‘special’ functor: those are the conditions in italics. It’s clear that no such formula could hold for all functors , since usually will depend on the effect of on morphisms.
There’s now an obvious question. Can we do the same for an arbitrary finite category ? In other words, for an arbitrary finite category , can we find a formula for the cardinality of the colimit of any ‘special’ functor , as a rational linear combination of the cardinalities ?
Part of the answer involves defining ‘special’. I’m not going to tell that part of the story. (You can look it up here.) But whatever a ‘special’ functor is, it surely includes representables. So let’s see what the formula says in the case when is representable.
It’s an easy exercise to show that the colimit of a representable is a one-element set. So, the left-hand side is 1. Taking and changing the name of the variable over which the sum runs, the formula says So here’s what we’ve learned: if there’s a weighted-sum formula for the cardinality of the colimit of any ‘special’ functor , and if ‘special’ includes representable, then the weights must satisfy this last equation for each . Since there are as many equations as there are unknowns , there’s usually a unique solution .
Having got this far, you might start wondering about the total weight of the category, . Why might you wonder that? One reason is that even for functors that aren’t special, the formula still computes something — and the sum of the weights is that ‘something’ in the case that has constant value .
(For category theorists at least, it’s particularly natural to think about the functor with constant value : the functors correspond to the discrete opfibrations over , and the functor with constant value is what corresponds to the identity opfibration, .)
That’s the end of the background story. You’ll hear echoes of it in what follows, and I hope it will provide motivation, but I won’t mention it explicitly again.
The magnitude of a matrix
This whole ‘size’ programme is about decategorification. It’s about turning a structure into a number that ‘counts’ it. To define the magnitude of an enriched category, we’ll use a certain way of turning a matrix into a number. Of course, we all know several ways of doing this, such as taking the determinant or trace. But this one is less familiar.
We’ll work with matrices over a rig , assumed commutative. But to speak of an ‘ matrix’ implicitly puts an order on its rows and columns, and I don’t want to do this; instead, I’ll index the rows and columns by abstract finite sets. If and are finite sets then an matrix over the rig amounts to a function .
Given a finite set, write for the column vector all of whose entries are . Write for the transpose of a matrix .
Definition Let be an matrix over . A weighting on is a column vector such that A coweighting is a row vector such that
Put another way, a weighting on is a family of elements of such that for each .
A matrix may have no weightings, exactly one, or many. The same goes for coweightings. But there’s a crucial constraint:
Lemma Let be an matrix. Let be a weighting on , and a coweighting. Then
In other words: the total weight is the total coweight. The proof is one line of algebra. If you want to look it up, you’ll find it — along with much of the rest of this post — written up in Section 1 of my paper The magnitude of metric spaces.
It follows that, for a matrix with both a weighting and a coweighting, the total weight is independent of the weighting chosen. For if and are weightings then, choosing any coweighting , we have This makes the following definition possible.
Definition A matrix has magnitude if it has at least one weighting and at least one coweighting. In that case, its magnitude is for any weighting and coweighting .
We’ll only need to talk about the magnitude of square matrices. Moreover, the rig will usually be an infinite field. A generic square matrix over an infinite field is invertible, since the probability of a linear dependence between two columns is zero. So it’s especially worth thinking about magnitude for invertible matrices .
And it turns out that the magnitude of invertible matrices is very simple. Any invertible matrix has a unique weighting, since Similarly, has a unique coweighting. In fact:
Lemma Every invertible matrix has magnitude. If is an invertible matrix then, writing , we have
If you remember no other part of this section, remember this.
The magnitude of an enriched category
Let be a monoidal category. We’re going to define the magnitude of a category enriched in , or -category for short.
There are two caveats. First, we’re only going to attempt this for -categories with finitely many objects. So the large categories of the type that most people associate with category theory — groups, topological spaces, etc — are beside the point. We’re more interested in things like a poset regarded as a category, or a group regarded as a one-object category: categories as mathematical structures, not categories of mathematical structures.
The other caveat is that in order to get a notion of the size of a category enriched in , we’ll need to start from a notion of the size of an object of .
So, we assume given a rig and a function to be thought of as assigning to each object its ‘size’ . We demand that size is isomorphism-invariant: if then . We also demand that it is a monoid homomorphism:
Let be a -category with finitely many objects. Define the similarity matrix of to be the matrix over given by
Definition The -category has magnitude if the matrix has magnitude. In that case, the magnitude of is the magnitude of :
That’s the definition. The rest of this post explores its implications.
Turning the dial
Here I’ll turn the dial to several different values of , explaining what magnitude means for each. Actually, some positions on the dial represent unexplored territory, in which case I can’t explain what it means. I’ll indicate the present state of knowledge, too, hoping to tempt you to increase it.
A -category is an ordinary category with finite homsets. Put , and define by taking to be the cardinality of , for a finite set . We get a rational-valued invariant of (most) finite categories: magnitude.
The magnitude of finite categories is compatible with all sorts of existing size-like invariants. The simplest example is that the cardinality of a set is equal to the magnitude of the resulting discrete category. When a monoid is viewed as a one-object category, the magnitude of the category is the reciprocal of the order of the monoid. (There are good reasons for that reciprocal to be there.) The Euler characteristic of a directed graph is the magnitude of the free category on it.
Some more sophisticated compatibility theorems hold, showing, for instance, how the notion of the Euler characteristic of an orbifold arises from the notion of the magnitude of a category. But perhaps most significant is the following. Every small category gives rise to a topological space, the geometric realization of its simplicial nerve. And under certain hypotheses on , the Euler characteristic of that space is equal to the magnitude of the category. For this reason, the magnitude of a category is also called its Euler characteristic.
All this and more was set out in a paper I wrote a few years ago: The Euler characteristic of a category. It’s been taken in different directions by a bunch of people:
- Clemens Berger and Tom Leinster, The Euler characteristic of a category as the sum of a divergent series
- Tom Fiore, Wolfgang Lück, Roman Sauer, Finiteness obstructions and Euler characteristics of categories
- Tom Fiore, Wolfgang Lück, Roman Sauer, Euler characteristics of categories and homotopy colimits
- Martin Wedel Jacobsen, Jesper Møller, Euler characteristics of -subgroup categories
- Kazunori Noguchi, The Euler characteristic of infinite acyclic categories with filtrations
- Kazunori Noguchi, The Euler characteristics of categories and the barycentric subdivision
Still, all this has happened quite recently, and I’m sure there’s a lot that no one yet understands. So my verdict on it is:
Status: Partly explored.
Here is the category with two objects, and , and one non-identity arrow, The monoidal structure is conjunction (the logical operator ‘and’), with as its unit. A -category is, then, a partially ordered set. (Strictly speaking it’s a preordered set, but it makes no difference up to equivalence.)
Put and define by Then we obtain a notion of the magnitude of a poset. It’s an integer-valued invariant, and can also be reasonably be called the Euler characteristic. In fact, there’s an alternating-sum formula: It’s also equal to the magnitude, or Euler characteristic, of the category corresponding to the poset. And if you know about Möbius inversion for posets, it’s equal to the sum of all the values of the Möbius function, .
This invariant has been known to combinatorialists, and the developers of poset homology, for decades.
Status: Very well explored.
This is the poset with monoidal structure given by addition. As Lawvere observed long ago, a -category is a (generalized) metric space. We take and define (). (Since is supposed to convert tensor product in into multiplication, we don’t have much choice in the matter.)
This gives a notion of the magnitude of a finite metric space. This has played a quiet role since the mid-1990s in the literature on measuring biodiversity, but seems only to have been studied in mathematics in the last few years. I wrote a paper about the magnitude of metric spaces in December, and gave a roundup of available resources on the subject here.
Its geometric significance becomes clear when we pass from finite to infinite metric spaces. There are several ways you might think of extending the definition of magnitude from finite to infinite spaces. Roughly speaking, the paper Positive definite metric spaces by Mark Meckes shows that they all give the same answer. This might not be true in total generality, but (for instance) there’s a good solid definition of the magnitude of a compact subset of . For example, the magnitude of a line segment of length is .
Simon Willerton and I have a conjecture that claims to give the magnitude of any compact convex subset of in terms of some classical geometric invariants. For example, it predicts that the magnitude of a nonempty compact convex subset is In some ways, we have quite compelling evidence for this. But in another way, we have almost no evidence at all: apart from subsets of the line, there is not a single convex subset of whose magnitude is known. This is a major obstacle to progress.
Status: Some areas explored, but large parts of the territory cut off by a mountain range.
This is the same as the last example except that the monoidal structure has changed: has become . What this means is that -categories are now ultrametric spaces, that is, metric spaces satisfying the stronger triangle inequality (The -adic integers are an important example.) Mark Meckes has worked out probably everything there is to be worked out about the magnitude of finite ultrametric spaces, in work that’s unpublished so far. I’ll let Mark explain this if he feels like it.
Status: Well explored.
Take the category of finite-dimensional vector spaces, say over . Put , and for a vector space , define . Then magnitude is a rational-valued invariant of finite -linear categories.
Catharina Stroppel and I found out a little bit about the magnitude of linear categories. Here’s a sample theorem. Take an associative algebra R over , and let be the -linear category of projective indecomposable -modules — or rather, a skeleton thereof. Then is finite.
Theorem: if is Koszul and has finite dimension and global dimension, then (Here is the degree part of .) This result suggests that the magnitude of a linear category could, again, reasonably be called the Euler characteristic.
We came up with a couple more results, but still:
Status: Only slightly explored.
This whole programme is about glorified counting, and counting tends to work better when things are finite. Nevertheless, finiteness conditions can sometimes be annoyingly restrictive. Consider, for instance, the free category on a directed graph. Even if the graph is finite, the free category on it might not be — it will be infinite if the graph contains circuits. This position on the dial provides a way to handle this situation, nevertheless.
The additive structure on gives a monoidal structure to the category of sequences of finite sets: A -category is a category in which every map has a degree , with . We might say that a -category is an ‘-graded category’.
Take , the ring of formal power series over . Define Then we obtain a -valued invariant of -graded categories.
Let’s come back to that problem of free categories. Take a finite graph , and let be the free category on . Each map in is a path in , so naturally has a degree: the length of that path. So is naturally -graded. And it’s a little theorem that its magnitude is where is the number of vertices in and is the number of edges. Putting gives , the Euler characteristic of .
There seems to be some connection between this calculation and the kind of arguments in a paper by Kazunori Noguchi, The Euler characteristic of infinite acyclic categories with filtrations.
I don’t know how much there is to say about -graded categories, so I’ll neutrally pronounce:
Status: Partly explored.
This example is similar: a -category is a graded linear category. Since graded vector spaces are important, I expect there are interesting results to be found here. But I haven’t looked.
Status: Completely unexplored.
, ,
These three s are all categories of spaces. In each case, the function is Euler characteristic (taking ). We obtain notions of the magnitude of a differential graded category, of a simplicial category, and of a topologically-enriched category. (I’m not bothering to mention the necessary finiteness conditions.) But as far as I know, no one’s ever looked into this.
Status: Completely unexplored.
Recall the strategy: starting from a function we obtain a function namely, magnitude. (To be precise, magnitude is a partially-defined function, and it only stands a chance of being defined on -categories with finite object-sets. But let me gloss over that.) So we can iterate.
In particular, we can iterate starting with . First this gives us the notion of the magnitude of a (1-)category. Then it gives us the notion of the magnitude of a -category, that is, a 2-category. Continuing, it gives us the notion of the magnitude of an -category.
The only example I know is this. For each there is an -category that deserves to be called , consisting of two parallel -morphisms. For example, is the 1-category . It’s not hard to show that which is the same as the Euler characteristic of the topological -sphere.
There must be much, much more to say about the magnitude of finite -categories.
Status: Barely explored.
This is a tricky one. The category of -categories (-categories) is a fixed point of the process . (In fact, it’s the terminal coalgebra.) So our usual procedure doesn’t help at all: in order to get a notion of size for -categories, we’d need a notion of size for objects of … but in this case, -categories and objects of are the same thing!
But what we can hope for is an invariant of finite -categories which, when fed into our procedure, produces the same invariant .
This basically says the following. Let be a finite -category. For objects of , the hom-thing is also a finite -category. Let be the matrix whose -entry is . Suppose that is invertible over , as it usually will be, and write . Then we demand that We seek an invariant satisfying this equation for every .
I’ve got as far as posing that problem, but I have no idea what the answer might be. I’d love it if someone could solve it.
Status: Completely unexplored.
Re: The Magnitude of an Enriched Category
Nice post!
I feel guilty for bringing up entropy again, but your formalism reminds me so much of that question of mine that I’m sure that there has to be a relation. Potentially the answer to that question could be another example on your list, with equal to or some other category related to . So far I haven’t been able to make it work, though. What do you think? Does it also seem related to you?