In category theory, a branch of mathematics, the **opposite category** or **dual category** *C*^{op} 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, .

## Examples

- 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 ≤^{op}by

*x*≤^{op}*y*if and only if*y*≤*x*.

- The new order is commonly called dual order of ≤, and is mostly denoted by ≥. Therefore, duality plays an important role in order theory and every purely order theoretic concept has a dual. For example, there are opposite pairs child/parent, descendant/ancestor, infimum/supremum, down-set/up-set, ideal/filter etc. This order theoretic duality is in turn a special case of the construction of opposite categories as every ordered set can be understood as a category.

- Given a semigroup (
*S*, ·), one usually defines the opposite semigroup as (*S*, ·)^{op}= (*S*, *) where*x***y*≔*y*·*x*for all*x*,*y*in*S*. So also for semigroups there is a strong duality principle. Clearly, the same construction works for groups, as well, and is known in ring theory, too, where it is applied to the multiplicative semigroup of the ring to give the opposite ring. Again this process can be described by completing a semigroup to a monoid, taking the corresponding opposite category, and then possibly removing the unit from that monoid. - 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).
^{[1]}

## Properties

Opposite preserves products:

- (see product category)

Opposite preserves functors:

^{[2]}^{[3]}(see functor category, opposite functor)

Opposite preserves slices:

- (see comma category)

## See also

- Dual object
- Dual (category theory)
- Duality (mathematics)
- Adjoint functor
- Contravariant functor
- Opposite functor

## References

**^**"Is there an introduction to probability theory from a structuralist/categorical perspective?". MathOverflow. Retrieved 25 October 2010.**^**H. Herrlich, G. E. Strecker,*Category Theory*, 3rd Edition, Heldermann Verlag, ISBN 978-3-88538-001-6, p. 99.**^**O. Wyler,*Lecture Notes on Topoi and Quasitopoi*, World Scientific, 1991, p. 8.

- Opposite category in
*nLab* - Danilov, V.I. (2001) [1994], "Dual Category",
*Encyclopedia of Mathematics*, EMS Press - Mac Lane, Saunders (1978).
*Categories for the Working Mathematician*(Second ed.). New York, NY: Springer New York. p. 33. ISBN 1441931236. OCLC 851741862. - Awodey, Steve (2010).
*Category theory*(2nd ed.). Oxford: Oxford University Press. pp. 53–55. ISBN 978-0199237180. OCLC 740446073.