60
But… Why not to have a syntax built on the same principles as those of semantic composition?

But… Why not to have a syntax built on the same principles as those of semantic composition?

Embed Size (px)

Citation preview

Page 1: But… Why not to have a syntax built on the same principles as those of semantic composition?

But…

Why not to have a syntax built on the same principles as those of

semantic composition?

Page 2: But… Why not to have a syntax built on the same principles as those of semantic composition?

syntactic categories

• a, an : np/n

• very : (n/n)/(n/n)

• young : n/n

• student, sonata : n

• plays : (np\s)/np

Page 3: But… Why not to have a syntax built on the same principles as those of semantic composition?

A very young student plays a sonata

np/n(n/n)/(n/n)

n/nn

(np\s)/npnp/n n

np

np\sn/n

n

np

s

Page 4: But… Why not to have a syntax built on the same principles as those of semantic composition?

Reduction rules

• Right cancellation

• Left cancellation

ABBA /

AABB \

Page 5: But… Why not to have a syntax built on the same principles as those of semantic composition?

Definition of syntactic types

• Primitive types:

ex: np, n, s… (a finite set)

• Complex types:

if A and B are types,

- A/B is a type

- B\A is a type

Page 6: But… Why not to have a syntax built on the same principles as those of semantic composition?

learning of categories

• Start : ‘marie’ ::= np, ‘marie dort’ ::= s

• Marie dort s

np s

Page 7: But… Why not to have a syntax built on the same principles as those of semantic composition?

• Start : ‘marie’ ::= np, ‘marie dort’ ::= s

• Marie dort s

np np\s s

Page 8: But… Why not to have a syntax built on the same principles as those of semantic composition?

• dort profondément np\s

np\s np\s

Page 9: But… Why not to have a syntax built on the same principles as those of semantic composition?

• dort profondément np\s

np\s (np\s)\(np\s) np\s

• une femme dort profondément s

np\s

Page 10: But… Why not to have a syntax built on the same principles as those of semantic composition?

• dort profondément np\s

np\s (np\s)\(np\s) np\s

• une femme dort profondément s

np np\s

Page 11: But… Why not to have a syntax built on the same principles as those of semantic composition?

• dort profondément np\s

np\s (np\s)\(np\s) np\s

• une femme dort profondément s

s/(np\s) np\s

Page 12: But… Why not to have a syntax built on the same principles as those of semantic composition?

functional interprétation

B/A or A\B : functions from A to B

BxfalorsAxetBAf

,:

CAfgalorsCBgetBAf :,::

B/A A B

C/B B/A C/A

Page 13: But… Why not to have a syntax built on the same principles as those of semantic composition?

other rules

• «type raising»:

• associativity

• composition

)\/( BABA BABA \)/(

)/(\/)\( CBACBA

CACBBA /// ACABBC \\\

Page 14: But… Why not to have a syntax built on the same principles as those of semantic composition?

Natural Deduction

/ - elimination:

/- introduction:

A/B B

A

[B]i

Ai

A/B

Page 15: But… Why not to have a syntax built on the same principles as those of semantic composition?

[B] : hypothesis labelled n°i

[B]i

Ai

A/B : the hypothesis n°i is discharged

Page 16: But… Why not to have a syntax built on the same principles as those of semantic composition?

Example:« type-raising »

)\(/ BABA

A [A\B]1

B

B/(A\B)1

Page 17: But… Why not to have a syntax built on the same principles as those of semantic composition?

Le livre que Pierre litsn/n n (n\n)/(s/sn) sn (sn\s)/sn [sn]1

sn\s

s

n\n

nsn

1s/sn

Page 18: But… Why not to have a syntax built on the same principles as those of semantic composition?

but…

• natural deductions are precisely -terms !

Page 19: But… Why not to have a syntax built on the same principles as those of semantic composition?

f : A/B :B

f():A

[x:B]i

u:A ix.u:A/B

Page 20: But… Why not to have a syntax built on the same principles as those of semantic composition?

Pierre lit Tintin

p:sn :(sn\s)/sn snx.y.lit(y,x) t:

x.y.lit(y,x))(t): sn\sy.lit(y,t)

y.lit(y,t))(p): slit(p,t)

Page 21: But… Why not to have a syntax built on the same principles as those of semantic composition?

Pierre lit un livre(Peter reads a book)

ns)/\sn)/((s:..

xvxuxvuun

n:. xlivrexlivre

Page 22: But… Why not to have a syntax built on the same principles as those of semantic composition?

ns)/\sn)/((s:..

xvxuxvu n:. xlivrex

un livre(a book)

s\sn)/(s:..

xvxxlivrexxv

s\sn)/(s:.

xvxlivrexv

Page 23: But… Why not to have a syntax built on the same principles as those of semantic composition?

Pierre lit (Peter reads)p:sn x.y.lit(y, x): (sn\s)/sn [u: sn]1

y.lit(y, u): sn\s[v:sn]2

lit(v, u): s1

u.lit(v,u):s/sn2

v.u.lit(v,u):sn\(s/sn)

u.lit(p,u):s/sn

Page 24: But… Why not to have a syntax built on the same principles as those of semantic composition?

Pierre lit un livre

u.lit(p, u): s/sn s\sn)/(s:.

xvxlivrexv

s:,.

xuplituxlivrex

s:,

xplitxlivrex

Page 25: But… Why not to have a syntax built on the same principles as those of semantic composition?

Curry-Howard

deduction / or \ - elimination / or \ - introduction hypothesis discharged

hypothesis normalisation

-term application abstraction variable bound variable -reduction

Page 26: But… Why not to have a syntax built on the same principles as those of semantic composition?

Normalisation and -reduction

• A natural deduction is said to be normal whenever it does not contain an introduction rule followed by an elimination rule:

[A]

B/A A

B

B

Page 27: But… Why not to have a syntax built on the same principles as those of semantic composition?

Normalisation and -reduction

• A natural deduction is said to be normal whenever it does not contain an introduction rule followed by an elimination rule:

[A]

B/AB

BA

Page 28: But… Why not to have a syntax built on the same principles as those of semantic composition?

Normalisation and -reduction

• A natural deduction is said to be normal whenever it does not contain an introduction rule followed by an elimination rule:

[A]

B/AB

BA

B

[A]

Page 29: But… Why not to have a syntax built on the same principles as those of semantic composition?

Normalisation and -reduction

• A natural deduction is said to be normal whenever it does not contain an introduction rule followed by an elimination rule:

B/AB

[A]

BA

A

B

Page 30: But… Why not to have a syntax built on the same principles as those of semantic composition?

Normalisation and -reduction

B/AB

[A]

BA

A

B

(xA.’B A) ’B[A/xA]

Page 31: But… Why not to have a syntax built on the same principles as those of semantic composition?

sequent calculus

(intuitionist) sequent

BAAAA ni ,...,,...,, 21

antecedent consequent

Page 32: But… Why not to have a syntax built on the same principles as those of semantic composition?

To prove : C ,,, A/B

amounts to prove :

B

and then :

A C ,,

Page 33: But… Why not to have a syntax built on the same principles as those of semantic composition?

Lambek calculus(with product)

(sequents)

AA

CBACBA

,\,,,,

CABCBA

,,/,,,

BAAB/

,

ABAB\

,

CBACBA

,,,,,

BABA

,

CCAA

,,,,

Page 34: But… Why not to have a syntax built on the same principles as those of semantic composition?

A fundamental restriction:non empty antecedents

• a simple exercise

• a very simple exercise

• *a very exercise

npnnnnnp

npnnnpnpnpnn

nn

,/,/

,/

npnnnpnpnnnnnp

n

,nnnnnn /),//()/(,/,/,/

nnn ...nnnn //

,/

nn

,,,

npnnnpnpnnnnnp

nnnn ),//()/(///...

nn /

Page 35: But… Why not to have a syntax built on the same principles as those of semantic composition?

What sequent calculus reveals to us…

• cf. classical logic (some rules)

• (note the symmetries)

BA

BA

,

,,

',,,',

',',

BA

BA

',,',

',',

BA

BA

,

,,

BA

BA

',,',

',',

BA

BA

,

,,

BA

BA

Page 36: But… Why not to have a syntax built on the same principles as those of semantic composition?

• but also: (on the two sides)

• + axiom and cut-rule

',,,

',,,

AB

BA

',,

',,,

A

AA

A,

Permutation

Contraction

Weakening

Page 37: But… Why not to have a syntax built on the same principles as those of semantic composition?

Lambek calculus = intuitionistic logic WITHOUT A, C, P

Intuitionistic multiplicative linear logic

(+ restriction on non empty antecedents)

Page 38: But… Why not to have a syntax built on the same principles as those of semantic composition?

AA

subformula property

CC

,,,,,

CC

,,,,,

,

,

AA B BB/A

A/B

A\B

B\AAB AB

Page 39: But… Why not to have a syntax built on the same principles as those of semantic composition?

le livre que Pierre lit(the book that Peter reads)

snsnssnsnsnsnnnnsn /)\()//()\(/

le livre que Pierre lit

Page 40: But… Why not to have a syntax built on the same principles as those of semantic composition?

snsnssnsnsn)//(sn)\(nnnsn /)\(/

Page 41: But… Why not to have a syntax built on the same principles as those of semantic composition?

snsnssnsnnnsn /)\(/ sn)//(sn)\(n

sn\nnnnsnsn/ssnssnsn //)\(

Page 42: But… Why not to have a syntax built on the same principles as those of semantic composition?

snsnssnsnnnsn /)\(/ sn)//(sn)\(n

sn\nnnnsnsnssnsn //)\( sn/sssnsnssnsn /)\(

Page 43: But… Why not to have a syntax built on the same principles as those of semantic composition?

snsnssnsnnnsn /)\(/ sn)//(sn)\(n

sn\nnnnsnsnssnsn //)\( sn/sssnsn sns)/\(snsssnsnsnsn \

Page 44: But… Why not to have a syntax built on the same principles as those of semantic composition?

snsnssnsnnnsn /)\(/ sn)//(sn)\(n

sn\nnnnsnsnssnsn //)\( sn/sssnsn sns)/\(snssnsnsn s\sn

sssnsn

Page 45: But… Why not to have a syntax built on the same principles as those of semantic composition?

snsnssnsnnnsn /)\(/ sn)//(sn)\(n

snnnsnsnssnsn n\nsn/s //)\(ssnsn sns)/\(snssnsnsn s\sn

sssnsn

snnnsnnn /snsnnn

Page 46: But… Why not to have a syntax built on the same principles as those of semantic composition?

But…cut-rule

CC

,,,,A A

Page 47: But… Why not to have a syntax built on the same principles as those of semantic composition?

L {Cut} = L

Fortunately : Cut-elimination theorem

Page 48: But… Why not to have a syntax built on the same principles as those of semantic composition?

Labelled Lambek calculus

AxAx ::

CBAC BA

:,\:,,:,,:

:

BAAB/:::,

f f()

x ux.u

Page 49: But… Why not to have a syntax built on the same principles as those of semantic composition?

Pierre lit Tintin(Pierre reads Tintin)

ssnsnssnxyyxsn ::/)\(:),(..: ?tlitp

sssnxyyxsnsnsn :\:)(),(..::: ?tlitptt

Page 50: But… Why not to have a syntax built on the same principles as those of semantic composition?

Pierre lit Tintin

ssnsnssnxyyxsn ::/)\(:),(..: ?tlitp

sssnyysnsnsn :\:),(.::: ?tlitptt

ssyysnsn ::))(,(.:: ?ptlitpp

Page 51: But… Why not to have a syntax built on the same principles as those of semantic composition?

Pierre lit Tintin

ssnsnssnxyyxsn ::/)\(:),(..: ?tlitp

sssnyysnsnsn :\:),(.::: ?tlitptt

sssnsn ::),(:: ?tplitpp

Page 52: But… Why not to have a syntax built on the same principles as those of semantic composition?

Pierre lit Tintin

ssnsnssnxyyxsn ::/)\(:),(..: ?tlitp

sssnyysnsnsn :\:),(.::: ?tlitptt

sssnsn :),(:),(:: tplittplitpp

Page 53: But… Why not to have a syntax built on the same principles as those of semantic composition?

Pierre lit Tintin

ssnsnssnxyyxsn ::/)\(:),(..: ?tlitp

sssnyysnsnsn :\:),(.::: t)lit(p,tlitptt

sssnsn :),(:),(:: tplittplitpp

Page 54: But… Why not to have a syntax built on the same principles as those of semantic composition?

Pierre lit Tintin

ssnsnssnxyyxsn ::/)\(:),(..: t)lit(p,tlitp

sssnyysnsnsn :\:),(.::: t)lit(p,tlitptt

sssnsn :),(:),(:: tplittplitpp

Page 55: But… Why not to have a syntax built on the same principles as those of semantic composition?

General properties of Lambek grammars

• Weak equivalence with CFGs : – A result by M. Pentus (1993)

• No strong equivalence with CFGs : – A result by H. J. Tiede (1998)

• Polynomiality? No result yet…– probably NP complete

Page 56: But… Why not to have a syntax built on the same principles as those of semantic composition?

Limitations

• They are numerous:– only peripheral extraction

• The girl who I met : OK• The girl who I met yesterday (or on the beach) :

not OK

– coordination and polymorphic types• The mathematician whom Gottlob admired and

Kazimierz detested : OK• *The mathematician whom Gottlob admired Jim

and Kazimierz detested : also OK!

Page 57: But… Why not to have a syntax built on the same principles as those of semantic composition?

– parasitic gaps• The book John filed _ without reading _

(linearity properties)

– empty signs• The book John read

(cf. non empty antecedents)

Page 58: But… Why not to have a syntax built on the same principles as those of semantic composition?

Extensions

• Multimodal Categorial Grammar (Moortgat, Oehrle, Morrill and their students)– ref. Categorial Type Logics in

• Van Benthem and ter Meulen (HLL)

see further…

Page 59: But… Why not to have a syntax built on the same principles as those of semantic composition?

A « cousin »

• Minimalist Grammars:– Inspired by Chomsky’s minimalist program– Ed. Stabler

• they have also type-logical formulations:– W. Vermaat– Retoré – Lecomte

see further…

or another day…

Page 60: But… Why not to have a syntax built on the same principles as those of semantic composition?

to sum up

• We get rid of « syntactic » rules…

• by means of a logic

• which accepts a natural deduction presentation (because intuitionist)– proofs are -terms

• and also a sequent calculus– convenient for the proof search

• a logic which is linear (resource sensitive)