Metric Spaces
Posted by John Baez
guest post by Tom Leinster
While the world goes wild for categorification (and the part that doesn’t, should!), I seem to be fixated on decategorification — or counting as it’s popularly known. And right now I’m obsessed with counting metric spaces.
We’ve talked about how you can count a category. There, counting went under other names still, ‘Euler characteristic’ and ‘cardinality’. With your mind on autopilot, you can extend this definition to enriched categories. And a metric space is a special kind of enriched category! So we obtain a definition of the cardinality of a metric space.
I’ve known for a while that this can be done, but it’s only in the last few weeks that I’ve started to see the point. Below, I explain where this idea leads: to the geometry of convex sets, to fractal dimension, and to how the world looks when you take off your glasses.
This is also a cry for help! It seems that there’s a really nice story to be told, but I’m frustratingly stuck on a couple of elementary lemmas. They’re probably the sort of thing that a bright schoolkid could settle — but they’ve defeated me.
Background: the cardinality of a category
Here I’ll whizz through a definition that some of you already know… but if you don’t know it, you don’t need to. It just provides some extra motivation for the definition of the cardinality of a metric space, which I’ll define directly anyway. If you prefer, skip ahead to the definition (‘Let be a finite metric space…’) a screen or so below.
Let be a finite category (finitely many objects, finitely many arrows). Put the objects in some order: . Let be the matrix whose -entry is , the cardinality of the set of arrows from to . Assuming that is invertible, the cardinality of the category is the sum of all entries of . (Some of you know that you can sometimes get away without assuming to be invertible, but never mind.)
It’s easy to adapt this definition to enriched categories . For instance, suppose that is a category enriched in finite-dimensional vector spaces (and with only finitely many objects): then simply change ‘’ to ‘’.
In general, suppose that is enriched in some monoidal category , and that we have some notion of the cardinality of objects of . Mindlessly parroting the definition above, we can write down the definition of the cardinality of a -enriched category with only finitely many objects. For the definition to behave sensibly, we probably want and , where , vertical bars denote cardinality, and is the unit object of .
And… metric spaces are enriched categories! This was pointed out by Lawvere. Take , the set of non-negative reals with adjoined. It’s an ordered set under , and so becomes a category — but that’s with the reverse of the usual ordering, so that there’s one arrow if and none otherwise. Indeed, it’s a monoidal category, with tensor product and unit . A -enriched category is a set of ‘points’ together with, for each , an element , satisfying some axioms. A few moments’ reflection should convince you that any metric space is a -enriched category.
(In fact, you don’t need all the classical metric space axioms to show this, and Lawvere argues persuasively that the classical definition is wrong, but I won’t go into that.)
So it looks as if we can talk about the cardinality of a finite metric space. The only missing ingredient is a notion of the ‘cardinality’ of an element of . In other words, we need a way to assign a number to every ! That’s not quite as trivial as it looks — I said that cardinality should turn tensor product into multiplication, which here means that and . Assuming that cardinality takes values in the real numbers and is continuous, the only possibility is for some constant . Later I’ll try to convince you of what value I think should take. If you can guess already, I want to know how!
Mr Motivator has been and gone; here’s the definition. In it, is a constant.
Let be a finite metric space, with points and metric . Write for the matrix whose -entry is . The cardinality of is the sum of all entries of .
I’ll assume from now until nearly the end that is always invertible — though this is a question that has cost me much sleep and Simon Willerton much computing time.
Example Let’s run through the case of a two-point space . It has points and , distance apart. So and a short calculation shows that the sum of the entries of is . Suppose that . Then is ‘how many points there appear to be to someone with bad eyesight’. As increases from to , increases from to . If is small then is close to : it looks as if there’s only one point. If is large then is nearly : the points are far enough apart that you can see that there really are two of them.
This is the first piece of evidence that we should take to be between and . Taking different values of in this range amounts to rescaling the metric by a constant factor, so is not tremendously significant.
(Probe your psyche with the following question: what does the formula remind you of? For some people it’s Fermi–Dirac statistics; for some it’s Todd classes; for others still it’s the exponential generating function for the Bernoulli numbers.)
For many months I could make nothing of this. But now I can! Read on…
Background: geometric measure theory
There’s a subject variously known as geometric measure theory, geometric probability, integral geometry, and (as a Rotary joke) continuous combinatorics. It contains, for instance, a fantastic solution to the Buffon needle problem. And it also has good things to say about cardinality.
Let’s start with a simple observation. Steve Schanuel has a paper ‘What is the length of a potato?’ in which he points out that a closed interval of length 1 centimetre is not very good as a ruler: if you put two of them end-to-end then you don’t quite get an interval of 2cm — there’s a point in the middle left over. A half-open interval would be better. Thus, the measure of the closed interval isn’t really : it’s , or , or simply . Similarly, a closed interval of length has length .
What about a closed rectangle, say ? From a formal point of view, its measure ought to be You can justify this formula by asking how much paint you’d need to cover the rectangle. Certainly you need to paint the in the middle. You also need to paint the boundary, which you might think would require , but as you’re only painting the inside of the boundary, it’s half of that. Similarly, you have to paint of each of the four corner points, which requires unit of paint.
In the same fashion, you can calculate the measure of a right-angled triangle, using the fact that two of them stuck together make a rectangle, and you can play the game in higher dimensions, calculating the measure of cubes and so on. Schanuel explains how to do it for a spherical potato.
A big result in this field is Hadwiger’s Theorem, nicely explained in Klain and Rota’s book Introduction to Geometric Probability. Fix a natural number . A subset of is polyconvex if it can be expressed as a finite union of compact convex sets. Let be the set of ‘measures’ on the polyconvex subsets of . Here I don’t mean measures in the usual sense. A ‘measure’ in this sense assigns a real number to every polyconvex , and is finitely additive: The other axioms for a measure are simple enough, and you can read them here.
Now, is a real vector space in an obvious way. If we asked for infinite additivity, it would be one-dimensional, consisting of the multiples of Lebesgue measure. Hadwiger’s Theorem says that, in fact, . Specifically, has a basis where the measure is -dimensional: writing to mean a polyconvex set scaled up by a factor of , it satisfies . For instance, is a basis for . Give or take a constant factor, these are the coefficients in the formula above for the measure of a rectangle. So Hadwiger’s Theorem goes some way towards formalizing ‘potato theory’.
The point
Here’s where it all comes together. The idea is to define the cardinality of infinite metric spaces by approximating them by finite ones. This turns out to produce many of the invariants of geometric measure theory.
For example, take an interval of length . Let be a sequence of finite subsets of that converges to in an obvious sense:
for all there exists such that for all , the -balls centred on the elements of cover .
Theorem The sequence of cardinalities converges to .
This is just like Schanuel’s observation that a closed interval of length should have measure !
Recall, however, that the definition of the cardinality of a metric space depends on the choice of a constant . To make the theorem true, we have to take ; otherwise, the sequence of cardinalities converges to for some positive constant . So from now on, .
Assuming that every metric space has cardinality, lots of good things follow. Using the fact that every compact metric space is a limit (in the Gromov–Hausdorff metric) of a sequence of finite metric spaces, it can be shown that every compact metric space has a well-defined cardinality. Products behave well with respect to cardinality, so the rectangle has cardinality , and so on.
The Ancient Greeks knew that ratios are more significant than lengths. Lengths depend on the unit of measurement, but ratios don’t. So when we have a metric space , it’s often worth considering the whole family of spaces, where means with the metric multiplied by a factor of . With this in mind, let’s define for each space a function I’ll call the cardinality function of . It tells us the cardinality not only of , but also of all its brothers and sisters .
Examples Let be a closed interval of length . Then Let be a closed rectangle. Then exactly the formula from the section on geometric measure theory, but with ‘’ instead of ‘cm’.
Conjecture Let be a convex subset of . Then where the ’s are the measures of Hadwiger’s Theorem, suitably normalized.
The conjecture says in particular that is a polynomial and that its degree is the dimension of .
We can also attempt to calculate the cardinality functions of some self-similar spaces. (For this I’ll assume some plausible-seeming but unproved statements on how cardinality behaves with respect to colimits.) Taking the hoariest example, let be Sierpiński’s gasket. Since is the union of copies of , overlapping at points, we’d expect Solving this gives where and is some other constant. Although this isn’t a polynomial, its ‘degree’ in some analytic sense is . And is the Hausdorff dimension of ! So just as in the conjecture, the degree of is the dimension of .
In all these examples, the constant term is the Euler characteristic. The higher coefficients depend on the metric, but the constant term is purely topological.
In summary, the story seems to go like this. The notion of the cardinality of a category leads to the notion of the cardinality of a finite metric space, which leads to the notion of the cardinality of a compact metric space, which encompasses the most important invariants of geometric measure theory: all of the measures on real polyconvex sets, Hausdorff dimension, and maybe more.
Cry for help
All of the above depends on some elementary lemmas that I’ve been unable to prove. This has been driving me up the wall! Kind reader: now that you’ve seen where this story seems to lead, perhaps you will be moved to help.
The main unproved assumption is that every metric space has cardinality. It’s true for metric spaces with points, and Simon has tested millions of other spaces without finding a counterexample. But I can’t prove or disprove it!
I’ll state the problem in a completely elementary form, and I’ll try to give you the psychological advantage by calling it an exercise:
Exercise 1 Say that a square matrix is metric if it is symmetric, its diagonal entries are all , its off-diagonal entries are all in , and for all . Prove, or disprove, that every metric matrix is invertible.
Thinking of the cardinality of a finite space as how many points there appear to be to someone with bad eyesight, you’d expect spaces with points spaced more widely apart to have greater cardinality. This suggests the following.
Exercise 2 In this exercise, assume that the metric spaces involved have cardinality. Let be a finite metric space.
- Let be another metric space with the same set of points as and with for all . Show that .
- Show that for all . (A special case of the previous part.)
- Show that if has points then .
These exercises are conjectures! It’s not obvious, but they’re closely related: the statements of Exercise 2 very nearly imply the statement of Exercise 1.
Simon’s tests suggest that the symmetry assumption might not be necessary to prove the conjecture in Exercise 1 or to prove that in the last part of Exercise 2. He has a potential non-symmetric counterexample to the conjecture that , but isn’t sure if it’s due to a rounding error or not. I’m most concerned to settle these conjectures in the symmetric case: metric spaces in the completely classical sense.
Re: Metric Spaces
Amazing post, Tom! I hope someone does those ‘exercises’!
Tom wrote:
For what it’s worth, Alain Connes makes some cryptic remarks about Bernoulli numbers in the book Triangle of Thoughts, which suggest that all three of these things are closely linked — except maybe Bose–Einstein statistics rather than Fermi–Dirac!
The first remark goes like this: “Planck had been interested in the black body problem since 1894. Living in Berlin, he was familiar with the experiments by Rubens and Kurlbaum. In the fall of 1900, he had the amazing intuition of a function of a single variable that fit beautifully with the two types of experimental results, and reconciled Lord Rayleigh’s law with Wien’s displacement law. This function is not at all simple, and even from a purely mathematical view it contains an enormous number of hidden treasures, such as Bernoulli numbers…”
In the second remark, Marcel Schutzenberger says, “The origin of Bernoulli numbers lies in the symmetric functions of integers. They play a role in the sum of the th powers of integers from to ,” and Connes replies “These numbers appear in the asymptotics of , almost by definition.”
There are two more such remarks, which you can find by going to the Amazon link above and searching under ‘Bernoulli’. (I don’t usually link to sites that sell books, but this time I’ll make an exception.)
I’ve been trying to understand this stuff more deeply for years. Here are some comments designed to explain Connes’ remarks to people who know little of the history of physics, or indeed physics.
Suppose you have a system which can be in states labelled , and the probability of being in the th state is proportional to for some parameter . Then the actual probability of being in the th state is , where the normalizing factor is
To physicists this is the ‘partition function of the harmonic oscillator’, deeply intertwined with ‘Bose–Einstein statistics’. The similar function for Fermi–Dirac statistics is .
If you try to Taylor expand this function
you run into a minor problem: it blows up at . You can just do a Laurent expansion instead — but the easiest way to do that is do a Taylor expansion of
and then divide by . This Taylor expansion turns out to be
where the coefficients are called the Bernoulli numbers.
The fun then lies in finding ways to compute and understand the Bernoulli numbers. I wrote a lengthy annotated problem set about this which contains my best insights so far about what’s ‘really going on’; you can also see answers by Jeff Morton. This problem set explains why Bernoulli numbers show up when you sum
In a nutshell, they’re deeply linked to the discrete analogue of integration — obtained as the inverse of the discrete analogue of differentiation.
There’s still a lot that remains mysterious to me. I don’t really know why Bernoulli numbers show up in Kervaire and Milnor’s formula for the number of smooth structures on the -sphere.
More importantly, I don’t really know why the function is so crucial in the theory of Todd classes, and whether this is related to the partition function of the harmonic oscillator somehow. I think it is…
Anyway, it’s quite possible that none of this will help you at all. Maybe you’re secretly dealing with Fermi–Dirac statistics and dividing something by the partition function — but if so, I sure don’t see why!