68
Proof-nets and semantic applications Alain Lecomte ESSLLI2002

Proof-nets and semantic applications

  • Upload
    emmly

  • View
    20

  • Download
    0

Embed Size (px)

DESCRIPTION

Proof-nets and semantic applications. Alain Lecomte ESSLLI2002. e+. t-. e-. t+. child. Semantic proof nets. child. x:e, child: e t |- child(x) : t hence : child: et |- x.child(x):e t. run :. e+. t-. x. e-. t+.  x. child. run :. e+. t-. x. e-. t+.  x. child. - PowerPoint PPT Presentation

Citation preview

Page 1: Proof-nets and semantic applications

Proof-nets and semantic applications

Alain Lecomte

ESSLLI2002

Page 2: Proof-nets and semantic applications

Semantic proof nets

• child

child

e+ t- e- t+

x:e, child: et |- child(x) : thence : child: et |- x.child(x):et

Page 3: Proof-nets and semantic applications

• run :

child

e+ t- e- t+

x

x

Page 4: Proof-nets and semantic applications

• run :

child

e+ t- e- t+

x

x

Page 5: Proof-nets and semantic applications

• run :

child

e+ t- e- t+

x

x

Page 6: Proof-nets and semantic applications

• run :

child

e+ t- e- t+

x

x

x.child(x)

x

Page 7: Proof-nets and semantic applications

• run :

child

e+ t- e- t+

x

x

x.child(x)

x

Page 8: Proof-nets and semantic applications

each, every…

• A determiner like every, each… decomposes into :– A quantifier, for instance : type : (et)t– A connective, for instance :type : t(tt)

Page 9: Proof-nets and semantic applications

• needs two predicates (e t) for obtaining one proposition (t)

• A determiner is therefore of type

(et)((et)t)

Page 10: Proof-nets and semantic applications

• A determiner is therefore associated with a sequent:

• Its « semantic » is represented by its proof

))(()()(),( ttetettettt

Page 11: Proof-nets and semantic applications

deduction

))(()()(),(

)()(),(,)(),(,,

)(,,)(,,,)(,,,,)(,,,)(,,

,

ttetettettt

ttettettttetttettttete

tttettttetettttteteettttteteeetttttetetttttttttttttt

ttee

ee

C

Page 12: Proof-nets and semantic applications

remark

• With a very remarkable step : an application of the contraction rule!

necessity of working inside Intuitionistic linear logic with exponentials

• The exact sequent which encodes the determiner is :

))(()()(),( ttttt!ettt --o |-- --o--o --o--o --o--o--o !e!e

Page 13: Proof-nets and semantic applications

Exponentials

CA

AA

!,

!,!,

DA

A

!,

,

WA

!,

Page 14: Proof-nets and semantic applications

Exponentials (one-sided)

CA

AA

?,

?,?,

DA

A

?,

,

WA?,

Page 15: Proof-nets and semantic applications

Representation of the proof

c

(!e –o t) –o ((!e –o t) –o t)

Page 16: Proof-nets and semantic applications

every child

c

child (!e –o t) –o t

Page 17: Proof-nets and semantic applications

every child likes to play

c

child

likes to play

t

Page 18: Proof-nets and semantic applications

Application

A –o B +

A+- +

Page 19: Proof-nets and semantic applications

Application

A - B +

Page 20: Proof-nets and semantic applications

Abstraction

A +B -

Page 21: Proof-nets and semantic applications

Abstraction

A +B -

B –o A +

Page 22: Proof-nets and semantic applications

Syntactic proof-nets

• Proof-nets for Lambek calculus

• Like PN for MILL +– condition on semi-planarity

Page 23: Proof-nets and semantic applications

every child plays1) unfolding

(s/(np\s))/n -every

n -child

np\s -plays

s +

(s/(np\s)) - n + s -np +

s - np\s +

np -s+

Page 24: Proof-nets and semantic applications

every child plays2) links

(s/(np\s))/n -every

n -child

np\s -plays

s +

(s/(np\s)) - n + s -np +

s - np\s +

np -s+

Page 25: Proof-nets and semantic applications

Attention!

2) links

(s/(np\s))/n -every

n -child

np\s -plays

s +

(s/(np\s)) - n + s -np +

s - np\s +

np -s+ WRONG !

Page 26: Proof-nets and semantic applications

Parsing

• through homomorphism– H(s) = t– H(np) = !e– H(n) = !e –o t– H(A/B) = H(B\A) = H(B) –o H(A)

Page 27: Proof-nets and semantic applications

every child plays

(s/(np\s))/n -every

n -child

np\s -plays

s +

(s/(np\s)) - n + s -np +

s - np\s +

np -s+

Page 28: Proof-nets and semantic applications

every child plays3) homomorphism

(!e –o t) –o ((!e –o t) –ot))every

!e –o tchild

!e –o tplays

t+

(!e –o t) –o t !e –o t t!e

t !e –o t +

!et

Page 29: Proof-nets and semantic applications

• semantic recipes– child : x.child(x) – every : P.Q.(x.(P(x)Q(x))– plays : x.play(x)

Page 30: Proof-nets and semantic applications

• represented by proof-nets :

child

e+ t- !e- t+d

Page 31: Proof-nets and semantic applications

• represented by proof-nets :

plays

e+ t- !e- t+d

Page 32: Proof-nets and semantic applications

every

c

(!e –o t) –o ((!e –o t) –o t)

Page 33: Proof-nets and semantic applications

plugging lexical semantic types to the homomorphic PN by cut

Page 34: Proof-nets and semantic applications

(!e –o t) –o ((!e –o t) –ot))every

!e –o tchild

!e –o tplays

t+

(!e –o t) –o t !e –o t t!e

t !e –o t +

!et

child

e+ t- !e- t+d

CUT

Page 35: Proof-nets and semantic applications

(!e –o t) –o ((!e –o t) –ot))every

!e –o tplays

t+

(!e –o t) –o t t!e

t !e –o t +

!et

child

d

!e t

Page 36: Proof-nets and semantic applications

(!e –o t) –o ((!e –o t) –ot))every

!e –o tplays

t+

(!e –o t) –o t t!e

t !e –o t +

!et

child

d

!e t

plays

e+ t- !e- t+d

CUT

Page 37: Proof-nets and semantic applications

(!e –o t) –o ((!e –o t) –ot))every

plays t+

(!e –o t) –o t t!e

t !e –o t +

!et

child

d

!e t

d

Page 38: Proof-nets and semantic applications

(!e –o t) –o ((!e –o t) –ot))every

plays t+

(!e –o t) –o t t!e

t !e –o t +

!et

child

d

!e t

d

PNevery

CUT

Page 39: Proof-nets and semantic applications

plays t+

t!e

child

d

d

c

Page 40: Proof-nets and semantic applications

plays t+

t!e

child

d

d

c

Page 41: Proof-nets and semantic applications

plays t+

t!e

child

d

d

c

Page 42: Proof-nets and semantic applications

plays t+

t!e

child

d

d

c

x

Page 43: Proof-nets and semantic applications

plays t+

t!e

child

d

d

c

x

Page 44: Proof-nets and semantic applications

plays t+

t!e

child

d

d

c

x

plays

Page 45: Proof-nets and semantic applications

plays t+

t!e

child

d

d

c

x

plays

child

Page 46: Proof-nets and semantic applications

plays t+

t!e

child

d

d

c

x

plays

child

child(x)

Page 47: Proof-nets and semantic applications

plays t+

t!e

child

d

d

c

x

plays

child

child(x)

plays(x)

(x.((child(x),plays(x))))

Page 48: Proof-nets and semantic applications

Logical synthesis:from a formula to a sentence

• the reverse story:

• Start : – a semantic formula – + semantic recipes for lexical entries 1, 2, …

n

• Goal:– A sentence using all these recipes the

meaning of which is

Page 49: Proof-nets and semantic applications

Usual solutions:-term unification

Peter : np : p

kisses : (np\s)/np: x.y.kiss(y,x)

Mary :np : m

?s:kiss(p,m)

GOAL

Page 50: Proof-nets and semantic applications

Peter : np- : p

kisses : (np\s)/np: x.y.kiss(y,x)

Mary :np- : m

?s:kiss(p,m)

np+

s-np+

y.kiss(y, )

kiss(,)

Page 51: Proof-nets and semantic applications

Peter : np- : p

kisses : (np\s)/np: x.y.kiss(y,x)

Mary :np- : m

?s:kiss(p,m)

np+

s-np+

kiss(,)

y.kiss(y, )

Page 52: Proof-nets and semantic applications

Peter : np- : p

kisses : (np\s)/np: x.y.kiss(y,x)

Mary :np- : m

?s:kiss(p,m)

np+

s-np+

kiss(,) = kiss(p,m) = m; = p

kiss(,)

y.kiss(y, )

Page 53: Proof-nets and semantic applications

Peter : np- : p

kisses : (np\s)/np: x.y.kiss(y,x)

Mary :np- : m

?s:kiss(p,m)

np+

s-np+

kiss(,) = kiss(p,m) = m; = p

y.kiss(y, )

kiss(,)

= m

Page 54: Proof-nets and semantic applications

Peter : np- : p

kisses : (np\s)/np: x.y.kiss(y,x)

Mary :np- : m

?s:kiss(p,m)

np+

s-np+

kiss(,) = kiss(p,m) = m; = p

y.kiss(y, )

kiss(,)

= m

= p

Page 55: Proof-nets and semantic applications

Peter : np- : p

kisses : (np\s)/np: x.y.kiss(y,x)

Mary :np- : m

?s:kiss(p,m)

np+

s-np+

kiss(,) = kiss(p,m) = m; = p

y.kiss(y, )

kiss(,)

= m

= p

The net is a proof-net for L, therefore the correct sentence is Peter kisses Mary

Page 56: Proof-nets and semantic applications

But…

• Non decidability for second order

• xf = f(fa) …? – no mgu– two incomparable solutions:

z.z(fa)z.f(za)

Page 57: Proof-nets and semantic applications

the use of PN

• Generation (or « synthesis ») =

research of a proof in L (which is decidable!), helped by a semantic form

Page 58: Proof-nets and semantic applications

The problem

• Find PNL such that:

– plug by cuts : lexical PNs PN1, PN2, …PNn

– cut-elimination

– Given PN

Page 59: Proof-nets and semantic applications

APNL

?

T1 T2 Tn

Page 60: Proof-nets and semantic applications

AH(PNL)

?

HT1 HT2 HTnPN1

PN2

PNn

CUT

CUT

CUT

Page 61: Proof-nets and semantic applications

PN

Page 62: Proof-nets and semantic applications

the execution formula

• Let P be a PN, U the set of its axiom links, the set of its cut links

• u : incidence matrix of U : incidence matrix of

Page 63: Proof-nets and semantic applications

Cut elimination between axioms

e1 e2 e3 e4 e1 e2 e3 e4

|- X, X |- X, X CUT

|- X, X

e1 e2 e3 e4

Page 64: Proof-nets and semantic applications

• after a first step of cut-elimination on axioms : u replaced by uu

• links coming from cut-elimination of level 1:

• To suppress all the links the premisses of which are premisses of a new cut and all the links which had no incident cut:

• uu - 2uu - uu2 + 2u2

= (1- 2)uu(1- 2)

Page 65: Proof-nets and semantic applications

• Idem for links coming from elimination of level 2, 3, …, n, … cuts

• Resulting graph after cut-elimination:

1

22 )1)()(1()1(),(Rek

kuuus

Page 66: Proof-nets and semantic applications

U

?

HT1 HT2 HTnPN1

PN2

PNn

CUT

CUT

CUT

Page 67: Proof-nets and semantic applications

Res(U,)

Page 68: Proof-nets and semantic applications

• U can be calculated from Res(U,) and • Cf. PhD thesis by Sylvain POGODALLA

• http://www.xrce.xerox.com/~pogodalla

• Condition : that each lexical semantics contain at least one constant which intervenes in the global semantic representation.