Dagger Category Theory Chris Heunen and Martti Karvonen 1 / 19 - - PowerPoint PPT Presentation

dagger category theory
SMART_READER_LITE
LIVE PREVIEW

Dagger Category Theory Chris Heunen and Martti Karvonen 1 / 19 - - PowerPoint PPT Presentation

Dagger Category Theory Chris Heunen and Martti Karvonen 1 / 19 Outline What are dagger categories? What are dagger monads? What are dagger limits? What are evils about daggers? 2 / 19 Dagger A dagger is contravariant involutive


slide-1
SLIDE 1

Dagger Category Theory

Chris Heunen and Martti Karvonen

1 / 19

slide-2
SLIDE 2

Outline

◮ What are dagger categories? ◮ What are dagger monads? ◮ What are dagger limits? ◮ What are evils about daggers?

2 / 19

slide-3
SLIDE 3

Dagger

A dagger is contravariant involutive identity-on-objects endofunctor X Y f = f†† f†

3 / 19

slide-4
SLIDE 4

Dagger

A dagger is contravariant involutive identity-on-objects endofunctor X Y f = f†† f† Terminology: adjoints in Hilbert spaces f(x) | yY = x | f†(y)X If S(X) is poset of closed subspaces, get S(f): S(X)op → S(Y ) Theorem [Palmquist 74]: S(f) and S(f†) adjoint, and up to scalar any adjunction of this form

3 / 19

slide-5
SLIDE 5

Examples

◮ Any groupoid

4 / 19

slide-6
SLIDE 6

Examples

◮ Any groupoid ◮ Hilbert spaces and continuous linear maps ◮ Sets and relations ◮ Finite sets and doubly stochastic matrices

4 / 19

slide-7
SLIDE 7

Examples

◮ Any groupoid ◮ Hilbert spaces and continuous linear maps ◮ Sets and relations ◮ Finite sets and doubly stochastic matrices ◮ Dagger categories and contravariant adjunctions

4 / 19

slide-8
SLIDE 8

Examples

◮ Any groupoid ◮ Hilbert spaces and continuous linear maps ◮ Sets and relations ◮ Finite sets and doubly stochastic matrices ◮ Dagger categories and contravariant adjunctions ◮ Inverse category: any f has unique g with f = gfg and g = fgf ◮ Sets and partial injections

4 / 19

slide-9
SLIDE 9

Examples

◮ Any groupoid ◮ Hilbert spaces and continuous linear maps ◮ Sets and relations ◮ Finite sets and doubly stochastic matrices ◮ Dagger categories and contravariant adjunctions ◮ Inverse category: any f has unique g with f = gfg and g = fgf ◮ Sets and partial injections ◮ Free dagger category: same objects, [X ← · → · · · ← · → Y ]∼

4 / 19

slide-10
SLIDE 10

Examples

◮ Any groupoid ◮ Hilbert spaces and continuous linear maps ◮ Sets and relations ◮ Finite sets and doubly stochastic matrices ◮ Dagger categories and contravariant adjunctions ◮ Inverse category: any f has unique g with f = gfg and g = fgf ◮ Sets and partial injections ◮ Free dagger category: same objects, [X ← · → · · · ← · → Y ]∼ ◮ Cofree dagger category: same objects, pairs X ⇆ Y

4 / 19

slide-11
SLIDE 11

Examples

◮ Any groupoid ◮ Hilbert spaces and continuous linear maps ◮ Sets and relations ◮ Finite sets and doubly stochastic matrices ◮ Dagger categories and contravariant adjunctions ◮ Inverse category: any f has unique g with f = gfg and g = fgf ◮ Sets and partial injections ◮ Free dagger category: same objects, [X ← · → · · · ← · → Y ]∼ ◮ Cofree dagger category: same objects, pairs X ⇆ Y ◮ Dagger functors and natural transformations ◮ Unitary representations and intertwiners

4 / 19

slide-12
SLIDE 12

Way of the dagger

Category theory Dagger category theory isomorphism unitary f−1 = f† idempotent projection f = f† ◦ f functor dagger functor F(f†) = F(f)† natural transform natural transformation (α†)X = (αX)† monoidal structure monoidal dagger structure (f ⊗ g)† = f† ⊗ g†

5 / 19

slide-13
SLIDE 13

Way of the dagger

Category theory Dagger category theory isomorphism unitary f−1 = f† idempotent projection f = f† ◦ f functor dagger functor F(f†) = F(f)† natural transform natural transformation (α†)X = (αX)† monoidal structure monoidal dagger structure (f ⊗ g)† = f† ⊗ g† monad ? limit ?

5 / 19

slide-14
SLIDE 14

Way of the dagger

Category theory Dagger category theory isomorphism unitary f−1 = f† idempotent projection f = f† ◦ f functor dagger functor F(f†) = F(f)† natural transform natural transformation (α†)X = (αX)† monoidal structure monoidal dagger structure (f ⊗ g)† = f† ⊗ g† monad ? limit ? isn’t this trivially trivial?

5 / 19

slide-15
SLIDE 15

Formal dagger category theory

◮ Daggers not preserved under equivalence

6 / 19

slide-16
SLIDE 16

Formal dagger category theory

◮ Daggers not preserved under equivalence ◮ Dagger categories, dagger functors, and natural

transformations: not just 2-category, but dagger 2-category 2-cells have dagger, so should have unitary coherence laws

6 / 19

slide-17
SLIDE 17

Formal dagger category theory

◮ Daggers not preserved under equivalence ◮ Dagger categories, dagger functors, and natural

transformations: not just 2-category, but dagger 2-category 2-cells have dagger, so should have unitary coherence laws

◮ Principle: if P =

⇒ Q for categories, then P † + laws = ⇒ Q† + laws for dagger categories

6 / 19

slide-18
SLIDE 18

Dagger monads

◮ Want

dagger monads dagger adjunctions = monads adjunctions

7 / 19

slide-19
SLIDE 19

Dagger monads

◮ Want

dagger monads dagger adjunctions = monads adjunctions Kl(GF) D FEM(GF) C G F

◮ Dagger adjunction is adjunction in DagCat: no left/right

7 / 19

slide-20
SLIDE 20

Dagger monads

◮ Want

dagger monads dagger adjunctions = monads adjunctions Kl(GF) D FEM(GF) C G F

◮ Dagger adjunction is adjunction in DagCat: no left/right ◮ Dagger monad should at least be dagger functor: so comonad ◮ What interaction between monad and comonad?

7 / 19

slide-21
SLIDE 21

Dagger monads

◮ A dagger monad is a monad that is a dagger functor satisfying

µT ◦ Tµ† = Tµ ◦ µ†T =

8 / 19

slide-22
SLIDE 22

Dagger monads

◮ A dagger monad is a monad that is a dagger functor satisfying

µT ◦ Tµ† = Tµ ◦ µ†T =

◮ If M is dagger Frobenius monoid, then − ⊗ M is dagger monad

8 / 19

slide-23
SLIDE 23

Dagger monads

◮ A dagger monad is a monad that is a dagger functor satisfying

µT ◦ Tµ† = Tµ ◦ µ†T =

◮ If M is dagger Frobenius monoid, then − ⊗ M is dagger monad ◮ Dagger adjunctions induce dagger monads

8 / 19

slide-24
SLIDE 24

Kleisli algebras

◮ If T is dagger monad on C, then Kl(T) has dagger

  • A f T(B)
  • B η T(B) µ†

T 2(B)

T(f†) T(A)

  • that commutes with C → Kl(T) and Kl(T) → C

9 / 19

slide-25
SLIDE 25

Kleisli algebras

◮ If T is dagger monad on C, then Kl(T) has dagger

  • A f T(B)
  • B η T(B) µ†

T 2(B)

T(f†) T(A)

  • that commutes with C → Kl(T) and Kl(T) → C

◮ Frobenius law for monoid M is Frobenius law for monad − ⊗ M

=

9 / 19

slide-26
SLIDE 26

Eilenberg-Moore algebras

◮ Frobenius-Eilenberg-Moore algebra is algebra T(A) a

→ A with T(A) T 2(A) T 2(A) T(A) µ† T(a)† T(a) µ Gives full subcategory FEM(T)

10 / 19

slide-27
SLIDE 27

Eilenberg-Moore algebras

◮ Frobenius-Eilenberg-Moore algebra is algebra T(A) a

→ A with T(A) T 2(A) T 2(A) T(A) µ† T(a)† T(a) µ Gives full subcategory FEM(T)

◮ Largest full subcategory with Kl(T) and EM(T) → C dagger

10 / 19

slide-28
SLIDE 28

Eilenberg-Moore algebras

◮ Frobenius-Eilenberg-Moore algebra is algebra T(A) a

→ A with T(A) T 2(A) T 2(A) T(A) µ† T(a)† T(a) µ Gives full subcategory FEM(T)

◮ Largest full subcategory with Kl(T) and EM(T) → C dagger ◮ There are EM-algebras that are not FEM

10 / 19

slide-29
SLIDE 29

Dagger monads

Theorem

If F, G are dagger adjoint, there are unique dagger functors with Kl(GF) D FEM(GF) C K J G F J is full, K is full and faithful, and JK is the canonical inclusion

11 / 19

slide-30
SLIDE 30

Dagger monads

Theorem

If F, G are dagger adjoint, there are unique dagger functors with Kl(GF) D FEM(GF) C K J G F J is full, K is full and faithful, and JK is the canonical inclusion

Proof.

◮ EM-algebra (A, a) is FEM iff a† is morphism (A, a) → (TA, µA)

11 / 19

slide-31
SLIDE 31

Dagger monads

Theorem

If F, G are dagger adjoint, there are unique dagger functors with Kl(GF) D FEM(GF) C K J G F J is full, K is full and faithful, and JK is the canonical inclusion

Proof.

◮ EM-algebra (A, a) is FEM iff a† is morphism (A, a) → (TA, µA) ◮ (A, a) ∈ Im(J) associative =

  • TA, µA) a

→ (A, a)

  • ∈ Im(J)

= ⇒ a† ∈ Im(J) = ⇒ (A, a) ∈ FEM(GF)

11 / 19

slide-32
SLIDE 32

Strength

◮ Monad T is strong when coherent natural A ⊗ T(B) → T(A ⊗ B) ◮ monoids in C

≃ monads on C M → − ⊗ M T(I) ← T

12 / 19

slide-33
SLIDE 33

Strength

◮ Monad T is strong when coherent natural A ⊗ T(B) → T(A ⊗ B) ◮ monoids in C

≃ monads on C M → − ⊗ M T(I) ← T

◮ Dagger monad is strong when strength is unitary ◮ Frobenius monoids in C

≃ strong dagger monads on C M → − ⊗ M T(I) ← T

12 / 19

slide-34
SLIDE 34

Strength

◮ Monad T is strong when coherent natural A ⊗ T(B) → T(A ⊗ B) ◮ monoids in C

≃ monads on C M → − ⊗ M T(I) ← T

◮ Dagger monad is strong when strength is unitary ◮ Frobenius monoids in C

≃ strong dagger monads on C M → − ⊗ M T(I) ← T

◮ [Z, FHilb] → [N, FHilb] has dagger adjoint f → Im(f)

but induced monad decreases dimension so not strong

12 / 19

slide-35
SLIDE 35

Strength

◮ Monad T is strong when coherent natural A ⊗ T(B) → T(A ⊗ B) ◮ monoids in C

≃ monads on C M → − ⊗ M T(I) ← T

◮ Dagger monad is strong when strength is unitary ◮ Frobenius monoids in C

≃ strong dagger monads on C M → − ⊗ M T(I) ← T

◮ [Z, FHilb] → [N, FHilb] has dagger adjoint f → Im(f)

but induced monad decreases dimension so not strong

◮ If T commutative, then Kl(T) dagger symmetric monoidal

12 / 19

slide-36
SLIDE 36

Dagger limits

Should:

◮ be unique up to unique unitary ◮ be defined canonically (without e.g. enrichment) ◮ generalize dagger biproducts and dagger equalisers ◮ connect to dagger adjunctions and dagger Kan extensions

13 / 19

slide-37
SLIDE 37

Unique up to unitary

◮ Two limits (L, lA), (M, mA) of same diagram are iso L f

→ M. Now f−1 is iso of limits M → L. But f† is iso of colimits.

14 / 19

slide-38
SLIDE 38

Unique up to unitary

◮ Two limits (L, lA), (M, mA) of same diagram are iso L f

→ M. Now f−1 is iso of limits M → L. But f† is iso of colimits.

◮ Two limits are unitarily iso iff

A L M B commutes for all A, B

14 / 19

slide-39
SLIDE 39

Unique up to unitary

◮ Two limits (L, lA), (M, mA) of same diagram are iso L f

→ M. Now f−1 is iso of limits M → L. But f† is iso of colimits.

◮ Two limits are unitarily iso iff

A L M B commutes for all A, B

◮ Right notion of dagger limit means fixing maps A → L → B.

14 / 19

slide-40
SLIDE 40

Dagger-shaped limits

Definition

The dagger limit of dagger functor D: J → C is a limit (L, lJ) with

◮ each lJ ◦ l† J is projection; ◮ lK ◦ lJ = 0 when J(J, K) = ∅.

15 / 19

slide-41
SLIDE 41

Dagger-shaped limits

Definition

The dagger limit of dagger functor D: J → C is a limit (L, lJ) with

◮ each lJ ◦ l† J is projection; ◮ lK ◦ lJ = 0 when J(J, K) = ∅.

Theorem

C has all J-shaped limits ⇐ ⇒ ∆: C → [J, C] has dagger adjoint and ε ◦ ε† idempotent

15 / 19

slide-42
SLIDE 42

Dagger-shaped limits

Definition

The dagger limit of dagger functor D: J → C is a limit (L, lJ) with

◮ each lJ ◦ l† J is projection; ◮ lK ◦ lJ = 0 when J(J, K) = ∅.

Theorem

C has all J-shaped limits ⇐ ⇒ ∆: C → [J, C] has dagger adjoint and ε ◦ ε† idempotent

Proof.

lJ ◦ l†

J is largest projection compatible with D

15 / 19

slide-43
SLIDE 43

Dagger-shaped limits

Definition

The dagger limit of dagger functor D: J → C is a limit (L, lJ) with

◮ each lJ ◦ l† J is projection; ◮ lK ◦ lJ = 0 when J(J, K) = ∅.

Theorem

C has all J-shaped limits ⇐ ⇒ ∆: C → [J, C] has dagger adjoint and ε ◦ ε† idempotent ⇐ ⇒ dagger D: J → C have compatible dagger Kan extension along J → 1 with ε ◦ ε† idempotent

Proof.

lJ ◦ l†

J is largest projection compatible with D

15 / 19

slide-44
SLIDE 44

Constructing dagger-shaped limits

◮ Dagger product: product J pJ

← − J × K

pK

− → K with p†

KpJ = δJK ◮ Dagger equaliser: equaliser

E J K e with e†e = id

16 / 19

slide-45
SLIDE 45

Constructing dagger-shaped limits

◮ Dagger product: product J pJ

← − J × K

pK

− → K with p†

KpJ = δJK ◮ Dagger equaliser: equaliser

E J K e with e†e = id

◮ Dagger stabiliser: J = Free

· ·

16 / 19

slide-46
SLIDE 46

Constructing dagger-shaped limits

◮ Dagger product: product J pJ

← − J × K

pK

− → K with p†

KpJ = δJK ◮ Dagger equaliser: equaliser

E J K e with e†e = id

◮ Dagger stabiliser: J = Free

· ·

◮ Dagger projection: infimum of projections pj : J → J splits

16 / 19

slide-47
SLIDE 47

Constructing dagger-shaped limits

◮ Dagger product: product J pJ

← − J × K

pK

− → K with p†

KpJ = δJK ◮ Dagger equaliser: equaliser

E J K e with e†e = id

◮ Dagger stabiliser: J = Free

· ·

◮ Dagger projection: infimum of projections pj : J → J splits ◮ C has dagger limits of dagger shapes with κ components ⇐

⇒ C has dagger limits of

◮ dagger products of size κ ◮ dagger stabilisers ◮ dagger projections 16 / 19

slide-48
SLIDE 48

Non-dagger shapes?

What to do with loops? C C C 2 2

1 4

17 / 19

slide-49
SLIDE 49

Non-dagger shapes?

What to do with loops? C C C 2 2

1 4

· · · C C C · · · 2 2 2 2

17 / 19

slide-50
SLIDE 50

Daggers are evil

◮ No dagger on FVect respects forgetful FHilb → FVect.

Proof: equip vector space with two inner products; then v → v not unitary but maps to identity

18 / 19

slide-51
SLIDE 51

Daggers are evil

◮ No dagger on FVect respects forgetful FHilb → FVect.

Proof: equip vector space with two inner products; then v → v not unitary but maps to identity

◮ Dagger equivalence is equivalence in DagCat unitary (co)unit ◮ If C ∈ DagCat, when does equivalence C

D

F G

in Cat lift to dagger equivalence? Clearly need η and Gε unitary.

18 / 19

slide-52
SLIDE 52

Daggers are evil ... but they ain’t all that bad

◮ No dagger on FVect respects forgetful FHilb → FVect.

Proof: equip vector space with two inner products; then v → v not unitary but maps to identity

◮ Dagger equivalence is equivalence in DagCat unitary (co)unit ◮ If C ∈ DagCat, when does equivalence C

D

F G

in Cat lift to dagger equivalence? Clearly need η and Gε unitary. Theorem: this is sufficient.

18 / 19

slide-53
SLIDE 53

Daggers are evil ... but they ain’t all that bad

◮ No dagger on FVect respects forgetful FHilb → FVect.

Proof: equip vector space with two inner products; then v → v not unitary but maps to identity

◮ Dagger equivalence is equivalence in DagCat unitary (co)unit ◮ If C ∈ DagCat, when does equivalence C

D

F G

in Cat lift to dagger equivalence? Clearly need η and Gε unitary. Theorem: this is sufficient.

◮ Theorem: If there is unitary GFA → A for each A, can replace

F, G with isomorphic functors that lift to dagger equivalence.

18 / 19

slide-54
SLIDE 54

Conclusion

◮ DagCat is not just a 2-category

so dagger category theory nontrivial

◮ Dagger monads = monad + dagger functor + Frobenius law ◮ Dagger-shaped limits = limit + dagger + idempotent

Dagger limits = ?

◮ Dagger categories can’t be that evil

19 / 19