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.
I understand that single variate polynomial functors (of sets) are coproducts of representables, as explained by the Poly book, but what exactly are the polynomial functors in the multivariate case?
Multivariate polynomials!
(At least I think so. I had the same question a while back and that was the conclusion I came to - I don't remember the details right now.)
or if you were looking for the formal definition of a multivariate polynomial functor you can find it in Gambino and Kock's Polynomial functors and polynomial monads.
So it's a tuple of -many polynomials in -many variables. I think you can think of it as a categorified version of a function where each of the outputs is a polynomial function of the inputs.
No, I get that. I mean, what does -many variables mean? -indexed representables, ()?
Also, what are the lens-like objects that correspond to the multivariate case?
So when we write, e.g. , it really stands for a functor , functorial in . Given that, we can consider writing something like , which stands for a functor , with type . The definition above is just extending this idea to polynomials with set-many terms (and set-many dimensions etc.) instead of only finitely many.
I don't know how to characterise natural transformations between these as something lens-like, but it's an interesting thing to think about.
Nathaniel Virgo said:
I don't know how to characterise natural transformations between these as something lens-like, but it's an interesting thing to think about.
@David Spivak, would you happen to know?
Comonoids in are categories, but among them are the discrete categories. For a set A, the discrete category on A is a comonoid of the form Ay. A multivariate polynomial with I-many variables is a bicomodule of the form y <|------<| Iy. If you want J-many polynomials in I-many variables, that's equivalent to a bicomodule of the form Jy <|--------<| Iy.
As mentioned above, it's also a map Set/I ---> Set/J. And a map between two such things is indeed a natural transformation. It is certainly lens like: a bicomodule as above is just a (one-variable) polynomial p equipped with maps , and a map of such bicomodules (a natural transformation) is a map of (one-variable) polynomial functors making some diagrams commute. Maps of polynomials are lens-like.
Does that help?
In case you're not up on the whole bicomodule story, another way to think about this is that a multivariate polynomial in some is represented by a diagram ; if the arrows are from left to right then the corresponding functor is given by where are members of the adjoint triple defining 's local cartesian closure. Then you can produce maps between polynomial functors from maps between their presenting diagrams in two ways:
Screenshot-2024-03-19-at-10.55.24AM.png
Screenshot-2024-03-19-at-10.57.01AM.png
You can compose these two kinds of morphisms to get arbitrary natural transformations. It's enough to see this for the case that Then a polynomial functor is given by a sum where for the variable is represented by Let's now assume is a point since maps of -indexed families of polynomials are just families of maps of polynomials.
Polynomials of the form are representable, being represented by the restriction of to , so maps out of them commute with coproducts. Therefore most of the work in computing maps between polynomials comes in computing maps where Such a map is precisely a morphism in or a map over , by the Yoneda lemma.
In other words, to get a map of polynomials , for every "position" you need to choose a position and a map which is to say a map over This is almost exactly the same as the lensy notion of morphism of univariant polynomials you're used to--a forward map on positions and a backward map on directions, in David's terminology--except that the direction sets are colored by elements of and the direction maps must respect that.
This is a way of seeing what David was getting at with the bicomodule story: a multivariate polynomials is just extra structure on a univariate polynomial, since you get a univariate polynomial by just composing and with the projections to a one-point set. Therefore it "must" be the case that a map of multivariate polynomials is just a special kind of map of univariate polynomials, as we've seen above.
Interestingly, it's not true that every natural transformation of polynomial functors comes from a lensy diagram if you generalize past the case Kock and Gambino observe that the nontrivial endomorphism of the identity endofunctor of , for instance, doesn't arise in this way. So there be dragons in the direction of trying to think about general polynomial endofunctor maps in terms of lenses. I don't know whether we know much about this story all in all.