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.
"Counterexamples in Category Theory" -- a book that I'd like to exist, similar to "Counterexamples in Topology" and "Counterexamples in Analysis". Or maybe a website.
When doing category theory it often seems as if everything always works out. I'd like to have a clearer sense of what can go wrong. For example, when are there two functors that seem to convey the same information, and there is an family of isomorphisms between them, but this isomorphism is not natural? Is there any "naturally occurring" situation where we have all the data of a monoidal category, except coherence fails?
For this we would need to define "naturally occurring", which would probably be a syntactic definition.
So a large class of counterexamples would be of the form: a "syntactically nice" situation which is not "categorically nice".
It would also be great to get some theorems of the form: every "syntactically nice" situation is "categorically nice". Such theorems would save people (e.g. me) a lot of time proving stuff!
I like this idea, in fact I speculated about this exact idea before. There's a specific barrier to making it work: the "counterexamples" series really is doing 2 things at once. One is constructing a big bank of weird examples of topological spaces that are useful to have around. The other is to show that various hierarchies of properties of topological spaces are sharp, that all the implications between them are strict implications. That second thing doesn't really work in category theory, I think, because we generally don't get long hierarchies of properties like in general topology
That's true, but I don't think it's much of a barrier. Just means we'll have to look elsewhere for our counterexamples than making hierarchies of properties sharp.
As for the first thing, I think it's too easy to come up with toy examples of structures that don't have some property that is common "in nature". The more interesting thing would be to find counterexamples "in nature". Which then leads to the question of how to make "in nature" precise. I say, define it syntactically, but I don't know if that would work.
I've definitely encountered some oddities that sharpened my intuition and made me more paranoid about proving stuff. The craziest was one of the early failed ideas for defining Bayesian open games (which had Bayes' law baked into the monoidal product, making it extremely different to the true definition) - the resulting thing turned out to satisfy every axiom of a monoidal category except for naturality of the associator
Another oddity that I still don't properly understand about 8 years after I first encountered it (from a referee rejecting my paper) is the obvious way to define the ! modality of a dialectica category, which is very obviously a comonad...... except that it isn't
Yeah this would be the sort of stuff that belongs in the book, maybe pared down to make a "minimal working example" that illustrates why it doesn't work.
I just encountered the tangent bundle functor, which seems like a comonad, except it isn't (except it is??)
Another quite well known one: If you take any noncommutative strong monad (on Set, say), the "obvious" monoidal product on its kleisli category satisfies every axiom of a monoidal category except for bifunctoriality (but it's individually functorial in both arguments). It's so common that "a thing that's a monoidal category except for bifunctoriality" was given its own name, premonoidal category
Another counterexample is that taking the skeleton of a monoidal category (say Set) does not in general result in a strict monoidal category, see: https://mathoverflow.net/a/128629
Yes, in general, you cannot simultaneously strictify and skeletalize a monoidal category.
Joshua Meyers said:
I just encountered the tangent bundle functor, which seems like a comonad, except it isn't (except it is??)
Never mind there's no contradiction, the latter comment says that the cotangent bundle is a comonad
I guess there's all these cases where people wrote down a tentative distributive law between two monads and assumed it'll work out but turns out there was no distributive law at all. I think some of the history is recounted here: https://arxiv.org/abs/2003.12531 and @Dan Marsden probably knows examples where people fell for this mistake
Joshua Meyers said:
For this we would need to define "naturally occurring", which would probably be a syntactic definition.
So a book (?) like this could work along these lines if it's possible, which would make it a research project, or it could be just a bunch of people recording stuff that they personally find weird, organised by topic
Monadic functors don't compose: torsion-free abelian groups are monadic over abelian groups which are monadic over sets, but the composite is not monadic (this is in Borceux vol 2 Counterexample 4.6.4)
Nice, @Martti Karvonen! I always use the example that categories are monadic over reflexive graphs and reflexive graphs are monadic over sets but categories are not monadic over sets, but yours has more of a traditional algebra flavor.
Here's a nice counterexample: the map sending any group to its center is not a functor. I got this one from James Dolan.
Jules Hedges said:
Another quite well known one: If you take any noncommutative strong monad (on Set, say), the "obvious" monoidal product on its kleisli category satisfies every axiom of a monoidal category except for bifunctoriality (but it's individually functorial in both arguments). It's so common that "a thing that's a monoidal category except for bifunctoriality" was given its own name, premonoidal category
I encountered these things as well at some points. I have a quite wild conjecture that says that premonoidal categories are presented by Petri nets with inhibitor arcs, maybe one day...
Similarly, sending an object of a category to its automorphism group does not give a functor to groups in general. Isotropy (e.g. discussed here https://www.sciencedirect.com/science/article/pii/S1571066118300914 ) gives for any category (modulo size issues) a functor to groups that in some sense fixes this
@Joe Moeller, John Foley and I wrote a paper Network models from Petri nets with catalysts where we thought we got a monoidal category and it turned out to be premonoidal. I temporarily fell in love with premonoidal categories.
Oddly, dagger monadic functors are closed under composition, but I'm not sure there's much one can do with that.
Martti Karvonen said:
Similarly, sending an object of a category to its automorphism group does not give a functor to groups in general.
Yes! Similarly for the endomorphism monoid of an object.
Both the endomorphism monoid of an a set and the center of a monoid are examples of the "generalized center" construction that James Dolan and I described in Higher-dimensional algebra and topological quantum field theory. In general this takes a k-tuply monoidal n-category and gives you a (k+1)-monoidal n-category. So, it moves you down one notch on the periodic table. A very famous case is the generalized center of a monoidal category, which is a braided monoidal category.
Jules Hedges said:
Joshua Meyers said:
For this we would need to define "naturally occurring", which would probably be a syntactic definition.
So a book (?) like this could work along these lines if it's possible, which would make it a research project, or it could be just a bunch of people recording stuff that they personally find weird, organised by topic.
I think a wiki might be a good way to do this. There's something called the nLab that could do the job, but if people are reluctant to set up a page called "Counterexamples in category theory" there they could set up their own wiki. Urs Schreiber pushed for creation of the nLab because people were contributing lots of interesting facts in some n-Category Cafe conversations, but it's sort of hard to search blog articles for these facts.
I find it difficult to imagine a surprising counter example in category theory which is actually pure category theory (as opposed to a counter example from another field just restated in categorical language)
Most of the examples in this thread so far look like pure category theory to me
I got very spooked when sometime ago @John Baez mentioned he once stumbled upon two functors , such that , except the isomorphism wasn't natural
Yes, they were the "seemingly obvious" functors between and , the category of Petri nets and the category of commutative monoidal categories. There's an adjunction between these, which is pretty important I think. The left adjoint is obvious, but there's a "wrong right adjoint" where an isomorphism exists but fails to be natural. @Jade Master and I got tripped up by this, and later @Mike Shulman showed us the right right adjoint.
We probably should have mentioned the wrong right adjoint in our paper, but we just ran away from it, screaming.
Speaking from a lot of personal experience, it's very easy to become complacent (or lazy) with checking naturality especially, because it's often tedious and nearly always true for boring reasons...... right up until it's not, and then it blows up in your face
Yup. Similar to how you need to look down now and then when you're walking along....
John Baez said:
Jules Hedges said:
Joshua Meyers said:
For this we would need to define "naturally occurring", which would probably be a syntactic definition.
So a book (?) like this could work along these lines if it's possible, which would make it a research project, or it could be just a bunch of people recording stuff that they personally find weird, organised by topic.
I think a wiki might be a good way to do this. There's something called the nLab that could do the job, but if people are reluctant to set up a page called "Counterexamples in category theory" there they could set up their own wiki. Urs Schreiber pushed for creation of the nLab because people were contributing lots of interesting facts in some n-Category Cafe conversations, but it's sort of hard to search blog articles for these facts.
I created an nlab page and added some of the examples mentioned here : https://ncatlab.org/nlab/show/counterexamples+in+category+theory However, more of the examples should be listed (and some references provided where need be). Moreover, I don't know how to link to this discussion as a source. Anyway, I need to do something else next so if anyone else has the energy to tweak the page, please go ahead!
Arguably, if the list remains short, it could just be under https://ncatlab.org/nlab/show/counterexamples+in+algebra
The category of topological spaces and local homeomorphisms is locally cartesian closed but it doesn't have a terminal object
Add it to the nlab page?
Sure
One of my favorites is that there are functors and between the categories of vector spaces and affine spaces, and we have for any and for any , but the categories are not equivalent --- the second isomorphism is not natural.
John Baez said:
Yes, they were the "seemingly obvious" functors between and , the category of Petri nets and the category of commutative monoidal categories. There's an adjunction between these, which is pretty important I think. The left adjoint is obvious, but there's a "wrong right adjoint" where an isomorphism exists but fails to be natural. Jade Master and I got tripped up by this, and later Mike Shulman showed us the right right adjoint.
Yes. If anyone wants more details on this, the wrong right adjoint to the functor sends a commutative monoidal category to the Petri net whose source and target are and where s and t are the source and target of C and is the unit for the monad . In words, is sent to the Petri net whose source and target are the source and target of composed with . We didn't talk about this failed attempt in Open Petri Nets...but I talked about it in Remark 4.4 of Petri nets based on Lawvere theories.
Oh good, I'm glad it's in print there. People really should document problems like this.
Agreed. Anyway does anyone have a favorite functor which preserves limits but does not have a left adjoint? It might make a nice counterexample.
Would the terminal functor for a category without an initial object count?
That's nice! It gets a bit harder when we require that have all small limits.
Your same example works but then needs to be kinda big.
I'm trying to edit the nLab space but my edit is being blocked by the spam filter
Does anyone know what could it be?
Ok splitting the edit worked
@Jade Master I added your counterxample by copying your message almost word by word, I hope you don't mind (I cited your paper, and this thread is being linked as soon as the archive does its magic)
@Matteo Capucci (he/him) Thank you I appreciate it :)
Oh whoops, I misremembered this adjunction. After reading what I wrote I realized that the problem with the choice I mentioned is that the natural choice of isomorphism doesn't give well-defined morphisms of Petri nets. @John Baez is probably remembering a different adjunction. I'll change the nlab.
What do you mean, "doesn't give well-defined morphisms between Petri nets"? You mean it doesn't really map to after all?
John Baez said:
What do you mean, "doesn't give well-defined morphisms between Petri nets"? You mean it doesn't really map to after all?
Yes. There are nice choices of functions for the supposed morphisms in the image of this isomorphism but they don't preserve sources and targets. So maybe they're not so nice after all.
I also added @Fawzi Hreiki's counterexample to the nlab.
Jade Master said:
Agreed. Anyway does anyone have a favorite functor which preserves limits but does not have a left adjoint? It might make a nice counterexample.
There are continuous functors with no left adjoint. Take a class of simple groups , one of each infinite cardinality . Then
makes sense as a functor from groups to sets: for any group , the only morphism is the trivial one as soon as is greater than the cardinality of by the simplicity of , so will be nontrivial for only a small number of . This product of representables preserves limits. But it can't be representable: for any group , one can find such that is much larger in size than .
Here "small number" is used in a technical sense.
Same sense as in "small-complete": of set-sized cardinality.
Yes, I was alerting newbies who might accidentally think "small number" might mean "like around 5".
Why can't this one have a left adjoint? Because it's not representable?
Oh right, forgot to mention. We have , so for any functor , we have . If has a left adjoint , then is representable, because we have in that case
.
Todd has been using this fact to good effect in our conversations about Schur functors with @Joe Moeller:
For any category , any right adjoint is representable.
And I've also been using this: if has small coproducts, then representables are right adjoints. The left adjoint takes a set to , the -indexed coproduct of copies of . (This operation is called "tensoring with .)
John Baez said:
For any category , any right adjoint is representable.
Huh, I didn't know that and I immediately feel like I should have known it... it sounds useful...
Perhaps this should have been obvious, but I was very surprised when I first learnt that a monic natural transformation needn't have monic components. I don't know an example 'in nature' and things always work when the codomain category has pullbacks, but I think there is a counterexample where the codomain category is a coequaliser diagram and the domain has a single nontrivial arrow. This is related to the 'accidental' limits that can sometimes exist in functor categories when the componentwise limits fail to exist.
John Baez said:
Here's a nice counterexample: the map sending any group to its center is not a functor. I got this one from James Dolan.
Works for surjective homomorphism?
@Todd Trimble thank you for the counterexample. It is indeed very pathological. I might add it to the nlab article soon.
Spencer Breiner said:
John Baez said:
Here's a nice counterexample: the map sending any group to its center is not a functor. I got this one from James Dolan.
Works for surjective homomorphism?
Yes, it's functorial for surjective homomorphisms.