Category Theory
Zulip Server
Archive

You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.


Stream: learning: reading & references

Topic: Applications of sheaves


view this post on Zulip David Tanzer (Apr 03 2024 at 18:57):

This is a spinoff from #learning: reading & references > reading through Baez's topos theory blog posts, for continued discussion of applications of sheaves.

John Baez said:

David Tanzer said:

Cool, thanks for the reminder about the separated aspect. All these examples put a good spotlight on the glueing condition. Now that we've solidly established the definition of a sheaf, which feels rather substantive, I'll ask: what are a couple of cool things that we can do with sheaves, in at least a semi-applied sense? I'm sure there are many; just fishing around here for some favorites.

My own favorite applications of sheaves are the ones that made people invent sheaves in the first place - applications to algebraic geometry and toplogy. I don't know how deeply we want to get into those here. But it's not surprising that some of the most exciting applications of a concept are the ones that made people take the trouble to develop it in the first place!

Briefly, since a bounded analytic function must be constant, there are no everywhere defined analytic functions on the Riemann sphere except constants - all the interesting ones have poles. This issue affects all of complex analysis and algebraic geometry. This puts pressure on us to either accept 'partially defined' functions as full-fledged mathematical objects or work with sheaves of functions, e.g. work with lots of different open sets UU in the Riemann sphere and let F(U)F(U) be the set of analytic functions everywhere defined on UU.

Mathematicians took the second course, because partially defined functions where you haven't specified the domain of definition are a pain to work with. So nowadays all of algebraic geometry (subsuming chunks of complex analysis, and much much more) is founded on sheaves. In this subject one can do a lot of amazing things with sheaves. Later on these tricks expanded to algebraic topology. And this is how a typical math grad student (like me) is likely to encounter sheaves.

Needless to say, I'm happy to get into more detail about what we actually do with sheaves. But it's quite extensive: the proof of Fermat's Last Theorem and pretty much all the other big results in algebraic geometry relies heavily on sheaves.

Great application, thanks!

view this post on Zulip David Tanzer (Apr 03 2024 at 19:00):

David Egolf said:

This paper, which I want to read someday, also comes to mind: Sheaves are the canonical data structure for sensor integration

A sensor integration framework should be sufficiently general to accurately represent all information sources, and also be able to summarize information in a faithful way that emphasizes important, actionable information. Few approaches adequately address these two discordant requirements. The purpose of this expository paper is to explain why sheaves are the canonical data structure for sensor integration and how the mathematics of sheaves satisfies our two requirements. We outline some of the powerful inferential tools that are not available to other representational frameworks.

view this post on Zulip David Tanzer (Apr 03 2024 at 19:00):

Peva Blanchard said:

Here is one example of application in network dynamic theory: Opinion dynamics on discourse sheaves.

view this post on Zulip John Baez (Apr 04 2024 at 00:17):

I find the paper Opinion dynamics on discourse sheaves unsatisfying as an application of sheaves, because you'll see that what they call a "sheaf" is really a presheaf on a certain poset.

view this post on Zulip John Baez (Apr 04 2024 at 00:22):

One can think of any presheaf as a sheaf in a certain way, but I get excited about sheaves when they are sheaves on a topological space or sheaves on a category equipped with a nontrivial Grothendieck topology (meaning not just presheaves on a category).

view this post on Zulip John Baez (Apr 04 2024 at 00:27):

So, the paper could be great but I'm not convinced it really illustrates the power of sheaves. (I could be wrong.)

view this post on Zulip Peva Blanchard (Apr 04 2024 at 06:49):

Oh, I see. I read that paper back when I knew very little about sheaves, and it sticked in my mind as "a concrete application of sheaves". I should have been more careful before posting it.

view this post on Zulip Peva Blanchard (Apr 04 2024 at 07:01):

This is really unfortunate, the authors should have called their concept "Discourse pre-sheaves".

view this post on Zulip Matteo Capucci (he/him) (Apr 04 2024 at 07:03):

John Baez said:

I find the paper Opinion dynamics on discourse sheaves unsatisfying as an application of sheaves, because you'll see that what they call a "sheaf" is really a presheaf on a certain poset.

In my experience in ACT, most of the time people want to work with sheaves because of cohomology measuring local-to-global obstructions and so are actually interested in H1H^{-1} and H0H^0---meaning one is actually interested in the failure of being a sheaf, and not really in sheaves. So there is this absurd situation in which applied sheaf theory often ends up meaning applying the exact opposite, i.e. the theory of how-not-to-be-a-sheaf.

view this post on Zulip Peva Blanchard (Apr 04 2024 at 07:15):

So it's more about mis-sheaf theory :)

view this post on Zulip John Baez (Apr 04 2024 at 17:23):

Mischief with mis-sheaves.

view this post on Zulip John Baez (Apr 04 2024 at 17:25):

I'm glad I'm not the only one feels people are saying they're using sheaves when they're using presheaves. I'm a bit grumpy about this, because I have a suspicion they're trying to cash in on the glamour of saying they're using sheaves.

view this post on Zulip John Baez (Apr 04 2024 at 17:27):

I love presheaf categories; I don't think there's anything wrong with using presheaves. I think it's better to call them what they are.

view this post on Zulip John Baez (Apr 04 2024 at 17:28):

I took a peek and it seems this paper is actually using sheaves:

view this post on Zulip John Baez (Apr 04 2024 at 17:31):

On page 17 they give the definition of a "sheaf of pseudometric spaces".

view this post on Zulip John Baez (Apr 04 2024 at 17:32):

The examples of these remind me of @David Egolf's reflections on images and the idea of approximately equal images.

view this post on Zulip John Baez (Apr 04 2024 at 17:33):

The article says

In his Appendix on sheaf theory, Hubbard states [53] “It is fairly easy to
understand what a sheaf is, especially after looking at a few examples. Under-
standing what they are good for is rather harder; indeed, without cohomology
theory, they aren’t good for much."

view this post on Zulip John Baez (Apr 04 2024 at 17:34):

That's certainly true in applications to algebraic geometry and algebraic topology!

view this post on Zulip Notification Bot (Apr 04 2024 at 17:35):

Tobias Fritz has marked this topic as resolved.

view this post on Zulip John Baez (Apr 04 2024 at 17:35):

So then the author tries to apply sheaf cohomology to his subject - integrating data collected from different sensors.

view this post on Zulip Notification Bot (Apr 04 2024 at 17:35):

John Baez has marked this topic as unresolved.

view this post on Zulip Tobias Fritz (Apr 04 2024 at 17:35):

(Whoops, I was just reading this and accidentally clicked on something...)

view this post on Zulip David Tanzer (Apr 05 2024 at 02:26):

Here's an nLab page on this paper:

Abstract. This paper uses concepts from sheaf theory to explain phenomena in concurrent systems, including object, inheritance, deadlock, and non-interference, as used in computer security. The approach is very general, and applies not only to concurrent object oriented systems, but also to systems of differential equations, electrical circuits, hardware description languages, and much more. Time can be discrete or continuous, linear or branching, and distribution is allowed over space as well as time. Concepts from category theory help to achieve this generality: objects are modelled by sheaves; inheritance by sheaf morphisms; systems by diagrams; and interconnection by diagrams of diagrams. In addition, behaviour is given by limit, and the result of interconnection by colimit. The approach is illustrated with many examples, including a semantics for a simple concurrent object-based programming language.

view this post on Zulip David Tanzer (Apr 05 2024 at 02:32):

Note: I didn't purchase it, so I can't vouch for whether it is about presheaf or sheaf semantics. Sounds interesting, in any case.

view this post on Zulip David Tanzer (Apr 05 2024 at 03:07):

It looks like the term "cellular sheaf" has become established as a presheaf-based structure. E.g.,

Jakob Hansen and Robert Ghrist, Towards a spectral theory of cellular sheaves

Let X be a regular cell complex. A cellular sheaf attaches data spaces to the
cells of X together with relations that specify when assignments to these data
spaces are consistent.

Definition 2.4 A cellular sheaf of vector spaces on a regular cell complex X
is an assignment of a vector space F(σ) to each cell σ of X together with a
linear transformation for each incident cell pair .
These must satisfy both an identity relation and the composition condition...

view this post on Zulip Matteo Capucci (he/him) (Apr 05 2024 at 06:57):

Yeah that's a pretty questionable terminological choice

view this post on Zulip Peva Blanchard (Apr 05 2024 at 08:20):

David Tanzer said:

Note: I didn't purchase it, so I can't vouch for whether it is about presheaf or sheaf semantics. Sounds interesting, in any case.

I read that paper a long time ago (my academia background is distributed algorithms). Here is a copy sheaf semantics for concurrent interacting objects.

I glanced at it now, and the author does mention the difference between presheaves and sheaves.

view this post on Zulip Amar Hadzihasanovic (Apr 05 2024 at 19:22):

I think that in many cases if one works with combinatorial/discretised structures, one naturally turns a sheaf structure into a presheaf structure, because in fact the “discretisation” is in itself a process of turning some “wobbly” gluings/colimits into some “rigid” colimits that can be seen as free on some category of “pieces”.

That seems to be the case for the “cellular sheaves” mentioned above -- in a discretised world “overlaps between open sets” are turned into something like “common faces of combinatorial cells”.

view this post on Zulip Amar Hadzihasanovic (Apr 05 2024 at 19:23):

So I think that this disapproval for “calling a presheaf a sheaf” may turn out to be penalising for discrete mathematics, like “you don't get to use the cool name” even though you are trying to model the exact same thing.

view this post on Zulip Zoltan A. Kocsis (Apr 06 2024 at 02:58):

Amar Hadzihasanovic said:

So I think that this disapproval for “calling a presheaf a sheaf” may turn out to be penalising for discrete mathematics

Purely arguendo, without the implication that anyone actually does it in this case, even subconsciously: I find this plausible.

I doubt that anyone voiced concerns about synthetic algebraic geometers having sheaves on lattices which are not only not sheaves in the traditional sense, but are sometimes on lattices that lack infinite joins altogether (so are very unlike open set lattices), or similarly o-minimal geometers who call anything a sheaf that has finite gluings only (I preemptively apologize to the SAG people if I got that wrong, I am far from an expert on the topic; as for o-minimal geometers, I spent a lot of time with them and know that they do this routinely, seemingly without objection).

With all that said, I _can_ imagine that learning o-minimal topology is not a good way to learn about how sheaves are used in their usual contexts, and vice versa.

view this post on Zulip Mike Shulman (Apr 06 2024 at 03:01):

Are you sure those notions of sheaf aren't just sheaves on some site that isn't an open-set lattice?

view this post on Zulip Mike Shulman (Apr 06 2024 at 03:02):

There's no problem in principle with writing down a site that has only finite coverings.

view this post on Zulip Mike Shulman (Apr 06 2024 at 03:03):

(And for the same reason, I don't see any reason in principle that sheaves-that-aren't-presheaves couldn't appear in discrete mathematics.)

view this post on Zulip Zoltan A. Kocsis (Apr 06 2024 at 03:05):

Mike Shulman said:

Are you sure those notions of sheaf aren't just sheaves on some site that isn't an open-set lattice?

I'm reflecting mostly on John's comments above, about ehat kinds of honest examples he'd like to give: cfrom what I understand, chiefly ones coming from open set lattices, but in any case freely sheafifying a presheaf would not qualify.

In the SAG case: yeah, I can't rule that out, but it's also not immediately clear, and that's why I hedged a bit. Reflecting on John's examples, I assumed these wouldn't fit, being very unlike open set lattices.

In the o-minimal case: the topologies involved would have to be "essentially discrete", so this is a definite example.

view this post on Zulip Mike Shulman (Apr 06 2024 at 03:28):

I assumed what John meant is that he just wanted to see sheaves on a nontrivial site.

view this post on Zulip Mike Shulman (Apr 06 2024 at 03:29):

What do you mean by "essentially discrete"?

view this post on Zulip Zoltan A. Kocsis (Apr 06 2024 at 03:47):

Mike Shulman said:

I assumed what John meant is that he just wanted to see sheaves on a nontrivial site.

Then I must be missing something.

AFAICT, the "cellular sheaves" criticized above _can_ simply be turned into sheaves over Alexandroff spaces, and it is my understanding that a sheaf on a topological space X arises as a sheaf on the site Op(X), which certainly has nontrivial topology. This gave me the impression that an indirect correspondence like this is regarded as "cashing in on the glamour of sheaves" and we're looking for more "honest" examples: arbitrary sheaves on a site won't qualify. Or I made a mistake in my reasoning above (corrections appreciated).

view this post on Zulip Mike Shulman (Apr 06 2024 at 04:04):

Well, here's what John said:
John Baez said:

One can think of any presheaf as a sheaf in a certain way, but I get excited about sheaves when they are sheaves on a topological space or sheaves on a category equipped with a nontrivial Grothendieck topology (meaning not just presheaves on a category).

view this post on Zulip Mike Shulman (Apr 06 2024 at 04:05):

It's also true of course that every category of presheaves is equivalent to a category of sheaves on some nontrivial site. Speaking for myself, what would satisfy me as an application of "sheaves" would be a nontrivial site appearing "naturally".

view this post on Zulip Mike Shulman (Apr 06 2024 at 04:11):

I guess one might ask more strongly for a nontrivial site whose category of sheaves is not equivalent to any category of presheaves.

view this post on Zulip Mike Shulman (Apr 06 2024 at 04:12):

By the way, what do you mean by "synthetic algebraic geometry"? This paper, for instance, is absolutely using the usual notion of sheaf on a site, and I'm pretty confident that sheaves on that site are not equivalent to any category of presheaves.

view this post on Zulip Mike Shulman (Apr 06 2024 at 04:17):

And I don't know much about o-minimal geometry, but a bit of googling led me to a paper called "Sheaf cohomology in o-minimal structures" which does certainly also appear to be defining a site in the ordinary sense. Are you saying that the category of sheaves on this site is equivalent to some category of presheaves?

view this post on Zulip Zoltan A. Kocsis (Apr 06 2024 at 06:48):

I guess one might ask more strongly for a nontrivial site whose category of sheaves is not equivalent to any category of presheaves.

This rules out sheaves of modules on a finite site, so if one were to insist on this stronger condition, then one cannot expect sheaves-that-aren't-presheaves to appear in discrete mathematics at all.

I defer to your insight on the SAG case [3]. As for o-minimal geometry, let me briefly explain what I meant. It's usual to consider sheaves of definable functions on the lattice of definable sets of a given dimension (e.g. as done from p155 onward in Tame topology and o-minimal structures). The definable sets always form a Boolean algebra; if the underlying o-minimal structure has type I according to the trichotomy theorem of Peterzil and Starchenko, then the category of sheaves of parameter-free definables is equivalent to a presheaf category; the same sort of presheaves on a finite poset as in cellular sheaves above. I don't know whether that's good or bad, but if we would regard criticizing the o-minimal geometers for their terminological choice weird, then perhaps we shouldn't criticize the applied topologists for it either.

With that said, let's not dwell too much more on these examples. Maybe the SAG one was just wrong, maybe somebody else will bring better examples of the phenomenon I'm after, but in any case, my point wasn't meant to be "let's scrutinize the geometers too", I aimed to address some broader phenomenon.

Speaking for myself, what would satisfy me as an application of "sheaves" would be a nontrivial site appearing "naturally".

I understand that, and I think both you Matteo and John have a fair stance here. I too don't think cellular sheaves (or for that matter, the sheaves in o-minimal geometry mentioned above) are good examples for explaining the uses of sheaves to somebody. They're not merely atypical exemplars, but they lack precisely those properties that make sheaves very useful in the central/typical areas of algebraic geometry and topology that one might want to illustrate! Essentially, I'm fully on board with John's summary above: "I'm not convinced it really illustrates the power of sheaves".

But this is akin to considering cassowaries an odd choice for representing birds to someone unfamiliar with the diversity of bird species. Absolutely true, and yet no reason to think that the taxonomists who classified cassowaries as birds were "trying to cash in on the glamour of saying they're studying birds".

It's only the latter, "trying to cash in on the glamour" characterization specifically that I find troubling, in the sense that I don't think we could apply such a criterion fairly across various disciplines.

For instance, if a sheaf F constructed over the course of an algebraic geometry proof turns out to a sheaf of modules based on a finite site (I'm quite sure this has happened before), all would readily accept F as natural due to its role in the proof, and nobody ( except perhaps Reviewer 2 ;) ) would worry that the author is merely trying to cash in on the glamour of sheaves. Whereas if the proof happens to be in a discrete mathematics or applied topology textbook, the standards are suddenly much more stringent, “you don't get to use the cool name” unless your example is very "natural", sometimes with conditions that finite structures cannot possibly meet. Which is exactly my reading of @Amar Hadzihasanovic 's point about penalizing discrete mathematics, the one that I find very plausible. It's not about whether we have a precise standard of what counts as natural [1] but about whether we apply such a standard consistently to practitioners of all fields, or only ever subject practitioners of certain subfields to it [2].

I hope that makes sense.

[1] And it's quite possible that there's a reasonable standard, stricter than just technically being a sheaf, and my suggested examples don't actually qualify under this standard! I'm fine with "it counts as an honest example as long as it's not equivalent to a category of presheaves".

[2] But I do doubt that algebraic geometers or topologists had their choice of terminology subjected to any such standard. E.g. if we argue that the standard should exclude sheaves on Alexandroff spaces from the class of honest examples, then before we adopt the standard I'd like to see some evidence that we previously reprimanded e.g. the noncommutative geometers for studying certain sheaves on Alexandroff spaces qua sheaves, and not qua presheaves.

[3] But I don't think "having a nontrivial Grothendieck topology" is the sensible standard we're looking for, nor a good approximation to a "naturally arising" site. It leads to a situation where if we study sheaves on certain open set lattices (even one which some geometers and topologists care about), we have a dishonest example. But as soon as we artificially restrict the allowed covers to only the finite ones, while retaining the very same open set lattice, thereby making the structure both more artificial and nastier in every mathematical sense (including in senses that geometers and topologists care about) we somehow get a more honest example. Presumably, if one is not excited about certain sheaves because they are merely presheaves in disguise, one would get less, not more excited about these ones?

view this post on Zulip Mike Shulman (Apr 06 2024 at 15:48):

I don't think anything that appears in discrete mathematics must be finite. Discrete mathematicians use plenty of infinite things. Generating functions and species come to mind.

view this post on Zulip Mike Shulman (Apr 06 2024 at 15:50):

I don't have much else to add, and I don't think we disagree a lot, but let me just repeat, in case it wasn't clear, that what I see a difference between is (1) studying sheaves on some site that arises naturally and is nontrivial (nontriviality and naturality are orthogonal properties of a site) and that later turn out to be equivalent to presheaves on some other category, and (2) studying a category of presheaves from the get-go and nevertheless calling them "sheaves".

view this post on Zulip Mike Shulman (Apr 06 2024 at 16:37):

Oh, and in case it seems relevant to the charge of unequal treatment of disciplines, there's some work in theoretical physics starting with https://arxiv.org/abs/0709.4364 that applies topos theory, using a topos that happens to be a presheaf category from the get-go. Its authors do also observe that the category of presheaves on a poset is equivalent to sheaves on its Alexandrov topology, but they don't refer to the work as an application of "sheaves" (and I would be equally uncomfortable if they did).

view this post on Zulip Mike Shulman (Apr 06 2024 at 16:38):

So perhaps speaking of an application of "toposes" is a more general solution?

view this post on Zulip Mike Shulman (Apr 06 2024 at 16:56):

Also (I guess I was wrong that I didn't have much else to add), FWIW my own concern is not so much with people cashing in on the glamour of sheaves (which has an implicit assertion of mens rea) but just with clarity of exposition and truth in advertising.

The definition of "sheaf", as a general concept, is significantly more complicated than that of "presheaf", and results about sheaves tend to be significantly more nontrivial than corresponding results about presheaves. So if someone asks "what is an application of sheaves?" and someone gives them an application of presheaves, I don't think it's a very good answer to the question, because it doesn't answer the implied question of "why should someone care about the complication in the definitions and proofs about sheaves?" It as if someone asked "what is an application of rings?" and someone answers with an application of the integers: yes, the integers are a ring, but it's not really a good way to convince someone that the abstract machinery of ring theory is useful.

view this post on Zulip Mike Shulman (Apr 06 2024 at 16:56):

And dually, if an application of presheaves is presented as an application of sheaves, then someone who reads it and understands it may come away thinking they have some understanding of sheaves, when in fact they haven't even engaged at all with the real notion of sheaf.

view this post on Zulip Amar Hadzihasanovic (Apr 06 2024 at 17:18):

One situation that I thought could arise, when I commented on this, is the following — although I do not have a concrete, precise example, it is just something that seems plausible to me, thinking of some related situations.

Namely, that when trying to "discretise" some sheaf structure, for example by passing from some space to a combinatorial cell complex, it turns out that the possibility of "discretising" in such a way that the sheaf becomes a presheaf on the discretised space relies on the fact that the sheaf was a genuine sheaf — that is, an obstruction to a presheaf being a sheaf in the original setup would have showed up as an obstruction to the discretisation of this setup.

In this case, I think it would be fair to say that the "genuine" sheaf-theoretic aspects have not vanished, they simply appear at a different stage of the modelling.

view this post on Zulip Mike Shulman (Apr 06 2024 at 17:20):

Sure! As I said, the thing I don't like is starting with presheaves from the get-go and still calling them sheaves.

view this post on Zulip Amar Hadzihasanovic (Apr 06 2024 at 17:21):

That's fair!

view this post on Zulip John Baez (Apr 06 2024 at 17:51):

I agree with everything Mike just said; in fact I'm really relieved he wrote all this stuff because it sounds like a clearer, more patient way of saying what I was attempting to telegraph in my earlier comments.

view this post on Zulip John Baez (Apr 06 2024 at 17:52):

So: ignore what I said; he said it better.

view this post on Zulip Josselin Poiret (Apr 07 2024 at 09:58):

Maybe I'm side-tracking a bit here, but since you're talking of presheaves vs. sheaves here, I was wondering something: what intrinsic properties are true of presheaves but fail to be true for sheaves, or put another way, does the extra structure of being "just a presheaf category" give you anything extra? I'm thinking more in terms of internal language/topos theoretic stuff.