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.
Can I not view a continuation as a polynomial (a monomial with a monomial as an exponent)?
I'm just checking to dot my i's and cross my t's.
Looks good to me. Here's some more i's and t's for you: https://ncatlab.org/nlab/show/cartesian+closed+category
Here's a direct link to ncatlab about the continuation monad that verifies your formula: https://ncatlab.org/nlab/show/continuation+monad
Ryan Wisnesky said:
Here's a direct link to ncatlab about the continuation monad that verifies your formula: https://ncatlab.org/nlab/show/continuation+monad
The page implies that a continuation as a monad is actually a Dirichlet functor, , hence my apprehension.
Perhaps the apprehension is because there's more to the continuation passing style transformation that just that monad? For example, in addition to the monad operations, there's the callCC operation and some others. You could check the implementation of the CPS monad in haskell at https://hackage.haskell.org/package/mtl-2.3.1/docs/Control-Monad-Cont.html and make all those operations are compatible with what you're doing.
It's not a polynomial functor: in a polynomial functor the variable should appear in the base, like .
(Just like in algebra, the function , say, is not a polynomial.)
Well, has exponentials, so it does make sense to talk about , but it is not the same as the exponential in .
I'm getting multiple differing answers. :face_with_raised_eyebrow:
Maybe your original question was not quite precise enough.
What do you mean by "a polynomial"?
Reid is right. It's not a polynomial functor according to the usual definitions. A polynomial functor on Set would be a coproduct of representables, where is a set (not necessarily finite), which could also be written where is a set that fits into the "blank" argument. The continuation functor/monad is not that.
In general, polynomial functors represent "strictly positive" type formers, whose claim to fame includes being able to form inductive types. Here, X ↦ (X → Y → Y)
is positive but not strictly positive. As a side note, in type theories with impredicative universes, adding merely positive inductive types has been shown to be inconsistent, but no one really knows if they're consistent when there is no impredicativity (eg. Agda). You might find https://dblp.org/rec/conf/types/0001MS18.html interesting, although I admit I haven't grasped what the inductive type represents, and how it directly relates to continuations.