Products & Coproducts

Universal properties, Cartesian products, and disjoint unions

Products & Coproducts

Instead of saying what an object is made of, category theory can define it by how it relates to everything else. Products and coproducts are the first examples.

Universal Property of Products

Press Show Unique Map and watch a unique arrow appear from X into A × B that makes every triangle commute.

π₁π₂fgA×BABX
Go deeper:Universal Property of Products

Universal properties are the heart of category theory. Rather than defining objects by their internal structure, we define them by how they relate to everything else. Products and coproducts are the simplest and most important examples.

The product A × B is defined by a universal property: for ANY object X with maps to A and B, there exists a unique map X → A × B making everything commute. Watch it appear!

Key insight: The product is not defined by what it "is" internally, but by how it relates to everything else — its universal property. This is the categorical way of thinking: define things by their relationships, not their internal structure.

Products in Set

Hover over a pair in A × B to see where the two projections send it.

A
a
b
c
A × B
B
1
2
|A| = 3, |B| = 2, |A × B| = 6
Go deeper:Products in Set

In Set, the product of A and B is the Cartesian product A × B = { (a,b) | a ∈ A, b ∈ B }. The projections π₁ and π₂ extract the first and second components. Hover over pairs to see the projections!

Key insight: The Cartesian product is the "prototype" product. In other categories, the product might look different (direct product of groups, product topology), but it always satisfies the same universal property.

Product ↔ Coproduct Duality

Click to flip between the product and the coproduct and watch every arrow reverse.

Product (A × B)A×BABXπ₁π₂∃!
Product A × B: arrows go OUT (projections π₁, π₂). In Set: Cartesian product.
Coproduct A + B: arrows go IN (injections ι₁, ι₂). In Set: disjoint union.
Go deeper:Product ↔ Coproduct Duality

The coproduct (A + B or A ⊔ B) is the dual of the product — obtained by reversing all arrows. Click to flip between product and coproduct!

Key insight: Duality is a superpower of category theory: every theorem about products gives a free theorem about coproducts (just reverse all arrows). This is the principle of categorical duality.

Coproduct Duality — Reverse all arrows to get coproducts (disjoint unions in Set)

Products Across Categories

Pick a category to see what its product looks like there. The definition never changes.

Product in Set
A × B (Cartesian product)
Pairs (a,b) with projections
Coproduct in Set
A ⊔ B (disjoint union)
Tagged union: either from A or from B
Go deeper:Products Across Categories

The same universal property gives different concrete constructions in different categories. The definition is always the same; the realization depends on the category.

Key insight: Category theory unifies all these constructions under one concept — the same universal property that gives Cartesian products in Set gives direct products in Grp, product topologies in Top, and biproducts in Vect.

Key Takeaways

  • A product is defined by a universal property, not by its contents.
  • In Set, the product is the Cartesian product of pairs.
  • Reverse every arrow and a product becomes a coproduct.
  • One definition gives different objects in different categories.

Spot a mistake or have an idea?

Search