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
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
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
. . . 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
An extraordinary transformation
C cartesian closed category. evalA;B : A × (A ⇒ B) → B
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
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
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 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
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
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
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
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 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 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 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 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
A string diagrammatic calculus
eval = (evalA;B : A × (A ⇒ B) → B)A;B∈C ! × “ ⇒ ”
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
Eilenberg and Kelly’s theorem
F G H ’
SLIDE 21 Eilenberg and Kelly’s theorem
F G H ’ F H
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 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 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 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
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 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
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
b1 b2 b3 s1 s2 b4
s1 s2 2 6 4 3 7 5 b1 −1 b2 1 b3 −1 b4 1
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
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 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
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
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 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
Md(b) = ( 1 b is a grey upper/white lower box
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
Md(b) = ( 1 b is a grey upper/white lower box
Mo =
f
; Md =
f f
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
Md(b) = ( 1 b is a grey upper/white lower box
Mo =
f
; Md =
f f If Md is reachable from Mo, then ◦ ’ is dinatural.
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
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
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 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 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 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 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