A Solution for the Compositionality Problem of Dinatural - - PowerPoint PPT Presentation

a solution for the compositionality problem of dinatural
SMART_READER_LITE
LIVE PREVIEW

A Solution for the Compositionality Problem of Dinatural - - PowerPoint PPT Presentation

A Solution for the Compositionality Problem of Dinatural Transformations Guy McCusker, Alessio Santamaria 12 th July 2019 Category Theory 2019 Edinburgh, 7- 13 th July 2019 Dinatural transformations F; G : C op C D . A dinatural


slide-1
SLIDE 1

A Solution for the Compositionality Problem

  • f Dinatural Transformations

Guy McCusker, Alessio Santamaria

12th July 2019

Category Theory 2019 Edinburgh, 7-13th July 2019

slide-2
SLIDE 2

Dinatural transformations

F; G : Cop × C → D. A dinatural transformation ’: F → G is a family of morphisms in D ’ = (’A : F(A; A) → G(A; A))A∈C

slide-3
SLIDE 3

Dinatural transformations

F; G : Cop × C → D. A dinatural transformation ’: F → G is a family of morphisms in D ’ = (’A : F(A; A) → G(A; A))A∈C such that for all f : A → B in C the following commutes: F(A; A) G(A; A) F(B; A) G(A; B) F(B; B) G(B; B)

’A G(1;f ) F(f ;1) F(1;f ) ’B G(f ;1)

slide-4
SLIDE 4

. . . don’t compose

’: F → G, : G → H dinatural F(A; A) G(A; A) H(A; A) F(B; A) G(B; A) G(A; B) H(A; B) F(B; B) G(B; B) H(B; B)

’A G(1;f ) A H(1;f ) F(f ;1) F(1;f ) G(f ;1) G(1;f ) ’B G(f ;1) B H(f ;1)

slide-5
SLIDE 5

An extraordinary transformation

C cartesian closed category. evalA;B : A × (A ⇒ B) → B

slide-6
SLIDE 6

An extraordinary transformation

C cartesian closed category. evalA;B : A × (A ⇒ B) → B eval is natural in B and for all f : A → A′ the following commutes: A × (A′ ⇒ B) A × (A ⇒ B) A′ × (A′ ⇒ B) B

1×(f ⇒1) f ×(1⇒1) evalA;B evalA′;B

since for all a ∈ A and g : A′ → B (g ◦ f )(a) = g(f (a)).

slide-7
SLIDE 7

Extranatural transformations (Eilenberg, Kelly 1966)

F : A × Bop × B → E, G : A × Cop × C → E. An extranatural transformation ’: F → G is a family of morphisms in E ’ = (’A;B;C : F(A; B; B) → G(A; C; C))A∈A;B∈B;C∈C

slide-8
SLIDE 8

Extranatural transformations (Eilenberg, Kelly 1966)

F : A × Bop × B → E, G : A × Cop × C → E. An extranatural transformation ’: F → G is a family of morphisms in E ’ = (’A;B;C : F(A; B; B) → G(A; C; C))A∈A;B∈B;C∈C such that for all f : A →

A A′, g : B → B B′, h: C → C C′

F(A; B; B) G(A; C; C) F(A′; B; B) G(A′; C; C)

’A;B;C F(f ;1;1) G(f ;1;1) ’A′;B;C

F(A; B′; B) F(A; B; B) F(A; B′; B′) G(A; C; C)

F(1;g;1) F(1;1;g) ’A;B;C ’A;B′;C

F(A; B; B) G(A; C; C) G(A; C′; C′) G(A; C; C′)

’A;B;C ’A;B;C′ G(1;1;h) G(1;h;1)

slide-9
SLIDE 9

Extranaturals don’t compose already

F : A × Bop × B → E, G : A × Cop × C → E, H : A × Dop × D → E. ’: F → G, : G → H extranatural transformations.

  • ’ =

„ F(A; B; B) G(A; C; C) H(A; D; D)

’A;B;C A;C;D

«

A;B;C;D

is not a well-defined extranatural transformation from F to H.

slide-10
SLIDE 10

A string diagrammatic calculus

F : A × Bop × B → E, G : A × Cop × C → E ’ = (’A;B;C : F(A; B; B) → G(A; C; C))A;B;C ! F “ , , ”

slide-11
SLIDE 11

A string diagrammatic calculus

F : A × Bop × B → E, G : A × Cop × C → E ’ = (’A;B;C : F(A; B; B) → G(A; C; C))A;B;C ! F “ , , ” G “ , , ”

slide-12
SLIDE 12

A string diagrammatic calculus

F : A × Bop × B → E, G : A × Cop × C → E ’ = (’A;B;C : F(A; B; B) → G(A; C; C))A;B;C ! F “ , , ”

A B C

G “ , , ”

slide-13
SLIDE 13

A string diagrammatic calculus

F : A × Bop × B → E, G : A × Cop × C → E ’ = (’A;B;C : F(A; B; B) → G(A; C; C))A;B;C ! F “ , , ”

A B C

G “ , , ”

slide-14
SLIDE 14

A string diagrammatic calculus

F : A × Bop × B → E, G : A × Cop × C → E ’ = (’A;B;C : F(A; B; B) → G(A; C; C))A;B;C ! F “ , , ”

A B C

G “ , , ”

F(A; B; B) G(A; C; C) F(A′; B; B) G(A′; C; C)

’A;B;C F(f ;1;1) G(f ;1;1) ’A′;B;C

! f 1 1 1 1 1 F “ , , ”

A′ B C

G “ , , ” = 1 1 1 f 1 1 F “ , , ”

A B C

G “ , , ”

slide-15
SLIDE 15

A string diagrammatic calculus

F : A × Bop × B → E, G : A × Cop × C → E ’ = (’A;B;C : F(A; B; B) → G(A; C; C))A;B;C ! F “ , , ”

A B C

G “ , , ”

F(A; B; B) G(A; C; C) F(A′; B; B) G(A′; C; C)

’A;B;C F(f ;1;1) G(f ;1;1) ’A′;B;C

! f F “ , , ”

A′ B C

G “ , , ” = f F “ , , ”

A B C

G “ , , ”

slide-16
SLIDE 16

A string diagrammatic calculus

F : A × Bop × B → E, G : A × Cop × C → E ’ = (’A;B;C : F(A; B; B) → G(A; C; C))A;B;C ! F “ , , ”

A B C

G “ , , ”

F(A; B′; B) F(A; B; B) F(A; B′; B′) G(A; C; C)

F(1;g;1) F(1;1;g) ’A;B;C ’A;B′;C

! g F “ , , ”

A B′ C

G “ , , ” = g F “ , , ”

A B C

G “ , , ”

slide-17
SLIDE 17

A string diagrammatic calculus

F : A × Bop × B → E, G : A × Cop × C → E ’ = (’A;B;C : F(A; B; B) → G(A; C; C))A;B;C ! F “ , , ”

A B C

G “ , , ”

F(A; B; B) G(A; C; C) G(A; C′; C′) G(A; C; C′)

’A;B;C ’A;B;C′ G(1;1;h) G(1;h;1)

! h F “ , , ”

A B C′

G “ , , ” = h F “ , , ”

A B C

G “ , , ”

slide-18
SLIDE 18

A string diagrammatic calculus

eval = (evalA;B : A × (A ⇒ B) → B)A;B∈C ! × “ ⇒ ”

slide-19
SLIDE 19

A string diagrammatic calculus

eval = (evalA;B : A × (A ⇒ B) → B)A;B∈C ! × “ ⇒ ”

A × (A′ ⇒ B) A′ × (A′ ⇒ B) B′ B′ A × (A ⇒ B′) B

f ×(id ⇒g) evalA′;B′ id id ×(f ⇒id ) evalA;B g

!

f g

× “ ⇒ ”

=

f g

× “ ⇒ ”

slide-20
SLIDE 20

Eilenberg and Kelly’s theorem

F G H ’

slide-21
SLIDE 21

Eilenberg and Kelly’s theorem

F G H ’ F H

slide-22
SLIDE 22

Eilenberg and Kelly’s theorem

F G H ’ F H

Theorem (Eilenberg, Kelly 1966)

If the composite graph of ’ and is acyclic, then ◦ ’ is extranatural.

slide-23
SLIDE 23

Ramifications in the graphs∗

C cartesian closed. (‹A : A → A × A)A∈C is a natural transformation ‹ : idC → × with graph : Naturality of ‹:

f

=

f f

∗Cf. Kelly, Many-Variable Functorial Calculus I, 1972.

slide-24
SLIDE 24

Ramifications in the graphs∗

C cartesian closed. (‹A : A → A × A)A∈C is a natural transformation ‹ : idC → × with graph : Naturality of ‹:

f

=

f f

Consider fflA;B = (‹A × idA⇒B) ; (idA × evalA;B) : A × (A ⇒ B) → A × B.

∗Cf. Kelly, Many-Variable Functorial Calculus I, 1972.

slide-25
SLIDE 25

Ramifications in the graphs∗

C cartesian closed. (‹A : A → A × A)A∈C is a natural transformation ‹ : idC → × with graph : Naturality of ‹:

f

=

f f

Consider fflA;B = (‹A × idA⇒B) ; (idA × evalA;B) : A × (A ⇒ B) → A × B. For f : A → A′ the following commutes:

A × (A′ ⇒ B) A′ × (A′ ⇒ B) A′ × B A′ × B A × (A ⇒ B) A × B

f ×(1⇒1) fflA′;B 1 1×(f ⇒1) fflA;B f ×1

f

=

f f

ffl is natural in B and dinatural in A.

∗Cf. Kelly, Many-Variable Functorial Calculus I, 1972.

slide-26
SLIDE 26

The result

F : C¸ → D, G : C˛ → D functors, where ¸; ˛ ∈ List{+; −}, ’ = (’A1;:::;Ak)A1;:::;Ak∈C: F → G and = ( B1;:::;Bl)B1;:::;Bl∈C: G → H dinatural transformations with graph Γ(’) and Γ( ).

Theorem

If the composition of Γ(’) and Γ( ) is acyclic, then ◦ ’ is again dinatural.

slide-27
SLIDE 27

The incidence matrix

Say n = number of upper and lower boxes in Γ(’), m = number of black squares in Γ(’). The incidence matrix of ’ is the n × m matrix A where Ai;j = 8 > < > : −1 there is an arc from i to j 1 there is an arc from j to i

  • therwise
slide-28
SLIDE 28

The incidence matrix

Say n = number of upper and lower boxes in Γ(’), m = number of black squares in Γ(’). The incidence matrix of ’ is the n × m matrix A where Ai;j = 8 > < > : −1 there is an arc from i to j 1 there is an arc from j to i

  • therwise

b1 b2 b3 s1 s2 b4

s1 s2 2 6 4 3 7 5 b1 −1 b2 1 b3 −1 b4 1

slide-29
SLIDE 29

The incidence matrix

Say n = number of upper and lower boxes in Γ(’), m = number of black squares in Γ(’). The incidence matrix of ’ is the n × m matrix A where Ai;j = 8 > < > : −1 there is an arc from i to j 1 there is an arc from j to i

  • therwise

f b1 b2 b3 s1 s2 b4

s1 s2 2 6 4 3 7 5 b1 −1 b2 1 b3 −1 b4 1 2 6 4 3 7 5 1

slide-30
SLIDE 30

The incidence matrix

Say n = number of upper and lower boxes in Γ(’), m = number of black squares in Γ(’). The incidence matrix of ’ is the n × m matrix A where Ai;j = 8 > < > : −1 there is an arc from i to j 1 there is an arc from j to i

  • therwise

f b1 b2 b3 s1 s2 b4

=

b1 f b2 b3 s1 s2 b4

s1 s2 2 6 4 3 7 5 b1 −1 b2 1 b3 −1 b4 1 » – 1 0 + 2 6 4 3 7 5 1 = 2 6 4 3 7 5 1

slide-31
SLIDE 31

A reachability problem

A = 2 6 6 6 6 6 6 4 −1 1 1 −1 1 −1 −1 1 1 3 7 7 7 7 7 7 5

slide-32
SLIDE 32

A reachability problem

A = 2 6 6 6 6 6 6 4 −1 1 1 −1 1 −1 −1 1 1 3 7 7 7 7 7 7 5

· · · · · ·

H(f ;1) F(f ;1) F(1;f )

H(1;f )

Mo(b) = ( 1 b is a white upper/grey lower box

  • therwise

Md(b) = ( 1 b is a grey upper/white lower box

  • therwise
slide-33
SLIDE 33

A reachability problem

A = 2 6 6 6 6 6 6 4 −1 1 1 −1 1 −1 −1 1 1 3 7 7 7 7 7 7 5

· · · · · ·

H(f ;1) F(f ;1) F(1;f )

H(1;f )

Mo(b) = ( 1 b is a white upper/grey lower box

  • therwise

Md(b) = ( 1 b is a grey upper/white lower box

  • therwise

Mo =

f

; Md =

f f

slide-34
SLIDE 34

A reachability problem

A = 2 6 6 6 6 6 6 4 −1 1 1 −1 1 −1 −1 1 1 3 7 7 7 7 7 7 5

· · · · · ·

H(f ;1) F(f ;1) F(1;f )

H(1;f )

Mo(b) = ( 1 b is a white upper/grey lower box

  • therwise

Md(b) = ( 1 b is a grey upper/white lower box

  • therwise

Mo =

f

; Md =

f f If Md is reachable from Mo, then ◦ ’ is dinatural.

slide-35
SLIDE 35

A reachability result

Theorem (Ichikawa-Hiraishi 1988, paraphrased)

Suppose Γ( ) ◦ Γ(’) is acyclic and let M, M′ be two markings. Then M′ is reachable from M if and only if there is a non-negative integer solution x for Ax + M = M′: Mo =

f

; Md =

f f

slide-36
SLIDE 36

A reachability result

Theorem (Ichikawa-Hiraishi 1988, paraphrased)

Suppose Γ( ) ◦ Γ(’) is acyclic and let M, M′ be two markings. Then M′ is reachable from M if and only if there is a non-negative integer solution x for Ax + M = M′: Mo =

f

; Md =

f f

Take x = [1; : : : ; 1], that is, apply the dinaturality condition of ’ and in each of their variables exactly once: it works no matter how many boxes and squares we have!

slide-37
SLIDE 37

A generalised functor category

Theorem

Let ’: F → G and : G → H be dinatural transformations. If their composite graph is acyclic, then ◦ ’ is still dinatural.

slide-38
SLIDE 38

A generalised functor category

Theorem

Let ’: F → G and : G → H be dinatural transformations. If their composite graph is acyclic, then ◦ ’ is still dinatural.

Definition†(Sketch)

The category {C; D} consists of the following data.

†cf. Kelly, Many-Variable Functorial Calculus I, 1972

slide-39
SLIDE 39

A generalised functor category

Theorem

Let ’: F → G and : G → H be dinatural transformations. If their composite graph is acyclic, then ◦ ’ is still dinatural.

Definition†(Sketch)

The category {C; D} consists of the following data. Objects: pairs (¸; F), for ¸ ∈ List{+; −} and F : C¸ → D functor.

†cf. Kelly, Many-Variable Functorial Calculus I, 1972

slide-40
SLIDE 40

A generalised functor category

Theorem

Let ’: F → G and : G → H be dinatural transformations. If their composite graph is acyclic, then ◦ ’ is still dinatural.

Definition†(Sketch)

The category {C; D} consists of the following data. Objects: pairs (¸; F), for ¸ ∈ List{+; −} and F : C¸ → D functor. Morphisms (¸; F) → (˛; G): triples (’; G; ∆) where ’ = (’A1;:::;An): F → G is a transformation, ∆: {1; : : : ; n} → {0; 1} is the discriminant function such that ∆(i) = 1 implies ’ dinatural in its i-th variable,

†cf. Kelly, Many-Variable Functorial Calculus I, 1972

slide-41
SLIDE 41

A generalised functor category

Theorem

Let ’: F → G and : G → H be dinatural transformations. If their composite graph is acyclic, then ◦ ’ is still dinatural.

Definition†(Sketch)

The category {C; D} consists of the following data. Objects: pairs (¸; F), for ¸ ∈ List{+; −} and F : C¸ → D functor. Morphisms (¸; F) → (˛; G): triples (’; G; ∆) where ’ = (’A1;:::;An): F → G is a transformation, ∆: {1; : : : ; n} → {0; 1} is the discriminant function such that ∆(i) = 1 implies ’ dinatural in its i-th variable, G is a graph and can be either:

the Eilenberg-Kelly graph of ’ as defined earlier, a composite of EK graphs of consecutive transformations ’1; : : : ; ’k, in which case ’ = ’k ◦ · · · ◦ ’1.

†cf. Kelly, Many-Variable Functorial Calculus I, 1972