• No results found

Parametric monads and enriched adjunctions

N/A
N/A
Protected

Academic year: 2021

Share "Parametric monads and enriched adjunctions"

Copied!
28
0
0

Loading.... (view fulltext now)

Full text

(1)

Parametric monads and enriched adjunctions

Paul-André Mellies

Laboratoire Preuves, Programmes, Systèmes CNRS — Université Paris Diderot

June 17, 2012

Abstract

Starting from the particular case of the double negation monad in dialogue categories, we investigate what additional structure is re- quired of an adjunction in order to give rise to a strong monad. The analysis leads to a purely combinatorial description of enriched func- tors, enriched natural transformations and enriched adjunctions be- tween categorical modules.

1 Introduction

One basic principle of categorical algebra is that every monad T on a cat- egory A factors as T = R ◦ L where the functor L is left adjoint to the functor R in an adjunction of the form

A

L

""

R

cc B

This decomposition T = R ◦ L is not unique in general, and some decompo-

sitions are more illuminating than others. A typical illustration is provided

by the double negation monad T in a dialogue category A . Recall that a dia-

logue category C is a monoidal category equipped with an object ⊥ together

(2)

with two functors

C op −→ C C op −→ C

A 7→ A ( ⊥ A 7→ ⊥  A

and two families of bijections

C (B, A ( ⊥)  C (A ⊗ B, ⊥)  C (A, ⊥  B)

natural in A and B. As such, dialogue categories offer a suitable framework in order to interpret languages with linear continuations. Every dialogue category is equipped with the double negation monad defined as

T : A 7→ ⊥  (A ( ⊥).

It is not difficult to see that the monad T decomposes as the adjunction

C

L

""

R

cc C op

where L and R are defined as the two negation functors

L : A 7→ A ( ⊥, R : A 7→ ⊥  A.

Now, the double negation functor T happens to be strong on the right. This means that there exists a family of morphisms

σ A,m : T (A) ⊗ m −→ T (A ⊗ m)

natural in the objects A and m of the category C , and making the expected series of coherence diagrams commute. Such a natural transformation is called a right strength. At this point, an important question is thus to understand what specific structure of the two functors L and R and of the adjunction L a R between them induces the existence of such a right strength σ.

First decomposition. One useful observation in our work on dialogue categories [5] is that the existence of the strength σ follows from the exis- tence of a family of adjunctions

L(− ⊗ m) a R(m ⊗ −)

(3)

parametrized by the objects m of the category C . The point is that each of these adjunction amounts to the existence of a pair of families

ax m : L(A) −→ m ⊗ L(A ⊗ m) cut m : R(m ⊗ A) ⊗ m −→ R(m)

natural in the object A and making the expected coherence diagrams RL(A) ⊗ m ax

m

// R(m ⊗ L(A ⊗ m)) ⊗ m

cut

m



A ⊗ m η

A⊗m

//

η

A

⊗m

OO

RL(A ⊗ m) A ⊗ L(R(m ⊗ A) ⊗ m) cut

m

// m ⊗ LR(A)

m⊗ε

A

 LR(m ⊗ A) ε

m⊗A

//

ax

m

OO

m ⊗ A

commute. By a parametric family of such adjunctions, we mean in addition that the two families ax m and cut m are dinatural in m, and that they are monoidal in the sense that the diagrams below

DIAGRAM

commute. Here, the two natural transformations η and ε denote the unit and counit of the adjunction L a R. Now, it appears that the strength of the double negation monad T factors as:

σ A,m : RL(A) ⊗ m ax

m

// R(m ⊗ L(A ⊗ m)) ⊗ m cut

m

// RL(A ⊗ m) This decomposition may be alternatively formulated by thinking of the ten- sor product of C as an action (on the right) noted

∗ : C × C −→ C

of the monoidal category C on itself, and of the tensor product of C op as an action (on the right again) noted

∗− : C op × C op −→ C op

(4)

of the monoidal category C op on itself. See the definition of action in the next section. The two natural transformations “axiom” and “cut” are then reformulated accordingly as

ax m : L(A) −→ L(A ∗ m)∗−m cut m : R(A∗−m) ∗ m −→ R(A)

together with the decomposition σ of the strength of the double negation monad T = R ◦ L:

σ A,m : RL(A) ∗ m ax

m

// R(L(A ∗ m)∗−m) ∗ m cut

B

// RL(A ∗ m) Second decomposition. This decomposition of the strength σ departs quite radically (at least apparently) from another decomposition of the same strength, based this time on the decomposition of the double negation monad T = U ◦ F as the canonical adjunction

C

F

""

U

cc C T

where C T is the Kleisli category induced by the monad T . Observe that, in that case, the strength σ induces an action on the right

⊗ : C T × C −→ C T

of the monoidal category C on the Kleisli category C T . The situation also includes two families of functorial strengths

σ F : F (A) ⊗ m −→ F (A ⊗ m) σ U : U (A) ⊗ m −→ U (A ⊗ m)

where the strength σ U is moreover invertible. This leads to an alternative decomposition of the strength σ of the double negation monad T = U ◦ F :

σ A,m : U F (A) ⊗ m σ

U

// U (F (A) ⊗ m) σ

F

// U F (A ⊗ m)

Using the notation of actions rather than of tensor products, one may rewrite the functorial strength as

σ F : F (A) ∗ m −→ F (A ∗ m)

(5)

σ U : U (A) ∗ m −→ U (A ∗ m) together with the decomposition as:

σ A,m : U F (A) ∗ m σ

U

// U (F (A) ∗ m) σ

F

// U F (A ∗ m) . where ∗ denotes the two actions on the right

∗ : C × C −→ C ∗ : C T × C −→ C T

of the monoidal category C on the category C and on its Kleisli category C T

respectively.

The two decompositions of the strength σ are apparently very different.

In particular, the first decomposition seems to be of an entirely new and unknown nature, since it requires a combination of actions of the monoidal category C as well as of its opposite category C op . The second decomposi- tion is more familiar, since it only requires a pair of actions of the monoidal category C on the category C and on its Kleisli category C T . For a very long time, we believed that the two constructions were intrinsically different.

We were simply wrong... Indeed, the purpose of this note is precisely to unify the two decompositions of T by recasting the two adjunctions L a R and F a U in the same enriched framework. In particular, we show that the first decomposition of the double negation monad is based on an enriched adjunction – an observation which one may find interesting for its own sake.

Also, we will see that our purpose is not to translate everything in the lan- guage of enriched category theory. Quite on the contrary: our main purpose is to clarify what combinatorial structures underlie the notions of “enrich- ment” in a number of examples of interest where the enriched categories are coming from an action of a monoidal category M .

Plan of the paper. Given monoidal category M , we start by introducing in §2 the notion of positive M -category. We explain in §3 how every such positive M -category may be seen as an enriched category over the presheaf category [ M op , Set]. We then introduce in §4 the dual notion of negative M - category which may be also seen as an enriched category over the presheaf category [ M op , Set], but in a different way. In each positive and negative case, we characterize the enriched functors and natural transformations between these M -categories. We complete the pictureby characterizing in

§5 the enriched functors and natural transformations between a positive

(6)

and a negative M -category. This leads to the definition in §6 of the 2- category M – Mod which embeds fully and faithfully in the 2-category of enriched categories, enriched functors and enriched natural transforma- tions. We illustrate these ideas with a series of examples provided in §7 and conclude the paper in §8.

2 Positive M -categories

The starting point of our analysis is provided by the notion of M -category, defined as a categorical module A over a monoidal category M . More specifically, given a monoidal category M , we construct a 2-category M + – Mod with

• positive M -categories as 0-cells,

• M -functors as 1-cells,

• natural M -transformations as 2-cells.

We will see in the next section that these data are tightly connected to the notions of enriched functors and enriched natural transformations.

Definition 1 (positive action) A positive action of a monoidal category ( M , ⊗, I) on a category A is defined as a functor

∗ : M × A −→ A

which transports every pair of objects (m, A) to an object m ∗ A of the cate- gory A , together with a pair of natural transformations:

δ m,n,A : (m ⊗ n) ∗ A −→ n ∗ (m ∗ A) δ A : I ∗ A −→ A satisfying the three expected coherence laws:

(m ⊗ n ⊗ p) ∗ A

δ



δ // m ∗ ((n ⊗ p) ∗ A)

δ



(m ⊗ n) ∗ (p ∗ A) δ // (m ∗ (n ∗ (p ∗ A)))

(7)

m ∗ A id



m ∗ A

(m ⊗ I) ∗ A δ // m ∗ (I ∗ A)

δ

OO

m ∗ A id



m ∗ A

(I ⊗ m) ∗ A δ // I ∗ (m ∗ A)

δ

OO

An action is called pseudo when the natural transformations are isomor- phisms, and strict when the monoidal category M is strict and the natural transformations are equalities.

Note that the notion of positive action generalizes the notion of comonad:

indeed, a comonad in a category A is the same thing as positive action of the trivial monoidal category M = 1 on the category A .

Definition 2 (positive categories) A positive M , or M + -category, is a category A equipped with a positive action of the monoidal category M . Definition 3 (positive functors) An M + -functor

(F, σ) : ( A , ∗) −→ (B, ∗) between two M + -categories is defined as a functor

F : A −→ B

between the underlying categories, together with a natural transformation σ m,A : m ∗ F (A) −→ F (m ∗ A)

making the two coherence diagrams

F ((m ⊗ n) ∗ A)

δ

))

(m ⊗ n) ∗ F A

δ 

σ

m⊗n

55

F (m ∗ (n ∗ A))

m ∗ (n ∗ F A) σ

n

// m ∗ F (n ∗ A)

σ

m

OO (1)

(8)

I ∗ F A

σ

I

## // F A

F (I ∗ A)

<<

(2)

commute.

Definition 4 (natural transformation) A natural M + -transformation θ : (F, σ)(G, τ ) : ( A , ∗) −→ (B, ∗)

is a natural transformation between the underlying functors

θ : FG : A −→ B

such that the coherence diagram

m ∗ F A σ

m

//

m ∗ θ

A



F (m ∗ A)

θ

m∗A



m ∗ GA τ

m

// G(m ∗ A) commutes for all objects A and m.

Recall from the work of Anders Kock [3] that

Definition 5 A strong monad on a M + -category ( A , ∗) is a pair consisting of a monad T in the category A together with a natural transformation

σ : m ∗ T (A) −→ T (m ∗ A) making the familiar diagrams commute.

The following statement is essentially straightforward.

Proposition 1 A strong monad on a M + -category ( A , ∗) is the same thing as a monad

(T, µ, η) : ( A , ∗) −→ (A , ∗)

in the 2-category M + – Mod.

(9)

3 Enrichment

We suppose from now on that the monoidal category M is small. At this point, we are ready to establish that

Proposition 2 Every M + -category A may be seen as an enriched cate- gory ι + A over the presheaf category [M op , Set] equipped with the Day tensor product on M . The hom-space

A [A, B]

from an object A to an object B in the enriched category A is defined as the following presheaf:

A [A, B] : M op −→ Set

m 7→ A (m ∗ A, B) where A (A, B) denotes the hom-set from A to B in the category A .

Recall that the Day tensor product of two presheaves is defined using the coend formula:

ϕ ⊗ Day ψ : m 7→

Z m

1

,m

2

∈ M

M (m, m 1 ⊗ m 2 ) × ϕ(m 1 ) × ψ(m 2 ) This tensor product equips the presheaf category [ M op , Set] with the struc- ture of a monoidal category, whose tensorial unit is provided by the repre- sentable presheaf

y I : m 7→ M (m, I)

associated to the unit of the original monoidal category M . Note that this construction of the enriched category generalizes the familar construction of the Kleisli category associated to a comonad in the category A . Indeed, in the case of a trivial category M = 1, the category ι + A is enriched over [ M op , Set] which coincides in that case with Set. This category ι + A coin- cides with the Kleisli category associated to the comonad A 7→ I ∗ A where I denotes the unique object of the monoidal category M = 1.

Proposition 3 The construction of Proposition 2 induces a 2-functor ι + : M + – Mod −→ [ M op , Set] – Cat

which is moreover full and faithful in the sense that

M + – Mod(( A , ∗), (B, ∗))  [M op , Set] – Cat(ι + ( A , ∗), ι + ( B, ∗))

where  means isomorphism of categories.

(10)

In other words, an M + -functor and a natural M + -transformation between two positive M -categories (A , ∗) and (B, ∗) are the same things as an en- riched functor and an enriched natural transformation between the associ- ated enriched categories.

4 Negative M -categories

We introduce below the notion of negative M -category, or M -category, which is dual to the notion of positive M -category.

Definition 6 (negative action) A negative action of a monoidal category M = (M , ⊗, I) on a category A is defined as a positive action of the opposite monoidal category M op on the opposite category A op .

Now, recall that the opposite monoidal category M op(0,1) = ( M op , ⊗ op , I) is obtained from M by

• reversing the direction of the morphisms of dimension 1, this justify- ing the index 1,

• reversing the orientation of the tensor product of dimension 0, this justifying the index 0.

This leads to the definition of negative M -category.

Definition 7 (negative categories) A negative M -category, or M -category, is a category A equipped with a negative action of the opposite monoidal category M op(0,1) .

The definition of negative M -category is fine, but a bit concise, and we thus expand it in the following statement.

Proposition 4 A negative M -category is the same thing as a category A equipped with a functor

−∗ : M op × A −→ A

which transports every pair of objects (m, A) to an object m−∗A of the cate- gory A , together with a pair of natural transformations:

µ m,n,A : n−∗(m−∗A) −→ (m ⊗ n)−∗A µ A : A −→ I−∗A

(11)

satisfying the three coherence laws:

p−∗(n−∗(m−∗A))

µ



µ // (n ⊗ p)−∗(m−∗A)

µ



p−∗((m ⊗ n)−∗A) µ // (m ⊗ n ⊗ p)−∗A

m−∗A id

µ



m−∗A



I−∗(m−∗A) µ // (m ⊗ I)−∗A

m−∗A id

µ



m−∗A



m−∗(I−∗A) µ // (I ⊗ m)−∗A Definition 8 (negative functors) An M -functor

(F, σ) : ( A , −∗) −→ (B, −∗) between two negative M -categories is defined as a functor

F : A −→ B

between the underlying categories, together with a natural transformation σ m,A : F (m−∗A) −→ m−∗F (A)

making the two coherence diagrams

(12)

n−∗F (m−∗A)

σ

n

))

F (n−∗(m−∗A))

µ 

σ

n

55

n−∗(m−∗F A)

 µ

F ((m ⊗ n)−∗A) σ

m⊗n

// (m ⊗ n)−∗F A F (I−∗A)

σ

I

$$

µ // F A

I−∗F A

µ

==

commute.

Definition 9 (natural transformation) A natural M -transformation θ : (F, σ)(G, τ ) : ( A , −∗) −→ (B, −∗)

is a natural transformation between the underlying functors

θ : FG : A −→ B

such that the coherence diagram F (m−∗A)

θ

m−∗A



σ

m

// m−∗F A

m−∗θ

A

 G(m−∗A) τ

m

// m−∗GA

commutes for all objects A and m.

One reason for introducing the notion of negative M -category is that it

provides us with an alternative way to see a category A as an enriched

category over the presheaf category [ M op , Set]. The idea is to let the ob-

jects m of the monoidal category M act on the target object B rather than

on the source object A of a morphism A → B of the category A . Indeed, we

establish that:

(13)

Proposition 5 Every negative M -category (A , −∗) may be seen as an en- riched category over the presheaf category [ M op , Set] equipped with the Day tensor product. The presheaf [A, B] over the category M is defined as follows:

A [A, B] : m 7→ A (A, m−∗B)

where m−∗B denotes the result of letting the object m in M op act on the object B of the category A .

This very observation leads us to introduce the 2-category M – Mod with

• negative M -categories as 0-cells,

• M -functors as 1-cells,

• natural M -transformations as 2-cells.

Proposition 6 The construction of Proposition 5 induces a 2-functor ι : M – Mod −→ [ M op , Set] – Cat

which is moreover full and faithful in the strong sense that

M – Mod(( A , ∗), (B, ∗))  [M op , Set] – Cat(ι ( A , ∗), ι ( B, ∗)) where  means isomorphism of categories.

In other words, an M -functor and a natural M -transformation between negative M -categories (A , −∗) and (B, −∗) are the same thing as an en- riched functor and an enriched natural transformation between the associ- ated enriched categories.

5 Transverse functors

At this point, we have constructed two full and faithful functors

ι + : M + – Mod −→ [ M op , Set] – Cat ι : M – Mod −→ [ M op , Set] – Cat

each of them characterizing the enriched functors and natural transforma-

tions between positive M -categories and negative M op(0,1) -categories, seen

as enriched categories. This leads to the question of characterizing the en-

riched functors and natural transformations from an object of M + – Mod to

an object of M – Mod, and conversely, from an object of M – Mod to an

object of M + – Mod. As we will see, the answer is illuminating, and clari-

fies the algebraic status of the adjunction L a R between the two negations

of a dialogue category mentioned in the introduction. So, let us consider

(14)

• a positive M -module (A , ∗),

• a negative M -module (B, −∗).

Definition 10 (transverse functor) A transverse M +− -functor (F, ax) : ( A , ∗) −→ (B, −∗)

is a functor between the underlying categories

F : A −→ B

together with a family of morphisms

ax m,A : F A −→ m−∗F (m ∗ A)

natural in A and dinatural in m, such that the coherence diagrams F (A) ax

m⊗n

//

ax

n



(m ⊗ n)−∗F ((m ⊗ n) ∗ A)

δ



n−∗F (n ∗ A)

ax

n



n−∗(m−∗F (m ∗ (n ∗ A))) µ // (m ⊗ n)−∗F (m ∗ (n ∗ A)) By dinaturality in m, we mean that the diagram

F A ax

m

//

ax

n



m−∗F (m ∗ A)

m−∗F (h∗A)



n−∗F (n ∗ A) h−∗F (n∗A) // m−∗F (n ∗ A) commutes for every morphism h : m → n in the category M .

Definition 11 (natural transformations) A natural M +− -transformation

θ : (F, ax)(G, ax) : ( A , ∗) −→ (B, −∗)

(15)

is a natural transformation between the underlying functors

θ : FG : A −→ B

making the diagram F (A)

θ

A



ax

m

// m −∗ F (m ∗ A)

m −∗ θ

m∗A



G(A) ax

m

// m −∗ G(m ∗ A) commute for all objects A and m.

The definition of transverse functor and natural transformations are justi- fied by the following proposition.

Proposition 7 A transverse M +− -functor

( A , ∗) −→ (B, −∗) is the same thing as a functor

ι + ( A , ∗) −→ ι ( B, −∗)

enriched over the presheaf category [ M op , Set]. Similarly, a natural M +− - transformation

θ : (F, σ)(G, τ ) : ( A , ∗) −→ (B, −∗)

is the same thing as an enriched natural transformation between the under- lying enriched functors.

Similarly, the enriched functors and natural transformations from a nega- tive M -category to a positive M -category are characterized by the following definitions. Suppose given

• a negative M -module (A , −∗),

• a positive M -module (B, ∗).

(16)

Definition 12 (transverse functor) A transverse M −+ -functor (F, cut) : ( A , −∗) −→ (B, ∗)

is a functor between the underlying categories

F : A −→ B

together with a family of morphisms

cut m,A : m ∗ F (m−∗A) −→ F A

natural in A and dinatural in m, such that the coherence diagrams (m ⊗ n) ∗ F (n−∗(m−∗A)) δ //

µ



m ∗ (n ∗ F (n−∗(m−∗A)))

cut

n



m ∗ F (m−∗A)))

cut

m



(m ⊗ n) ∗ F ((m ⊗ n)−∗A) cut

m⊗n

// F A By dinaturality in m, we mean that the diagram

m ∗ F (n−∗A) m∗F (h−∗A) //

h∗F (n−∗A)



m ∗ F (m−∗A)

cut

m

 n ∗ F (n−∗A) cut

n

// F A

commutes for every morphism h : m → n in the category M .

Definition 13 (natural transformations) A natural M −+ -transformation θ : (F, cut)(G, cut) : ( A , −∗) −→ (B, ∗)

is a natural transformation between the underlying functors

θ : FG : A −→ B

(17)

making the diagram

m ∗ F (m−∗A)

m ∗ θ

m−∗A



cut

m

// F A

θ

A



m ∗ G(m−∗A) cut

m

// GA commute for all objects m and A.

6 General M -categories

At this point, we are ready to construct the 2-category M – Mod with

• the positive as well as the negative M -categories as 0-cells,

• the positive, negative or transverse M -functors as 1-cells,

• the positive, negative or transverse natural M -transformations as 2- cells.

As we explained in the introduction, the 2-category M – Mod provides a purely combinatorial description of the 2-category of enriched categories over [ M op , Set] “restricted” to the positive and negative M -categories. This informal statement is formalized as follows.

Proposition 8 Put together, the constructions ι + and ι induce a 2-functor M – Mod −→ [M op , Set] – Cat

which is full and faithful in the sense that

M – Mod(A , B)  [M op , Set] – Cat(ι A , ιB)

for every positive or negative M -categories A and B, where  means iso- morphism of categories.

A technical benefit of this combinatorial reformulation of enriched functors

and natural transformations is that one may relax the condition that the

monoidal category M is small.

(18)

7 Illustrations

In this section, we review a series of examples of strong monads T = R ◦ L on M -categories arising from an enriched adjunction L a R. Our starting point is provided by the two different decompositions of the double negation monad in a dialogue category.

First decomposition. The adjunction

C

L

""

R

cc C op

where L and R are defined as the two negation functors

L : A 7→ A ( ⊥, R : A 7→ ⊥  A.

happens to define an adjunction in the 2-category M – Mod where M is defined as C op(1) = ( C , ⊗ op , I). The fact that one needs to take the opposite tensor product is just a matter of convention in the definition of our M - modules. The important point to observe is that the monoidal category M acts positively on the category C by the tensor product:

∗ : M × C −→ C

(m, A) 7→ A ⊗ m

and that its opposite monoidal category M op(0,1) = C op acts negatively on the category C op by the same tensor product:

−∗ : M op(0,1) × C op −→ C op

(m, A) 7→ m ⊗ A.

considered this time in the opposite category C op . This means that the category C should be considered as a positive M -category (C , ∗) whereas its opposite category C op defines a negative M -category (C op , −∗). From this, it is not difficult to see that the adjunction L a R defines an adjunction in the 2-category M – Mod. The axiom and cut are given by the natural transformations

ax m : L(X) −→ m ⊗ L(X ⊗ m)

(19)

cut m : R(m ⊗ X) ⊗ m −→ R(X).

From this follows by Proposition 8 that the canonical adjunction L a R of dialogue categories is enriched over the category [ C op(0,1) , Set] equipped with its Day tensor product. More generally, one can show that

Proposition 9 An adjunction

( A , ∗)

L

""

R

cc ( B, −∗)

between a positive M -category A and a negative M -category B is the same thing as a family of categorical adjunctions

L(m ∗ −) a R(m−∗−) natural in the object m of the category M .

Second decomposition. The following statement clarifies the algebraic status of our second decomposition of the double negation monad as T = U ◦ F .

Proposition 10 Every monad T in the 2-category M + – Mod induces an adjunction

C

F

""

U

cc C T

living in the 2-category M + – Mod, where C T is the Kleisli category of the monad T equipped with the action

~ : M × C T −→ C T

defined on two morphisms

f : A −→ T (B) h : m −→ n

as follows:

h ~ f : m ∗ A h∗f // n ∗ T (B) σ

n

// T (n ∗ B) .

This is precisely the way the double negation monad T factors as T = U ◦ F

in the introduction.

(20)

The state monad. Another example of adjunction in M + – Mod where M = C is provided by the state monad

T : A 7→ S ( (S ⊗ A)

in any monoidal closed category C , where S is a specific object of C , describ- ing a space of states for the system. In that case, the monad T factors as the adjunction

C

L

""

R

cc C

where L : A 7→ S ⊗ A and R : A 7→ S ( A. It is not difficult to see that the two functors L and R are M -functors between the positive M -module C and itself – as testified by the existence of the natural transformations

L(A) ⊗ m = (S ⊗ A) ⊗ m  S ⊗ (A ⊗ m) = L(A ⊗ m) R(A) ⊗ m = (S ( A) ⊗ m −→ S ( (A ⊗ m) = R(A ⊗ m)

As a matter of fact, one easily checks that the adjunction lives in the cat- egory M + – Mod. This provides a conceptual way to understand why the state monad is strong.

The Eilenberg-Moore adjunction. Suppose given a strong monad T on a monoidal closed category C . By monoidal closed, we mean that the functor

A 7→ m ⊗ A : C −→ C

has a right adjoint denoted as

A 7→ m ( A : C −→ C

for every object m of the monoidal category M = C . In that case, the category of algebras C T defines a negative M -module (C T , (). The action of an object m of C on a T -algebra

a : T A −→ A

is defined as the T -algebra

m ( a : T (m ( A) −→ m ( T (A) −→ m ( A. σ

(21)

where the natural transformation

σ m,A : T (m ( A) −→ m ( T (A)

follows from the strength of the monad T . Hence, the category C defines a positive M -category whereas its category of T -algebras C T defines a nega- tive category. It is not difficult to check then that the adjunction

C

F

""

U

cc C T

is an adjunction living inside the 2-category M – Mod of positive and neg- ative M -categories. In other words, it is an adjunction F a U together with a family of adjunctions

F (m ∗ −) a U (m−∗−)

parametrized by the object m of the category C . This enables to decompose the strength σ of the monad T in the same way as in the case of the double negation monad:

σ A,m : m ⊗ U F (A) ax

m

// m ⊗ U (m ( F (m ⊗ A)) cut

m

// U F (m ⊗ A) using the two natural transformations

ax m : F (A) −→ m ( F (m ⊗ A) cut m : m ⊗ U (m ( A) −→ U (A).

Note that there is another way to decompose the strength of the monad T , which is to think of the original category C as a negative M -category C thanks to the action

( : M op × C −→ C .

In that acception, the strength of T is decomposed in a more expected way:

σ m,A : U F (m ( A) −→ σ

F

U (m ( F A) −→ σ

U

m ( UF A.

(22)

The effect calculus. In a series of recent papers, Jeff Egger, Rasmus Møgelberg, Alex Simpson introduce a basic effect-calculus (EC) together with a semantic notion of model for the calculus, see [1] and [2]. Here, we follow [2] and consider an EC model based on a cartesian category M rather than on a cartesian closed category as in the preliminary version of the paper [1]. We recall the definition of EC model below.

Definition 14 ([2]) An effect-calculus model is an [ M op , Set]-enriched ad- junction

M

F

##

⊥ A

U

bb

between a cartesian category M and a [M op , Set]-enriched category A . One requires moreover that the category A has [M op , Set]-cotensors indexed by representables, and finite [ M op , Set]-enriched products.

We relate this definition of effect-calculus model to the notion of M -category using the following elementary observation. Suppose given a monoidal cat- egory M . In that case:

Proposition 11 A category A enriched over [M op , Set] which is moreover equipped with [ M op , Set]-cotensors indexed by representables y m = M (−, −) is the same thing as a negative M -category (A, −∗) with invertible coercions

µ m,n,A : n−∗(m−∗A) −→ (m ⊗ n)−∗A, µ A : A −→ I−∗A.

This correspondence enables to reformulate the effect-calculus models in a purely combinatorial way, where the underlying notion of enrichment is not mentioned anymore.

Proposition 12 An effect-calculus model on a cartesian category M is the same thing as a categorical adjunction

M

F

##

⊥ A

U

bb

(23)

together with a pseudo-action

⇒ : M op × A −→ A

of the cartesian category M on the category A , and a family of adjunctions F (m × −) ` U (m ⇒ −)

parametrized by m. Finally, one requires that the category A has finite products, and that the canonical morphisms

m ⇒ (A × B) −→ (m ⇒ A) × (m ⇒ B) m ⇒ I −→ I are invertible for all objects m of the category M and all objects A of the category A .

Here, it should be noticed that the family of adjunctions F (m × −) ` U (m ⇒ −)

may be understood as a form of closure property, providing a natural family of bijections

ϕ m,A,B : M (m × A, UB)  M (A, U(m ⇒ B)).

Note that this situation is precisely what is called an exponential ideal

U : A −→ M

on the cartesian category M . In a preliminary version of their journal paper [2], the cartesian category M is also required to be closed, see [1] for details. In that case, another formulation based on implication in M rather than product becomes possible.

Proposition 13 An effect-calculus model on a cartesian closed category M is the same thing as a categorical adjunction

M

F

##

⊥ A

U

bb

(24)

together with a pseudo-action

⇒ : M op × A −→ A

of the cartesian category M on the category A , and a family of isomorphisms σ m,A : U (m ⇒ A) −→ m ⇒ U (A)

natural in m and A, making the two coherence diagrams n ⇒ U (m ⇒ A)

σ

n

))

U (n ⇒ (m ⇒ A))

µ 

σ

n

44

n ⇒ (m ⇒ U A)

 µ

U ((m ⊗ n) ⇒ A) σ

m⊗n

// (m ⊗ n) ⇒ U (A) U (I ⇒ A)

σ

I

%%

µ // U (A)

I ⇒ U (A)

µ

;;

commute for all object m of the category M and all objects A of the cate- gory A . Finally, one requires that the category A has finite products, and that the canonical morphisms

m ⇒ (A × B) −→ (m ⇒ A) × (m ⇒ B) m ⇒ I −→ I are invertible for all objects m of the category M and all objects A of the category A .

Note that a enriched calculus model where the category A has finite sums such that the

(m−∗A) + (m−∗B) −→ m−∗(A + B) 0 −→ m−∗0 is equivalent to the model of Paul Blain Levy’s call-by-push-value in [?].

Linear effect systems. This leads to a tentative definition of linear ef-

fect system.

(25)

Definition 15 A linear effect system is an adjunction

L

L

""

R

cc A

between a monoidal category L and a L -category A (either positive or neg- ative). The adjunction is moreover required to be enriched over the presheaf category [ L op , Set].

It is possible to give a purely combinatorial definition of linear effect sys- tems based on our reformulation of enriched adjunctions in the 2-category L – Mod. Quite obviously, there are two cases to treat, depending whether the L -category A is positive or negative. When the L -category (A , ∗) is positive, the enrichment requirement on L a R boils down to the existence of a family of isomorphisms

σ `,A : ` ⊗ L(A) −→ L(` ∗ A)

natural in the objects ` and A of the category L , and satisfying the coher- ence diagrams (1) and (2) of a positive functor. When the L -category (A , −∗) is negative, the enrichment requirement on L a R boils down to the exis- tence of a family of adjunctions

L(` ∗ −) a R(`−∗−)

parametrized by the objects ` of the category L . Suppose now that we have a resource modality on the category L , in the sense of linear logic.

In its modern formulation, such a modality is described as a lax monoidal adjunction

M

Lin

""

M ult

cc L

between a cartesian category M and the monoidal category L . Recall that such a lax monoidal adjunction Lin a M ult is the same thing as a cate- gorical adjunction where the left adjoint functor Lin is strongly monoidal, this meaning that the monoidal coercions

Lin(A) ⊗ Lin(B) −→ Lin(A × B) I −→ Lin(I)

(26)

are isomorphisms. From this follows that the functor M × L −→ Lin L × L −→ L

defines an action of the category M on the category L . Similarly, the func- tor

M × A −→ Lin L × A −→ A

transfers the positive (resp. negative) action of the L to a positive (resp.

negative) action of M on the category A . This enables to see the adjunc- tion L a R as an adjunction in the 2-category L – Mod. Now, the two adjunctions live in L – Mod and may be composed in the following way:

M

Lin

""

M ult

cc L

L

&&

⊥ A

R

cc

From this follows that the adjunction defines

M × A −→ Lin L × A −→ A

transfers the positive (resp. negative) action of the L to a positive (resp.

negative) action of M on the category A . From this follows that

Proposition 14 Suppose given a linear effect system between a monoidal category L and a category A with finite products commuting to the action of L , in the sense that the canonical morphisms

`−∗(A × B) −→ (`−∗A) × (`−∗B) `−∗A −→ 1

are invertible. In that case, every resource modality between a cartesian category M and the category L induces an adjunction

M

L ◦ Lin

""

M ult ◦ R

cc A

which defines an effect calculus model. The resulting strong monad T on the cartesian category M is equal to

T = M ult ◦ R ◦ L ◦ Lin : M −→ M .

(27)

A typical illustration is provided by the case of a dialogue category L which always defines a linear effect system with its opposite category L op seen as a negative L -category. Every resource modality on L thus induces an effect calculus model between the cartesian category M involved in the resource modality and the category L op seen this time as a negative M - category. In that case, the proposition enables to transfer the double nega- tion monad of the dialogue category L based on linear continuations to a double negation monad living in the cartesian category M , and thus based on general continuations.

8 Conclusion

This paper may be seen as a step towards a more combinatorial and uni- fied understanding of side effects in concrete case studies. We started the paper in that spirit by describing two apparently different ways to recover the strength σ of the double negation monad T from its decomposition into an adjunction L a R or F a U . We then showed that each of the two recipes to recover σ may be understood as a procedure to lift the original adjunc- tion L a R or F a U living in the 2-category Cat to an adjunction living in the 2-category of enriched categories over the presheaf category [ M op , Set].

The statement is established by reformulating the traditional notions of enriched functors and enriched natural transformations in a purely combi- natorial way in the particular case of functors and natural transformations between M -categories. The combinatorial reformulation in itself is based on functorial strengths, costrengths, axioms and cuts. All this leads to the definition of a 2-category M – Mod of positive and negative M -categories where these specific adjunctions decomposing strong monads may be for- mulated and studied. The combinatorial reformulation is then applied in order to clarify the structure of categories equipped with computational ef- fects. In particular, we take this opportunity to reformulate in that style the notion of model of effect calculus described by Jeff Egger, Rasmus Møgel- berg and Alex Simpson in a series of recent papers. A natural question is to understand in a similar fashion other effect systems considered in the liter- ature, and more specifically the enriched version of the effect calculus [2].

We leave that point for future work.

(28)

References

[1] Jeff Egger, Rasmus Ejlers Møgelberg, Alex Simpson. Enriching an Effect Cal- culus with Linear Types. Proceedings of Computer Science Logic 2009.

[2] Jeff Egger, Rasmus Møgelberg and Alex Simpson. The Enriched Effect Calcu- lus: Syntax and Semantics. Submitted June 2011.

[3] Anders Kock. On the double dualization monad. Math. Scand 29 (1971), pp 161 - 174.

[4] Paul Blain Levy. Adjunction models for call-by-push-value with stacks. Theory and Applications of Categories, 14:75?110, 2005.

[5] Paul-André Melliès. Game semantics in string diagrams. To appear in the Pro- ceedings of LICS 2012.

[6] Paul-André Melliès. Braided notions of dialogue categories. Manuscript submitted to a journal and available on the author’s homepage:

http://www.pps.jussieu.fr/∼mellies/tensorial-logic.html

References

Related documents

Plasmid conjugation studies demonstrated a genetic transfer of resistance (ACCoT). Typhi isolates were all sensitive to fluoroquinolones and cefotaxime, the alternative

DEAL DRIVERS - CANADA The financial advisor league tables by value and volume have been run from 01/01/2015 to the 06/30/2015, excluding lapsed and withdrawn deals.. The tables

Conclusions: Heimler syndrome due to biallelic PEX6 mutations demonstrates a macular dystrophy with characteristic fundus autofluorescence and may be complicated by

For females, the first-group spatial predictors (MEM 1 and MEM 4 ) were related to traits influencing dispersal and cognitive capacity (wing length, wing loadings, tail length and

Penelitian ini diharapkan dapat memberikan bukti empiris terkait pengaruh profitabilitas terhadap nilai perusahaan dengan Islamic Social Reporting dan struktur modal

PowerRadar Financing Operation and Maintenance Cogeneration Demand Response (DR), Management and Asset Optimization Battery Storage Electric Vehicle Enablement Power

[r]

We have audited the accompanying financial report of NetComm Wireless Limited (the “Company”), which comprises the consolidated statement of financial position as at 30 June 2015,