43
CAS LX 502 10a. A notational holiday

CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

  • View
    214

  • Download
    0

Embed Size (px)

Citation preview

Page 1: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

CAS LX 502

10a. A notational holiday

Page 2: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Sets• A set is a collection of entities of any kind.

• They can be finite: {√2, John Saeed, 1984}.• They can be infinite: the set of integers greater than 5.

• We can specify a finite set by listing its members. We can also specify a set by its description:{x : x is a book written by Chomsky}• This set contains any x such that x is a book written by Chomsky

—any other x is not in the set.

• A set is defined by its members.{n: n is an even number} = {n: n+1 is an odd number}

• Order makes no difference, repetition is meaningless:{1, 5, 7} = {5, 7, 1} = {7, 1, 5} = {7, 1, 1, 5, 7}

Page 3: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Set notations

• We can name a set if we wish: A={1, 3, 8}.• If A={1, 3, 8} and B = A, then B = {1, 3, 8}.

• a A means a is a member of the set A.• a A means a is not a member of A.

• 1 {1, 3, 8}; 4 {1, 3, 8}.

• Ø is the “empty set” a set that has no members. It could also be written like this: {}.x [x Ø]

Page 4: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Set notations

• A B means that everything in A is also in B, although there may be more stuff in B (“A is a subset of B”).x [x A x B]

• A B means that not only is everything in A in B, but there is something else in B that isn’t in A (“A is a proper subset of B”).x [x A x B] x[x B x A]

• A = B means that everything in A is in B and everything in B is in A.x [(x A x B) (x B x A)]

Page 5: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Set notations

• A B is the set of elements that are both in A and B (“the intersection of A and B”).• A B = {x: x A x B}

• A B is the set of elements that are either in A or in B, or in both (“the union of A and B”).• A B = {x: x A x B}

• If two sets have no overlap, they are said to be disjoint.• A and B are disjoint iff A B = Ø.

Page 6: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Ordered pairs

• Ordered pairs are like a two-membered set in which order matters:

• <1, 3> ≠ <3, 1>; <1, 1> ≠ <1>

• {1, 3} = {3, 1}; {1, 1} = {1}

• An ordered n-tuple is sometimes called a vector: <1, 3, 5, 7, 9>

Page 7: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Labeled brackets

• The labeled bracket notation is another way to write hierarchical information.

• [A B C] is a group, containing B and C, that is labeled collectively as A.

A

B C

Page 8: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Labeled brackets

• So, the tree on the rightprovides the sameinformation as:

• [S [NP [Np Bond ] ] [VP [Vt likes] [NP [Np Loren] ] ] ]

S

NP VP

Vt

likes

NP

Bond

NP

NP

Loren

Page 9: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Functions

• Back to functions for a bit.• A function is a mapping from an input to an output.

• Generally, the output that results depends on the input received (e.g., f(x) = 2 x) (although one could define a constant function that maps any input into the same output; e.g. f(x) = 2).

finput output

Page 10: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Functions

• We have several way to write a function. Suppose we want to write the not function that reverses a truth value. So, a truth value is provided as an input and a truth value is returned as an output.• fnot is a function that, for any x{true,false}, returns x.

• We can also write the mapping explicitly, using ordered pairs of the form <input, output>:• fnot = {<true, false>, <false, true>}

• Or, we can write in the form input[output]:• fnot = x[x].

Page 11: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Applying functions to arguments

• The input that we provide to a function is called its argument.

• fnot(true) = the output fnot maps true to.

• fnot(true) =x[x] (true) =true x[x] =true =false.

Page 12: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Functions returning functions

• A function can return not a single value (like false or Bond), but a function that is ready to apply to a different argument.

• fand = y [ x [ x y ] ]• This function takes a single argument, returns a function.• fand (true) = y [ x [ x y ] ] (true) =

true y [ x [ x y ] ] = x [ x true ]• The resulting function maps true to true and false to false.• fand (false) = y [ x [ x y ] ] (false) =

false y [ x [ x y ] ] = x [ x false ]• The resulting function maps true to false and false to false.

Page 13: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Formally stating -conversion

• value vbl [ result ] or vbl [ result ] (value)

• When we evaluate this we get result, but with all of the instances of variable within result replaced with value.

• 8 x [ 12 + x x ] = 12 + 8 8 = 12 + 64 = 76

Page 14: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Modified functions

• Suppose fsquare = x [ x x ].

• fsquare(2) = 4, fsquare(3) = 9, fsquare(4) = 16, etc.

• Now, suppose we want a new function, fnew, that is just like fsquare except that if you give it 3, it gives you 5 instead of 9.

• fnew(2) = 4, fnew(3) = 5, fnew(4) = 16, etc.

• We can write it like this: fnew = fsquare[3/5].

• This means: fnew(x) = 5 if x=3, fsquare(x) otherwise.

Page 15: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Returning to the task…

• Now, we can get back to the task at hand.• We have intuitions about the truth conditions of

sentences—we know what it would take for a sentence to be true or false.

• Limiting ourselves to a small portion of English, and a very restricted set of situations, we try to put together a system to predict those intuitions and try to understand how they come about.

Page 16: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Our little fragment (F2)

• With our fragment of English, we have a set of syntactic rules that can generate a small number of recognizably English sentences.

• Sentences have subjects and verb phrases (S NP VP), verb phrases can either have intransitive verbs (VP Vi) or transitive verbs with an object (VP Vt NP). Noun phrases can either be proper names (NP NP) or consist of a determiner and a common noun (NP Det NC). Sentences can be negated (S Neg S) or coordinated (S S ConjP; ConjP Conj S).

Page 17: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Syntactic base rules

S NP VP VP Vt NP

S S ConjP VP Vi

ConjP Conj S NP Det NC

S Neg S NP NP

Det the, a, every NP Pavarotti, Loren, Bond, Nemo, Dory, Blinky, Semantics, The Last Juror, hen, shen, itn, himn, hern, himselfn, herselfn, itselfn.

Conj and, or

Vt likes, hates

Vi is boring, is hungry

Neg it is not the case that NC book, fish, man, woman

Page 18: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Situations and truth

• Since the truth of Bond likes Loren depends on the situation, we evaluate a sentence like Bond likes Loren against a model of the situation.

• The model (M) tells us who the individuals are (the “universe” U) and their properties and relations (F). We write that like M=<U,F>.

Page 19: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

The denotation function F

• The F function (“denotation function”) applies to lexical items (the nodes at the bottom of the tree) and returns a semantic value (the “denotation”).

• F(Bond) returns the individual from U that we refer to with the proper name Bond.

• F(is boring) returns a set of the boring individuals from U in the situation modeled by M.

• F(likes) returns a set of ordered pairs <x,y>, where x and y are individuals from U, and x likes y in the situation modeled by M.

Page 20: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Semantic rules

• Our semantic rules are based on the assumption that the meaning of any constituent part of the sentence structure should arise from the meanings of its own parts and how they are combined (meaning is compositional).

• We have a set of rules to interpret the lexical items (the bottom nodes on the tree), and then two general rules: Pass-up (the meaning of a constituent with only one part is the same as the meaning of that one part) and Functional Application (the meaning of a constituent with two parts is the result of providing one as the argument of the other, where one is always a function).

Page 21: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Semantic types

• We can classify the kinds of functions each node represents by using a notation that tells us what kind of argument the function takes, and what kind of result it provides:< argument type, result type >

• We add two basic types: <e> = individual, <t> = truth value (true or false). These can only be arguments or results, they are not functions.• A function like x [ x is boring in M ] is type <e,t>

because it is true or false of individuals.

Page 22: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Lexical interpretation rules

• To interpret proper names, we use the denotation provided by F.

• [Pavarotti]M,g = F(Pavarotti) <e>

• To interpret intransitive verbs or common nouns, we use a function that is true of an individual when the individual is in the denotation provided by F.

• [is boring]M,g = x [ x F(is boring) ] <e,t>• [fish]M,g = x [ x F(fish) ] <e,t>

Page 23: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Bond is hungry

S

NP VP

Vi

is hungry

NP

[Bond]M,g = F(Bond)<e>

[is hungry]M,g = x [ x F(is hungry)] <e,t>

Bond

Page 24: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Bond is hungry

• Pass-up tells us that the meaning of a node connected by just a single branch to a single daughter node has the same interpretation as the daughter node.

S

NP VP

Vi

is hungry

NP

[Bond]M,g = F(Bond)<e>

[is hungry]M,g = x [ x F(is hungry)] <e,t>

Bond

Page 25: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Bond is hungry

• S has two daughters, one is a function (<e,t>) and one can serve as an argument (<e>) for it. So, [S]M,g is the result of applying the function [VP]M,g to the argument [NP]M,g (Functional Application)

S

NP VP

Vi

is hungry

NP

[Bond]M,g = F(Bond)<e>

[is hungry]M,g = x [ x F(is hungry)] <e,t>

Bond

Page 26: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Bond is hungry

• [S]M,g =[VP]M,g ( [NP]M,g ) = x [ x F(is hungry)] ( F(Bond) ) =F(Bond) x [ x F(is hungry)] =

<t> F(Bond) F(is hungry)

S

NP VP

Vi

is hungry

NP

[Bond]M,g = F(Bond)<e>

[is hungry]M,g = x [ x F(is hungry)] <e,t>

Bond

Page 27: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Lexical interpretation rules

• To interpret transitive verbs, we use a function that, given the object as an argument, returns a predicate (<e,t>) that can be applied to the subject, and is ultimately true if the ordered pair <subject,object> is in the denotation provided by F.

• [likes]M,g = y [ x [ <x,y> F(likes) ] ] <e,<e,t>>

Page 28: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Bond likes Loren

S

NP VP

Vt

likes

NP

Bond

NP

NP

Loren

[Bond]M,g = F(Bond)<e> [Loren]M,g = F(Loren)

<e>

y [ x [ <x,y> F(likes) ] ]<e,<e,t>>

Lexical interpretation rules

Page 29: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Bond likes Loren

S

NP VP

Vt

likes

NP

Bond

NP

NP

Loren

[Bond]M,g = F(Bond)<e> [Loren]M,g = F(Loren)

<e>

y [ x [ <x,y> F(likes) ] ]<e,<e,t>>

Pass-up

Page 30: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Bond likes Loren

S

NP VP

Vt

likes

NP

Bond

NP

NP

Loren

[Bond]M,g = F(Bond)<e> [Loren]M,g = F(Loren)

<e>

y [ x [ <x,y> F(likes) ] ]<e,<e,t>>

Functional Application: [Vt]M,g is type <e,<e,t>> (takes an <e> argument), and [NP]M,g is type <e>. So [VP]M,g = [Vt]M,g ([NP]M,g) = y [ x [ <x,y> F(likes) ] ] ( F(Loren) ) =F(Loren) y [ x [ <x,y> F(likes) ]] = x [ <x,F(Loren)> F(likes) ]

x [ <x,F(Loren)> F(likes) ]<e,t>

Page 31: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Bond likes Loren

S

NP VP

Vt

likes

NP

Bond

NP

NP

Loren

[Bond]M,g = F(Bond)<e> [Loren]M,g = F(Loren)

<e>

y [ x [ <x,y> F(likes) ] ]<e,<e,t>>

Functional Application: [VP]M,g is type <e,t> (takes an <e> argument), and [NP]M,g is type <e>. So [S]M,g = [VP]M,g ([NP]M,g) = x [ <x,F(Loren)> F(likes) ] ( F(Bond) ) =F(Bond) x [ <x,F(Loren)> F(likes) ] ] =<F(Bond),F(Loren)> F(likes) <t>

x [ <x,F(Loren)> F(likes) ]<e,t>

<F(Bond),F(Loren)> F(likes)<t>

Page 32: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

The problem with object quantifiers

• Proceeding on, the definition of every is:

• [every]M,g =P [ Q [ xU [P(x) Q(x)] ] ]

• The idea is that every P Q is true whenever being P implies being Q. That is, every fish is boring means for all x (in the universe U), if x is a fish, then x is boring.

• So, every needs two predicates to be true or false. One is the common noun, the other is the sentence with a variable in place of the quantifier: (every (fish)) (something B likes).

S

NP VP

Vt

likes

NP

Bond

NP

Det

every

NC

fish

<<e,t>,t>

<e,t><<e,t>,<<e,t>,t>>

<e,<e,t>>

Page 33: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

The problem with object quantifiers

• The problem with having a quantifier like every fish in object position is that it leaves no way to interpret [VP]M,g.

• Neither daughter is a function that can take the other as an argument.• One needs <e>

(but the other is <<e,t>,t>).• One needs <e,t>

(but the other is <e,<e,t>>).

• This is why QR is needed. QR replaces the NP with ti, interpreted as type <e>, which can be taken by [Vt]M,g as an argument.

S

NP VP

Vt

likes

NP

Bond

NP

Det

every

NC

fish

<<e,t>,t>

<e,t><<e,t>,<<e,t>,t>>

<e,<e,t>>

Page 34: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Quantifier Raising

S

NP VP

Vt

likes

NP

Bond

NP

Det

every

NC

fish

S

NP VP

Vt

likes

NP

Bond

NP

Det

every

NC

fish

t1

S

1

S

Page 35: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Quantifier Raising

• [i]M,g = g(i) : the individual that i points to

• [S]M,g = <F(Bond), g(1)> F(likes) [Bond likes him1]

S

NP VP

Vt

likes

NP

Bond

NP

Det

every

NC

fish

t1

S

1

S

<e,<e,t>><e>

<e,t><e>

<t>

Page 36: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Quantifier Raising• The goal is to provide

every with two predicates; it has gotten fish. It needs one that means something Bond likes.

• We can deduce that [S]M,g must be apredicate (type<e,t>), and that therefore [1]M,g must be type <t,<e,t>>.

• We want [1]M,g to turn Bond likes it1 into something Bond likes.

S

NP VP

Vt

likes

NP

Bond

NP

Det

every

NC

fish

t1

S

1

S

<e,<e,t>>

<e>

<e,t><e>

<t>

<t>

<e,t>

<<e,t>,<<e,t>,t>>

<<e,t>,t>

Page 37: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Lambda abstraction

• We have something that means Bond likes it1 (<F(Bond), g(1)> F(likes) ).

• We want something that means something Bond likes: x [ <F(Bond), x> F(likes) ]

• So, what we want to do is add a and a variable (x) to make it a function, and then replace g(1) with x inside the result.

Page 38: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Modified assignment functions

• How do we change g(1) inside S somewhere to x?

• One way to do it is to evaluate S with a modified assignment function. What we want is to have this function map 1 to whatever x is, but otherwise act like g.

• We write that assignment function like g[1/x].

Page 39: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Quantifier Raising

• [S]M,g =<F(Bond), g(1)> F(likes) • [S]M,g[1/x] = <F(Bond), g[1/x](1)> F(likes) =

<F(Bond), x> F(likes)

S

NP VP

Vt

likes

NP

Bond

NP

Det

every

NC

fish

t1

S

1

S

<e,<e,t>>

<e>

<e,t><e>

<t>

<t>

<e,t>

<<e,t>,<<e,t>,t>>

<<e,t>,t>

Page 40: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Quantifier Raising

• So we define [1]M,g as S [ x [ [S]M,g[1/x] ] ] and we end up with [S]M,g = x [ <F(Bond), x> F(likes) ], as desired.

S

NP VP

Vt

likes

NP

Bond

NP

Det

every

NC

fish

t1

S

1

S

<e,<e,t>>

<e>

<e,t><e>

<t>

<t>

<e,t>

<<e,t>,<<e,t>,t>>

<<e,t>,t>

Page 41: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

Quantifier Raising

• [S]M,g =Q [ xU [x F(fish) Q(x)] ] ( x [ <F(Bond), x> F(likes) ] ) =xU [x F(fish) <F(Bond), x> F(likes) ]

S

NP VP

Vt

likes

NP

Bond

NP

Det

every

NC

fish

t1

S

1

S

<e,<e,t>>

<e>

<e,t><e>

<t>

<t>

<e,t>

<<e,t>,<<e,t>,t>>

<<e,t>,t>

P [ Q [ xU [P(x) Q(x)] ] ]

Q [ xU [x F(fish) Q(x)] ]

x [ <F(Bond), x> F(likes) ]

<e,t>

<t,<e,t>>

Page 42: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:

[Pavarotti]M,g = F(Pavarotti) (any NP)

[is boring]M,g = x [ x F(is boring) ] (any NC or Vi)

[likes]M,g = y [ x [ <x,y> F(likes) ] ] (any Vt)

[and]M,g = y [ x [ x y ] ] (analogous for or)

[it is not the case that]M,g = x [ x ]

[i]M,g = g(i)

[i]M,g = S [x [ [S]M,g[i/x] ] ]

[every]M,g = P [ Q [ xU [P(x) Q(x)] ] ]

[a]M,g = P [ Q [ xU [P(x) Q(x)] ] ]

Pass-Up[ ]M,g = []M,g

Functional application[ ]M,g = []M,g ( []M,g ) or []M,g ( []M,g )

whichever is defined

Quantifier Raising[S X NP Y ] [S NP [S i [S X ti Y ] ] ]

Page 43: CAS LX 502 10a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite: