• 検索結果がありません。

On the Meaning of Algebraic Weights given by the GoI

N/A
N/A
Protected

Academic year: 2022

シェア "On the Meaning of Algebraic Weights given by the GoI"

Copied!
79
0
0

読み込み中.... (全文を見る)

全文

(1)

On the Meaning of Algebraic Weights given by the GoI

Marc de Falco

Institut de Math´ematiques de Luminy

GTI Workshop, Kyoto

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 1 / 32

(2)

Our problem

GoI for MELL isalmostsound. where almost means no ? in conclusion. . .

but after all, we don’t really need those why not... do we? Takeλ-calculus encoding into MELL:A⇒B≡?A B

So GoI is sound for. . . computations to free variables applied to normal terms! Functional programming without functions is quite limiting.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 2 / 32

(3)

Our problem

GoI for MELL isalmostsound. where almost means no ? in conclusion. . . but after all, we don’t really need those why not... do we?

Takeλ-calculus encoding into MELL:A⇒B≡?A B

So GoI is sound for. . . computations to free variables applied to normal terms! Functional programming without functions is quite limiting.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 2 / 32

(4)

Our problem

GoI for MELL isalmostsound. where almost means no ? in conclusion. . . but after all, we don’t really need those why not... do we?

Takeλ-calculus encoding into MELL:A⇒B≡?A B

So GoI is sound for. . . computations to free variables applied to normal terms! Functional programming without functions is quite limiting.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 2 / 32

(5)

Our problem

GoI for MELL isalmostsound. where almost means no ? in conclusion. . . but after all, we don’t really need those why not... do we?

Takeλ-calculus encoding into MELL:A⇒B≡?A B

So GoI is sound for. . . computations to free variables applied to normal terms!

Functional programming without functions is quite limiting.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 2 / 32

(6)

Our problem

GoI for MELL isalmostsound. where almost means no ? in conclusion. . . but after all, we don’t really need those why not... do we?

Takeλ-calculus encoding into MELL:A⇒B≡?A B

So GoI is sound for. . . computations to free variables applied to normal terms!

Functional programming without functions is quite limiting.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 2 / 32

(7)

Our problem

Is it really that bad?

Taket →βt0 with`t,t0:A1→ · · · →An→B whereB is atomic. Maybe Ex(t)6= Ex(t0).

With`ui:Ai we will have`(t)u1· · ·un:B and`(t0)u1· · ·un:B. So Ex((t)u1· · ·un) = Ex((t0)u1· · ·un).

Associativity of Ex⇒we can compute it with the left formula using Ex(t) or with the right one using Ex(t0).

So computationnaly Ex(t)∼Ex(t0).

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 3 / 32

(8)

Our problem

Is it really that bad?

Taket →βt0 with`t,t0:A1→ · · · →An→B whereB is atomic.

Maybe Ex(t)6= Ex(t0).

With`ui:Ai we will have`(t)u1· · ·un:B and`(t0)u1· · ·un:B. So Ex((t)u1· · ·un) = Ex((t0)u1· · ·un).

Associativity of Ex⇒we can compute it with the left formula using Ex(t) or with the right one using Ex(t0).

So computationnaly Ex(t)∼Ex(t0).

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 3 / 32

(9)

Our problem

Is it really that bad?

Taket →βt0 with`t,t0:A1→ · · · →An→B whereB is atomic.

Maybe Ex(t)6= Ex(t0).

With`ui:Ai we will have`(t)u1· · ·un:B and`(t0)u1· · ·un:B. So Ex((t)u1· · ·un) = Ex((t0)u1· · ·un).

Associativity of Ex⇒we can compute it with the left formula using Ex(t) or with the right one using Ex(t0).

So computationnaly Ex(t)∼Ex(t0).

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 3 / 32

(10)

Our problem

Is it really that bad?

Taket →βt0 with`t,t0:A1→ · · · →An→B whereB is atomic.

Maybe Ex(t)6= Ex(t0).

With`ui:Ai we will have`(t)u1· · ·un:B and`(t0)u1· · ·un:B.

So Ex((t)u1· · ·un) = Ex((t0)u1· · ·un).

Associativity of Ex⇒we can compute it with the left formula using Ex(t) or with the right one using Ex(t0).

So computationnaly Ex(t)∼Ex(t0).

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 3 / 32

(11)

Our problem

Is it really that bad?

Taket →βt0 with`t,t0:A1→ · · · →An→B whereB is atomic.

Maybe Ex(t)6= Ex(t0).

With`ui:Ai we will have`(t)u1· · ·un:B and`(t0)u1· · ·un:B.

So Ex((t)u1· · ·un) = Ex((t0)u1· · ·un).

Associativity of Ex⇒we can compute it with the left formula using Ex(t) or with the right one using Ex(t0).

So computationnaly Ex(t)∼Ex(t0).

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 3 / 32

(12)

Our problem

Is it really that bad?

Taket →βt0 with`t,t0:A1→ · · · →An→B whereB is atomic.

Maybe Ex(t)6= Ex(t0).

With`ui:Ai we will have`(t)u1· · ·un:B and`(t0)u1· · ·un:B.

So Ex((t)u1· · ·un) = Ex((t0)u1· · ·un).

Associativity of Ex⇒we can compute it with the left formula using Ex(t) or with the right one using Ex(t0).

So computationnaly Ex(t)∼Ex(t0).

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 3 / 32

(13)

Our problem

Is it really that bad?

Taket →βt0 with`t,t0:A1→ · · · →An→B whereB is atomic.

Maybe Ex(t)6= Ex(t0).

With`ui:Ai we will have`(t)u1· · ·un:B and`(t0)u1· · ·un:B.

So Ex((t)u1· · ·un) = Ex((t0)u1· · ·un).

Associativity of Ex⇒we can compute it with the left formula using Ex(t) or with the right one using Ex(t0).

So computationnaly Ex(t)∼Ex(t0).

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 3 / 32

(14)

Our problem

Focus on Danos-Regnier view of Geometry of Interaction.

GoI semantics sliced into a set of algebraic weights with a one-to-one correspondence with meaningful paths in proofs/programs.

Problem

Can we deduce that Ex(t)∼Ex(t0) by looking at weights only?

Equivalent Problem

Can we give a meaning to each weight such that the global meaning is preserved by reduction?

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 4 / 32

(15)

Our problem

Focus on Danos-Regnier view of Geometry of Interaction.

GoI semantics sliced into a set of algebraic weights with a one-to-one correspondence with meaningful paths in proofs/programs.

Problem

Can we deduce that Ex(t)∼Ex(t0) by looking at weights only?

Equivalent Problem

Can we give a meaning to each weight such that the global meaning is preserved by reduction?

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 4 / 32

(16)

Our problem

Focus on Danos-Regnier view of Geometry of Interaction.

GoI semantics sliced into a set of algebraic weights with a one-to-one correspondence with meaningful paths in proofs/programs.

Problem

Can we deduce that Ex(t)∼Ex(t0) by looking at weights only?

Equivalent Problem

Can we give a meaning to each weight such that the global meaning is preserved by reduction?

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 4 / 32

(17)

Our problem

Focus on Danos-Regnier view of Geometry of Interaction.

GoI semantics sliced into a set of algebraic weights with a one-to-one correspondence with meaningful paths in proofs/programs.

Problem

Can we deduce that Ex(t)∼Ex(t0) by looking at weights only?

Equivalent Problem

Can we give a meaning to each weight such that the global meaning is preserved by reduction?

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 4 / 32

(18)

Outline

1 The Danos-Regnier theory

2 An involved example withλ-terms

3 Towards a theory of meaning

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 5 / 32

(19)

Paths and reduction

Representation of a proof/program via a graph-like syntax: e.g. proofnets, interaction nets.

We considerstraightsandmaximalpaths: P(R).

Cut-elimination is translated into a path reduction:

δR :P(R)7→P(R0) forR−→R R0.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 6 / 32

(20)

Persistent paths

Throughout reduction paths can be

deformed (possibly duplicated) or

destroyed.

P

P0

Persistent paths: survive all possible reductions (needs a confluent and normalizing system to make sense).

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 7 / 32

(21)

Persistent paths

Throughout reduction paths can be

deformed (possibly duplicated) or

destroyed.

P

P0

Persistent paths: survive all possible reductions (needs a confluent and normalizing system to make sense).

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 7 / 32

(22)

Persistent paths

Throughout reduction paths can be

deformed (possibly duplicated) or

destroyed.

P → P0

Persistent paths: survive all possible reductions (needs a confluent and normalizing system to make sense).

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 7 / 32

(23)

Persistent paths

Throughout reduction paths can be deformed (possibly duplicated)

or

destroyed.

P → P0

Persistent paths: survive all possible reductions (needs a confluent and normalizing system to make sense).

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 7 / 32

(24)

Persistent paths

Throughout reduction paths can be deformed (possibly duplicated) or

destroyed.

P → P0

Persistent paths: survive all possible reductions (needs a confluent and normalizing system to make sense).

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 7 / 32

(25)

Persistent paths

Throughout reduction paths can be deformed (possibly duplicated) or

destroyed.

P → P0

Persistent paths: survive all possible reductions (needs a confluent and normalizing system to make sense).

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 7 / 32

(26)

Regular paths

M is aninverse monoid with zero(imz) iff

I M is a monoid

I with a zero element: ∀x,x0 = 0x= 0

I with an inverse for each element: ∀x,∃x?,xx?x=x andx?xx?=x?. Path weighting: a function w :P(R)7→M such that

I w(ϕ1ϕ2) = w(ϕ2)w(ϕ1)

I w(ϕr) = w(ϕ)?whereϕr is the reversal ofϕ.

Regularpaths: w(ϕ)6= 0

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 8 / 32

(27)

Regular paths

M is aninverse monoid with zero(imz) iff

I M is a monoid

I with a zero element: ∀x,x0 = 0x= 0

I with an inverse for each element: ∀x,∃x?,xx?x=x andx?xx?=x?. Path weighting: a function w :P(R)7→M such that

I w(ϕ1ϕ2) = w(ϕ2)w(ϕ1)

I w(ϕr) = w(ϕ)?whereϕr is the reversal ofϕ.

Regularpaths: w(ϕ)6= 0

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 8 / 32

(28)

Regular paths

M is aninverse monoid with zero(imz) iff

I M is a monoid

I with a zero element: ∀x,x0 = 0x= 0

I with an inverse for each element: ∀x,∃x?,xx?x=x andx?xx?=x?. Path weighting: a function w :P(R)7→M such that

I w(ϕ1ϕ2) = w(ϕ2)w(ϕ1)

I w(ϕr) = w(ϕ)?whereϕr is the reversal ofϕ.

Regularpaths: w(ϕ)6= 0

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 8 / 32

(29)

Regular paths

M is aninverse monoid with zero(imz) iff

I M is a monoid

I with a zero element: ∀x,x0 = 0x= 0

I with an inverse for each element: ∀x,∃x?,xx?x=x andx?xx?=x?.

Path weighting: a function w :P(R)7→M such that

I w(ϕ1ϕ2) = w(ϕ2)w(ϕ1)

I w(ϕr) = w(ϕ)?whereϕr is the reversal ofϕ.

Regularpaths: w(ϕ)6= 0

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 8 / 32

(30)

Regular paths

M is aninverse monoid with zero(imz) iff

I M is a monoid

I with a zero element: ∀x,x0 = 0x= 0

I with an inverse for each element: ∀x,∃x?,xx?x=x andx?xx?=x?. Path weighting: a function w :P(R)7→M such that

I w(ϕ1ϕ2) = w(ϕ2)w(ϕ1)

I w(ϕr) = w(ϕ)?whereϕr is the reversal ofϕ. Regularpaths: w(ϕ)6= 0

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 8 / 32

(31)

Regular paths

M is aninverse monoid with zero(imz) iff

I M is a monoid

I with a zero element: ∀x,x0 = 0x= 0

I with an inverse for each element: ∀x,∃x?,xx?x=x andx?xx?=x?. Path weighting: a function w :P(R)7→M such that

I w(ϕ1ϕ2) = w(ϕ2)w(ϕ1)

I w(ϕr) = w(ϕ)?whereϕr is the reversal ofϕ. Regularpaths: w(ϕ)6= 0

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 8 / 32

(32)

Regular paths

M is aninverse monoid with zero(imz) iff

I M is a monoid

I with a zero element: ∀x,x0 = 0x= 0

I with an inverse for each element: ∀x,∃x?,xx?x=x andx?xx?=x?. Path weighting: a function w :P(R)7→M such that

I w(ϕ1ϕ2) = w(ϕ2)w(ϕ1)

I w(ϕr) = w(ϕ)?whereϕr is the reversal ofϕ.

Regularpaths: w(ϕ)6= 0

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 8 / 32

(33)

Regular paths

M is aninverse monoid with zero(imz) iff

I M is a monoid

I with a zero element: ∀x,x0 = 0x= 0

I with an inverse for each element: ∀x,∃x?,xx?x=x andx?xx?=x?. Path weighting: a function w :P(R)7→M such that

I w(ϕ1ϕ2) = w(ϕ2)w(ϕ1)

I w(ϕr) = w(ϕ)?whereϕr is the reversal ofϕ.

Regularpaths: w(ϕ)6= 0

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 8 / 32

(34)

GoI from the Danos-Regnier point of view

Sketch of Definition

We callGeometry of Interactionfor a logical systemLa family of weighting functions wR for allR∈ L targetting the same imz and such that:

ϕpersistent ⇐⇒ ϕregular

LetC[M] be theC-algebra generated by M where the zero of M is also the zero of the algebra (its closure is aC?-algebra)

For anyR we can define Ex(R) =P

ϕ∈P(R)w(ϕ)

We recover the standard definition of the geometry of interaction. Ex(R) is not necessarily equal to Ex(R0) whenR →R0

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 9 / 32

(35)

GoI from the Danos-Regnier point of view

Sketch of Definition

We callGeometry of Interactionfor a logical systemLa family of weighting functions wR for allR∈ L targetting the same imz and such that:

ϕpersistent ⇐⇒ ϕregular

LetC[M] be theC-algebra generated by M where the zero of M is also the zero of the algebra (its closure is aC?-algebra)

For anyR we can define Ex(R) =P

ϕ∈P(R)w(ϕ)

We recover the standard definition of the geometry of interaction. Ex(R) is not necessarily equal to Ex(R0) whenR →R0

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 9 / 32

(36)

GoI from the Danos-Regnier point of view

Sketch of Definition

We callGeometry of Interactionfor a logical systemLa family of weighting functions wR for allR∈ L targetting the same imz and such that:

ϕpersistent ⇐⇒ ϕregular

LetC[M] be theC-algebra generated by M where the zero of M is also the zero of the algebra (its closure is aC?-algebra)

For anyR we can define Ex(R) =P

ϕ∈P(R)w(ϕ)

We recover the standard definition of the geometry of interaction. Ex(R) is not necessarily equal to Ex(R0) whenR →R0

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 9 / 32

(37)

GoI from the Danos-Regnier point of view

Sketch of Definition

We callGeometry of Interactionfor a logical systemLa family of weighting functions wR for allR∈ L targetting the same imz and such that:

ϕpersistent ⇐⇒ ϕregular

LetC[M] be theC-algebra generated by M where the zero of M is also the zero of the algebra (its closure is aC?-algebra)

For anyR we can define Ex(R) =P

ϕ∈P(R)w(ϕ)

We recover the standard definition of the geometry of interaction.

Ex(R) is not necessarily equal to Ex(R0) whenR →R0

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 9 / 32

(38)

GoI from the Danos-Regnier point of view

Sketch of Definition

We callGeometry of Interactionfor a logical systemLa family of weighting functions wR for allR∈ L targetting the same imz and such that:

ϕpersistent ⇐⇒ ϕregular

LetC[M] be theC-algebra generated by M where the zero of M is also the zero of the algebra (its closure is aC?-algebra)

For anyR we can define Ex(R) =P

ϕ∈P(R)w(ϕ)

We recover the standard definition of the geometry of interaction.

Ex(R) is not necessarily equal to Ex(R0) whenR→R0

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 9 / 32

(39)

Outline

1 The Danos-Regnier theory

2 An involved example withλ-terms

3 Towards a theory of meaning

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 10 / 32

(40)

Nets for λ-calculus

We are going to representλ-calculus via a translation into MELL proofnets

MELL proofnets are going to be presented via a mix between sharing graphs (i.e. numbered interaction nets) and Regnier’s new syntax for MELL proofnets

This syntax is a simplification for studying GoI without dealing with unnecessary issues.

Disclaimer: it might be a little technical. . .

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 11 / 32

(41)

Nets for λ-calculus

We are going to representλ-calculus via a translation into MELL proofnets MELL proofnets are going to be presented via a mix between sharing graphs (i.e. numbered interaction nets) and Regnier’s new syntax for MELL proofnets

This syntax is a simplification for studying GoI without dealing with unnecessary issues.

Disclaimer: it might be a little technical. . .

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 11 / 32

(42)

Nets for λ-calculus

We are going to representλ-calculus via a translation into MELL proofnets MELL proofnets are going to be presented via a mix between sharing graphs (i.e. numbered interaction nets) and Regnier’s new syntax for MELL proofnets

This syntax is a simplification for studying GoI without dealing with unnecessary issues.

Disclaimer: it might be a little technical. . .

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 11 / 32

(43)

Nets for λ-calculus

We are going to representλ-calculus via a translation into MELL proofnets MELL proofnets are going to be presented via a mix between sharing graphs (i.e. numbered interaction nets) and Regnier’s new syntax for MELL proofnets

This syntax is a simplification for studying GoI without dealing with unnecessary issues.

Disclaimer: it might be a little technical. . .

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 11 / 32

(44)

The translation

We construct nets made from numbered cells:

n λ @ x

n n n

wheren∈Nis called the level andx is aλ-calculus variable.

Fort aλ-term, FVo(t) = the set of occurrences of free variables int. For anyn∈Nandλ-termt we build a net [t]n with a one-to-one labelling of conclusions byFVo(t)∪ {•}.

The translation oft will be the net [t] = [t]0.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 12 / 32

(45)

The translation

We construct nets made from numbered cells:

n λ @ x

n n n

wheren∈Nis called the level andx is aλ-calculus variable.

Fort aλ-term, FVo(t) = the set of occurrences of free variables int.

For anyn∈Nandλ-termt we build a net [t]n with a one-to-one labelling of conclusions byFVo(t)∪ {•}.

The translation oft will be the net [t] = [t]0.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 12 / 32

(46)

The translation

We construct nets made from numbered cells:

n λ @ x

n n n

wheren∈Nis called the level andx is aλ-calculus variable.

Fort aλ-term, FVo(t) = the set of occurrences of free variables int.

For anyn∈Nandλ-termt we build a net [t]n with a one-to-one labelling of conclusions byFVo(t)∪ {•}.

The translation oft will be the net [t] = [t]0.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 12 / 32

(47)

The translation

We construct nets made from numbered cells:

n λ @ x

n n n

wheren∈Nis called the level andx is aλ-calculus variable.

Fort aλ-term, FVo(t) = the set of occurrences of free variables int.

For anyn∈Nandλ-termt we build a net [t]n with a one-to-one labelling of conclusions byFVo(t)∪ {•}.

The translation oft will be the net [t] = [t]0.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 12 / 32

(48)

The translation

variable [x]n=

x •

n

abstraction [λx.u]n=

• [u]n

. . . . . .

FVo(u)occx(u)

x λ

• n

n

where we have collected all free occurrences of x. application [(u)v]= [v]n+1 [u]n

@ . . .

FVo(v)

. . . FVo(u)

• •

• n

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 13 / 32

(49)

The translation

variable [x]n=

x •

n

abstraction [λx.u]n=

• [u]n

. . . . . .

FVo(u)occx(u)

x λ

• n

n

where we have collected all free occurrences of x.

application [(u)v]= [v]n+1 [u]n

@ . . .

FVo(v)

. . . FVo(u)

• •

• n

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 13 / 32

(50)

The translation

variable [x]n=

x •

n

abstraction [λx.u]n=

• [u]n

. . . . . .

FVo(u)occx(u)

x λ

• n

n

where we have collected all free occurrences of x.

application [(u)v]= [v]n+1 [u]n

@ . . .

FVo(v)

. . . FVo(u)

• •

• n

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 13 / 32

(51)

Some examples

nth Church integer: n=λf.λx.(f)nx

[λx.x] = λ x

0

• 0 0

, [0] = [λf.λx.x] = λ λ f

x

0 0 0 0

0

• ,

[1] = [λf.λx.(f)x] = λ λ f

x

0 0 0 0

@ 0 0 0

, [2] = λ

λ f

x

0 0 0 0

@ @

0

1 2

0 1

, . . .

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 14 / 32

(52)

Reduction

We can mimicβ-reduction with a big-step reduction coming from MELL proofnets.

To do so we need to rebuild boxes: connected components of a minimum level.

We can define in an obvious way paths and their reductions.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 15 / 32

(53)

The weighting imz

Let M be the imz generated

by constants: {p,q} ∪ {xn,c , x∈V,n,c∈N} a morphism !

and relations:

p?p=q?q= 1 q?p=p?q= 0 xi,c? xj,dijδcd

!(u)xi,c =xi,c!c(u),∀u∈M We define a weighting of paths with

λ @ x

n n n

l1 lm

where ci =li−n

!n(p) !n(q) !n(q) !n(p) !n(x1,c1) !n(xm,cm)

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 16 / 32

(54)

Bentobako semantics

Abentobakois a finite sequence of elements of the form 0, 1 orxi[b] where x∈V,i∈Nandbis a bentobako.

We writea◦bfor the concatenate ofaandb,

ifb=e1,· · ·,en,en+1,· · ·,em, we write bn=e1,· · ·,en and bn=en+1,· · ·,em.

We interpret weights by partial and reversible operations on bentobakos. p(b) = 0◦b,q(b) = 1◦b

xi,c(b) =xi[bc]◦bc

!n(w)(b) =bn◦w(bn)

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 17 / 32

(55)

Bentobako semantics

Abentobakois a finite sequence of elements of the form 0, 1 orxi[b] where x∈V,i∈Nandbis a bentobako.

We writea◦bfor the concatenate ofaandb,

ifb=e1,· · ·,en,en+1,· · ·,em, we write bn=e1,· · ·,en and bn=en+1,· · ·,em.

We interpret weights by partial and reversible operations on bentobakos. p(b) = 0◦b,q(b) = 1◦b

xi,c(b) =xi[bc]◦bc

!n(w)(b) =bn◦w(bn)

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 17 / 32

(56)

Bentobako semantics

Abentobakois a finite sequence of elements of the form 0, 1 orxi[b] where x∈V,i∈Nandbis a bentobako.

We writea◦bfor the concatenate ofaandb,

ifb=e1,· · ·,en,en+1,· · ·,em, we write bn=e1,· · ·,en and bn=en+1,· · ·,em.

We interpret weights by partial and reversible operations on bentobakos. p(b) = 0◦b,q(b) = 1◦b

xi,c(b) =xi[bc]◦bc

!n(w)(b) =bn◦w(bn)

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 17 / 32

(57)

Bentobako semantics

Abentobakois a finite sequence of elements of the form 0, 1 orxi[b] where x∈V,i∈Nandbis a bentobako.

We writea◦bfor the concatenate ofaandb,

ifb=e1,· · ·,en,en+1,· · ·,em, we write bn=e1,· · ·,en and bn=en+1,· · ·,em.

We interpret weights by partial and reversible operations on bentobakos.

p(b) = 0◦b,q(b) = 1◦b xi,c(b) =xi[bc]◦bc

!n(w)(b) =bn◦w(bn)

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 17 / 32

(58)

Bentobako semantics

Abentobakois a finite sequence of elements of the form 0, 1 orxi[b] where x∈V,i∈Nandbis a bentobako.

We writea◦bfor the concatenate ofaandb,

ifb=e1,· · ·,en,en+1,· · ·,em, we write bn=e1,· · ·,en and bn=en+1,· · ·,em.

We interpret weights by partial and reversible operations on bentobakos.

p(b) = 0◦b,q(b) = 1◦b

xi,c(b) =xi[bc]◦bc

!n(w)(b) =bn◦w(bn)

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 17 / 32

(59)

Bentobako semantics

Abentobakois a finite sequence of elements of the form 0, 1 orxi[b] where x∈V,i∈Nandbis a bentobako.

We writea◦bfor the concatenate ofaandb,

ifb=e1,· · ·,en,en+1,· · ·,em, we write bn=e1,· · ·,en and bn=en+1,· · ·,em.

We interpret weights by partial and reversible operations on bentobakos.

p(b) = 0◦b,q(b) = 1◦b xi,c(b) =xi[bc]◦bc

!n(w)(b) =bn◦w(bn)

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 17 / 32

(60)

Bentobako semantics

Abentobakois a finite sequence of elements of the form 0, 1 orxi[b] where x∈V,i∈Nandbis a bentobako.

We writea◦bfor the concatenate ofaandb,

ifb=e1,· · ·,en,en+1,· · ·,em, we write bn=e1,· · ·,en and bn=en+1,· · ·,em.

We interpret weights by partial and reversible operations on bentobakos.

p(b) = 0◦b,q(b) = 1◦b xi,c(b) =xi[bc]◦bc

!n(w)(b) =bn◦w(bn)

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 17 / 32

(61)

Example: λx .x

[λx.x] = λ x

0

• 0 0

Two regular paths of weights: i=px1,0q?

andi?=qx1,0? p?.

Operations: i(1◦b) = 0◦x1[]◦bandi?(0◦x1[]◦b) = 1◦b.

The number of regular paths is always even. We will only present half of them.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 18 / 32

(62)

Example: λx .x

[λx.x] = λ x

0

• 0 0

Two regular paths of weights: i =px1,0q?

andi?=qx1,0? p?. Operations: i(1◦b) = 0◦x1[]◦bandi?(0◦x1[]◦b) = 1◦b.

The number of regular paths is always even. We will only present half of them.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 18 / 32

(63)

Example: λx .x

[λx.x] = λ x

0

• 0 0

Two regular paths of weights: i =px1,0q? andi?=qx1,0? p?.

Operations: i(1◦b) = 0◦x1[]◦bandi?(0◦x1[]◦b) = 1◦b.

The number of regular paths is always even. We will only present half of them.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 18 / 32

(64)

Example: λx .x

[λx.x] = λ x

0

• 0 0

Two regular paths of weights: i =px1,0q? andi?=qx1,0? p?. Operations: i(1◦b) = 0◦x1[]◦bandi?(0◦x1[]◦b) = 1◦b.

The number of regular paths is always even. We will only present half of them.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 18 / 32

(65)

Example: λx .x

[λx.x] = λ x

0

• 0 0

Two regular paths of weights: i =px1,0q? andi?=qx1,0? p?. Operations: i(1◦b) = 0◦x1[]◦bandi?(0◦x1[]◦b) = 1◦b.

The number of regular paths is always even. We will only present half of them.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 18 / 32

(66)

Example: (λx.x )λx .x

[(λx.x)λx.x] = λ

x

@ λ x

0 1

0 0 0

1 1

1◦b−→q 1◦1◦b−→i 0◦x1[]◦1◦b

p?

−→x1[]◦1◦b−−→!(i) x1[]◦0◦x1[]◦b−→p 0◦x1[]◦0◦x1[]◦b

i?

−→1◦0◦x1[]◦b q

?

−→0◦x1[]◦b

q?i?p!(i)p?iq=q?qx1,0? p?p!(px1,0q?)p?px1,0q?q=x1,0? !(px1,0q?)x1,0= px1,0q?x1,0? x1,0=i

The two methods are equivalent thanks to

Lemma (Danos-Regnier)

If w and w0 are weights of paths in aλ-term then w=w0 ⇐⇒ w=w0

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 19 / 32

(67)

Example: (λx.x )t

Direct generalization of the previous case.

[(λx.x)t] = λ

x

@

0

• t

0 0 0

1

For any path of weightw in t, we have:

b p

?iq

−−→x1[]◦b−−→!(w) x1[]◦w(b) =q

?i?p

−−−→w(b)

q?i?p!(w)p?iq=q?qx1,0? p?p!(w)p?px1,0q?q=x1,0? !(w)x1,0=wx1,0? x1,0=w

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 20 / 32

(68)

Example: (λx.x )t

Finding the meaning ofi=px1,0q?. Interactive procedure:

• •

• •

• •

• •

i

i?

b 1◦b

0◦x1[]◦b x1[]◦b

x1[]◦w(b)

1◦w(b) 0◦x1[]◦w(b) w(b)

λx.x acts as a perfect intermediary, it prepends and postpends any path, in a reversible way.

During computation each part of the token has a meaning:

1 ◦ b→ 0 ◦ x1[] ◦ b Query for value

Query for argument value Internal state

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 21 / 32

(69)

Example: 2

[2] = λ

λ f

x

0 0 0 0

@ @

0

1 2

0 1

Regular weights: ws =pf1,0qq?q?,wi =pf2,1!(q)p?f1,0? p?, we =qpx0,2!(p?)f2,1? p?

Operations: ws(1◦1◦b) = 0◦f1[]◦1◦b, wi(0◦f1[]◦0◦e◦b) = 0◦f2[e]◦1◦b we(0◦f2[e]◦0◦e0◦b) = 1◦0◦x1[e,e0]◦b

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 22 / 32

(70)

Example: (2)t

ws

wi

we

t

t0

1◦b 1◦1◦b 0◦f1[]◦1◦b f1[]◦1◦b

f1[]◦0◦α◦b0 0◦f1[]◦0◦α◦b0 0◦f2[α]◦1◦b0 f2[α]◦1◦b0

f2[α]◦0◦β◦b00 0◦f2[α]◦0◦β◦b00 1◦0◦x1[α, β]◦b00 0◦x1[α, β]◦b00

Paths int are expected to be of the shape 1◦b→0◦σ◦b0.

This is the case whent is a function answering to a query by querying the value of its argument.

λx.x and 2 are of this kind.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 23 / 32

(71)

Example: (2)λz .z

ws

wi

we i

i

1◦b 1◦1◦b 0◦f1[]◦1◦b f1[]◦1◦b

f1[]◦0◦z1[]◦b 0◦f1[]◦0◦z1[]◦b 0◦f2[z1[]]◦1◦b f2[z1[]]◦1◦b

f2[z1[]]◦0◦z1[]◦b 0◦f2[z1[]]◦0◦z1[]◦b 1◦0◦x1[z1[],z1[]]◦b 0◦x1[z1[],z1[]]◦b

(2)λz.z →λx.(λz.z)(λz.z)x→2λx.x px1,2z1,0z1,0q?is different fromi=px1,0q?. But they have the same meaning!

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 24 / 32

(72)

Example: (2)2

ws

wi

we

we

we

1◦1◦b 1◦1◦1◦b 0◦f1[]◦1◦1◦b f1[]◦1◦1◦b

f1[]◦0◦f1[]◦1◦b 0◦f1[]◦0◦f1[]◦1◦b 0◦f2[f1[]]◦1◦1◦b f2[f1[]]◦1◦1◦b

f2[f1[]]◦0◦f1[]◦1◦b 0◦f2[f1[]]◦0◦f1[]◦1◦b 1◦0◦x1[f1[],f1[]]◦1◦b 0◦x1[f1[],f1[]]◦1◦b

Computation: q?wep!(ws)p?wip!(ws)p?wsq Weight: wss =px1,2f1,0f1,0qq?q?

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 25 / 32

(73)

Example: (2)2

I Computation: q?wep!(ws)p?wip!(ws)p?wsq

I Weight: wss =px1,2f1,0f1,0qq?q?

I Operation: 1◦1◦b→0◦x1[f1[],f1[]]◦1◦b

The other paths are a lot more complicated. Let’s use a program!

I Computation: q?wep!(wi)p?we?q

I Weight: w.i=px1,2!(f2,1!(q)p?f1,0?)x1,2? p?

I Operation: 0◦x1[α,f1[]]◦0◦β◦b→0◦x1[α,f2[β]]◦1◦b

I Computation: q?wep!(ws)p?wip!(wi)p?wi?p!(we)p?we?q

I Weight: wi.=px1,2f2,1x1,2!(!(f1,0q)p?)f2,1?f1,0?x1,2? p?.

I Operation: 0◦x1[f1[],f2[α]]◦0◦β◦b→0◦x1[f2[x1[α, β]],f1[]]◦1◦b

I Computation: q?ws?p!(we)p?wi?p!(we)p?we?q

I Weight: wee =qpx1,2!(x1,2!(p?)f2,1?)f2,1?x1,2? p?

I Operation: 0◦x1[f2[α],f2[β]]◦0◦γ◦b→1◦0◦x1[α,x1[β, γ]]◦b

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 26 / 32

(74)

Example: 4

vs =pf1,0qq?q?, 1◦1◦b→0◦f1[]◦1◦b

vi1=pf2,1!(q)p?f1,0? p?, 0◦f1[]◦0◦α◦b→0◦f2[α]◦1◦b vi2=pf3,2!(!(q)p?)f2,1? p?, 0◦f2[α]◦0◦β◦b→0◦f3[α, β]◦1◦b vi3=pf4,3!2(!(q)p?)f3,2? p?, 0◦f3[α, β]◦0◦γ◦b→0◦f4[α, β, γ]◦1◦b ve=qpx1,4!3(p?)f4,3? p?, 0◦f4[α, β, γ]◦0◦δ◦b→1◦0◦x1[α, β, γ, δ]◦b It has the same meaning as (2)2 while using an extra path: w.i is a compression ofvi1andvi3.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 27 / 32

(75)

General situation

Theorem

There are4 + 2n(n−1)regular paths in (n)n of weight:

σn=px1,nf1,0n qq?q? for k<n−1 and l ≤n−1:

ιn(k,l) =px1,n!n−l−1(fk+2,k+1!kl(!(f1,0l q)p?))fk+1,k? )x1,n? p? n=qpβn(p?)x1,n? p?

withβ(w) =x1,n!n−1(w)fn,n−1? . Sketch of proof:

Show that there exists regular paths of these weights by computation.

Show that they are the only ones by showing that there is no room for others in a semantics.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 28 / 32

(76)

Outline

1 The Danos-Regnier theory

2 An involved example withλ-terms

3 Towards a theory of meaning

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 29 / 32

(77)

What is the meaning of weights

From the previous example we have a candidate notion for the meaning.

Sketch of definition

E,F ⊆M, we haveE ∼F if they lead to the same kind of computations.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 30 / 32

(78)

First try at a definition

What we would like to define as having the same meaning:

Definition

LetE,F ⊆M be self-dual, we say thatE ∼F when for allg ∈M there exists a bijective function from{e∈E , eg 6= 0}to{f ∈F , fg6= 0}

Unfortunately it is too restrictive becauseg can be anything:

i=px1,0q? j=px1,2z1,0z1,0q?

Takeg =px1,0, we havei?g,ig6= 0 but j?g = 0.

So{i,i?} 6∼ {j,j?}.

The problem comes from the fact thatg can never appear in the context of λ-terms.

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 31 / 32

(79)

A proper definition for λ-caclulus

Lemma

Let t be aλ-term and Chia context with one hole. For all pathϕin Chti, long enough with respect to t, there is a function of maximal arity fϕ: Mn→Msuch that there exists e1,· · ·,en∈Ex([t])withw(ϕ) =fϕ(e1,· · ·,en).

Definition

Lett andt beλ-term andChia context with one hole. We say thatt ≤t0 when for allϕinChti, long enough with respect to t, there existse10,· · · ,en0 ∈Ex([t0]) such that

fϕ(e1,· · ·,en) = 0 ⇐⇒ fϕ(e10,· · ·,en0) = 0 t ∼t0 whent ≤t0 andt0 ≤t

Can we decide this relation?

Ist∼t0 implying that there existst0such thatt →t0 andt0t0?

Marc de Falco (IML) On the Meaning of Algebraic Weights GTI Workshop, Kyoto 32 / 32

参照

関連したドキュメント

This, together with the observations on action calculi and acyclic sharing theories, immediately implies that the models of a reflexive action calculus are given by models of

We recall here the de®nition of some basic elements of the (punctured) mapping class group, the Dehn twists, the semitwists and the braid twists, which play an important.. role in

In fact in order to show that Condorcet rankings are medians we are going to use a more general notion of median namely the notion of metric median in a metric space.. I begin by

Theorem 4.8 shows that the addition of the nonlocal term to local diffusion pro- duces similar early pattern results when compared to the pure local case considered in [33].. Lemma

Using the multi-scale convergence method, we derive a homogenization result whose limit problem is defined on a fixed domain and is of the same type as the problem with

Now we are going to construct the Leech lattice and one of the Niemeier lattices by using a higher power residue code of length 8 over Z 4 [ω].. We are going to use the same action

The idea of applying (implicit) Runge-Kutta methods to a reformulated form instead of DAEs of standard form was first proposed in [11, 12], and it is shown that the

Going back to the packing property or more gener- ally to the λ-packing property, it is of interest to answer the following question: Given a graph embedding G and a positive number