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.
Whenever I see C^op->D I feel like something has gone horribly wrong somewhere in our notation long ago, starting with "f: A -> B, g: B -> C" having A on the left but "(gf)(x)=(g)(fx)" having A on the right. Is there a way we could have done CT so that, on the mainline, we never have to flip an orientation, or is it all a mobius strip so there has to be a mismatch somewhere?
No, this is not possible. You can write a category theory textbook using the notation instead of , then write composition in the diagrammatic order (usually denoted ), but at some point, you will have to deal with opposite categories and contravariant functors. These do not arise from a mismatch in notation, the category of sets where you write composition is the same as the category of sets where you write .
The motivation for contravariant functors is that often you are interested in functors that actually reverse the order of composition. One main example is the dual vector space functor acting by in the category of vector spaces over . In general, the Hom functor is contravariant. Another possible motivation is that some things that you obtain via covariant seem arbitrary. For instance, a covariant functor between posetal categories is an order-preserving function between the posets. Thinking of functors as transformation that preserve the structure of composition, this is fine but somewhat arbitrary. An order-reversing function also preserves the structure (you don't lose information), but it also reverses it. An order-reversing function will be a contravariant functor . Yet another example, if denotes the single-object category corresponding to a group , then a functor is a left group action. To obtain a right group action, you must consider a contravariant functor.
The motivation behind opposite categories is to avoid dealing with contravariant functors because they cannot compose. The composite of two contravariant functors is covariant.
Both your examples arise from paths having two ends, whose relationship involving a flip makes sense. I worry that
Which "regions of CT" are you talking about? Every area that I can think of has a concept of hom-functor or hom-object whose definition requires dualizing one of the arguments.
wrt the problem you're pointing to of left vs right conventions causing confusion, it's already too late. This problem appeared in algebra long before the advent of category theory. We're actually fortunate that distinct notational conventions for the two ways of notating composition are widely used!
Ouff, don't get me started with the two versions of ! :)
@Gurkenglas you're right that choosing where the 'op' goes is (at least at the formal level) arbitrary (a contravariant functor is a covariant functor or a covariant functor ), but what's conserved is that in either case a contravariant functor reverses composition! That's not arbitrary
Also you can distinguish covariant functors like you distinguish orientation-preserving transformations in a group of transformation: they are actually closed under composition. whereas composing two orientation-changing transformations (or contravariant functors) yields an orientation-preserving transformation (a covariant functor)
Hence while the decisions we make are arbitrary, the 'group of transformations they're invariant under' isn't.
Matteo Capucci (he/him) said:
Ouff, don't get me started with the two versions of ! :)
This is one of the main tenets of Galois theory: the Galois group tells you a given extension is 'arbitrarily chosen' among many equivalent ones, but the group itself is not, and it's what actually matters
As for the 'social' aspect of risking 'sign errors' (which mathematics is ripe with), there's not much we can do. ATM I'm not aware of people getting in arguments over which of them shoul drop their 'op', because it's often easy to see where the 'op' should naturally go.
Ralph Sarkis said:
The motivation behind opposite categories is to avoid dealing with contravariant functors because they cannot compose. The composite of two contravariant functors is covariant.
However, it's not hard to describe that compositional structure abstractly even before introducing opposite categories.
Matteo Capucci (he/him) said:
ATM I'm not aware of people getting in arguments over which of them shoul drop their 'op', because it's often easy to see where the 'op' should naturally go.
One situation where it's not obvious where the 'op' should go, and which isn't resolved by the convention of putting it on domains rather than codomains of contravariant functors, is a contravariant adjunction (an adjunction between two contravariant functors). Is it an adjunction , or an adjunction ? Either way, one of the functors violates the convention that 'op' goes on the domain rather than the codomain.
However, one can also describe a contravariant adjunction as a different beast, a sort of multivariable adjunction (see also), without reference to 'op'.
(Sorry for all the self-citations; opposites are something I've thought about a lot.)
You could write the 'op' on top of the arrow in which case you aren't dealing with functors but with contravariant functors which are defined as flipping the arrows. The problem with this though is that contravariant functors don't compose so you don't have a (2-)category of categories and contravariant functors.
Fawzi Hreiki said:
You could write the 'op' on top of the arrow in which case you aren't dealing with functors but with contravariant functors which are defined as flipping the arrows. The problem with this though is that contravariant functors don't compose so you don't have a (2-)category of categories and contravariant functors.
As I said a moment ago, what you have is a 2-category with contravariance. (-:
Mike Shulman said:
However, it's not hard to describe that compositional structure abstractly even before introducing opposite categories.
I guess it's how I instinctively think: a contravariant functor is fundamentally a mapping of objects and morphisms that interchanges source and target, and it just happens to be convenient that it turns out to be the same as a covariant functor either from or to an opposite category, so you have one less fundamental definition to make, at the expense of having to make a harmless but arbitrary choice of convention. (And category theorists culturally really like to minimise the number of fundamental definitions they have)
Yeah. I think it's not just about preferring fewer fundamental definitions, though. If "covariant functors" and "contravariant functors" are fundamentally two different beasts, then every theorem you prove about "functors" actually has separate cases, where is the number of functors involved. You could just prove the totally-covariant case and wave your hands at the others being "analogous", but defining a contravariant functor to be a covariant one with opposite domain or codomain is a way of making that analogy precise (which is another thing that category theorists really like!).
Matteo Capucci (he/him) said:
Ouff, don't get me started with the two versions of ! :)
Electrical engineers often use the letter to mean , and I occasionally like to troll people by claiming that actually .
amazing+
This is very likely implicit in what Mike was saying above, but let me make it explicit. When considering natural transformations between contravariant functors it makes a difference where you put the op!
The functor categories and are not the same. It matters which way the arrows go in . More precisely we have .
A more symmetric version of this statement is .
That's a great point!
Simon Willerton said:
This is very likely implicit in what Mike was saying above, but let me make it explicit. When considering natural transformations between contravariant functors it makes a difference where you put the op!
The functor categories and are not the same. It matters which way the arrows go in . More precisely we have .
A more symmetric version of this statement is .
Sorry to beat a dead horse, just was thinking about this. Doesn't the variance we want for the Yoneda embedding sort of give us a preferred one, at least for represented functors?
There is a covariant embedding -- but it is contravariant if we regard the values as in . Similarly coYo viewed as is covariant, since we can move the op to the other side and cancel!
If the contravariant and covariant functors between two fixed endpoints are genuinely different kinds of things (as I think they are) then aren't the two Yoneda embeddings genuinely distinguished by the kind of values they take? And shouldn't it then be important which is covariant, and which is contra?