A Differential Model Theory for Resource Lambda Calculi - Part I

Size: px
Start display at page:

Download "A Differential Model Theory for Resource Lambda Calculi - Part I"

Transcription

1 A Differential Model Theory for Resource Lambda Calculi - Part I Giulio Manzonetto g.manzonetto@cs.ru.nl Intelligent Systems Radboud University Nijmegen FMCS Calgary - 11 th June 2011 Giulio Manzonetto (RU) Differential Model Theory 11/06/11 1 / 29

2 Introduction The resource calculus Λ r Non-lazy version of Boudol s resource calculus Λ r etends the notion of the λ-calculus application along two directions: MN 1 a term is applied to a multiset of resources, called bag of resources 2 the resources can be reusable (available at will) or linear (to be used once) Ancestors: the λ-calculus with multiplicities by Gérard Boudol (1993) introduced to study the observational semantics induced on the lazy λ-calculus by Milner s translation into the π-calculus; the differential λ-calculus by Thomas Ehrhard and Laurent Regnier (2003) designed starting from a denotational model of linear logic. Synta formalized by Paolo Tranquilli (2008) it corresponds to the minimal fragment of the differential etension of linear logic by Thomas Ehrhard and Laurent Regnier (2006) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 2 / 29

3 Introduction The resource calculus Λ r Non-lazy version of Boudol s resource calculus Λ r etends the notion of the λ-calculus application along two directions: M[N 1,..., N n ] 1 a term is applied to a multiset of resources, called bag of resources 2 the resources can be reusable (available at will) or linear (to be used once) Ancestors: the λ-calculus with multiplicities by Gérard Boudol (1993) introduced to study the observational semantics induced on the lazy λ-calculus by Milner s translation into the π-calculus; the differential λ-calculus by Thomas Ehrhard and Laurent Regnier (2003) designed starting from a denotational model of linear logic. Synta formalized by Paolo Tranquilli (2008) it corresponds to the minimal fragment of the differential etension of linear logic by Thomas Ehrhard and Laurent Regnier (2006) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 2 / 29

4 Introduction The resource calculus Λ r Non-lazy version of Boudol s resource calculus Λ r etends the notion of the λ-calculus application along two directions: M[L 1,..., L l, N! 1,..., N! n] 1 a term is applied to a multiset of resources, called bag of resources 2 the resources can be reusable (available at will) or linear (to be used once) Ancestors: the λ-calculus with multiplicities by Gérard Boudol (1993) introduced to study the observational semantics induced on the lazy λ-calculus by Milner s translation into the π-calculus; the differential λ-calculus by Thomas Ehrhard and Laurent Regnier (2003) designed starting from a denotational model of linear logic. Synta formalized by Paolo Tranquilli (2008) it corresponds to the minimal fragment of the differential etension of linear logic by Thomas Ehrhard and Laurent Regnier (2006) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 2 / 29

5 Introduction The resource calculus Λ r Non-lazy version of Boudol s resource calculus Λ r etends the notion of the λ-calculus application along two directions: M[L 1,..., L l, N! 1,..., N! n] 1 a term is applied to a multiset of resources, called bag of resources 2 the resources can be reusable (available at will) or linear (to be used once) Ancestors: the λ-calculus with multiplicities by Gérard Boudol (1993) introduced to study the observational semantics induced on the lazy λ-calculus by Milner s translation into the π-calculus; the differential λ-calculus by Thomas Ehrhard and Laurent Regnier (2003) designed starting from a denotational model of linear logic. Synta formalized by Paolo Tranquilli (2008) it corresponds to the minimal fragment of the differential etension of linear logic by Thomas Ehrhard and Laurent Regnier (2006) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 2 / 29

6 Introduction The resource calculus Λ r Non-lazy version of Boudol s resource calculus Λ r etends the notion of the λ-calculus application along two directions: M[L 1,..., L l, N! 1,..., N! n] 1 a term is applied to a multiset of resources, called bag of resources 2 the resources can be reusable (available at will) or linear (to be used once) Ancestors: the λ-calculus with multiplicities by Gérard Boudol (1993) introduced to study the observational semantics induced on the lazy λ-calculus by Milner s translation into the π-calculus; the differential λ-calculus by Thomas Ehrhard and Laurent Regnier (2003) designed starting from a denotational model of linear logic. Synta formalized by Paolo Tranquilli (2008) it corresponds to the minimal fragment of the differential etension of linear logic by Thomas Ehrhard and Laurent Regnier (2006) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 2 / 29

7 Introduction Just another synta for Differential Lambda Calculus Precise link between: Resource Calculus Differential λ-calculus linear resources syntactic differentiation M[L 1,..., L l, N! 1,..., N! n] D l (M) (L 1,..., L l )( i N i) M[L 1,..., L l ] D l (M) (L 1,..., L l )(0) Taylor Epansion Formula (MN) 1 = n! Dn (M) (N,..., N)(0) }{{} n=0 n times Giulio Manzonetto (RU) Differential Model Theory 11/06/11 3 / 29

8 Introduction Just another synta for Differential Lambda Calculus Precise link between: Resource Calculus Differential λ-calculus linear resources syntactic differentiation M[L 1,..., L l, N! 1,..., N! n] D l (M) (L 1,..., L l )( i N i) M[L 1,..., L l ] D l (M) (L 1,..., L l )(0) Taylor Epansion Formula (MN) 1 = n! Dn (M) (N,..., N)(0) }{{} n=0 n times Giulio Manzonetto (RU) Differential Model Theory 11/06/11 3 / 29

9 The synta of Λ r There are three syntactic categories: terms are in functional positions, bags of resources are in argument position and represent multisets of linear and reusable terms, sums of terms are results of the computation. Giulio Manzonetto (RU) Differential Model Theory 11/06/11 4 / 29

10 The synta of Λ r There are three syntactic categories: terms are in functional positions, bags of resources are in argument position and represent multisets of linear and reusable terms, sums of terms are results of the computation. Formally: M, N, L := λ.m MP terms P, Q, R := [] [M] [M! ] P Q bags M, N := 0 M M + N sums Giulio Manzonetto (RU) Differential Model Theory 11/06/11 4 / 29

11 The synta of Λ r It contains λ-calculus There are three syntactic categories: terms are in functional positions, bags of resources are in argument position and represent multisets of linear and reusable terms, sums of terms are results of the computation. Λ r λ-calculus Formally: M, N, L := λ.m MP terms P, Q, R := [] [M] [M! ] P Q bags M, N := 0 M M + N sums Giulio Manzonetto (RU) Differential Model Theory 11/06/11 4 / 29

12 The synta of Λ r It contains λ-calculus and a nondeterministic etension of λ-calculus There are three syntactic categories: terms are in functional positions, bags of resources are in argument position and represent multisets of linear and reusable terms, sums of terms are results of the computation. Λ r λ-calculus eponential fragment Formally: M, N, L := λ.m MP terms P, Q, R := [] [M] [M! ] P Q bags M, N := 0 M M + N sums Giulio Manzonetto (RU) Differential Model Theory 11/06/11 4 / 29

13 The synta of Λ r It contains λ-calculus and a nondeterministic etension of λ-calculus and a finite resource calculus There are three syntactic categories: terms are in functional positions, bags of resources are in argument position and represent multisets of linear and reusable terms, sums of terms are results of the computation. Λ r λ-calculus eponential fragment Formally: M, N, L := λ.m MP terms P, Q, R := [] [M] [M! ] P Q bags M, N := 0 M M + N sums Λ r f finite fragment Giulio Manzonetto (RU) Differential Model Theory 11/06/11 4 / 29

14 Will we have sums everywhere? Nope! All operators are linear... ecept the ( )! : λ.( i M i) := i λ.m i ( i M i)p := i M ip M( i P i) := i MP i M([ i N i] P) := i M([N i] P) M([( i N i)! ] P) := M([N! 1,..., N! n] P) 0 annihilates everything (ecept under ( )! ) λ.0 = 0 M([0] P) = 0 0P = 0 M([0! ] P) = MP Giulio Manzonetto (RU) Differential Model Theory 11/06/11 5 / 29

15 Two kind of substitutions Usual and Linear Substitution Two kinds of resources two kinds of substitution: M {N/} : usual capture free substitution, M N/ : linear substitution, N is substituted for eactly one linear occurrence of in M. M N! Usual Substitution substitute all occurrences! Giulio Manzonetto (RU) Differential Model Theory 11/06/11 6 / 29

16 Two kind of substitutions Usual and Linear Substitution Two kinds of resources two kinds of substitution: M {N/} : usual capture free substitution, M N/ : linear substitution, N is substituted for eactly one linear occurrence of in M. M N! Usual Substitution substitute all occurrences! Giulio Manzonetto (RU) Differential Model Theory 11/06/11 6 / 29

17 Two kind of substitutions Usual and Linear Substitution Two kinds of resources two kinds of substitution: M {N/} : usual capture free substitution, M N/ : linear substitution, N is substituted for eactly one linear occurrence of in M. M N M{N/}! =! Usual Substitution substitute all occurrences! Giulio Manzonetto (RU) Differential Model Theory 11/06/11 6 / 29

18 Two kind of substitutions Usual and Linear Substitution Two kinds of resources two kinds of substitution: M {N/} : usual capture free substitution, M N/ : linear substitution, N is substituted for eactly one linear occurrence of in M. M N M N/! = normal Linear Substitution (idea) choose non-deterministically one linear occurrence at time ( = differentiation) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 6 / 29

19 Two kind of substitutions Usual and Linear Substitution Two kinds of resources two kinds of substitution: M {N/} : usual capture free substitution, M N/ : linear substitution, N is substituted for eactly one linear occurrence of in M. M N M N/! =! normal Linear Substitution (idea) choose non-deterministically one linear occurrence at time ( = differentiation) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 6 / 29

20 Two kind of substitutions Usual and Linear Substitution Two kinds of resources two kinds of substitution: M {N/} : usual capture free substitution, M N/ : linear substitution, N is substituted for eactly one linear occurrence of in M. M N M N/! =! normal Linear Substitution (idea) choose non-deterministically one linear occurrence at time ( = differentiation) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 6 / 29

21 Two kind of substitutions Usual and Linear Substitution Two kinds of resources two kinds of substitution: M {N/} : usual capture free substitution, M N/ : linear substitution, N is substituted for eactly one linear occurrence of in M. M N M N/! =! normal Linear Substitution (idea) choose non-deterministically one linear occurrence at time ( = differentiation) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 6 / 29

22 Two kind of substitutions Usual and Linear Substitution Two kinds of resources two kinds of substitution: M {N/} : usual capture free substitution, M N/ : linear substitution, N is substituted for eactly one linear occurrence of in M. M N M N/! =! normal Linear Substitution (idea) choose non-deterministically one linear occurrence at time ( = differentiation) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 6 / 29

23 Two kind of substitutions Usual and Linear Substitution Two kinds of resources two kinds of substitution: M {N/} : usual capture free substitution, M N/ : linear substitution, N is substituted for eactly one linear occurrence of in M. M N M N/! =! normal Linear Substitution (idea) choose non-deterministically one linear occurrence at time ( = differentiation) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 6 / 29

24 Two kind of substitutions Usual and Linear Substitution Two kinds of resources two kinds of substitution: M {N/} : usual capture free substitution, M N/ : linear substitution, N is substituted for eactly one linear occurrence of in M. M N M N/! =! normal Linear Substitution (idea) choose non-deterministically one linear occurrence at time ( = differentiation) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 6 / 29

25 Linear Substitution (formally) M N/ : linear substitution On terms: On Bags: y N/ = { N if = y 0 otherwise (λy.m) N/ = λy.m N/ (MP) N/ = M N/ P + M(P N/ ) [] N/ = 0 [M] N/ = [M N/ ] [M! ] N/ = [M N/, M! ] (P R) N/ = P N/ R + P (R N/ ) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 7 / 29

26 The operational semantics of Λ r β- and η- reductions The β-reduction: (λ.m)[l 1,..., L l, N! 1,..., N! n] β M L 1 / L l / {Σ i N i /} The η-reduction: λ.m[! ] η M, where / FV(M) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 8 / 29

27 The operational semantics of Λ r β- and η- reductions The β-reduction: (λ.m)[l 1,..., L l, N! 1,..., N! n] β M L 1 / L l / {Σ i N i /} The η-reduction: λ.m[! ] η M, where / FV(M) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 8 / 29

28 The operational semantics of Λ r β- and η- reductions The β-reduction: (λ.m)[l 1,..., L l, N! 1,..., N! n] β M L 1 / L l / {Σ i N i /} The η-reduction: λ.m[! ] η M, where / FV(M) Eample Let I := λ.: (λ.)[i] I/ {0/} I {0/} I (λ.)[] {0/} 0 (λ.)[i, I] I/ I/ {0/} I I/ {0/} 0 (λ.y[][][])[i, z! ] β y[i][z][z] + y[z][i][z] + y[z][z][i] nice term starvation surfeit nondeterminism Giulio Manzonetto (RU) Differential Model Theory 11/06/11 8 / 29

29 The operational semantics of Λ r β- and η- reductions The β-reduction: (λ.m)[l 1,..., L l, N! 1,..., N! n] β M L 1 / L l / {Σ i N i /} The η-reduction: λ.m[! ] η M, where / FV(M) Eample Let I := λ.: (λ.)[i] I/ {0/} I {0/} I (λ.)[] {0/} 0 (λ.)[i, I] I/ I/ {0/} I I/ {0/} 0 (λ.y[][][])[i, z! ] β y[i][z][z] + y[z][i][z] + y[z][z][i] nice term starvation surfeit nondeterminism Giulio Manzonetto (RU) Differential Model Theory 11/06/11 8 / 29

30 The operational semantics of Λ r β- and η- reductions The β-reduction: (λ.m)[l 1,..., L l, N! 1,..., N! n] β M L 1 / L l / {Σ i N i /} The η-reduction: λ.m[! ] η M, where / FV(M) Eample Let I := λ.: (λ.)[i] I/ {0/} I {0/} I (λ.)[] {0/} 0 (λ.)[i, I] I/ I/ {0/} I I/ {0/} 0 (λ.y[][][])[i, z! ] β y[i][z][z] + y[z][i][z] + y[z][z][i] nice term starvation surfeit nondeterminism Giulio Manzonetto (RU) Differential Model Theory 11/06/11 8 / 29

31 The operational semantics of Λ r β- and η- reductions The β-reduction: (λ.m)[l 1,..., L l, N! 1,..., N! n] β M L 1 / L l / {Σ i N i /} The η-reduction: λ.m[! ] η M, where / FV(M) Eample Let I := λ.: (λ.)[i] I/ {0/} I {0/} I (λ.)[] {0/} 0 (λ.)[i, I] I/ I/ {0/} I I/ {0/} 0 (λ.y[][][])[i, z! ] β y[i][z][z] + y[z][i][z] + y[z][z][i] nice term starvation surfeit nondeterminism Giulio Manzonetto (RU) Differential Model Theory 11/06/11 8 / 29

32 The operational semantics of Λ r β- and η- reductions The β-reduction: (λ.m)[l 1,..., L l, N! 1,..., N! n] β M L 1 / L l / {Σ i N i /} The η-reduction: λ.m[! ] η M, where / FV(M) Theorem [Pagani-Tranquilli APLAS 09] β is confluent. β enjoys a standardization property. Giulio Manzonetto (RU) Differential Model Theory 11/06/11 8 / 29

33 Simple Type System Resource Calculus Types: σ, τ ::= α σ τ (R) Γ() = σ Γ R : σ (Rλ) Γ, : σ R M : τ Γ R λ.m : σ τ (R@) Γ R M : σ τ Γ R P : σ Γ R MP : τ (Rb) Γ R N : σ Γ R P : σ Γ R [N (!) ] P : σ (R[]) Γ R [] : σ (R+) Γ R A i : σ for all i Γ R i A i : σ Remark Sums and bags are typed uniformly... Giulio Manzonetto (RU) Differential Model Theory 11/06/11 9 / 29

34 The differential λ-calculus: Synta Differential Lambda Terms: Reduction Rules ( D = β βd ): s, t, u ::= λ.s st D(s) t S, T, U ::= s s + T 0 (β) (λ.s)t β s{t/} (β D ) D(λ.s) t βd λ. s t Ideas: st = usual application of λ-calculus ( = s[t! ]) D( (D(s) t 1 ) ) t k = linear application ( = s[t 1,..., t k ]) s t = differential substitution ( = s t/ ) (su) t = ( s U t)u + (D(s) ( t))u ( = (s[u! ]) t/ = s t/ [U! ] + s[u t/, U! ]) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 10 / 29

35 The differential λ-calculus: Synta Differential Lambda Terms: Reduction Rules ( D = β βd ): s, t, u ::= λ.s st D(s) t S, T, U ::= s s + T 0 (β) (λ.s)t β s{t/} (β D ) D(λ.s) t βd λ. s t Ideas: st = usual application of λ-calculus ( = s[t! ]) D( (D(s) t 1 ) ) t k = linear application ( = s[t 1,..., t k ]) s t = differential substitution ( = s t/ ) (su) t = ( s U t)u + (D(s) ( t))u ( = (s[u! ]) t/ = s t/ [U! ] + s[u t/, U! ]) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 10 / 29

36 The differential λ-calculus: Synta Differential Lambda Terms: Reduction Rules ( D = β βd ): s, t, u ::= λ.s st D(s) t S, T, U ::= s s + T 0 (β) (λ.s)t β s{t/} (β D ) D(λ.s) t βd λ. s t Ideas: st = usual application of λ-calculus ( = s[t! ]) (D( (D(s) t 1 ) ) t k )0 = linear application ( = s[t 1,..., t k ]) s t = differential substitution ( = s t/ ) (su) t = ( s U t)u + (D(s) ( t))u ( = (s[u! ]) t/ = s t/ [U! ] + s[u t/, U! ]) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 10 / 29

37 The differential λ-calculus: Synta Differential Lambda Terms: Reduction Rules ( D = β βd ): s, t, u ::= λ.s st D(s) t S, T, U ::= s s + T 0 (β) (λ.s)t β s{t/} (β D ) D(λ.s) t βd λ. s t Ideas: st = usual application of λ-calculus ( = s[t! ]) D( (D(s) t 1 ) ) t k = linear application ( = s[t 1,..., t k ]) s t = differential substitution ( = s t/ ) (su) t = ( s U t)u + (D(s) ( t))u ( = (s[u! ]) t/ = s t/ [U! ] + s[u t/, U! ]) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 10 / 29

38 Translation between the two calculi We can define a translation map =, (λ.m) = λ.m, ( ) : Resource calculus Differential λ-calculus (M[ L, N! ]) = (D k (M ) L 1 L k )( i N i ), 0 = 0, ( i M i) = i M i. The translation is faithful For M, N resource terms: M β N implies M D N Giulio Manzonetto (RU) Differential Model Theory 11/06/11 11 / 29

39 Simple Types in Differential Calculus Γ() = σ Γ D : σ λ Γ; : σ D s : τ Γ D λ.s : σ Γ D s : σ τ Γ D t : σ Γ D st : τ D Γ D s : σ τ Γ D t : σ Γ D D(s) t : σ τ 0 Γ D 0 : σ sum Γ D s i : σ for all i Γ D i s i : σ Remark: Linear application does not decrease types. The translation remains faithful Let M be a resource term. If Γ R M : σ then Γ D M : σ Corollary Every model of the (typed/untyped) differential λ-calculus will also be a model of the resource calculus. Giulio Manzonetto (RU) Differential Model Theory 11/06/11 12 / 29

40 Simple Types in Differential Calculus Γ() = σ Γ D : σ λ Γ; : σ D s : τ Γ D λ.s : σ Γ D s : σ τ Γ D t : σ Γ D st : τ D Γ D s : σ τ Γ D t : σ Γ D D(s) t : σ τ 0 Γ D 0 : σ sum Γ D s i : σ for all i Γ D i s i : σ Remark: Linear application does not decrease types. The translation remains faithful Let M be a resource term. If Γ R M : σ then Γ D M : σ Corollary Every model of the (typed/untyped) differential λ-calculus will also be a model of the resource calculus. Giulio Manzonetto (RU) Differential Model Theory 11/06/11 12 / 29

41 Taylor Epansion: intuition Lambda Calculus: Taylor Epansion Formula For λ-terms M, N we have (MN) 1 = n! (Dn (M) (N,..., N))(0) }{{} n=0 n times Giulio Manzonetto (RU) Differential Model Theory 11/06/11 13 / 29

42 Taylor Epansion: intuition Lambda Calculus: Taylor Epansion Formula For λ-terms M, N we have (MN) 1 = n! M[N, }. {{.., N ] } n=0 n times Etension: From λ-calculus to resource calculus... Giulio Manzonetto (RU) Differential Model Theory 11/06/11 13 / 29

43 Taylor Epansion: intuition Lambda Calculus: Taylor Epansion Formula For λ-terms M, N we have (MN) = {M[N,..., N]} }{{} n times n=0 Etension: From λ-calculus to resource calculus... For the sake of simplicity we consider an idempotent sum Giulio Manzonetto (RU) Differential Model Theory 11/06/11 13 / 29

44 Resource Calculus: Full Taylor Epansion ( ) Λ r P(Λ r f ) The (support of the full) Taylor Epansion M of a term M: = {}, (λ.m) = λ.m (= {λ.m : M M }), (M[L 1,..., L l, N! 1,..., N! n]) = P Mf ( i N i )M ([L 1,..., L l ] P), It is etended to sums M by setting: ( i M i) = i M i. Eample M := (λz.[z! ]) = {λz.[z n ] : n Nat}, N := (λz.[] + λz.[z, z! ]) = {λz.[]} {λz.[z n+1 ] : n Nat}. Giulio Manzonetto (RU) Differential Model Theory 11/06/11 14 / 29

45 Resource Calculus: Full Taylor Epansion ( ) Λ r P(Λ r f ) The (support of the full) Taylor Epansion M of a term M: = {}, (λ.m) = λ.m (= {λ.m : M M }), (M[L 1,..., L l, N! 1,..., N! n]) = P Mf ( i N i )M ([L 1,..., L l ] P), It is etended to sums M by setting: ( i M i) = i M i. Eample M := (λz.[z! ]) = {λz.[z n ] : n Nat}, N := (λz.[] + λz.[z, z! ]) = {λz.[]} {λz.[z n+1 ] : n Nat}. Giulio Manzonetto (RU) Differential Model Theory 11/06/11 14 / 29

46 Resource Calculus: Full Taylor Epansion ( ) Λ r P(Λ r f ) The (support of the full) Taylor Epansion M of a term M: = {}, (λ.m) = λ.m (= {λ.m : M M }), (M[L 1,..., L l, N! 1,..., N! n]) = P Mf ( i N i )M ([L 1,..., L l ] P), It is etended to sums M by setting: ( i M i) = i M i. Eample M := (λz.[z! ]) = {λz.[z n ] : n Nat}, N := (λz.[] + λz.[z, z! ]) = {λz.[]} {λz.[z n+1 ] : n Nat}. Giulio Manzonetto (RU) Differential Model Theory 11/06/11 14 / 29

47 What about semantics? Semantics The differential/resource calculi are born from the analysis of the semantics of LL... however their semantical investigations are only at the beginning! Categorical description: Giulio Manzonetto (RU) Differential Model Theory 11/06/11 15 / 29

48 What about semantics? Semantics The differential/resource calculi are born from the analysis of the semantics of LL... however their semantical investigations are only at the beginning! Categorical description: Giulio Manzonetto (RU) Differential Model Theory 11/06/11 15 / 29

49 What about semantics? Semantics The differential/resource calculi are born from the analysis of the semantics of LL... however their semantical investigations are only at the beginning! Categorical description: λ-calculus CCC Giulio Manzonetto (RU) Differential Model Theory 11/06/11 15 / 29

50 What about semantics? Semantics The differential/resource calculi are born from the analysis of the semantics of LL... however their semantical investigations are only at the beginning! Categorical description: λ-calculus CCC cokleisli SMCC Giulio Manzonetto (RU) Differential Model Theory 11/06/11 15 / 29

51 What about semantics? Semantics The differential/resource calculi are born from the analysis of the semantics of LL... however their semantical investigations are only at the beginning! Categorical description: differential λ-calculus CCC + differential structure cokleisli SMCC + differential structure Giulio Manzonetto (RU) Differential Model Theory 11/06/11 15 / 29

52 What about semantics? Semantics The differential/resource calculi are born from the analysis of the semantics of LL... however their semantical investigations are only at the beginning! Categorical description: differential λ-calculus CCC + differential structure cokleisli Differential Categories (Blute, Cockett & Seely 06) SMCC + differential structure Aiomatic characterization of a derivative operator in (possibly non-closed) Symmetric Monoidal Categories + the! is not necessarily monoidal. SMCCs + monoidal! constitute interesting instances. Giulio Manzonetto (RU) Differential Model Theory 11/06/11 15 / 29

53 (Monoidal) Differential Categories (Monoidal) Differential Categories Additive Symmetric Monoidal Categories Sum on terms sum on morphisms A symmetric monoidal category is additive if all homsets are enriched with commutative monoids: (f + g); h = f ; h + g; h h; (f + g) = h; f + h; g 0; f = 0 = f ; 0 The tensor product preserves the commutative monoid structure: (f + g) h = f h + g h 0 f = 0 Remark Additive becomes left additive in the cokleisli. Giulio Manzonetto (RU) Differential Model Theory 11/06/11 16 / 29

54 (Monoidal) Differential Categories (Monoidal) Differential Categories Coalgebra Modalities A comonad (!, δ, ε) is a coalgebra modality if each!a comes equipped with a natural coalgebra structure :!A!A!A, 1 (!,, e) is a comonoid e :!A, such that: Id e Id!A!A Id!A Id e!a!a!a!a!a!a!a Id Id!A!A!A 2 δ is a morphism of comonoids:!a δ!!a!a δ!!a e e!a!a δ δ!!a!!a Giulio Manzonetto (RU) Differential Model Theory 11/06/11 17 / 29

55 (Monoidal) Differential Categories (Monoidal) Differential Categories Coalgebra Modalities A comonad (!, δ, ε) is a coalgebra modality if each!a comes equipped with a natural coalgebra structure :!A!A!A, 1 (!,, e) is a comonoid e :!A, such that: Id e Id!A!A Id!A Id e!a!a!a!a!a!a!a Id Id!A!A!A 2 δ is a morphism of comonoids:!a δ!!a!a δ!!a e e!a!a δ δ!!a!!a Giulio Manzonetto (RU) Differential Model Theory 11/06/11 17 / 29

56 (Monoidal) Differential Categories (Monoidal) Differential Categories Coalgebra Modalities A comonad (!, δ, ε) is a coalgebra modality if each!a comes equipped with a natural coalgebra structure :!A!A!A, 1 (!,, e) is a comonoid e :!A, such that: Id e Id!A!A Id!A Id e!a!a!a!a!a!a!a Id Id!A!A!A 2 δ is a morphism of comonoids:!a δ!!a!a δ!!a e e!a!a δ δ!!a!!a Giulio Manzonetto (RU) Differential Model Theory 11/06/11 17 / 29

57 (Monoidal) Differential Categories (Monoidal) Differential Categories Coalgebra Modalities A comonad (!, δ, ε) is a coalgebra modality if each!a comes equipped with a The! is not (necessarily) monoidal! natural coalgebra structure :!A!A!A, e :!A, such that: 1 (!,, e) is a comonoid Id e Id!A!A Id!A Id e!a!a!a!a!a!a!a Id Id!A!A!A 2 δ is a morphism of comonoids:!a δ!!a!a δ!!a e e!a!a δ δ!!a!!a Giulio Manzonetto (RU) Differential Model Theory 11/06/11 17 / 29

58 (Monoidal) Differential Categories (Monoidal) Differential Categories Differential Combinator Intuitions: A map f : A B = linear map, A cokleisli map f :!A B = abstract differentiable map from A to B, cokleisli C! = category of abstract differentiable maps. Differential Combinator D : C(A, B) C(A!A, B) f :!A B D (f ) : A!A B D that must satisfy suitable equations... (see later) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 18 / 29

59 (Monoidal) Differential Categories (Monoidal) Differential Categories Differential Combinator - Additivity & functoriality Additivity: D (0) = 0, D (f + g) = D (f ) + D (g). Functoriality:!A f B A!A D (f ) B!u v u!u v!c g D C!C D (g) D Giulio Manzonetto (RU) Differential Model Theory 11/06/11 19 / 29

60 (Monoidal) Differential Categories (Monoidal) Differential Categories Differential Combinator - Aiom D1 [D1] Constant maps: D (e A ) = 0 Giulio Manzonetto (RU) Differential Model Theory 11/06/11 20 / 29

61 (Monoidal) Differential Categories (Monoidal) Differential Categories Differential Combinator - Aiom D1 [D1] Constant maps: D (e A ) = 0 Constant functions have derivative 0. Giulio Manzonetto (RU) Differential Model Theory 11/06/11 20 / 29

62 (Monoidal) Differential Categories (Monoidal) Differential Categories Differential Combinator - Aiom D2 [D2] Product rule: D ( ; (f g)) = (Id ); (D (f ) g) + (Id ); (f D (g)) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 21 / 29

63 (Monoidal) Differential Categories (Monoidal) Differential Categories Differential Combinator - Aiom D2 [D2] Product rule: D ( ; (f g)) = (Id ); (D (f ) g) + (Id ); (f D (g)) The tensor of two functions on the same arguments is morally the product of two functions. Giulio Manzonetto (RU) Differential Model Theory 11/06/11 21 / 29

64 (Monoidal) Differential Categories (Monoidal) Differential Categories Differential Combinator - Aiom D3 [D3] Linear maps: D (ε A ; f ) = (Id e A ); f Giulio Manzonetto (RU) Differential Model Theory 11/06/11 22 / 29

65 (Monoidal) Differential Categories (Monoidal) Differential Categories Differential Combinator - Aiom D3 [D3] Linear maps: D (ε A ; f ) = (Id e A ); f The derivative of a map which is linear is constant. Giulio Manzonetto (RU) Differential Model Theory 11/06/11 22 / 29

66 (Monoidal) Differential Categories (Monoidal) Differential Categories Differential Combinator - Aiom D4 [D4] The chain rule: D (δ;!f ; g) = (Id ); (D (f ) δ;!f ); D (g) Giulio Manzonetto (RU) Differential Model Theory 11/06/11 23 / 29

67 (Monoidal) Differential Categories (Monoidal) Differential Categories Differential Combinator - Aiom D4 [D4] The chain rule: D (δ;!f ; g) = (Id ); (D (f ) δ;!f ); D (g) The derivative of the composite of f and g is the derivative of f composed with the derivative of g Giulio Manzonetto (RU) Differential Model Theory 11/06/11 23 / 29

68 (Monoidal) Differential Categories Differential Combinator - a simpler characterization The whole differential structure is generated by the derivative of the identity!!a Id!A!A A!A D (Id!A )!A!Id A f Id A!Id A f!a f!a A!A D (f ) d A = D (Id!A ) is a deriving transformation, namely a transformation (natural in A) satisfying [D1-D4] rephrased.!a Giulio Manzonetto (RU) Differential Model Theory 11/06/11 24 / 29

69 (Monoidal) Differential Categories Differential Categories - a simpler characterization This is the reason why the differential bo is bottomless : Differential Category - Def. 2 A differential category is an additive symmetric monoidal category with a deriving transformation d A : A!A!A. Giulio Manzonetto (RU) Differential Model Theory 11/06/11 25 / 29

70 (Monoidal) Differential Categories Eamples of Differential Categories Finiteness Spaces, Sets and relations + the bag functor M f ( ) (finite multisets): d A : A!A!A : a 0, [a 1,..., a n ] [a 0, a 1,..., a n ] Sup-lattices + dual of the free -algebra (see later) Vector spaces op K + opposite of free commutative algebra monad Convenient differential category Harmer-McCusker s category of games Other categories of games... Giulio Manzonetto (RU) Differential Model Theory 11/06/11 26 / 29

71 (Monoidal) Differential Categories Differential Storage Categories Storage modality The comonad (!, δ, e) is a storage modality if: it is symmetric monoidal, (!A,, e) commutative monoids, the comonoid is a morphism of the coalgebras for the comonad. Differential storage category A storage differential category is a differential category if: it has products, it has a storage modality. Theorem [Blute, Cockett, Seely 09] The cokleisly C! of a (monoidal closed) differential storage category C is a Cartesian (closed) differential category. What s that? We will see after the break... Giulio Manzonetto (RU) Differential Model Theory 11/06/11 27 / 29

72 (Monoidal) Differential Categories Differential Storage Categories Storage modality The comonad (!, δ, e) is a storage modality if: it is symmetric monoidal, (!A,, e) commutative monoids, the comonoid is a morphism of the coalgebras for the comonad. Differential storage category A storage differential category is a differential category if: it has products, it has a storage modality. Theorem [Blute, Cockett, Seely 09] The cokleisly C! of a (monoidal closed) differential storage category C is a Cartesian (closed) differential category. What s that? We will see after the break... Giulio Manzonetto (RU) Differential Model Theory 11/06/11 27 / 29

73 Conclusion Conclusions We have: Defined the resource calculus Λ r, Shown the relationship with the differential λ-calculus, Eplained the notion of a (monoidal) differential category (not enough to model differential λ-calculus!) After the break we will: Introduced the Cartesian closed differential categories, Show that they model the differential λ-calculus the resource calculus, Give types/untyped models modeling the Taylor epansion, Give a canonical construction SMC Differential CCC, Apply the construction to categories of games full abstraction of MRel for Resource PCF. Giulio Manzonetto (RU) Differential Model Theory 11/06/11 28 / 29

74 Conclusion Thanks for your attention! Questions? Giulio Manzonetto (RU) Differential Model Theory 11/06/11 29 / 29

A Differential Model Theory for Resource Lambda Calculi - Part II

A Differential Model Theory for Resource Lambda Calculi - Part II A Differential Model Theory for Resource Lambda Calculi - Part II Giulio Manzonetto (joint work with Bucciarelli, Ehrhard, Laird, McCusker) g.manzonetto@cs.ru.nl Intelligent Systems Radboud University

More information

What is a Categorical Model of the Differential and the Resource λ-calculi?

What is a Categorical Model of the Differential and the Resource λ-calculi? What is a Categorical Model of the Differential and the Resource λ-calculi? Giulio Manzonetto a a Department of Computer Science, Radboud University, Nijmegen, The Netherlands Email: G.Manzonetto@cs.ru.nl

More information

Homological Algebra and Differential Linear Logic

Homological Algebra and Differential Linear Logic Homological Algebra and Differential Linear Logic Richard Blute University of Ottawa Ongoing discussions with Robin Cockett, Geoff Cruttwell, Keith O Neill, Christine Tasson, Trevor Wares February 24,

More information

Relational Graph Models, Taylor Expansion and Extensionality

Relational Graph Models, Taylor Expansion and Extensionality Relational Graph Models, Taylor Expansion and Extensionality Domenico Ruoppolo Giulio Manzonetto Laboratoire d Informatique de Paris Nord Université Paris-Nord Paris 13 (France) MFPS XXX Ithaca, New York

More information

Who am I, and why do research? A categorical description of the essential structure of differential calculus. Introduction (not too technical!

Who am I, and why do research? A categorical description of the essential structure of differential calculus. Introduction (not too technical! Who am I, and why do research? A categorical description of the essential structure of differential calculus R.A.G. Seely John Abbott College Research Day at John Abbott College, 17 April 2013 http://www.math.mcgill.ca/rags/

More information

Resource lambda-calculus: the differential viewpoint

Resource lambda-calculus: the differential viewpoint Resource lambda-calculus: the differential viewpoint Preuves, Programmes et Systèmes (PPS) Université Paris Diderot and CNRS September 13, 2011 History ( 1985): Girard Girard had differential intuitions

More information

Call-by-value non-determinism in a linear logic type discipline

Call-by-value non-determinism in a linear logic type discipline Call-by-value non-determinism in a linear logic type discipline Alejandro Díaz-Caro? Giulio Manzonetto Université Paris-Ouest & INRIA LIPN, Université Paris 13 Michele Pagani LIPN, Université Paris 13

More information

FULL ABSTRACTION FOR THE RESOURCE LAMBDA CALCULUS WITH TESTS, THROUGH TAYLOR EXPANSION

FULL ABSTRACTION FOR THE RESOURCE LAMBDA CALCULUS WITH TESTS, THROUGH TAYLOR EXPANSION Logical Methods in Computer Science Vol. 8(3:3)2012, pp. 1 44 www.lmcs-online.org Submitted Feb. 29, 2012 Published Oct. 10, 2012 FULL ABSTRACTION FOR THE RESOURCE LAMBDA CALCULUS WITH TESTS, THROUGH TAYLOR

More information

A Linear/Producer/Consumer model of Classical Linear Logic

A Linear/Producer/Consumer model of Classical Linear Logic A Linear/Producer/Consumer model of Classical Linear Logic Jennifer Paykin Steve Zdancewic February 14, 2014 Abstract This paper defines a new proof- and category-theoretic framework for classical linear

More information

FROM COHERENT TO FINITENESS SPACES

FROM COHERENT TO FINITENESS SPACES FROM COHERENT TO FINITENESS SPACES PIERRE HYVERNAT Laboratoire de Mathématiques, Université de Savoie, 73376 Le Bourget-du-Lac Cedex, France. e-mail address: Pierre.Hyvernat@univ-savoie.fr Abstract. This

More information

Denotational semantics of linear logic

Denotational semantics of linear logic Denotational semantics of linear logic Lionel Vaux I2M, Université d Aix-Marseille, France LL2016, Lyon school: 7 and 8 November 2016 L. Vaux (I2M) Denotational semantics of linear logic LL2016 1 / 31

More information

Lambda Calculus, Linear Logic and Symbolic Computation

Lambda Calculus, Linear Logic and Symbolic Computation Lambda Calculus, Linear Logic and Symbolic Computation Habilitation à diriger des recherches Giulio Manzonetto giulio.manzonetto@lipn.univ-paris13.fr LIPN Université Paris Nord IRIF Université Paris Diderot

More information

A categorical model for a quantum circuit description language

A categorical model for a quantum circuit description language A categorical model for a quantum circuit description language Francisco Rios (joint work with Peter Selinger) Department of Mathematics and Statistics Dalhousie University CT July 16th 22th, 2017 What

More information

Sequents are written as A, where A; B represent formulae and ; represent multisets of formulae. Where represents the multiset A 1 ; : : : ; A n, then!

Sequents are written as A, where A; B represent formulae and ; represent multisets of formulae. Where represents the multiset A 1 ; : : : ; A n, then! What is a Categorical Model of ntuitionistic Linear Logic G.M. Bierman University of Cambridge Computer Laboratory Abstract. This paper re-addresses the old problem of providing a categorical model for

More information

Quantum groupoids and logical dualities

Quantum groupoids and logical dualities Quantum groupoids and logical dualities (work in progress) Paul-André Melliès CNS, Université Paris Denis Diderot Categories, ogic and Foundations of Physics ondon 14 May 2008 1 Proof-knots Aim: formulate

More information

UNIVERSITY OF CALGARY. What is a Differential Partial Combinatory Algebra? Jonathan Gallagher A THESIS SUBMITTED TO THE FACULTY OF GRADUATE STUDIES

UNIVERSITY OF CALGARY. What is a Differential Partial Combinatory Algebra? Jonathan Gallagher A THESIS SUBMITTED TO THE FACULTY OF GRADUATE STUDIES UNIVERSITY OF CALGARY What is a Differential Partial Combinatory Algebra? by Jonathan Gallagher A THESIS SUBMITTED TO THE FACULTY OF GRADUATE STUDIES IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE

More information

A Bird s Eye View on the Quantitative Semantics of Linear Logic

A Bird s Eye View on the Quantitative Semantics of Linear Logic A Bird s Eye View on the Quantitative Semantics of Linear Logic Michele Pagani Laboratoire d Informatique de Paris Nord Institut Galilèe Universitè de Paris 13 Villetaneuse, France michelepagani@lipnuniv-paris13fr

More information

A Linear/Producer/Consumer Model of Classical Linear Logic

A Linear/Producer/Consumer Model of Classical Linear Logic A Linear/Producer/Consumer Model of Classical Linear Logic Jennifer Paykin Steve Zdancewic University of Pennsylvania Philadelphia, USA jpaykin@seas.upenn.edu stevez@cis.upenn.edu This paper defines a

More information

Topology in Denotational Semantics

Topology in Denotational Semantics Journées Topologie et Informatique Thomas Ehrhard Preuves, Programmes et Systèmes (PPS) Université Paris Diderot - Paris 7 and CNRS March 21, 2013 What is denotational semantics? The usual stateful approach

More information

Note on models of polarised intuitionistic logic

Note on models of polarised intuitionistic logic Note on models of polarised intuitionistic logic Guillaume Munch-Maccagnoni Team Gallinette, Inria Bretagne Atlantique, Univ. Nantes, LS2N, Nantes, France Guillaume.Munch-Maccagnoni@Inria.fr 3rd June 2017

More information

Full Abstraction for Resource Calculus with Tests

Full Abstraction for Resource Calculus with Tests Full Abstraction for Resource Calculus with Tests Antonio Bucciarelli 1, Alberto Carraro 1,3, Thomas Ehrhard 1, and Giulio Manzonetto 2 1 Laboratoire PPS, CNRS, Université Paris-Diderot, Paris, France

More information

A Common Notation System for the Lambda-Calculus and Combinatory Logic

A Common Notation System for the Lambda-Calculus and Combinatory Logic A Common Notation System for the Lambda-Calculus and Combinatory Logic Masahiko Sato Graduate School of Informatics, Kyoto University Joint work with Takafumi Sakurai and Helmut Schwichtenberg IFIP WG

More information

Kathryn Hess. Category Theory, Algebra and Geometry Université Catholique de Louvain 27 May 2011

Kathryn Hess. Category Theory, Algebra and Geometry Université Catholique de Louvain 27 May 2011 MATHGEOM Ecole Polytechnique Fédérale de Lausanne Category Theory, Algebra and Geometry Université Catholique de Louvain 27 May 2011 Joint work with... Steve Lack (foundations) Jonathan Scott (application

More information

Monads and More: Part 4

Monads and More: Part 4 Monads and More: Part 4 Tarmo Uustalu, Tallinn Nottingham, 14-18 May 2007 Coeffectful computation and comonads For coeffectful notions of computation, we have a comonad (D, ε, δ) on the base category C

More information

A TANGENT CATEGORY ALTERNATIVE TO THE FAÀ CONSTRUCTION

A TANGENT CATEGORY ALTERNATIVE TO THE FAÀ CONSTRUCTION Theory and Applications of Categories, Vol. 33, No. 35, 2018, pp. 1072 1110. A TANGENT CATEGORY ALTERNATIVE TO THE FAÀ CONSTRUCTION DI BRUNO JEAN-SIMON P. LEMAY Abstract. The Faà di Bruno construction,

More information

An innocent model of linear logic

An innocent model of linear logic CTCS 2004 Preliminary Version Asynchronous games 3 An innocent model of linear logic Paul-André Melliès Equipe Preuves Programmes Systèmes CNRS et Université Denis Diderot Paris, France Abstract Since

More information

EasyChair Preprint. Normalization and Taylor expansion of lambda-terms

EasyChair Preprint. Normalization and Taylor expansion of lambda-terms EasyChair Preprint 165 Normalization and Taylor expansion of lambda-terms Federico Olimpieri EasyChair preprints are intended for rapid dissemination of research results and are integrated with the rest

More information

Mix Unitary Categories

Mix Unitary Categories 1/31 Mix Unitary Categories Robin Cockett, Cole Comfort, and Priyaa Srinivasan CT2018, Ponta Delgada, Azores Dagger compact closed categories Dagger compact closed categories ( -KCC) provide a categorical

More information

Monads and More: Part 4

Monads and More: Part 4 Monads and More: Part 4 Tarmo Uustalu, Institute of Cybernetics, Tallinn University of Nottingham, 14 18 May 2007 University of Udine, 2 6 July 2007 Comonads Comonads are the dual of monads. A comonad

More information

arxiv: v2 [math.ct] 31 Oct 2018

arxiv: v2 [math.ct] 31 Oct 2018 A Tangent Category Alternative to the Faà di Bruno Construction Jean-Simon P. Lemay arxiv:1805.01774v2 [math.ct] 31 Oct 2018 November 1, 2018 Abstract The Faà di Bruno construction, introduced by Cockett

More information

Bases as Coalgebras. Bart Jacobs

Bases as Coalgebras. Bart Jacobs Bases as Coalgebras Bart Jacobs Institute for Computing and Information Sciences (icis), Radboud University Nijmegen, The Netherlands. Webaddress: www.cs.ru.nl/b.jacobs Abstract. The free algebra adjunction,

More information

The lambda calculus with constructors

The lambda calculus with constructors The lambda calculus with constructors Categorical semantic and Continuations Barbara Petit Focus - Univ. Bologna CaCos 2012 Barbara Petit (Focus - Univ. Bologna) The lambda calculus with constructors 1

More information

A few bridges between operational and denotational semantics of programming languages

A few bridges between operational and denotational semantics of programming languages A few bridges between operational and denotational semantics of programming languages Soutenance d habilitation à diriger les recherches Tom Hirschowitz November 17, 2017 Hirschowitz Bridges between operational

More information

Call-by-Value Non-determinism in a Linear Logic Type Discipline

Call-by-Value Non-determinism in a Linear Logic Type Discipline Call-by-Value Non-determinism in a Linear Logic Type Discipline Alejandro Díaz-Caro 1,, Giulio Manzonetto 1,2, and Michele Pagani 1,2 1 Université Paris 13, Sorbonne Paris Cité, LIPN, F-93430, Villetaneuse,

More information

A categorical view of computational effects

A categorical view of computational effects Emily Riehl Johns Hopkins University A categorical view of computational effects C mp se::conference 1. Functions, composition, and categories 2. Categories for computational effects (monads) 3. Categories

More information

Categorical relativistic quantum theory. Chris Heunen Pau Enrique Moliner Sean Tull

Categorical relativistic quantum theory. Chris Heunen Pau Enrique Moliner Sean Tull Categorical relativistic quantum theory Chris Heunen Pau Enrique Moliner Sean Tull 1 / 15 Idea Hilbert modules: naive quantum field theory Idempotent subunits: base space in any category Support: where

More information

1. The Method of Coalgebra

1. The Method of Coalgebra 1. The Method of Coalgebra Jan Rutten CWI Amsterdam & Radboud University Nijmegen IMS, Singapore - 15 September 2016 Overview of Lecture one 1. Category theory (where coalgebra comes from) 2. Algebras

More information

Logic for Computational Effects: work in progress

Logic for Computational Effects: work in progress 1 Logic for Computational Effects: work in progress Gordon Plotkin and John Power School of Informatics University of Edinburgh King s Buildings Mayfield Road Edinburgh EH9 3JZ Scotland gdp@inf.ed.ac.uk,

More information

Involutive Categories and Monoids, with a GNS-correspondence

Involutive Categories and Monoids, with a GNS-correspondence nvolutive Categories and Monoids, with a GNS-correspondence Bart Jacobs Radboud University, Nijmegen, The Netherlands Abstract This paper develops the basics of the theory of involutive categories and

More information

arxiv: v1 [cs.lo] 25 May 2009

arxiv: v1 [cs.lo] 25 May 2009 Synchronous Games, Simulations and λ-calculus Pierre Hyvernat 1,2 arxiv:0905.4066v1 [cs.lo] 25 May 2009 1 Institut mathématique de Luminy, Marseille, France 2 Chalmers Institute of Technology, Göteborg,

More information

A relational semantics for parallelism and non-determinism in a functional setting

A relational semantics for parallelism and non-determinism in a functional setting A relational semantics for parallelism and non-determinism in a functional setting Antonio Bucciarelli a, Thomas Ehrhard a, Giulio Manzonetto b,1 a Laboratoire PPS, Université Paris 7, 2, place Jussieu

More information

Weighted relational models of typed lambda-calculi

Weighted relational models of typed lambda-calculi Weighted relational models of typed lambda-calculi Jim Laird, Giulio Manzonetto, Guy McCusker and Michele Pagani, Department of Computer Science, University of ath, ath, A2 7AY, UK Université Paris 3,

More information

Bringing class diagrams to life

Bringing class diagrams to life Bringing class diagrams to life Luis S. Barbosa & Sun Meng DI-CCTC, Minho University, Braga & CWI, Amsterdam UML & FM Workshop 2009 Rio de Janeiro 8 December, 2009 Formal Methods proofs problems structures

More information

About Translations of Classical Logic into Polarized Linear Logic

About Translations of Classical Logic into Polarized Linear Logic About Translations of Classical Logic into Polarized Linear Logic Olivier Laurent Preuves Programmes Systèmes CNRS - Paris 7 OlivierLaurent@ppsjussieufr Laurent Regnier Institut de Mathématiques de Luminy

More information

Weighted relational models of typed lambda-calculi

Weighted relational models of typed lambda-calculi Weighted relational models of typed lambda-calculi Jim Laird, Giulio Manzonetto, Guy McCusker and Michele Pagani, Department of Computer Science, University of ath, ath, A2 7AY, UK Université Paris 3,

More information

Call-by-Value Non-determinism in a Linear Logic Type Discipline

Call-by-Value Non-determinism in a Linear Logic Type Discipline Call-by-Value Non-determinism in a Linear Logic Type Discipline Alejandro Díaz-Caro 1,, Giulio Manzonetto 1,2, and Michele Pagani 1,2 1 Université Paris 13, Sorbonne Paris Cité, LIPN, F-93430, Villetaneuse,

More information

Modèles des langages de programmation Domaines, catégories, jeux. Programme de cette seconde séance:

Modèles des langages de programmation Domaines, catégories, jeux. Programme de cette seconde séance: Modèles des langages de programmation Domaines, catégories, jeux Programme de cette seconde séance: Modèle ensembliste du lambda-calcul ; Catégories cartésiennes fermées 1 Synopsis 1 the simply-typed λ-calculus,

More information

Teooriaseminar. TTÜ Küberneetika Instituut. May 10, Categorical Models. for Two Intuitionistic Modal Logics. Wolfgang Jeltsch.

Teooriaseminar. TTÜ Küberneetika Instituut. May 10, Categorical Models. for Two Intuitionistic Modal Logics. Wolfgang Jeltsch. TTÜ Küberneetika Instituut Teooriaseminar May 10, 2012 1 2 3 4 1 2 3 4 Modal logics used to deal with things like possibility, belief, and time in this talk only time two new operators and : ϕ now and

More information

LECTURE X: KOSZUL DUALITY

LECTURE X: KOSZUL DUALITY LECTURE X: KOSZUL DUALITY Fix a prime number p and an integer n > 0, and let S vn denote the -category of v n -periodic spaces. Last semester, we proved the following theorem of Heuts: Theorem 1. The Bousfield-Kuhn

More information

CARTESIAN DIFFERENTIAL CATEGORIES

CARTESIAN DIFFERENTIAL CATEGORIES Theory and Applications o Categories, Vol. 22, No. 23, 2009, pp. 622 672. CARTESIAN DIFFERENTIAL CATEGORIES R.F. BLUTE, J.R.B. COCKETT AND R.A.G. SEELY Abstract. This paper revisits the authors notion

More information

Category Theory. Categories. Definition.

Category Theory. Categories. Definition. Category Theory Category theory is a general mathematical theory of structures, systems of structures and relationships between systems of structures. It provides a unifying and economic mathematical modeling

More information

In the beginning God created tensor... as a picture

In the beginning God created tensor... as a picture In the beginning God created tensor... as a picture Bob Coecke coecke@comlab.ox.ac.uk EPSRC Advanced Research Fellow Oxford University Computing Laboratory se10.comlab.ox.ac.uk:8080/bobcoecke/home en.html

More information

Mathematical Synthesis of Equational Deduction Systems. Marcelo Fiore. Computer Laboratory University of Cambridge

Mathematical Synthesis of Equational Deduction Systems. Marcelo Fiore. Computer Laboratory University of Cambridge Mathematical Synthesis of Equational Deduction Systems Marcelo Fiore Computer Laboratory University of Cambridge TLCA 2009 3.VII.2009 Context concrete theories meta-theories Context concrete theories meta-theories

More information

A completeness theorem for symmetric product phase spaces

A completeness theorem for symmetric product phase spaces A completeness theorem for symmetric product phase spaces Thomas Ehrhard Fédération de Recherche des Unités de Mathématiques de Marseille CNRS FR 2291 Institut de Mathématiques de Luminy CNRS UPR 9016

More information

An introduction to Differential Linear Logic: proof-nets, models and antiderivatives

An introduction to Differential Linear Logic: proof-nets, models and antiderivatives Under consideration for publication in Math. Struct. in Comp. Science An introduction to Differential Linear Logic: proof-nets, models and antiderivatives Thomas Ehrhard CNRS, IRIF, UMR 8243 Univ Paris

More information

On a Monadic Encoding of Continuous Behaviour

On a Monadic Encoding of Continuous Behaviour On a Monadic Encoding of Continuous Behaviour Renato Neves joint work with: Luís Barbosa, Manuel Martins, Dirk Hofmann INESC TEC (HASLab) & Universidade do Minho October 1, 2015 1 / 27 The main goal A

More information

Coalgebraic Walks, in Quantum and Turing Computation

Coalgebraic Walks, in Quantum and Turing Computation Coalgebraic Walks, in Quantum and Turing Computation Bart Jacobs Institute for Computing and Information Sciences icis), Radboud University Nijmegen, The Netherlands. Webaddress: www.cs.ru.nl/b.jacobs

More information

The Bang Calculus: an untyped lambda-calculus generalizing Call-By-Name and Call-By-Value

The Bang Calculus: an untyped lambda-calculus generalizing Call-By-Name and Call-By-Value The Bang Calculus: an untyped lambda-calculus generalizing Call-By-Name and Call-By-Value Thomas Ehrhard CNRS, IRIF, UMR 8243, Univ Paris Diderot, Sorbonne Paris Cité, F-75205 Paris, France thomas.ehrhard@pps.univ-paris-diderot.fr

More information

Sémantique des jeux asynchrones et réécriture 2-dimensionnelle

Sémantique des jeux asynchrones et réécriture 2-dimensionnelle Sémantique des jeux asynchrones et réécriture 2-dimensionnelle Soutenance de thèse de doctorat Samuel Mimram Laboratoire PPS (CNRS Université Paris Diderot) 1 er décembre 2008 1 / 64 A program is a text

More information

Categories and Functors (Lecture Notes for Midlands Graduate School, 2013) Uday S. Reddy The University of Birmingham

Categories and Functors (Lecture Notes for Midlands Graduate School, 2013) Uday S. Reddy The University of Birmingham Categories and Functors (Lecture Notes for Midlands Graduate School, 2013) Uday S. Reddy The University of Birmingham April 7, 2013 2 Contents 1 Categories 5 1.1 Categories with and without elements.......................

More information

What is a categorical model for Linear Logic?

What is a categorical model for Linear Logic? What is a categorical model for Linear Logic? ndrea Schalk Department of Computer Science University of Manchester October 15, 2004 The aim of these notes is to give an outline of the categorical structure

More information

arxiv: v1 [cs.lo] 19 Aug 2017

arxiv: v1 [cs.lo] 19 Aug 2017 A COINTUITIONISTIC ADJOINT LOGIC e-mail address: heades@augusta.edu HARLEY EADES III AND GIANLUIGI BELLIN arxiv:1708.05896v1 [cs.lo] 19 Aug 2017 Computer Science, Augusta University, Augusta, GA e-mail

More information

NON-SYMMETRIC -AUTONOMOUS CATEGORIES

NON-SYMMETRIC -AUTONOMOUS CATEGORIES NON-SYMMETRIC -AUTONOMOUS CATEGORIES MICHAEL BARR 1. Introduction In [Barr, 1979] (hereafter known as SCAT) the theory of -autonomous categories is outlined. Basically such a category is a symmetric monoidal

More information

Cellularity, composition, and morphisms of algebraic weak factorization systems

Cellularity, composition, and morphisms of algebraic weak factorization systems Cellularity, composition, and morphisms of algebraic weak factorization systems Emily Riehl University of Chicago http://www.math.uchicago.edu/~eriehl 19 July, 2011 International Category Theory Conference

More information

On a Categorical Framework for Coalgebraic Modal Logic

On a Categorical Framework for Coalgebraic Modal Logic On a Categorical Framework for Coalgebraic Modal Logic Liang-Ting Chen 1 Achim Jung 2 1 Institute of Information Science, Academia Sinica 2 School of Computer Science, University of Birmingham MFPS XXX

More information

ON THE CHARACTERIZATION OF MODELS OF H : THE SEMANTICAL ASPECT

ON THE CHARACTERIZATION OF MODELS OF H : THE SEMANTICAL ASPECT Logical Methods in Computer Science Vol. 12(1:4)2016, pp. 1 34 www.lmcs-online.org Submitted Jan. 13, 2014 Published Apr. 27, 2016 ON THE CHARACTERIZATION OF MODELS OF H : THE SEMANTICAL ASPECT FLAVIEN

More information

Introduction to Restriction Categories

Introduction to Restriction Categories Introduction to Restriction Categories Robin Cockett Department of Computer Science University of Calgary Alberta, Canada robin@cpsc.ucalgary.ca Estonia, March 2010 Defining restriction categories Examples

More information

Categorical Proof Theory of Classical Propositional Calculus

Categorical Proof Theory of Classical Propositional Calculus Categorical Proof Theory of Classical Propositional Calculus Gianluigi Bellin a Martin Hyland b Edmund Robinson a Christian Urban c a Queen Mary, University of London, UK b University of Cambridge, UK

More information

Topological aspects of restriction categories

Topological aspects of restriction categories Calgary 2006, Topological aspects of restriction categories, June 1, 2006 p. 1/22 Topological aspects of restriction categories Robin Cockett robin@cpsc.ucalgary.ca University of Calgary Calgary 2006,

More information

Universal Algebra for Termination of Higher-Order Rewriting. Makoto Hamana

Universal Algebra for Termination of Higher-Order Rewriting. Makoto Hamana Universal Algebra for Termination of Higher-Order Rewriting Makoto Hamana Department of Computer Science, Gunma University, Japan RTA 05 2005, April 1 Intro: First-Order Term Rewriting System (TRS) Terms

More information

Completeness for coalgebraic µ-calculus: part 2. Fatemeh Seifan (Joint work with Sebastian Enqvist and Yde Venema)

Completeness for coalgebraic µ-calculus: part 2. Fatemeh Seifan (Joint work with Sebastian Enqvist and Yde Venema) Completeness for coalgebraic µ-calculus: part 2 Fatemeh Seifan (Joint work with Sebastian Enqvist and Yde Venema) Overview Overview Completeness of Kozen s axiomatisation of the propositional µ-calculus

More information

1 Categorical Background

1 Categorical Background 1 Categorical Background 1.1 Categories and Functors Definition 1.1.1 A category C is given by a class of objects, often denoted by ob C, and for any two objects A, B of C a proper set of morphisms C(A,

More information

On the Semantics of Parsing Actions

On the Semantics of Parsing Actions On the Semantics of Parsing Actions Hayo Thielecke School of Computer Science University of Birmingham Birmingham B15 2TT, United Kingdom Abstract Parsers, whether constructed by hand or automatically

More information

Solvability in Resource Lambda-Calculus

Solvability in Resource Lambda-Calculus Solvability in Resource Lambda-Calculus Michele Pagani and Simona Ronchi della Rocca Dipartimento di Informatica Università di Torino C.so Svizzera 185 10149 Torino (IT) {pagani,ronchi}@di.unito.it Abstract.

More information

A quantum double construction in Rel

A quantum double construction in Rel Under consideration for publication in Math. Struct. in Comp. Science A quantum double construction in Rel M A S A H I T O H A S E G A W A Research Institute for Mathematical Sciences, Kyoto University,

More information

1 The Hyland-Schalke functor G Rel. 2 Weakenings

1 The Hyland-Schalke functor G Rel. 2 Weakenings 1 The Hyland-Schalke functor G Rel Let G denote an appropriate category of games and strategies, and let Rel denote the category of sets and relations. It is known (Hyland, Schalke, 1996) that the following

More information

Building a (sort of) GoI from denotational semantics: an improvisation

Building a (sort of) GoI from denotational semantics: an improvisation Building a (sort of) GoI from denotational semantics: an improvisation Damiano Mazza Laboratoire d Informatique de Paris Nord CNRS Université Paris 13 Workshop on Geometry of Interaction, Traced Monoidal

More information

Asynchronous games 1: Uniformity by group invariance

Asynchronous games 1: Uniformity by group invariance synchronous games 1: Uniformity by group invariance Paul-ndré Melliès Équipe Preuves, Programmes, Systèmes CNRS, Université Paris 7 Received Ten years ago, bramsky, Jagadeesan,

More information

Differential structure, tangent structure, and SDG

Differential structure, tangent structure, and SDG Differential structure, tangent structure, and SDG J.R.B. Cockett and G.S.H. Cruttwell Department of Computer Science, University of Calgary, Alberta, Canada and Department of Mathematics and Computer

More information

Equivalence of Algebraic λ -calculi extended abstract

Equivalence of Algebraic λ -calculi extended abstract Equivalence of Algebraic λ -calculi extended abstract Alejandro Díaz-Caro LIG, Université de Grenoble, France Alejandro.Diaz-Caro@imag.fr Christine Tasson CEA-LIST, MeASI, France Christine.Tasson@cea.fr

More information

On the categorical semantics of Elementary Linear Logic

On the categorical semantics of Elementary Linear Logic On the categorical semantics of Elementary Linear Logic Olivier Laurent Preuves Programmes Systèmes CNRS Université Paris VII bstract We introduce the notion of elementary Seely category as a notion of

More information

Five Basic Concepts of. Axiomatic Rewriting Theory

Five Basic Concepts of. Axiomatic Rewriting Theory Five Basic Concepts of Axiomatic Rewriting Theory Paul-André Melliès Institut de Recherche en Informatique Fondamentale (IRIF) CNRS & Université Paris Denis Diderot 5th International Workshop on Confluence

More information

MONADS ON DAGGER CATEGORIES

MONADS ON DAGGER CATEGORIES MONDS ON DGGER CTEGORIES CHRIS HEUNEN ND MRTTI KRVONEN bstract. The theory of monads on categories equipped with a dagger (a contravariant identity-on-objects involutive endofunctor) works best when everything

More information

A characterization of the Taylor expansion of λ-terms

A characterization of the Taylor expansion of λ-terms A characterization of the Taylor expansion of λ-terms Pierre Boudes, Fanny He, and Michele Pagani LIPN - University Paris 13 Villetaneuse, France {boudes, he, pagani}@lipn.univ-paris13.fr Abstract The

More information

Elements of Category Theory

Elements of Category Theory Elements of Category Theory Robin Cockett Department of Computer Science University of Calgary Alberta, Canada robin@cpsc.ucalgary.ca Estonia, Feb. 2010 Functors and natural transformations Adjoints and

More information

Programming Languages in String Diagrams. [ four ] Local stores. Paul-André Melliès. Oregon Summer School in Programming Languages June 2011

Programming Languages in String Diagrams. [ four ] Local stores. Paul-André Melliès. Oregon Summer School in Programming Languages June 2011 Programming Languages in String iagrams [ four ] Local stores Paul-André Melliès Oregon Summer School in Programming Languages June 2011 Finitary monads A monadic account of algebraic theories Algebraic

More information

Semantics for a Higher Order Functional Programming Language for Quantum Computation

Semantics for a Higher Order Functional Programming Language for Quantum Computation Semantics for a Higher Order Functional Programming Language for Quantum Computation Benoît Valiron To cite this version: Benoît Valiron. Semantics for a Higher Order Functional Programming Language for

More information

Duality and Automata Theory

Duality and Automata Theory Duality and Automata Theory Mai Gehrke Université Paris VII and CNRS Joint work with Serge Grigorieff and Jean-Éric Pin Elements of automata theory A finite automaton a 1 2 b b a 3 a, b The states are

More information

Logical connections in the many-sorted setting

Logical connections in the many-sorted setting Logical connections in the many-sorted setting Jiří Velebil Czech Technical University in Prague Czech Republic joint work with Alexander Kurz University of Leicester United Kingdom AK & JV AsubL4 1/24

More information

Towards a Flowchart Diagrammatic Language for Monad-based Semantics

Towards a Flowchart Diagrammatic Language for Monad-based Semantics Towards a Flowchart Diagrammatic Language or Monad-based Semantics Julian Jakob Friedrich-Alexander-Universität Erlangen-Nürnberg julian.jakob@au.de 21.06.2016 Introductory Examples 1 2 + 3 3 9 36 4 while

More information

arxiv: v2 [math.ct] 12 Oct 2016

arxiv: v2 [math.ct] 12 Oct 2016 THE CENTER FUNCTOR IS FULLY FAITHFUL arxiv:1507.00503v2 [math.ct] 12 Oct 2016 Liang Kong a,b,c, Hao Zheng d 1 a Department of Mathematics and Statistics University of New Hampshire, Durham, NH 03824, USA

More information

The equivalence axiom and univalent models of type theory.

The equivalence axiom and univalent models of type theory. The equivalence axiom and univalent models of type theory. (Talk at CMU on February 4, 2010) By Vladimir Voevodsky Abstract I will show how to define, in any type system with dependent sums, products and

More information

The Dierential Lambda-Calculus

The Dierential Lambda-Calculus The Dierential Lambda-Calculus Thomas Ehrhard and Laurent Regnier Institut de Mathématiques de Luminy, C.N.R.S. U.P.R. 9016 ehrhard@iml.univ-mrs.fr and regnier@iml.univ-mrs.fr July 17, 2003 Abstract We

More information

Wolfgang Jeltsch. Seminar talk at the Institute of Cybernetics Tallinn, Estonia

Wolfgang Jeltsch. Seminar talk at the Institute of Cybernetics Tallinn, Estonia in in Brandenburgische Technische Universität Cottbus Cottbus, Germany Seminar talk at the Institute of Cybernetics Tallinn, Estonia February 10, 2011 in in in trueness of a proposition depends on time

More information

Duality in Logic. Duality in Logic. Lecture 2. Mai Gehrke. Université Paris 7 and CNRS. {ε} A ((ab) (ba) ) (ab) + (ba) +

Duality in Logic. Duality in Logic. Lecture 2. Mai Gehrke. Université Paris 7 and CNRS. {ε} A ((ab) (ba) ) (ab) + (ba) + Lecture 2 Mai Gehrke Université Paris 7 and CNRS A {ε} A ((ab) (ba) ) (ab) + (ba) + Further examples - revisited 1. Completeness of modal logic with respect to Kripke semantics was obtained via duality

More information

Fully Abstract Models of the Probabilistic λ-calculus

Fully Abstract Models of the Probabilistic λ-calculus 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Fully Abstract Models of the Probabilistic λ-calculus Pierre Clairambault Univ Lyon, CNRS, ENS de Lyon, UCB Lyon 1, LIP, France pierre.clairambault@ens-lyon.fr

More information

arxiv: v1 [cs.lo] 25 May 2009

arxiv: v1 [cs.lo] 25 May 2009 Predicate transformers and Linear Logic yet another Denotational Model Pierre Hyvernat 1,2 arxiv:0905.3998v1 [cs.lo] 25 May 2009 1 Institut mathématique de Luminy, Marseille, France 2 Chalmers Institute

More information

Connecting the categorical and the modal logic approaches to Quantum Mech

Connecting the categorical and the modal logic approaches to Quantum Mech Connecting the categorical and the modal logic approaches to Quantum Mechanics based on MSc thesis supervised by A. Baltag Institute for Logic, Language and Computation University of Amsterdam 30.11.2013

More information

SOME PROBLEMS AND RESULTS IN SYNTHETIC FUNCTIONAL ANALYSIS

SOME PROBLEMS AND RESULTS IN SYNTHETIC FUNCTIONAL ANALYSIS SOME PROBLEMS AND RESULTS IN SYNTHETIC FUNCTIONAL ANALYSIS Anders Kock This somewhat tentative note aims at making a status about functional analysis in certain ringed toposes E, R, in particular, duality

More information

Fully Abstract Models of the Probabilistic λ-calculus

Fully Abstract Models of the Probabilistic λ-calculus Fully Abstract Models of the Probabilistic λ-calculus Pierre Clairambault Univ Lyon, CNRS, ENS de Lyon, UCB Lyon 1, LIP, France pierre.clairambault@ens-lyon.fr Hugo Paquet Department of Computer Science

More information