From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential...

100
Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus From Linear Logic to Differential Linear Logic Paolo Tranquilli Dipartimento di Matematica Università degli Studi Roma Tre Preuves, Programmes et Systèmes Université Denis-Diderot Paris 7 AILA – XXIII Incontro di Logica – 20/02/2008

Transcript of From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential...

Page 1: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

From Linear Logic toDifferential Linear Logic

Paolo Tranquilli

Dipartimento di MatematicaUniversità degli Studi Roma Tre

Preuves, Programmes et SystèmesUniversité Denis-Diderot Paris 7

AILA – XXIII Incontro di Logica – 20/02/2008

Page 2: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Outline

1 Linear? Differential LL does it betterWhy Linear Logic is linear?Differential Linear Logic

2 Proof Nets and Lambda-CalculusA running exampleThe translation

3 Differential Nets and Resource CalculusLinearization of boxesResource Calculus and its translation

Page 3: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Outline

1 Linear? Differential LL does it betterWhy Linear Logic is linear?Differential Linear Logic

2 Proof Nets and Lambda-CalculusA running exampleThe translation

3 Differential Nets and Resource CalculusLinearization of boxesResource Calculus and its translation

Page 4: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Why Linear Logic is linear?

Vector spaces and LL: is there a link?

Following Pagani and Maieli’s talk, you may have noted anextensive use of jargon borrowed from vector spaces andanalysis:

Linear, dual (A⊥), exponential, tensor (⊗), direct sum (⊕)

What is the catch?

Page 5: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Why Linear Logic is linear?

Vector spaces and LL: is there a link?

Following Maieli’s talk, you may have noted an extensiveuse of jargon borrowed from vector spaces and analysis:

Linear, dual (A⊥), exponential, tensor (⊗), direct sum (⊕)

What is the catch?

Page 6: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Why Linear Logic is linear?

Vector spaces and LL: is there a link?

Following Maieli’s talk and hopefully Pagani’s one thisFriday, you may note an extensive use of jargon borrowedfrom vector spaces and analysis:

Linear, dual (A⊥), exponential, tensor (⊗), direct sum (⊕)

What is the catch?

Page 7: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Why Linear Logic is linear?

The link is there, though somewhat vague

The ground for LL (Girard, 1987) was the study by Girardof System F (in fact, second order intuitionistic sequentcalculus or natural deduction)

Girard imagined formulas A as spaces (coherent spaces)given by atomic bits of information |A|

Moreover, he imagined this bits to be a sort of basis for avector space

...“sort of”?

Page 8: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Why Linear Logic is linear?

The link is there, though somewhat vague

The ground for LL (Girard, 1987) was the study by Girardof System F (in fact, second order intuitionistic sequentcalculus or natural deduction)

Girard imagined formulas A as spaces (coherent spaces)given by atomic bits of information |A|

Moreover, he imagined this bits to be a sort of basis for avector space

...“sort of”?

Page 9: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Why Linear Logic is linear?

Linearity in Linear Logic

Factorization of the intuitionistic arrow

A⇒ B = !A⊸ B

More on the exponential modality later, now let us considerthe linear arrowLinearity in R-modules. . . when R = {0,1} (practically,sets):

F (U + V ) = F (U) + F (V )

F (aU) = aF (U)

A linear map F is completely determined by singletons (ifalso continous wrt directed union)In fact for a linear continous function F : A⊸ B atomic bitsin the input A contribute each exactly once to the output B

Page 10: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Why Linear Logic is linear?

Linearity in Linear Logic

Factorization of the intuitionistic arrow

A⇒ B = !A⊸ B

More on the exponential modality later, now let us considerthe linear arrowLinearity in R-modules. . . when R = {0,1} (practically,sets):

F (U ∪ V ) = F (U) ∪ F (V )

F (∅) = ∅

A linear map F is completely determined by singletons (ifalso continous wrt directed union)In fact for a linear continous function F : A⊸ B atomic bitsin the input A contribute each exactly once to the output B

Page 11: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Why Linear Logic is linear?

Linearity in Linear Logic

Factorization of the intuitionistic arrow

A⇒ B = !A⊸ B

More on the exponential modality later, now let us considerthe linear arrowLinearity in R-modules. . . when R = {0,1} (practically,sets):

F (U ∪ V ) = F (U) ∪ F (V )

F (∅) = ∅

A linear map F is completely determined by singletons (ifalso continous wrt directed union)In fact for a linear continous function F : A⊸ B atomic bitsin the input A contribute each exactly once to the output B

Page 12: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Why Linear Logic is linear?

Linearity in Linear Logic

Factorization of the intuitionistic arrow

A⇒ B = !A⊸ B

More on the exponential modality later, now let us considerthe linear arrowLinearity in R-modules. . . when R = {0,1} (practically,sets):

F (U ∪ V ) = F (U) ∪ F (V )

F (∅) = ∅

A linear map F is completely determined by singletons (ifalso continous wrt directed union)In fact for a linear proof π : A⊸ B atomic bits in thehypothesis A contribute each exactly once to the thesis B

Page 13: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Why Linear Logic is linear?

Linearity at last

in Logic

using a hypothesisexacly once

in Computer Science

using an input/resourceexacly once

in Analysis

F (aU + bV ) =aF (U) + bF (V ) (andcontinuity)

...though the link with the third is not really convincing for now...

Page 14: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Why Linear Logic is linear?

Linearity at last

in Logic

using a hypothesisexacly once

in Computer Science

using an input/resourceexacly once

in Analysis

F (aU + bV ) =aF (U) + bF (V ) (andcontinuity)

...though the link with the third is not really convincing for now...

Page 15: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Differential Linear Logic

A note about duals

A⊥ in R-modules is the space of linear functions A⊸ R

This models negation: in case of bidual spaces (A ¾ A⊥⊥),there is an isomorphism between A⊸ B and B⊥ ⊸ A⊥

Moreover, at the core of the cut rule is the interactionbetween A and A⊥

U ∈ A,V ∈ A⊥ : 〈U,V 〉 =∑

x∈|A|

UxVx

The condition defining coherent spaces is that the supportof 〈U,V 〉 is at most 1, i.e. #U ∩ V ≤ 1

Page 16: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Differential Linear Logic

Let us do it better than LL

We relax the condition and just ask 〈U,V 〉 to be finitesums:

#U ∩ V < ω

(finiteness spaces, Ehrhard 2003)

R 〈A〉, a submodule of R |A| (with a condition on supports),for any unitary semiring R yields spaces for which the allthe connectives really correspond to the vector spaceconstructs

For example: R 〈A⊸ B〉 is isomorphic to R 〈A〉⊸ R 〈B〉,i.e. the linear morphisms continuous in the lineartopologies of R 〈A〉 and R 〈B〉 (defined independently of thestructure of finiteness spaces)

Page 17: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Differential Linear Logic

Formal sums – 1

Condition #U ∩ V ≤ 1 in coherent spaces can be seen aspreventing proofs to be spread in sets of proofs duringreduction

Here the support of an interaction does not need to be asingleton, i.e. the result of an interaction is a generic(though finite) sum with coefficients in R: a proof canreduce to a sum!

What does it mean?

Page 18: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Differential Linear Logic

Formal sums – 2

The easiest way to regard this is non-deterministic choice.The sum keeps track of the various possible choices(exspecially if R =N):

π1

σ55kkkkkk

))SSSSSS

π2

{ σ→ π1 + π2

Other interpretations are possible, for example by takingR = R+ and interpreting probabilistic choice:

π1

σ

p 55kkkkkk

1−p))SSSSSS

π2

{ σ→ pπ1 + (1 − p)π2

Page 19: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Differential Linear Logic

The exponential

A linear world would be boring. . . the exponential modality!A brings back contraction and weakening of hypotheses

In finiteness spaces, the modality operates a shift fromlinear formal sums to formal power series.

A⊸ B are linear functions

In fact a power xn is a multilinear use of multiple (possiblynone) occurrences of x

Page 20: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Differential Linear Logic

The exponential

A linear world would be boring. . . the exponential modality!A brings back duplication and erasing of inputs

In finiteness spaces, the modality operates a shift fromlinear formal sums to formal power series.

A⊸ B are linear functions

In fact a power xn is a multilinear use of multiple (possiblynone) occurrences of x

Page 21: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Differential Linear Logic

The exponential

A linear world would be boring. . . the exponential modality!A brings back contraction and weakening of hypotheses

In finiteness spaces, the modality operates a shift fromlinear formal sums to formal power series.

A⊸ B are linear functions

In fact a power xn is a multilinear use of multiple (possiblynone) occurrences of x

Page 22: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Differential Linear Logic

The exponential

A linear world would be boring. . . the exponential modality!A brings back contraction and weakening of hypotheses

In finiteness spaces, the modality operates a shift fromlinear formal sums to formal power series.

!A⊸ B are analytical functions

In fact a power xn is a multilinear use of multiple (possiblynone) occurrences of x

Page 23: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Differential Linear Logic

Linearity revisited

in Logic

Linear hypotheses, tobe used exacly once

in Computer Science

Linear inputs, to beused exactly once

in Analysis

Linear argumentsoccurring in linearposition

We will see some of the consequences that this approachbrings in the top areas

Page 24: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Differential Linear Logic

Linearity revisited

in Logic

Non-linear hypotheses,that can be contractedor weakened

in Computer Science

Non-linear inputs, thatcan be duplicated orerased

in Analysis

Non-linear argumentsoccurring as powers

We will see some of the consequences that this approachbrings in the top areas

Page 25: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Differential Linear Logic

Linearity revisited

in Logic

Proofs

in Computer Science

Programs

in Analysis

Analytical functions

We will see some of the consequences that this approachbrings in the top areas

Page 26: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Outline

1 Linear? Differential LL does it betterWhy Linear Logic is linear?Differential Linear Logic

2 Proof Nets and Lambda-CalculusA running exampleThe translation

3 Differential Nets and Resource CalculusLinearization of boxesResource Calculus and its translation

Page 27: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

Lambda-Calculus

A core functional programming language:

M ::= x | λx .M | (M)N

. . . with types:

x : A x : A,M : B =⇒ λx .M : A⇒ B,

M : A⇒ B,N : A =⇒ (M)N : B

Linear Logic Proof-Nets provide a geometricalrepresentation of λ-terms

Page 28: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

Lambda-Calculus

A core functional programming language:

M ::= x | λx .M | (M)N

. . . with types:

x : A x : A,M : B =⇒ λx .M : A⇒ B,

M : A⇒ B,N : A =⇒ (M)N : B

Linear Logic Proof-Nets provide a geometricalrepresentation of λ-terms

Page 29: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

Lambda-Calculus

A core functional programming language:

M ::= x | λx .M | (M)N

. . . with types:

x : A x : A,M : B =⇒ λx .M : A⇒ B,

M : A⇒ B,N : A =⇒ (M)N : B

Linear Logic Proof-Nets provide a geometricalrepresentation of λ-terms

Page 30: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

Lambda-Calculus

A core functional programming language:

M ::= x | λx .M | (M)N

. . . with types:

x : A x : A,M : B =⇒ λx .M : A⇒ B,

M : A⇒ B,N : A =⇒ (M)N : B

Linear Logic Proof-Nets provide a geometricalrepresentation of λ-terms

Page 31: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

Lambda-Calculus

A core functional programming language:

M ::= x | λx .M | (M)N

. . . with types:

x : A x : A,M : B =⇒ λx .M : A⇒ B,

M : A⇒ B,N : A =⇒ (M)N : B

Linear Logic Proof-Nets provide a geometricalrepresentation of λ-terms

Page 32: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

Lambda-Calculus

A core functional programming language:

M ::= x | λx .M | (M)N

. . . with types:

x : A x : A,M : B =⇒ λx .M : A⇒ B,

M : A⇒ B,N : A =⇒ (M)N : B

Linear Logic Proof-Nets provide a geometricalrepresentation of λ-terms

Page 33: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

Lambda-Calculus

A core functional programming language:

M ::= x | λx .M | (M)N

. . . with types:

x : A x : A,M : B =⇒ λx .M : A⇒ B,

M : A⇒ B,N : A =⇒ (M)N : B

Linear Logic Proof-Nets provide a geometricalrepresentation of λ-terms

Page 34: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

Lambda-Calculus

A core functional programming language:

M ::= x | λx .M | (M)N

. . . with types:

x : A x : A,M : B =⇒ λx .M : A⇒ B,

M : A⇒ B,N : A =⇒ (M)N : B

Linear Logic Proof-Nets provide a geometricalrepresentation of λ-terms

Page 35: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

Lambda-Calculus

A core functional programming language:

M ::= x | λx .M | (M)N

. . . with types:

x : A x : A,M : B =⇒ λx .M : A⇒ B,

M : A⇒ B,N : A =⇒ (M)N : B

Linear Logic Proof-Nets provide a geometricalrepresentation of λ-terms

Page 36: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

An example

I = λy .y : α⇒ α

?

`

α

α⊥

!α⊸ α

?

?

?

?

!

!

`

`

α

α

α

α⊥

α⊥

α⊥

!α⊸ α

?(!α⊸ α)⊥

?(!α⊸ α)⊥

!(!α⊸ α)⊸ !α⊸ α

!

!α⊸ α

!(!α⊸ α)

Page 37: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

An example

2 = λf , x .(f )(f )x : (α⇒ α)⇒ α⇒ α

?

`

α

α⊥

!α⊸ α

?

?

?

?

!

!

`

`

α

α

α

α⊥

α⊥

α⊥

!α⊸ α

?(!α⊸ α)⊥

?(!α⊸ α)⊥

!(!α⊸ α)⊸ !α⊸ α

!

!α⊸ α

!(!α⊸ α)

Page 38: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

An example

(2)I = (λf , x .(f )(f )x)λy .y : α⇒ α

?

`

α

α⊥

!α⊸ α

?

?

?

?

!

!

`

`

α

α

α

α⊥

α⊥

α⊥

!α⊸ α

?(!α⊸ α)⊥

?(!α⊸ α)⊥

!(!α⊸ α)⊸ !α⊸ α

!

!α⊸ α

!(!α⊸ α)

Page 39: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

An example

(2)I = (λf , x .(f )(f )x)λy .y

?

`

?

?

?

?

!

!

`

` !

Page 40: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

An example

(2)I = (λf , x .(f )(f )x)λy .y

?

`

?

?

?

?

!

!

`

` !

Page 41: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

An example

(2)I = (λf , x .(f )(f )x)λy .y

?

`

?

?

?

?

!

!

` !

Page 42: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

An example

(2)I = (λf , x .(f )(f )x)λy .y

? ?

``

?

?

?

!

!

`

!!

Page 43: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

An example

(2)I = (λf , x .(f )(f )x)λy .y

?

?

`

`

?

?

?

!

!

`

!

!

Page 44: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

An example

(2)I = (λf , x .(f )(f )x)λy .y

?

?

`

`

?

!

!

`

Page 45: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

An example

(2)Iβ→ λx .(λy .y)(λy .y)x

?

?

`

`

?

!

!

`

Page 46: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

An example

(2)Iβ→ λx .(λy .y)(λy .y)x

?

?

?

!

!

`

Page 47: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

An example

(2)Iβ→ λx .(λy .y)(λy .y)x

?

`

Page 48: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

A running example

An example

(2)Iβ∗→ λx .x

?

`

Page 49: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

The translation

The results

What we have is a translation M◦ from terms to proof nets.

Theorem (Girard, Danos-Regnier)

each redex (λx .S)T in M corresponds bijectively tomultiplicative cuts in M◦

Mβ→ N ⇐⇒ M◦

m→

e∗։ N◦

Mβ∗→ N ⇐⇒ M◦

∗→ N◦

Page 50: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

The translation

Inputs are packages

Inputs are packages that are

duplicable

erasable

openable

Page 51: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

The translation

Inputs are packages

Inputs are packages that are

duplicable

erasable

openable

?

?

?

!

!

!...

...

...

...

Page 52: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

The translation

Inputs are packages

Inputs are packages that are

duplicable

erasable

openable

?

?

? !...

...

Page 53: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

The translation

Inputs are packages

Inputs are packages that are

duplicable

erasable

openable

? !...

...

Page 54: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Outline

1 Linear? Differential LL does it betterWhy Linear Logic is linear?Differential Linear Logic

2 Proof Nets and Lambda-CalculusA running exampleThe translation

3 Differential Nets and Resource CalculusLinearization of boxesResource Calculus and its translation

Page 55: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Single-use hypotheses/inputs

There is a situation not covered by the properties of boxes

What if a hypothesis/input is available just once (afterwhich it “expires”), but is asked for more than once?

We can imagine that it can be assignednon-deterministically (formal sums involved)

We are able to see this in differential nets, the geometricalrepresentation of Differential Linear Logic (Ehrhard andRegnier, 2004)

Page 56: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Single-use hypotheses/inputs

There is a situation not covered by the properties of boxes

What if a hypothesis/input is available just once (afterwhich it “expires”), but is asked for more than once?

We can imagine that it can be assignednon-deterministically (formal sums involved)

We are able to see this in differential nets, the geometricalrepresentation of Differential Linear Logic (Ehrhard andRegnier, 2004)

Page 57: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Back to an example

?

?

?

?

?

!

!

!

⊗`

`

`

α

α

α

α

α⊥

α⊥

α⊥

α⊥

!α⊸ α

!α⊸ α

!α⊸ α

!(!α⊸ α)

?(!α⊸ α)⊥

?(!α⊸ α)⊥

!(!α⊸ α)⊸ !α⊸ α

Page 58: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Back to an example

?

?

?

?

?

!

!

!

⊗`

`

`

α

α

α

α

α⊥

α⊥

α⊥

α⊥

!α⊸ α

!α⊸ α

!α⊸ α

!(!α⊸ α)

?(!α⊸ α)⊥

?(!α⊸ α)⊥

!(!α⊸ α)⊸ !α⊸ α

Page 59: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Back to an example

?

?

?

?

?

!

!

!

⊗`

`

`

Page 60: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Back to an example

?

?

?

?

?

!

!

!

`

`

Page 61: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Back to an example

?

?

?

?

!

!

!

!

`

`

Page 62: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Back to an example

?

?

?

?

!

!

!

!

`

`

Page 63: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Back to an example

?

?

?

?

!

!

!

!

`

`

+

?

?

?

?

!

!

!

!

`

`

Page 64: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Back to an example

?

?

?

?

!

!

!

!

`

`

+ 0

Page 65: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Back to an example

?

?

?

!

!

!

`

`

Page 66: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Back to an example

?

?

?

!

!

!

`

`

Page 67: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Back to an example

?

!

`

`

0

Page 68: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Yet another example

?

?

?

?

??

!

!

!

!!

`

``

`

Page 69: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Yet another example

?

?

?

?

??

!

!

!

!!

`

``

Page 70: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Yet another example

?

?

?

?

? ?

!

!

! !

!

`

` `

Page 71: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Yet another example

?

?

?

? ?

!

!

!

! !

!

`

` `

Page 72: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Yet another example

?

?

?

? ?

!

!

!

! !

!

`

` `

Page 73: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Yet another example

0

Page 74: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Yet another example

?

?

?

??

!

!

!

!

`

``

Page 75: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Yet another example

?

?

?

??

!

!

!

!

`

``

Page 76: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Yet another example

?

?

?

??

!

!

!

!

`

``

Page 77: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Yet another example

?

?

?

?

!

!

!

`

`

`

Page 78: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Yet another example

?

?

?

?

?

?

?

!

!

!

!

!

!

!

`

``

Page 79: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Linearization of boxes

Yet another example

?

?

?

?

!

!

!

!

`

`

`

0

Page 80: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Resource Calculus

Does this behaviour correspond to a calculus like Proof Nets dofor λ-calculus?Yes, λ-calculus with multiplicities (Boudol, 1993), exactlypresents this behaviour.

Terms of the resource λ-calculus

M ::= x | λx .M | 〈M〉A

A ::= Me11 · · ·M

ekk with ei ≤ ∞

Boudol described a non-deterministic reduction. We, as alreadyexplained, employ formal sums. The ground for this is regularsubstitution for M∞ arguments, and linear substitution forfinitely available arguments

Page 81: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Resource Calculus

Does this behaviour correspond to a calculus like Proof Nets dofor λ-calculus?Yes, λ-calculus with multiplicities (Boudol, 1993), exactlypresents this behaviour.

Terms of the resource λ-calculus

M ::= x | λx .M | 〈M〉A

A ::= Me11 · · ·M

ekk with ei ≤ ∞

Boudol described a non-deterministic reduction. We, as alreadyexplained, employ formal sums. The ground for this is regularsubstitution for M∞ arguments, and linear substitution forfinitely available arguments

Page 82: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Resource Calculus

Does this behaviour correspond to a calculus like Proof Nets dofor λ-calculus?Yes, λ-calculus with multiplicities (Boudol, 1993), exactlypresents this behaviour.

Terms of the resource λ-calculus

M ::= x | λx .M | 〈M〉A

A ::= Me11 · · ·M

ekk with ei ≤ ∞

Boudol described a non-deterministic reduction. We, as alreadyexplained, employ formal sums. The ground for this is regularsubstitution for M∞ arguments, and linear substitution forfinitely available arguments

Page 83: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Resource Calculus

Does this behaviour correspond to a calculus like Proof Nets dofor λ-calculus?Yes, λ-calculus with multiplicities (Boudol, 1993), exactlypresents this behaviour.

Terms of the resource λ-calculus

M ::= x | λx .M | 〈M〉A

A ::= Me11 · · ·M

ekk with ei ≤ ∞

Boudol described a non-deterministic reduction. We, as alreadyexplained, employ formal sums. The ground for this is regularsubstitution for M∞ arguments, and linear substitution forfinitely available arguments

Page 84: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Resource Calculus

Does this behaviour correspond to a calculus like Proof Nets dofor λ-calculus?Yes, λ-calculus with multiplicities (Boudol, 1993), exactlypresents this behaviour.

Terms of the resource λ-calculus

M ::= x | λx .M | 〈M〉A

A ::= Me11 · · ·M

ekk with ei ≤ ∞

Boudol described a non-deterministic reduction. We, as alreadyexplained, employ formal sums. The ground for this is regularsubstitution for M∞ arguments, and linear substitution forfinitely available arguments

Page 85: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Resource Calculus

Does this behaviour correspond to a calculus like Proof Nets dofor λ-calculus?Yes, λ-calculus with multiplicities (Boudol, 1993), exactlypresents this behaviour.

Terms of the resource λ-calculus

M ::= x | λx .M | 〈M〉A

A ::= Me11 · · ·M

ekk with ei ≤ ∞

Boudol described a non-deterministic reduction. We, as alreadyexplained, employ formal sums. The ground for this is regularsubstitution for M∞ arguments, and linear substitution forfinitely available arguments

Page 86: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Resource Calculus

Does this behaviour correspond to a calculus like Proof Nets dofor λ-calculus?Yes, λ-calculus with multiplicities (Boudol, 1993), exactlypresents this behaviour.

Terms of the resource λ-calculus

M ::= x | λx .M | 〈M〉A

A ::= Me11 · · ·M

ekk with ei ≤ ∞

Boudol described a non-deterministic reduction. We, as alreadyexplained, employ formal sums. The ground for this is regularsubstitution for M∞ arguments, and linear substitution forfinitely available arguments

Page 87: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Back to the examples

λf , x . 〈f 〉 (〈f 〉 x∞)∞⟩

λy .y {

?

?

?

?

?

!

!

!

⊗`

`

`

Page 88: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Back to the examples

λf , x . 〈f 〉 (〈f 〉 x∞)∞⟩

λy .y {

?

?

?

?

?

!

!

!

⊗`

`

`

Page 89: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Back to the examples

λf , x . 〈f 〉 (〈f 〉 x∞)∞⟩

λy .y↓ β

λx . 〈λy .y〉0∞ {

?

!

`

`

0

Page 90: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Back to the examples

λf , x . 〈f 〉 (〈f 〉 x∞)∞⟩

λy .y↓ β

λx . 〈λy .y〉0∞ {

?

!

`

`

0

Page 91: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Back to the examples

λf , x . 〈f 〉 (〈f 〉 x∞)∞⟩

(λy .y)2{

?

?

?

?

??

!

!

!

!!

`

``

`

Page 92: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Back to the examples

λf , x . 〈f 〉 (〈f 〉 x∞)∞⟩

(λy .y)2{

?

?

?

?

??

!

!

!

!!

`

``

`

Page 93: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Back to the examples

λf , x . 〈f 〉 (〈f 〉 x∞)∞⟩

(λy .y)2

↓ β2 · λx . 〈λy .y〉0∞ · 〈λy .y〉 x∞ { 2·

?

?

?

?

!

!

!

!

`

`

`

0

Page 94: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

Back to the examples

λf , x . 〈f 〉 (〈f 〉 x∞)∞⟩

(λy .y)2

↓ β2 · λx . 〈λy .y〉0∞ · 〈λy .y〉 x∞ { 2·

?

?

?

?

!

!

!

!

`

`

`

0

Page 95: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

The results

What we have is a translation M◦ from terms to proof nets.

Theorem (Girard, Danos-Regnier)

each redex (λx .S)T in M corresponds bijectively tomultiplicative cuts in M◦

Mβ→ N ⇐⇒ M◦

m→

e∗։ N◦

Mβ∗→ N ⇐⇒ M◦

∗→ N◦

Page 96: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Resource Calculus and its translation

The results

What we have is a translation M◦ from resource terms todifferential nets.

Theorem

each redex 〈λx .S〉A in M corresponds bijectively tomultiplicative cuts in M◦

Mβ→ N ⇐⇒ M◦

m→

e∗։ N◦

Mβ∗→ N ⇐⇒ M◦

∗→ N◦

Page 97: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Conclusion

Concluding remarks

Linear substitution is differentiation:

∂x2y∂x· a =

∂x · x · y∂x

· a = a · x · y + x · a · y = 2xy · a

idea at the basis of Differential λ-Calculus (Ehrhard andRegnier, 2003)

In fact analytical functions are smooth: Differential Nets arethe lifting to syntax of these properties

Differential Nets are strongly normalizing: ongoing workwith Michele Pagani

Page 98: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Conclusion

Concluding remarks

Linear substitution is differentiation:

∂x2y∂x· a =

∂x · x · y∂x

· a = a · x · y + x · a · y = 2xy · a

idea at the basis of Differential λ-Calculus (Ehrhard andRegnier, 2003)

In fact analytical functions are smooth: Differential Nets arethe lifting to syntax of these properties

Differential Nets are strongly normalizing: ongoing workwith Michele Pagani

Page 99: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Conclusion

Concluding remarks

Linear substitution is differentiation:

∂x2y∂x· a =

∂x · x · y∂x

· a = a · x · y + x · a · y = 2xy · a

idea at the basis of Differential λ-Calculus (Ehrhard andRegnier, 2003)

In fact analytical functions are smooth: Differential Nets arethe lifting to syntax of these properties

Differential Nets are strongly normalizing: ongoing workwith Michele Pagani

Page 100: From Linear Logic to Differential Linear Logictranquil/content/docs/aila2008.pdfLinear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource

Linear? Differential LL does it better Proof Nets and Lambda-Calculus Differential Nets and Resource Calculus

Conclusion

Concluding remarks

Linear substitution is differentiation:

∂x2y∂x· a =

∂x · x · y∂x

· a = a · x · y + x · a · y = 2xy · a

idea at the basis of Differential λ-Calculus (Ehrhard andRegnier, 2003)

In fact analytical functions are smooth: Differential Nets arethe lifting to syntax of these properties

Differential Nets are strongly normalizing: ongoing workwith Michele Pagani