Prerequisites: Category Theory Basics
Definition: A category C consists of:
- A class of objects, denoted ob(C).
- For each pair of objects A, B, a set of morphisms (or arrows) Hom(A, B).
- A composition law: for f: A → B and g: B → C, there exists a morphism g ∘ f: A → C.
- For each object A, an identity morphism idA: A → A.
|
Axioms:
- Associativity: h ∘ (g ∘ f) = (h ∘ g) ∘ f
- Identity: f ∘ idA = f = idB ∘ f for f: A → B
|
Examples:
- Set: Sets as objects, functions as morphisms.
- Vect: Vector spaces as objects, linear transformations as morphisms.
- Grp: Groups as objects, group homomorphisms as morphisms.
|
Functors: A functor F: C → D maps objects and morphisms from category C to category D preserving composition and identity.
|
Isomorphisms: A morphism f: A → B is an isomorphism if there exists a morphism g: B → A such that g ∘ f = idA and f ∘ g = idB.
|
Natural Transformations: A natural transformation α: F → G between functors F, G: C → D assigns to each object A in C a morphism αA: F(A) → G(A) in D such that for any morphism f: A → B in C, G(f) ∘ αA = αB ∘ F(f).
|
Product: The product of objects A and B in a category C is an object A × B together with morphisms π₁: A × B → A and π₂: A × B → B such that for any object X and morphisms f: X → A and g: X → B, there exists a unique morphism h: X → A × B such that π₁ ∘ h = f and π₂ ∘ h = g.
|
Coproduct: The coproduct of objects A and B in a category C is an object A + B together with morphisms ι₁: A → A + B and ι₂: B → A + B such that for any object X and morphisms f: A → X and g: B → X, there exists a unique morphism h: A + B → X such that h ∘ ι₁ = f and h ∘ ι₂ = g.
|
Examples (Set):
- Product: Cartesian product of sets.
- Coproduct: Disjoint union of sets.
|
Examples (Vect):
- Product: Direct product of vector spaces.
- Coproduct: Direct sum of vector spaces.
|
Compact Closed Categories
Definition: A compact closed category is a symmetric monoidal category where every object A has a dual object A** and morphisms ηA: I → A ⊗ A** (unit) and εA: A** ⊗ A → I (counit) satisfying the snake equations.
|
Snake Equations:
(εA ⊗ idA) ∘ (idA** ⊗ ηA) = idA**
(idA ⊗ εA**) ∘ (ηA ⊗ idA) = idA
|
- The unit ηA is represented by a cup.
- The counit εA is represented by a cap.
- The snake equations are depicted as straightening a bent wire.
|
- Hilb: Hilbert spaces with bounded linear operators.
- Rel: Sets and relations.
|