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.
A monoid involving a set requires some multiplication function . Noticing this, we can be inspired to define a monoid internal to any category with products. Our multiplication for a monoid involving an object will be a morphism . However, we can generalize further and define a monoid in any monoidal category! Then the "multiplication" for a monoid involving an object in a monoidal category involves a morphism . Here is the functor that is part of the data that makes a monoidal category.
So, although our initial definition of a monoid involved a morphism from a product, it turns out we can define monoids internal to monoidal categories. And we don't need to use a product in the process! Instead, we can do this by making use of the "product-like" functor any monoidal category provides.
I am wondering if a similar thing can be done for categories instead of monoids. Now, in a category we can't compose all our morphisms: we can only compose a morphism after a morphism if the target of is the source of . To express this fact, one can form the pullback , which is the limit of the diagram . Here is our collection of arrows and is our collection of objects, while tells us the source of any given arrow, and tells us the target of any given arrow. Assuming we have a set of objects and a set of arrows, is then the set containing pairs of arrows such that . Each element of this set corresponds to a pair of composable arrows. Our composition of arrows can then be defined by a function which sends each pair of composable arrows to its composite.
To define a category internal to some other category , we then ask for (among other things) some objects and , and some morphisms and . If has pullbacks, then we can form as the limit (pullback) of the diagram . And then we can define a "composition" morphism , and we are on our way to specifying some category internal to .
I am curious if we can do all this without requiring the pullback of to exist in . Instead, perhaps we could make use of a "pullback-like" functor , where is the category that looks like this (omitting identity arrows): . So is the category of functors from to , which is the category of diagrams of shape in . If actually has pullbacks, then can really be the functor that sends each diagram in of shape to its pullback. And then we can define the source and target of our composition morphism as .
But if doesn't have pullbacks, maybe sometimes we can still define a (generalized "category internal to ". I'm hoping that a functor that is "pullback-like" can be used instead, so that we can then define an category internal to using some composition morphism .
I am wondering these things:
Any thoughts are welcome!
It feels like the tensor you might be after is given by the composition of spans of the form (the "category" of spans is a bicategory, so taking subbicategories on a single object will turn the compositions into tensors).
Specifically, you might want to consider the category of spans such that the pair of arrows is an object in this category and the composition of the category is given by an arrow in .
It is possible to define internal categories in a monoidal category with equalisers preserved by the tensor product: https://ncatlab.org/nlab/show/internal+category+in+a+monoidal+category
Note that when I wrote the expression , what I really meant is the expression
where the tensor is in fact the 1-composition associated with the bicategory . In other words, an internal category is a monad in the bicategory . This viewpoint aligns with Bryce's suggestion and the link he provided.
To recover the type of formalism you specifically described, I would probably start from a category and define as the 2-graph
Now, the operation that you mention should arise from giving a formal bicategory structure to . Like how we formalize the concept of monoidal category by abstracting the relations satisfied by a Cartesian product into some formal operation , here, you would equip the abstract category with:
such that and satisfy the axioms for bicategories. Then, your internal category in is a monad in the bicategory .
Note that the operation is recovered by taking where captures a binary product and is (up to some indexation).
Thanks @Rémy Tuyéras and @Bryce Clarke for your comments! It will take me some time to absorb what you both just said. Once I've given your posts a proper read, I hope to respond more fully.
Rémy Tuyéras said:
It feels like the tensor you might be after is given by the composition of spans of the form (the "category" of spans is a bicategory, so taking subbicategories on a single object will turn the compositions into tensors).
(I'm not yet comfortable with bicategories, so it's challenging for me to understand your comments above! But this is a good chance for me to get some practice with these concepts!)
If I understand correctly, you are introducing the bicategory of spans . Then the idea is to focus attention on the endo-category of , having objects that are spans from to . This endo-category will in fact be a monoidal category.
Referencing "2-Dimensional Categories" (by Johnson and Yau), page 31, it looks like horizontal composition of 1-cells and 2-cells in (for some category ) makes use of pullbacks in . Our category doesn't necessarily have pullbacks. So, I'm worried that we won't be able to form the bicategory of spans in .
Rémy Tuyéras said:
In other words, an internal category is a monad in the bicategory . This viewpoint aligns with Bryce's suggestion and the link he provided.
I did not know that one could define a monad in a bicategory! I was only familiar with the definition: "A monad is a monoid in the monoidal category of endofunctors of some category". But, noticing that is a bicategory, and that the endocategory of any object in a bicategory is monoidal, we can generalize the definition: a monad in a bicategory is a monoid internal to the (monoidal) endocategory of some object in that bicategory. Very cool!
I'm going to take a break now. Here's my understanding of things so far, part way through reading your post:
Referencing "2-Dimensional Categories" (by Johnson and Yau), page 31, it looks like horizontal composition of 1-cells and 2-cells in (for some category ) makes use of pullbacks in . Our category doesn't necessarily have pullbacks. So, I'm worried that we won't be able to form the bicategory of spans in .
Glad you found a reference that details the definition for , I will try to stick to their Example 2.1.22 as a reference (if needed). Also, for clarity, I will use curly notations (e.g. and ) to refer to the external context. In your case, the external context is given by the category . Then, I will use standard math symbols (e.g. and ) to refer to the internal context, meaning some objects living in the categories denoted with the curly notations. For example, the sets and in are part of the internal context because they will be used to define internal categories in .
Now, to go back to your question, the framework I am proposing is not exactly the same as that used in Example 2.1.22. In that example, they assume to have pullbacks in order to show that compositions exist. In the framework I proposed, I do not assume any pullback, which forces me to request axioms to hold in order for the "graph of spans" to be a bicategory.
Note that this is the same idea that you suggested in your first message. To come up with monoidal categories, you look at how a Cartesian product behaves. First, you realize that the map is a bifunctor. Then, you realize that the universality of products gives you canonical maps
Once you understand how all this works, you forget about products, and you come up with the notion of monoidal categories by formally requesting a functor and the map , and as starting data for your structure.
We do the same for the bicategory structure associated with spans. Specifically, once we are done reviewing Example 2.1.22, we want to completely forget about pullbacks and recover the structural data presented in that example formally. This gives rise to a definition of the form category some structure. Maybe we could call it a spanoidal category? (I do not necessarily like that name, but hopefully it helps to see how we replicate the process above).
Before I define what a spanoidal category is, let us observe that for any category we can define the 2-graph (stands for formal spans) such that its objects are those of , its 1-arrows, from to , are given by pairs of morphisms in and its 2-arrows, from a 1-arrow to a 1-arrow , are given by morphisms in making the underlying triangles commute. And that is it for the definition of (no compositions and no pullbacks used).
Now, we define as spanoidal category as a category equipped with two functions
such that and satisfy all the axioms for bicategories. These axioms are stated in Definition 2.1.3 of (Johnson and Yau) and we simply request them to hold for the operations and (no pullbacks have been used). And this defines what a spanoidal category is.
Finally, we choose to formally define an internal category in a spanoidal category as a monad in the associated bicategory .
the "multiplication" for a monoid involving an object in a monoidal category involves a morphism . Here is the functor that is part of the data that makes a monoidal category.
I think you are saying:
I am wondering if a similar thing can be done for categories instead of monoids.
So, we can define any binary operation in a categorical way by first having products, then determining commutative diagrams reflecting certain properties, such as associativity, commutativity, etc. Then we take it even further by replacing the category-internal constructions just to functors, with those same properties?
I need to wrap my head around this.
Now, in a category we can't compose all our morphisms: we can only compose a morphism after a morphism if the target of is the source of . To express this fact, one can form the pullback , which is the limit of the diagram . Here is our collection of arrows and is our collection of objects, while tells us the source of any given arrow, and tells us the target of any given arrow. Assuming we have a set of objects and a set of arrows, is then the set containing pairs of arrows such that . Each element of this set corresponds to a pair of composable arrows. Our composition of arrows can then be defined by a function which sends each pair of composable arrows to its composite.
Would like to understand this. We have s and t, mapping objects to their sources and targets. You can define a set of all pairs of composable arrows. The category is defined by mapping composable arrows to their composition.
That seems pretty brilliant. I know I’ll be going over this mentally for a few days till it feels more clear and natural and obvious to me.
Julius Hamilton said:
- a monoid object in a category with products is a special case of a monoid object in a monoidal category, because for the former, the categorical product is acting as the monoidal operation; in a monoidal category, the monoidal operation doesn’t have to be a categorical construction, but can be an arbitrary operation
You can make a category with finite products into a monoidal category by letting the product be the monoidal product. Similarly, you can make a category with finite coproducts into a monoidal category by letting the coproduct be the monoidal product. (See here, for example.)
In general though, the monoidal product doesn't need to be the product or coproduct in the category we are working in. (Although I wouldn't say that it is an "arbitrary operation").
Julius Hamilton said:
- I’m wondering if there are interesting properties of a monoid object within a monoidal category, and if it’s possible to have a category in which all objects are monoid objects
I find the concept of a monoid in a monoidal category exciting. That's because of this: you can get many interesting structures just by considering monoids in different monoidal categories! Here are a few structures you can form by considering monoids in appropriate monoidal categories:
These examples were taken from this list.
If you have some monoidal category of interest, you can arrive at a potentially interesting notion just by considering what a monoid would look like in that category! (I call this sort of thing an "idea machine".)
Julius Hamilton said:
- I’m wondering if there are interesting properties of a monoid object within a monoidal category, and if it’s possible to have a category in which all objects are monoid objects
Given a monoidal category , one can form the category of monoids in , where:
I learned recently that if is a "braided" monoidal category, then is not just a category - it's a monoidal category!
Rémy Tuyéras said:
Now, to go back to your question, the framework I am proposing is not exactly the same as that used in Example 2.1.22. In that example, they assume to have pullbacks in order to show that compositions exist. In the framework I proposed, I do not assume any pullback, which forces me to request axioms to hold in order for the "graph of spans" to be a bicategory.
Ah, that makes sense! And, just to review:
Rémy Tuyéras said:
We do the same for the bicategory structure associated with spans. Specifically, once we are done reviewing Example 2.1.22, we want to completely forget about pullbacks and recover the structural data presented in that example formally. This gives rise to a definition of the form category some structure. Maybe we could call it a spanoidal category? (I do not necessarily like that name, but hopefully it helps to see how we replicate the process above).
Monoidal categories are the categories in which we can define internal monoids. Our goal is to figure out the categories in which we can define internal categories. So I'd be tempted to call these things "categoryial" categories by analogy with "monoidal categories", although I'm not convinced that this is a good name :laughing:.
(I'll stop here for today, as I'm getting tired. But I look forward to working through the rest of your post!)
David Egolf said:
I learned recently that if is a "braided" monoidal category, then is not just a category - it's a monoidal category!
Yes, that's cool - and it's good to see how we use the braiding when trying to make the tensor product of monoids in into a monoid in .
A related fact is: when is a symmetric monoidal category then is a symmetric monoidal category.
For example this is true for . Then a monoid in is called just a 'monoid', and it's well known that if are monoids, so is , where we multiply two elements of by
(See how we used the braiding in to braid past in this formula?)
Furthermore, we have an isomorphism of monoids
making the category of monoids symmetric monoidal.
Monoidal categories are the categories in which we can define internal monoids. Our goal is to figure out the categories in which we can define internal categories. So I'd be tempted to call these things "categoryial" categories by analogy with "monoidal categories", although I'm not convinced that this is a good name :laughing:.
I have not thoroughly checked the details, but I am pretty sure that these "categoryial/spanoidal categories" intersect with a generalized variant of duoidal categories, also called 2-monoidal categories. Specifically, the two operations associated with a duoidal structure would be obtained by restricting and to some given object . [...] The only discrepancy here is that duoidal categories are more on the lax side.
In the same spirit as Bénabou's generalization of monoidal categories to bicategories, I would almost be tempted to have the name related to duoidal categories, 2-monoidal categories, bicategories, or some kind of 2-based name.
Also, on a lighter note, I asked ChatGPT, and this is what it gave me :sweat_smile:
- Duocategorical Categories: This name highlights the relation to duoidal categories and suggests a structure that is doubly categorical.
- Bicategorical Categories: This name draws a parallel to bicategories and emphasizes the bi-level categorical structure.
Rémy Tuyéras said:
such that and satisfy all the axioms for bicategories. These axioms are stated in Definition 2.1.3 of (Johnson and Yau) and we simply request them to hold for the operations and (no pullbacks have been used). And this defines what a spanoidal category is.
Finally, we choose to formally define an internal category in a spanoidal category as a monad in the associated bicategory .
I finally got around to finishing reading this! If I understand correctly provides our horizontal composition of 1-arrows, and provides our horiziontal composition of 2-arrows.
Now that we have a category like our original category of spans (which used pullbacks, and which facilitated a definition of an internal category), we can define a "generalized internal category" in using . Cool!
Rémy Tuyéras said:
In the same spirit as Bénabou's generalization of monoidal categories to bicategories, I would almost be tempted to have the name related to
duoidal categories, 2-monoidal categories, bicategories, or some kind of 2-based name.Also, on a lighter note, I asked ChatGPT, and this is what it gave me :sweat_smile:
- Duocategorical Categories: This name highlights the relation to duoidal categories and suggests a structure that is doubly categorical.
- Bicategorical Categories: This name draws a parallel to bicategories and emphasizes the bi-level categorical structure.
I like using ChatGPT to help me think of names for things. It's already good at making up things that sound like they should be right (even if they are wrong!), which is probably a relevant skill to have when inventing names.
Maybe it would be easier to think of a good name if we could dream up some more examples of these things.
One more question occurs to me regarding these "spanoidal" (or whatever we wish to call them!) categories that let us talk about categories internal to them: Can we find any example of such a category where our horizontal composition operations and are not induced by pullbacks in ?
If we can, it might be fun to work out what particular structure our generalized notation of internal category gives when applied to .
John Baez said:
A related fact is: when is a symmetric monoidal category then is a symmetric monoidal category.
Yes, I also ran into this recently! At first I thought it was quite exciting that we could get an infinite sequence of symmetric monidal categories like this: , , ... However, the book I was reading ("Monoidal Functors, Species and Hopf Algebras" by Aguiar and Mahajan) says this:
In the symmetric case the monoid and comonoid constructions can be further iterated, but no new categories are obtained beyond those of (co)commutative (co, bi)monoids.
So, it seems like our infinite sequence of symmetric monoidal categories stops giving us new categories rather quickly.
Yes, a simple and beautiful argument called the [[Eckmann-Hilton argument]] shows that if is symmetric monoidal, a monoid in is the same as a commutative monoid in . So is the category of commutative monoids in .
Then a monoid in is again just a commutative monoid in , so we don't get anything new:
This game becomes much more interesting as we move right on the periodic table of n-categories, and I could talk about that for a long time, but here we are in the left-most column so the fun stops fairly soon:
However, we've already been peeking a bit into the next column, since we needed some facts:
you can define commutative monoids in a symmetric monoidal category
the category of monoids in a symmetric monoidal category is a monoidal category
and you might wonder how braided monoidal categories get into the game.
David Egolf said:
One more question occurs to me regarding these "spanoidal" (or whatever we wish to call them!) categories that let us talk about categories internal to them: Can we find any example of such a category where our horizontal composition operations and are not induced by pullbacks in ?
If we can, it might be fun to work out what particular structure our generalized notation of internal category gives when applied to .
Instead of strict pullbacks, we can take pullbacks up to some kind of diagrammatic property. To formalize this, I will take to be that diagrammatic property. It is important to remember that the property will be considered fixed once passed this introductory paragraph. Here are examples of such properties; we will say that:
"an arrow (in a given category) satisfies the property "
to mean one of the following statements:
You can even make up your own property as long as that property includes all identities (and is optionally preserved by all functors).
Now, let us fix that property (just take one of the items listed above) and let us take . The property now being fixed, we want to define the operation
to be induced by the "pseudo" pullback relative to the property .
Specifically, let us consider two spans and . The -pullback of and is given by the category whose objects are triples where
and whose arrows are pairs where
Now, the composition is given by the following span (I omitted the obvious projections):
We can check that there is an isomorphism of spans as follows:
In other words, we have a composition that is associative up to an invertible 2-cell. Our only real obstacle are the identities. Ideally, we would want the following span of identities to be our identity on :
.
First, note that the span maps the object in , where the arrow satisfies the property , to:
There is also a functor induced by the mapping
.
While this functor induces a 2-cell in , this 2-cell is unfortunately not invertible. We conclude similarly for the 2-cell .
Despite this defect, we should not give up on spanoidal categories. We just need to require the identities to be left-biased oplax, which means that the spanoidal category structure only requires (coherent) 2-cells of the following form:
and
The reason for this slight modification is that the commutative diagrams defining monads do not need identity endomorphisms. In fact, we could say that a monad is given by two 2-cells as follows:
and
such that we define as the obvious composition and as the obvious composition .
To finish with the details of this example, let us check that the operation is compatible with the 2-cells. To see this, let us note that, for any pair and of 2-cells, where
and ,
we have the morphism of spans
induced by the mapping . And if we consider two extra morphisms and that compose with and (respectively), then we can check that the following identity holds.
The previous relation defines an interchange law and since we are trying to recover a bicategory-like structure, let us take the obvious choice . I will stop checking the details from here, but at this point, I want to believe that we have a bicategory-like structure with some left-biased oplax identities, and a concept of monad we can use to define internal categories.
Now, if all the details above check out, the next question is: given that an internal category in is a double category, what is a monad in the spanoidal category defined above? (I will stop here though)
Wow @Rémy Tuyéras! Thanks for typing that all out in detail! I look forward to working through your post carefully. (Although today I need to rest up.) Once I understand your post a bit more, I might try working out the idea I currently have for getting an example of a spanoidal category. Namely, I want to also try working in a poset (or maybe a category of functors to a poset from some fixed category?), which might provide a simpler setting that still conveys some of the intuition involved.
I wanted to work a little bit on this thread again, so that I don't forget about it! Above, @Rémy Tuyéras mentioned the concept of a "pseudopullback" relative to some property . I had never heard of pseudopullbacks before!
Referencing "Pullbacks equivalent to pseudopullbacks" by Joyal and Street, which was linked above: the authors begin by discussing the concept of "pseudopullback" in some 2-category of categories. For reference, here is a picture of a relevant diagram:
diagram
In this setting, I'd expect the usual pullback of and to be a category where:
The pseudopullback discussed in the introduction of the above-mentioned paper is defined similarly, but we relax the above equality condition on objects. Instead, we only require and to be isomorphic, and we keep track of the isomorphism involved. So, the pseudopullback is a category where:
I would have expected the condition on morphisms to be stated differently. I would have expected morphisms to be triples such that provides some "isomorphism" from to , for some notion of isomorphism between morphisms. Maybe that's still what's going on here? I'm not sure!
I note that @Rémy Tuyéras uses a similar pattern above to define a pseudopullback with respect to some property . So it would be nice to better understand the reasoning that led us to defining morphisms in this way in the pseudopullback category!
In case it helps, here is a picture visualizing the situation where we have a morphism in our pseudopullback from to :
picture
This diagram commutes when provides a morphism from to . Note that and are isomorphisms.
If we work in the arrow category of , , then a commutative square like the one above is a morphism from to . Further, since and are both isomorphisms, this morphism is in fact an isomorphism from to !
I think that helps me better understand morphisms in our pseudopullback category! A morphism in our pseudopullback is a pair such that we have an isomorphism in from to induced by and .
(I'll stop here for today!)
In my last post, I gave a detailed description of a specific class of examples for spanoidal structures in . However, we can generalize these constructions to any category .
Specifically, given a fixed category , we first need to equip ourselves with a function where:
denotes the class of reflexive 1-graphs in , where
Additionally, our function must be such that, for every object , the reflexive 1-graph is of the form (in other words, the set of objects of the 1-graph is given by the set ).
Now, this function is meant to abstract away the property that I used in my previous post. This abstraction is done by embedding the property into the language of spans. Specifically, the 1-graph structure
gives us a 1-cell in the 2-graph and the reflexive structure, given by the arrow , gives us a 2-cell in the 2-graph . We will use this 1-cell and 2-cell later, but before continuing, I will make a brief excursus.
Note: I use the notation to refer to the concept of descent data. Descent data typically describes information that is intended to be "glued" together. However, the descent data encoded by the 1-graph only provides the "glue" itself, not the actual process of combining these gluings, which is what is usually done.
For example, in the literature, this descent data is often used to define pseudolimits, which in turn are used to define stacks (a generalization of sheaves to functors ). Essentially, the construction can intersect with many topics that are discussed in this forum or on the nLab.
One way to equip with a spanoidal structure is to assume that has pullbacks (I know, this sounds like I am cheating, but I am really not). Specifically:
then, we can generate a new spanoidal structure by using the bicategory structure , namely by defining a new 1-composition as follows:
such that the left-biased oplax unitors that I described in my previous post are obtained by 1-composing the 2-cells with any 1-cell on the left and right, respectively:
... which gives a 2-cell
... which gives a 2-cell
Thanks again, @Rémy Tuyéras ! Your most recent post again looks quite interesting! I'm afraid I'm still working to understand the details of your earlier posts. But I'm excited to understand what you're saying, so I'd like to work on this a bit more.
Going back to a much earlier post, I am still trying to understand this:
Rémy Tuyéras said:
Now, we define as spanoidal category as a category equipped with two functions
- an operation
- an operation
such that and satisfy all the axioms for bicategories. These axioms are stated in Definition 2.1.3 of (Johnson and Yau) and we simply request them to hold for the operations and (no pullbacks have been used).
I'm looking at Definition 2.1.3 of "2-Dimensional Categories" (by Johnson and Yau), and trying to spot where and appear.
In Definition 2.1.3, we have a collection of objects which I'll call . I think in our case is the collection of objects in . Then, for each pair of objects , we need to have a category .
If I understand correctly, in our case the objects of this category are to be the spans in from to . In this category, a morphism from a span to a span is a morphism in such that the triangles in the resulting diagram commute.
To actually make a category, we need a way to compose morphisms. This composition can be inherited from and doesn't require or if I understand correctly.
In picture form, I think the composite of the two pictured morphisms and in can simply be , where we are using the composition operation provided by :
composing morphisms of spans
Next, Definition 2.1.3 requires a horizontal composition functor .
This functor induces two functions:
I am guessing that refers to one of these functions - perhaps the one involving objects, which are spans (?).
I had expected to also be part of the data of horizontal composition. However, upon reading this more carefully, it seems that is to be a vertical composition of 2-cells.
Currently, I am wondering these things:
Why do we want to define some ? Couldn't we just obtain a vertical composition of two-cells (morphisms of spans) from the composition of morphisms in ? (I visualized this composition in a picture a few messages above). It doesn't seem like we need to use pullbacks, for example, to make use of composition in in this way. Does defining some custom composition perhaps add important additional flexibility?
Is really just a function? To enable to be a bicategory, I find myself wanting to actually be a functor.
Ah, I see that in one of your later messages you do indeed take . So, I think I'm at least somewhat following the role of in our construction!
I suspect that I will better understand once I work through your example where you form using pseudo-pullbacks with respect to some property . But I will stop here for today!
David Egolf said:
- Is really just a function? To enable to be a bicategory, I find myself wanting to actually be a functor.
Indeed it is :smile: . I addressed this point where I explain this:
To finish with the details of this example, let us check that the operation is compatible with the 2-cells. To see this, let us note that, for any pair and of 2-cells, where
and ,
we have the morphism of spans
induced by the mapping . And if we consider two extra morphisms and that compose with and (respectively), then we can check that the following identity holds.
Thanks for clarifying that! I look forward to working through that example in detail.