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.
Lately, I have been thinking about the concept of trace as feedback like in traced monoidal categories. The one thing that I'm somewhat confused by is what exactly is a cotrace? If a trace is a feedback, what is a cotrace?
The opposite category of a traced monoidal category is again a traced monoidal category. So from that perspective, the dual notion of a trace operator is still a trace operator. Thus cotrace is just trace.
What might be an alternative answer to your question may be considering the difference between a trace on a product vs trace on a coproduct!
Here are some reference notes: https://www.mscs.dal.ca/~selinger/papers/graphical.pdf
To give a trace operator on a product it is equivalent to give what's usually called a Conway Fixed Point Operator, which takes a map and gives us back a map . The idea being this should be a fixed point relative to . So for products, trace corresponds to fixpoints.
On the other hand, to give a trace operator on a coproduct it is equivalent to give what's called an Iteration Operator, which takes a map and gives us back a map . The idea being we are iterating here and then feeding back into the input until it stops. This is what the trace for partial functions is. So for coproducts, trace corresponds to iteration/feedback.
I'm confused because for me a trace operator takes a morphism and gives a morphism .
John Baez said:
I'm confused because for me a trace operator takes a morphism and gives a morphism .
Right! Excellent point, let me explain some more.
So for products, a map is actually a pair of maps and , so
If you take the trace of , which gives , you'll see that the axioms of the trace tell you that computing reduces to computing the trace of . Specifically, we get that:
.
Drawing this out using string diagrams makes this much clearer (fun little exercise)
Note that , and this is called Conway fix point of , so .
Thus to give a trace operator on a product, is equivalent to giving a Conway fix point.
And similarly for coproducts (and biproducts).
If trace is an iteration operation, then cotrace is a stream of sorts. That makes sense.
I think my question was also like does a cotrace have a physical manifestation in say circuits the same way trace is feedback?
What is the definition/notion of "cotrace" that you have in mind?
something like a traced monoidal category that has a trace and a cotrace
if trace == feedback, then cotrace == ?
feedback in the other direction?
Adam Nemecek said:
something like a traced monoidal category that has a trace and a cotrace
Sure but I guess to me "cotrace" is just a trace operator by the dual argument I gave above. So having a trace and a cotrace would, to me, just be giving two different trace operators. With each giving a different kind of feedback
Adam Nemecek said:
if trace == feedback, then cotrace == ?
Going off trace for products and coproducts. Maybe fixed point?
are you familiar with hopf algebras?
Adam Nemecek said:
are you familiar with hopf algebras?
Yup: love Hopf algebras!
so the cotrace in hopf algebra
Sorry I don't follow
One place where both traces and cotraces exist and are distinct is the bicategory Prof of categories and profunctors. An endo-profunctor has both a trace (a coend) and a cotrace (an end).
This concept of cotrace may be fundamentally different than the "cotrace in a Hopf algebra", which turns out to be what Adam Nemecek was talking about. Or maybe not! I don't know. I could only find one paper that mentions cotraces for Hopf algebras, and I couldn't figure out what they were.
Yes I guess I'm still uncertain as to what a "cotrace" is. For me the natural thing was to consider taking the dual of a traced monoidal category -- but that's still a traced monoidal category. So cotrace = trace. But it seems that's not the approach taken in other areas.
JS PL (he/him) said:
I guess my question is still what s the definition of cotrace we are considering here?
@Simon Willerton has some slides in which he defines 2 different notions of trace in monoidal bicategories: in the case of prof, one of the traces is the coend and the other is the end.
http://www.simonwillerton.staff.shef.ac.uk/ftp/TwoTracesBeamerTalk.pdf
Amazing: thanks @Cole Comfort
But still, these are both "trace operators" in the usual sense no?
I guess my question is maybe "cotrace" is a name but still a trace operator.
I don't think the profunctory cotrace satisfies the same laws as a trace. For instance, a trace operator satisfies , but I don't think that's true for the cotrace, since ends are limits and aren't preserved by the tensor product the way colimits are.
I see. But still, why call it cotrace?
Because it's a dual of the trace, in the same way that a colimit is a dual of a limit.
So if a bicategory has notion of duality, this "round trace" (which is the trace) will always the dual of this "diagonal trace" (which is the cotrace).
Neat! Something I had not consider as I usually stay in the 1-cat world for traces.
I think that the cotrace can be regarded as some sort of "trace in the natural transformation direction."
Consider profunctors enriched over a girard quantale. Then this is a closed linear bicategory: https://arxiv.org/pdf/2209.05693.pdf
And I think that in this setting then the linear duals are given by the end!
What is an interesting question to me is that you can define a traced monoidal category as a monoidal category equipped with the coherent natural transformation . Can one say the same thing about the cotrace operation as a coherent natural transformation ? What is the coherence data needed (if it even makes sense)? Maybe the natural transformation is not even going the right direction?
JS PL (he/him) said:
Neat! Something I had not consider as I usually stay in the 1-cat world for traces.
Also seems like this diagonal trace/cotrace can be defined without a monoidal product. is strange to me.
Cole Comfort said:
I think that the cotrace can be regarded as some sort of "trace in the natural transformation direction."
yes that's what I'm trying to wrap my head around.
Possibly a naive question, but can you take the diagonal trace/cotrace and get a traced monoidal category out of it?
JS PL (he/him) said:
Possibly a naive question, but can you take the diagonal trace/cotrace and get a traced monoidal category out of it?
In a monoidal bicategory with trace and trivial 2-cells one should obtain a traced monoidal category.
In a monoidal bicategory with trace and only one 0-cell, maybe this would also give you a traced monoidal category?
I think the profunctorial cotrace has the same type as the trace, it just doesn't satisfy the same axioms.
Cole Comfort said:
Simon Willerton has some slides in which he defines 2 different notions of trace in monoidal bicategories: in the case of prof, one of the traces is the coend and the other is the end.
http://www.simonwillerton.staff.shef.ac.uk/ftp/TwoTracesBeamerTalk.pdf
With regard to this I should say that my student @Callum Reader has just written a splendid thesis involving these two 2-traces in an enriched context. The thesis should be available soon, but the current national Marking and Assessment Boycott is holding up its appearance on the web. I am also hopeful of a paper on these traces in the near future.
Simon Willerton said:
Cole Comfort said:
Simon Willerton has some slides in which he defines 2 different notions of trace in monoidal bicategories: in the case of prof, one of the traces is the coend and the other is the end.
http://www.simonwillerton.staff.shef.ac.uk/ftp/TwoTracesBeamerTalk.pdfWith regard to this I should say that my student Callum Reader has just written a splendid thesis involving these two 2-traces in an enriched context. The thesis should be available soon, but the current national Marking and Assessment Boycott is holding up its appearance on the web. I am also hopeful of a paper on these traces in the near future.
Oh wow! I am excited. I was sadly mistaken into believing that you had put that project aside!