In category theory, a branch of mathematics, the opposite category or dual category Cop of a given category C is formed by reversing the morphisms, i.e. interchanging the source and target of each morphism. Doing the reversal twice yields the original category, so the opposite of an opposite category is the original category itself. In symbols, ( C op ) op = C .
An example comes from reversing the direction of inequalities in a partial order. So if X is a set and ≤ a partial order relation, we can define a new partial order relation ≤new byFor example, there are opposite pairs child/parent, or descendant/ancestor.
The category of Boolean algebras and Boolean homomorphisms is equivalent to the opposite of the category of Stone spaces and continuous functions.The category of affine schemes is equivalent to the opposite of the category of commutative rings.The Pontryagin duality restricts to an equivalence between the category of compact Hausdorff abelian topological groups and the opposite of the category of (discrete) abelian groups.By the Gelfand-Neumark theorem, the category of localizable measurable spaces (with measurable maps) is equivalent to the category of commutative Von Neumann algebras (with normal unital homomorphisms of *-algebras).Opposite preserves products:
( C × D ) op ≅ C op × D op (see
product category)
Opposite preserves functors:
( F u n c t ( C , D ) ) op ≅ F u n c t ( C op , D op ) (see
functor category, opposite functor)
Opposite preserves slices:
( F ↓ G ) op ≅ ( G op ↓ F op ) (see
comma category)