Docsity

Modifiers - Introduction to Formal Semantics - Lecture Slides, Slides of Formal Semantics

Toggle sidebar
bg1
Lambda Calculus
•Two lectures ago...
• Basic mechanisms
•lambda expression
–variable substitution
•variable substitution
–aka Beta (β)-reduction
–“cut-and-paste”
•variable renaming
–aka Alpha (α)-reduction
–to avoid variable name clashes
–e.g.“rename x’s to y’s”
[λy.[λx.x likes y]](Mary)
[λx.x likes y][λy. ](Mary)
[λx.x likes Mary]
likes likes(X,Y).
likes [λy.[λx.x likes y]]
λx.x likes Mary
λy.y likes Mary
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Modifiers - Introduction to Formal Semantics - Lecture Slides and more Slides Formal Semantics in PDF only on Docsity!

Lambda Calculus

-^

Two lectures ago...

Basic mechanisms

-^

lambda expression

variable substitution

-^

variable substitution

aka

Beta (

)-reduction

“cut-and-paste”

-^

variable renaming

aka

Alpha (

)-reduction

to avoid variable name clashes

e.g.

“rename x’s to y’s”

[λ

y.[

λx.x likes y]](Mary)[

λx.x likes

y

]^

[λ

y.

](

Mary

[λ

x.x likes

Mary

]

likes

likes(X,Y).

likes

[λ

y.[

λx.x likes y]]

λx.x likes Mary λy.y likes Mary

Lambda Calculus

Relative Clauses (also Topicalization)

  • (7) Hannibal is [who Shelby saw]– [who Shelby saw] has meaning

x.Shelby saw x

sentence np

vp v

Hannibal

is

sbar

sentence np

np

vp v

Shelby

saw

np

e^1

who

1

sentence np

np

vp v

Hannibal

happy

is

λx.x happy

λx.x happy

Hannibal happy

λy.y

Hannibal

λy.y saw x

Shelby

[λ

y.y saw x](Shelby) Shelby saw x

λx.Shelby saw x λx

λx.Shelby saw x

Shelby saw Hannibal

x

λx.[

λy.y saw x]

Modifiers

• Examples:

– (1) Ossie is a bird

bird(ossie).

bird

: predicative nominal

– (2) Ossie is tall

tall(ossie).

tall

: predicative adjective

– (3) Ossie is a tall bird

• tall: attributive adjective (modifies noun

bird

• what is the semantics of (3)?

Modifiers

Example:

– (3) Ossie is a tall bird

One view (intersective):

tall

tall(X).

bird

bird(X).

tall bird

tall(X),

bird(X).

Ossie is a tall bird

tall(ossie),

bird(ossie).

How do we encode this in the lambda calculus?

Modifiers

Example:

  • (3) Ossie is a tall bird

Another viewpoint (roughly):

  • (diagram 23 in Chapter 4)–

tall

p.[

x.[p x & x is taller_than p average]]

bird

bird

tall bird

[λ

p.[

x.[p x & x is taller_than p average]]](bird)

x. bird x & x is taller_than bird average

Ossie is a tall bird

[λ

x. bird x & x is taller_than bird average](Ossie)

bird Ossie & Ossie is taller_than bird average