## The Opposite Category

One of the most interesting general facts about categories is how ubiquitous the notion of duality is. Pretty much everything has a “mirror image”, and the mirror is the opposite category.

Given a category , with objects and morphisms , we can construct the “opposite category” simply enough. In fact, it has the exact same objects and morphisms as does. The difference comes in how they relate to each other.

Remember that we had two functions, and assigning the “source” and “target” objects to any arrow. To get the opposite category we just swap them. Given a morphism, its source in is its target in , and vice versa. Of course, now we have to swap the order of composition. If we have and in , then we get and in . In the composition is defined, but in the composition is defined.

Most definitions we give will automatically come with a “dual” definition, which we get by reversing all the arrows like this. For example, monos and epis are dual notions, as are subobjects and quotient objects. Just write down one definition in terms of morphisms, reverse all the morphisms (and the order of composition), and you get the other.

Theorems work this way too. If you dualize the hypotheses and the conclusions, then you can dualize each step of the proof to prove the dual theorem. I can prove that any injection is monic, so it follows immediately by duality that any surjection is epic. Many texts actually completely omit even the statements of dual notions and theorems once they define the opposite category, but I’ll try to be explicit about the duals (though of course I won’t need to give the proofs).

Another place duality comes up is in defining “contravariant” functors. This is just a functor . It sends each object of to an object of , and sends a morphism in to a morphism in . See how the direction of the image morphism flipped? Early on, contravariant and regular (“covariant”) functors were treated somewhat separately, but really they’re just the same thing once you take the opposite category into account. Sometimes, though, it’s easier to think in terms of contravariant functors rather than mentally flipping all the arrows.

I’ll close with an example of a contravariant functor we’ve seen before. Consider a ring with unit and a left module over . That is, is an object in the category . We can construct the dual module , which is now an object in the category of *right* -modules. I say that this is a contravariant functor. We’ve specified how the dual module construction behaves on objects, but we need to see how it behaves on morphisms. This is what makes it functorial.

So let’s say we have two left -modules and , and an -module homomorphism . Since we want this to be a contravariant functor we need to find a morphism . But notice that , and similarly for . Then we have the composition of -module homomorphisms . If is a linear functional on , then we get as a linear functional on . We can define .

Now, is this construction functorial? We have to check that it preserves identities and compositions. For identities it’s simple: , so every linear functional on gets sent back to itself. For compositions we have to be careful. The order has to switch around because this is a *contravariant* functor. We take and and check , as it should.

[…] I should have mentioned this before, but usually dual notions are marked by the premix “co-”. As an example, we have […]

Pingback by Duality terminology « The Unapologetic Mathematician | May 31, 2007 |

There’s something that disturbs me with dual categories.

Consider the category of sets, with functions as arrows. What are arrows in the dual category?

For instance, let f be the absolute value fonction, mapping from Z to N. What is f^op? The _same_ function, but with its arrow written backwards? Or a relation from N to Z? But in this case, which one is it? Indeed, to a relation from Z to N, one can associate many relations from N to Z… There is a “natural” one (obtained by reversing individual mappings), but why would f^op be this one? Which axiom of categroy theory does state that?

Thanks in advance if you can give me a hint. It would really help me understand category theory.

Comment by ChrisJ | January 14, 2009 |

Well, usually we don’t talk about “the opposite arrow”, because the arrows in the opposite category are

exactly the same.Look at it this way. You’re talking about a certain . What does this mean? I means we have with and .

Now when we consider the opposite category, . The collection of all morphisms is

the sameas in . And so we still have . So what’s the difference? Now we have and . We just swap which set we consider to be the source and which we consider to be the target.Comment by John Armstrong | January 14, 2009 |

Thanks for the answer.

Do you mean that in Set^op, we have s(f) = N and t(f) = Z (that is, with arrow notation, f: N -> Z), BUT f is still the same function from Z to N (that is, with functional notation, f: Z -> N)?

Comment by ChrisJ | January 14, 2009 |

Yes, that’s it. It’s the exact same function (morphism), but we swap which set (object) we think of as its source and target.

Comment by John Armstrong | January 14, 2009 |

Okay, so I was confused by the similarity of the “arrow” and “functional” notations. Thanks a lot!

Comment by ChrisJ | January 14, 2009 |

I was wondering about the question of finding a category equivalent to Set^op, but with its own meaning for the morphisms. From Johnstone’s Topos Theory, Set^op is equivalent to the category of complete atomic boolean algebras, abbreviated CABA, where the objects are the sets of Set and the morphisms are boolean homomorphisms that have the additional property that they preserve arbitrary meets and joins, called complete boolean homomorphisms.

All this works because Set is a topos, and Set^op is therefore equivalent to the category of algebras over the Set’s powerset monad.

I don’t know yet how the sub-structure of mappings in Set translates to describe the sub-structure of mappings in CABA, but it seems like an interesting approach for studying CABA.

Comment by maxsumoto | August 22, 2011 |