Let be an object of a Symmetric Monoidal Category . A Frobenius structure on is a 4-tuple where is a commutative Monoid Object (the merger and initializer), is a cocommutative comonoid (the splitter and terminator), satisfying the six (co)associativity, (co)unitality and (co)commutativity equations (6.51) together with
- the Frobenius law: (splitting then merging equals merging then splitting, in either of the two zig-zag ways), and
- the special law: (split then merge is the identity).
An object so equipped is a special commutative Frobenius monoid (Carboni–Walters: separable commutative Frobenius algebra), or just Frobenius monoid.
Sources: 7 Sketches §6.3.1 (Eq. 6.51, Definitions 6.52, 6.54, Theorem 6.55, Example 6.56, Theorem 6.58, Exercise 6.57), §6.3.3, Examples 6.61, 6.64, 6.65; [CW87; Car91].
Spiders (Definition 6.54, Theorem 6.55)
Define the spider as mergers followed by splitters (with / when or ), drawn as a dot with legs on the left and on the right. Theorem 6.55. Any map built from spiders and symmetries by composition and whose string diagram is connected equals . So “a Frobenius monoid is a spiderable wire”: the result of combining is just “how many in’s and how many out’s” — two spiders sharing a leg fuse into one. Consequently two such morphisms are equal iff their diagrams connect the same ports (7S Exercise 6.57): the Frobenius structure captures connectivity.
Theorem 6.58. The Prop presented by generators (arities , , , ) and the nine Frobenius equations is equivalent, as a symmetric monoidal category, to : ideal wires, connectivity, cospans and Frobenius structures are “all intimately related”. Cospans form the theory of hypergraph categories.
Examples
- In every object: , , , (Example 6.61; the special law is the pushout square , 7S Exercise 6.63; pictures in 7S Exercise 6.62).
- In : identify the copies of each element, relate nothing (Example 6.64).
- In : two Frobenius structures, black (copy/discard) and white (add/zero) (Example 6.65) — the two spider colours of Graphical Linear Algebra; in the same generators form a bialgebra instead (Prop of Matrices).
- In : a finite-dimensional algebra with a nondegenerate invariant form; group algebras.
- Frobenius monoids give a self-dual compact closed structure: cup , cap (Proposition 6.66, 7S Exercise 6.67).
Docs: FinSets · Limits & colimits · Theories & presentations
# Catlab: the theory of hypergraph categories / Frobenius structure via `ThHypergraphCategory`
using Catlab
@present F(FreeHypergraphCategory) begin
X::Ob
end
X = F[:X]
mmerge(X), create(X), mcopy(X), delete(X) # μ, η, δ, ε
# spider s_{2,3}: merge two wires then split into three
mmerge(X) ⋅ mcopy(X) ⋅ (mcopy(X) ⊗ id(X))
# the special law μ ∘ δ = id holds in FinSet-cospans: check via pushout (Exercise 6.63)
X2 = FinSet(2); m = FinFunction([1, 1], 1)
apex(pushout(m, m)) # FinSet(1): the pushout of [id,id] with itself-- Mathlib: monoid objects `Mon_ C`, comonoid objects `Comon_ C`; Frobenius laws must be stated by hand
#check Mon_
#check Comon_
structure FrobeniusLaws {C : Type} [CategoryTheory.Category C] [CategoryTheory.MonoidalCategory C]
(M : Mon_ C) (N : Comon_ C) (h : M.X = N.X) : Prop where
frobenius : True -- (id ⊗ μ) ∘ (δ ⊗ id) = δ ∘ μ (placeholder)
special : True -- μ ∘ δ = id-- a Frobenius structure on a type (laws unenforced): merge, unit, split, counit
data Frobenius x = Frobenius
{ merge :: (x, x) -> x, unit :: () -> x, split :: x -> (x, x), counit :: x -> () }
-- a spider s_{m,n}: fold merges then unfold splits
spider :: Frobenius x -> [x] -> Int -> [x]
spider fr ins n = replicate n (foldr1 (\a b -> merge fr (a, b)) ins) -- valid when the diagram is connected