Skew monoidal structures on categories of algebras Marcelo Fiore and - - PowerPoint PPT Presentation

skew monoidal structures on categories of algebras
SMART_READER_LITE
LIVE PREVIEW

Skew monoidal structures on categories of algebras Marcelo Fiore and - - PowerPoint PPT Presentation

Skew monoidal structures on categories of algebras Marcelo Fiore and Philip Saville University of Cambridge Department of Computer Science and Technology 10th July 2018 1 / 29 Skew monoidal categories A version of monoidal categories


slide-1
SLIDE 1

Skew monoidal structures on categories of algebras

Marcelo Fiore and Philip Saville

University of Cambridge Department of Computer Science and Technology

10th July 2018

1 / 29

slide-2
SLIDE 2

Skew monoidal categories

A version of monoidal categories (Szlachányi (2012)) Structural transformations need not be invertible: α : pA b Bq b C Ñ A b pB b Cq λ : I b A Ñ A ρ : A Ñ A b I

2 / 29

slide-3
SLIDE 3

Skew monoidal categories

A version of monoidal categories (Szlachányi (2012)) Structural transformations need not be invertible: α : pA b Bq b C Ñ A b pB b Cq λ : I b A Ñ A ρ : A Ñ A b I

Example

§ For C with coproducts, pX{Cq with

pX

a

Ý Ñ Aq ‘ pX

b

Ý Ñ Bq :“ X

inl

Ý Ñ X ` X

a`b

Ý Ý Ñ A ` B

§ For C cocomplete, rJ , Cs with unit J and tensor

F ‹ G :“ planJFq ˝ G ` Altenkirch et al. (2010) ˘ .

2 / 29

slide-4
SLIDE 4

Skew monoidal categories

A version of monoidal categories (Szlachányi (2012)) Structural transformations need not be invertible: α : pA b Bq b C Ñ A b pB b Cq λ : I b A Ñ A ρ : A Ñ A b I Recently studied very actively (list not exhaustive!): Coherence properties: Lack & Street (2014), Andrianopoulos (2017), Bourke (2017), Uustalu (2017, 2018), . . . Extensions, theory and examples: Street (2013), Campbell (2018), . . .

2 / 29

slide-5
SLIDE 5

Past work

Linton (’69), Kock (’71a, ’71b), Guitart (’80), Jacobs (’94), Seal (’13), . . .

C monoidal T a monoidal monad reflexive coequalizers in C + preservation conditions ñ CT monoidal

3 / 29

slide-6
SLIDE 6

Past work

Linton (’69), Kock (’71a, ’71b), Guitart (’80), Jacobs (’94), Seal (’13), . . .

C monoidal T a monoidal monad reflexive coequalizers in C + preservation conditions ñ CT monoidal

This work

C skew monoidal T a strong monad reflexive coequalizers in C + preservation conditions ñ CT skew monoidal

3 / 29

slide-7
SLIDE 7

Past work

Linton (’69), Kock (’71a, ’71b), Guitart (’80), Jacobs (’94), Seal (’13), . . .

C monoidal T a monoidal monad reflexive coequalizers in C + preservation conditions ñ CT monoidal

This work

C skew monoidal T a strong monad reflexive coequalizers in C + preservation conditions ñ CT skew monoidal monoids are T-monoids

3 / 29

slide-8
SLIDE 8

Monoidal case (C, T monoidal)

Definition (Kock (1971))

For pA, aq, pB, bq, pC, cq P CT a map h : A b B Ñ C in C is bilinear if it is linear in each argument: TpAq b B TpAq b TpBq TpA b Bq TC A b B C

TpAqbη abB κ Th c h

A b TpBq TpAq b TpBq TpA b Bq TC A b B C

ηbTpBq Abb κ Th c h

4 / 29

slide-9
SLIDE 9

Monoidal case (C, T monoidal)

Aim

Construct p´q ‹ p“q : CT ˆ CT Ñ CT satisfying

  • 1. CTpA ‹ B, Cq – BilinCpA, B; Cq
  • 2. A suitable preservation property to guarantee coherence

5 / 29

slide-10
SLIDE 10

Monoidal case (C, T monoidal)

Aim

Construct p´q ‹ p“q : CT ˆ CT Ñ CT satisfying

  • 1. CTpA ‹ B, Cq – BilinCpA, B; Cq
  • 2. A suitable preservation property to guarantee coherence

Construction (Linton 1969)

Reflexive coequalizer in CT:

T ` TpAq b TpBq ˘ T 2pA b Bq TpA b Bq A ‹ B

Tpabbq Tκ µ coeq.

NB: U : CT Ñ C creates reflexive coequalizers if T preserves them

5 / 29

slide-11
SLIDE 11

Monoidal case (C, T monoidal)

Aim

Construct p´q ‹ p“q : CT ˆ CT Ñ CT satisfying

  • 1. CTpA ‹ B, Cq – BilinCpA, B; Cq
  • 2. if every p´q b X and X b p´q preserve reflexive coequalizers,

so do p´q ‹ pA, aq and pA, aq ‹ p´q

Construction (Linton 1969)

Reflexive coequalizer in CT:

T ` TpAq b TpBq ˘ T 2pA b Bq TpA b Bq A ‹ B

Tpabbq Tκ µ coeq.

NB: U : CT Ñ C creates reflexive coequalizers if T preserves them

5 / 29

slide-12
SLIDE 12

Monoidal case (C, T monoidal)

Proposition (Guitart (’80), Seal (’13))

Suppose that

§ C has all reflexive coequalizers, § T preserves reflexive coequalizers, § Every p´q b X and X b p´q preserves reflexive coequalizers

Then pCT, ‹, TIq is a monoidal category. Other versions are available: e.g. closed, symmetric, cartesian. . .

6 / 29

slide-13
SLIDE 13

Skew monoidal case (C skew monoidal, T strong)

Classify left-linear maps Construct an action CT ˆ C Ñ CT Extend to a skew monoidal structure on CT

7 / 29

slide-14
SLIDE 14

Skew monoidal case (C skew monoidal, T strong)

Classify left-linear maps Construct an action CT ˆ C Ñ CT Extend to a skew monoidal structure on CT Background assumption: C skew monoidal, T strong ` st : TpAq b B Ñ TpA b Bq ˘

7 / 29

slide-15
SLIDE 15

Factoring the proof

C has reflexive coequalizers, which T preserves CT has reflexive coequalizers C has a p1, 2, 3q-left linear classifier C acts on CT CT skew monoidal

C closed

  • r

α invertible

  • r

p´q b X preserves reflexive coeqs. C closed or α invertible p´q b X preserves reflexive coeqs.

8 / 29

slide-16
SLIDE 16

Factoring the proof

C has reflexive coequalizers, which T preserves CT has reflexive coequalizers C has a p1, 2, 3q-left linear classifier C acts on CT CT skew monoidal

C closed

  • r

α invertible

  • r

p´q b X preserves reflexive coeqs. C closed or α invertible p´q b X preserves reflexive coeqs.

8 / 29

slide-17
SLIDE 17

Left-linear maps

Definition (c.f. Kock (1971))

For pA, aq, pB, bq P CT and P P C, a map h : A b P Ñ C is left linear if TpAq b P TpA b Pq TB A b P B

stA,B abP Th b h

9 / 29

slide-18
SLIDE 18

Left-linear classifiers

Definition (c.f. Guitart (’80), Jacobs (’94), Seal (’13))

A left-linear classifier is a family of maps σA,P : A b P Ñ A ‹ P such that

  • 1. pA ‹ P, τA,Pq P CT
  • 2. σA,B is left-linear,
  • 3. Every left-linear map A b P Ñ B factors uniquely:

A b P A ‹ P B

@ left-linear maps σ D! algebra map

Determines an isomorphism CTpA ‹ P, Bq – LeftLinCpA, P; Bq.

10 / 29

slide-19
SLIDE 19

Left-linear classifiers

Definition (c.f. Guitart (’80), Jacobs (’94), Seal (’13))

A left-linear classifier is a family of maps σA,P : A b P Ñ A ‹ P such that

  • 1. pA ‹ P, τA,Pq P CT
  • 2. σA,B is left-linear,
  • 3. Every left-linear map A b P Ñ B factors uniquely:

A b P A ‹ P B

@ left-linear maps σ D! algebra map

Determines an isomorphism CTpA ‹ P, Bq – LeftLinCpA, P; Bq. ù Need to build in a preservation property to guarantee coherence

10 / 29

slide-20
SLIDE 20

n-left linear maps

Definition

For pA, aq, pB, bq P CT and P1, . . . , Pn P C, a map h : ` ¨ ¨ ¨ ` pA b P1q b P2 ˘ ¨ ¨ ¨ b Pn´1 ˘ b Pn Ñ B is n-left linear if TpAq b P1 b ¨ ¨ ¨ b Pn TpA b P1 b ¨ ¨ ¨ b Pnq TB A b P1 b ¨ ¨ ¨ b Pn B

stbn abP1b¨¨¨bPn Th b h

where stb1 :“ st and stbpn`1q :“ st ˝ stbn.

11 / 29

slide-21
SLIDE 21

n-left linear maps

Definition

For pA, aq, pB, bq P CT and P1, . . . , Pn P C, a map h : ` ¨ ¨ ¨ ` pA b P1q b P2 ˘ ¨ ¨ ¨ b Pn´1 ˘ b Pn Ñ B is n-left linear if TpAq b P1 b ¨ ¨ ¨ b Pn TpA b P1 b ¨ ¨ ¨ b Pnq TB A b P1 b ¨ ¨ ¨ b Pn B

stbn abP1b¨¨¨bPn Th b h

where stb1 :“ st and stbpn`1q :“ st ˝ stbn. ù An n-parameter version of left-linearity.

11 / 29

slide-22
SLIDE 22

n-left linear classifiers

Definition

A n-left linear classifier is a family of maps σA,P1 : A b P1 Ñ A ‹ P1 such that

  • 1. pA ‹ P1, τA,P1q P CT
  • 2. σA,B is left-linear,
  • 3. Every n-left linear map

` ¨ ¨ ¨ ` pA b P1q b P2 ˘ ¨ ¨ ¨ ˘ b Pn Ñ B factors uniquely: A b P1 b ¨ ¨ ¨ b Pn pA ‹ P1q b P2 b ¨ ¨ ¨ b Pn B

σbP2b¨¨¨bPn @ n-left linear D! pn ´ 1q-left linear map

A p1, . . . , nq-left linear classifier is a 1-left linear classifier that is also an i-left linear classifier (1 ď i ď n).

12 / 29

slide-23
SLIDE 23

n-left linear classifiers

Lemma

If h : ` ¨ ¨ ¨ ` pA b P1q b P2 ˘ ¨ ¨ ¨ ˘ b Pn`1 Ñ B is pn ` 1q-left linear, then (if they exist)

  • 1. The transpose ˜

h : A b P1 b ¨ ¨ ¨ b Pn Ñ rPn`1, Bs is n-left linear,

  • 2. h ˝ α´1 : pA b P1 ¨ ¨ ¨ b Pn´1q b pPn b Pn`1q Ñ B is n-left

linear

Lemma

If C has an n-left linear classifier and satisfies either

§ C is closed, or § α is invertible

Then C has an pn ` 1q-left linear classifier.

12 / 29

slide-24
SLIDE 24

Factoring the proof

C has reflexive coequalizers, which T preserves CT has reflexive coequalizers C has a p1, 2, 3q-left linear classifier C acts on CT CT skew monoidal

C closed

  • r

α invertible

  • r

p´q b X preserves reflexive coeqs. C closed or α invertible p´q b X preserves reflexive coeqs. ?

13 / 29

slide-25
SLIDE 25

From classifier to action

Proposition

If C has a p1, 2, 3q-left linear classifier σA,B : A b B Ñ A ‹ B, then

  • 1. ‹ : CT ˆ C Ñ CT is a skew action, and
  • 2. The free-forgetful adjunction F : C Ô CT : U is strong.

14 / 29

slide-26
SLIDE 26

From classifier to action

Proposition

If C has a p1, 2, 3q-left linear classifier σA,B : A b B Ñ A ‹ B, then

  • 1. ‹ : CT ˆ C Ñ CT is a skew action, and
  • 2. The free-forgetful adjunction F : C Ô CT : U is strong.

Holds in particular if C has a 1-left linear classifier and

§ C is closed, or § α is invertible

14 / 29

slide-27
SLIDE 27

Factoring the proof

C has reflexive coequalizers, which T preserves CT has reflexive coequalizers C has a p1, 2, 3q-left linear classifier C acts on CT CT skew monoidal

C closed

  • r

α invertible

  • r

p´q b X preserves reflexive coeqs. C closed or α invertible p´q b X preserves reflexive coeqs. ?

15 / 29

slide-28
SLIDE 28

From action to skew monoidal structure

Proposition

Given

  • 1. A skew monoidal category pC, b, Iq,
  • 2. A category A,
  • 3. A skew action ‹ : A ˆ C Ñ A,
  • 4. A strong adjunction pU, stUq : A Ô C : pF, stFq

Then, setting A f B :“ A ‹ UB makes pA, ¯ ‹, FIq a skew monoidal category.

16 / 29

slide-29
SLIDE 29

From classifier to skew monoidal

Proposition

If C has any of

  • 1. A p1, 2, 3q-left linear classifier A b B Ñ A ‹ B,
  • 2. A 1-left linear classifier A b B Ñ A ‹ B, and C is closed,
  • 3. A 1-left linear classifier A b B Ñ A ‹ B, and α is invertible

Then pCT, ‹, TIq is skew monoidal.

17 / 29

slide-30
SLIDE 30

From classifier to skew monoidal

Proposition

If C has any of

  • 1. A p1, 2, 3q-left linear classifier A b B Ñ A ‹ B,
  • 2. A 1-left linear classifier A b B Ñ A ‹ B, and C is closed,
  • 3. A 1-left linear classifier A b B Ñ A ‹ B, and α is invertible

Then pCT, ‹, TIq is skew monoidal. Question: how do we construct a p1, 2, 3q-left linear classifier?

17 / 29

slide-31
SLIDE 31

Constructing a left-linear classifier

Construction

Reflexive coequalizer in CT:

T ` TpAq b P ˘ T 2pA b Pq TpA b Pq A ‹ P

TpabPq Tst µ coeq.

Then

  • 1. CTpA ‹ P, Bq – LeftLinCpA, P; Bq,
  • 2. If Tp´ b Xq preserves reflexive coequalizers,

get a p1, 2, 3q-left linear classifier.

18 / 29

slide-32
SLIDE 32

Constructing a left-linear classifier

Proposition

If C has all reflexive coequalizers, T preserves reflexive coequalizers, and any of the following:

  • 1. Every p´q b P preserves reflexive coequalizers,
  • 2. C is closed,
  • 3. α is invertible

Then C has a p1, 2, 3q-left linear classifier: A b B

η

Ý Ñ TpA b Bq

coeq.

Ý Ý Ý Ñ A ‹ B

19 / 29

slide-33
SLIDE 33

Putting it all together

Theorem

If C has all reflexive coequalizers, T preserves reflexive coequalizers, and any of the following:

  • 1. Every p´q b P preserves reflexive coequalizers,
  • 2. C is closed,
  • 3. α is invertible

Then pCT, ‹, TIq is skew monoidal.

Remark

Can also do the calculation directly — but it is much more intricate! (c.f. Seal (2013))

20 / 29

slide-34
SLIDE 34

Factoring the proof

C has reflexive coequalizers, which T preserves CT has reflexive coequalizers C has a p1, 2, 3q-left linear classifier C acts on CT CT skew monoidal

C closed

  • r

α invertible

  • r

p´q b X preserves reflexive coeqs. C closed or α invertible p´q b X preserves reflexive coeqs.

21 / 29

slide-35
SLIDE 35

Monoids in skew monoidal categories

Definition

A monoid in C is an object M with pI

e

Ý Ñ M

m

Ð Ý M b Mq such that

I b M M b M M

ebM λ m

M M b I M M b M

ρ Mbe m

pM b Mq b M M b M M b pM b Mq M b M m

α mbM m Mbm m

Question: how do we construct free monoids?

22 / 29

slide-36
SLIDE 36

Free monoids as initial algebras

Lemma (folklore)

Let pC, b, Iq be a monoidal category with finite coproducts p0, `q and ω-colimits, and X P C such that

  • 1. Every p´q b P preserves coproducts and ω-colimits, and
  • 2. X b p´q preserves ω-colimits

Then the initial pI ` X b ´q-algebra is the free monoid on X.

23 / 29

slide-37
SLIDE 37

Free monoids as initial algebras

Lemma

Let pC, b, Iq be a skew monoidal category with finite coproducts p0, `q and ω-colimits, and X P C such that

  • 1. Every p´q b P preserves coproducts and ω-colimits, and
  • 2. X b p´q preserves ω-colimits

Then the initial pI ` X b ´q-algebra is the free monoid on X.

23 / 29

slide-38
SLIDE 38

Free monoids as colimits: pC, b, Iq monoidal

Lemma (Dubuc (1974), Melliès (2008), Lack (2008))

There exists a monoidal category P such that MonCatstrongpP, Cq » pI{Cq

Lemma (Dubuc (1974), Melliès (2008), Lack (2008))

For pI

x

Ý Ñ Xq P pI{Cq, if

  • 1. C has P-colimits, and
  • 2. Every p´q b C and C b p´q preserves P-colimits

Then colim Dx is the free monoid on pI

x

Ý Ñ Xq, for Dx : P Ñ C the monoidal functor corresponding to pI

x

Ý Ñ Xq.

24 / 29

slide-39
SLIDE 39

Free monoids as colimits: pC, b, Iq skew monoidal

Lemma

There exists a skew monoidal P such that SkMonCatstrongpP, Cq » pI{Cq

Lemma

For pI

x

Ý Ñ Xq P pI{Cq, if

  • 1. C has P-colimits, and
  • 2. Every p´q b C and C b p´q preserves P-colimits

Then colim Dx is the free monoid on pI

x

Ý Ñ Xq, for Dx : P Ñ C the monoidal functor corresponding to pI

x

Ý Ñ Xq.

25 / 29

slide-40
SLIDE 40

Monoids in pCT, ‹, TIq as T-monoids

Definition (c.f. Fiore et al. (1999))

For a strong monad pT, stq, a T-monoid is an object M P C with

  • 1. A monoid structure pM b M

m

Ý Ñ M

e

Ð Ý Iq,

  • 2. An algebra structure pM, τMq,

Such that the multiplication m : M b M Ñ M is a left-linear map.

26 / 29

slide-41
SLIDE 41

Monoids in pCT, ‹, TIq as T-monoids

Definition (c.f. Fiore et al. (1999))

For a strong monad pT, stq, a T-monoid is an object M P C with

  • 1. A monoid structure pM b M

m

Ý Ñ M

e

Ð Ý Iq,

  • 2. An algebra structure pM, τMq,

Such that the multiplication m : M b M Ñ M is a left-linear map.

Example

If C has two monoidal structures pb, Iq and p‚, Jq related by a distributivity structure, then for T the free ‚-monoid monad on C, a T-monoid in pC, b, Iq is a near semiring object (Fiore 2016, Fiore &

  • S. 2017).

26 / 29

slide-42
SLIDE 42

Monoids in pCT, ‹, TIq as T-monoids

Definition (c.f. Fiore et al. (1999))

A T-monoid is an object M P C with

  • 1. A monoid structure pM b M

m

Ý Ñ M

e

Ð Ý Iq,

  • 2. An algebra structure pM, τMq,

Such that the multiplication m : M b M Ñ M is a left-linear map.

Proposition

If C has a p1, 2, 3q-left linear classifier σA,B : A b B Ñ A ‹ B, then T-Mon ` pC, b, Iq ˘ – Mon ` pCT, ‹, TIq ˘

27 / 29

slide-43
SLIDE 43

Monoids in pCT, ‹, TIq as T-monoids

Monoidal examples

  • 1. If C has finite coproducts,

CT – T-Mon ` pC, `, 0q ˘ – MonpCTq

  • 2. For M P MonpCq and Mb :“

` M b p´q, m b p´q, e b p´q ˘ ` M{MonpCq ˘ – Mb-MonpCq – MonpCMbq (Fiore & S. 2017).

28 / 29

slide-44
SLIDE 44

Summary & contribution

Adapted classical construction of monoidal structure on CT to skew monoidal setting.

29 / 29

slide-45
SLIDE 45

Summary & contribution

Adapted classical construction of monoidal structure on CT to skew monoidal setting. Proof simplified by focus on n-left linear classifiers and corresponding skew monoidal actions.

29 / 29

slide-46
SLIDE 46

Summary & contribution

Adapted classical construction of monoidal structure on CT to skew monoidal setting. Proof simplified by focus on n-left linear classifiers and corresponding skew monoidal actions. Construction of free monoids in skew setting is as for monoidal categories.

29 / 29

slide-47
SLIDE 47

Summary & contribution

Adapted classical construction of monoidal structure on CT to skew monoidal setting. Proof simplified by focus on n-left linear classifiers and corresponding skew monoidal actions. Construction of free monoids in skew setting is as for monoidal categories. Monoids in pCT, ‹, TIq are T-monoids in pC, b, Iq.

29 / 29

slide-48
SLIDE 48

Summary & contribution

Adapted classical construction of monoidal structure on CT to skew monoidal setting. Proof simplified by focus on n-left linear classifiers and corresponding skew monoidal actions. Construction of free monoids in skew setting is as for monoidal categories. Monoids in pCT, ‹, TIq are T-monoids in pC, b, Iq. ù Associated paper in preparation.

29 / 29