1 / 43

CAS LX 502

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 set of integers greater than 5 .

Download Presentation

CAS LX 502

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CAS LX 502 10a. A notational holiday

  2. 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}

  3. 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 Ø]

  4. 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)]

  5. 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 = Ø.

  6. 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>

  7. 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

  8. Labeled brackets S • So, the tree on the rightprovides the sameinformation as: • [S[NP [Np Bond ] ] [VP [Vt likes][NP[Np Loren]] ] ] NP VP NP Vt NP Bond likes NP Loren

  9. 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). f input output

  10. 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].

  11. 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.

  12. 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.

  13. 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

  14. 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.

  15. 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.

  16. 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).

  17. Syntactic base rules

  18. 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>.

  19. 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.

  20. 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).

  21. 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.

  22. 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>

  23. Bond is hungry [is hungry]M,g = x [ xF(is hungry)] <e,t> S [Bond]M,g = F(Bond)<e> NP VP NP Vi Bond is hungry

  24. Bond is hungry [is hungry]M,g = x [ xF(is hungry)] <e,t> • 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 [Bond]M,g = F(Bond)<e> NP VP NP Vi Bond is hungry

  25. Bond is hungry [is hungry]M,g = x [ xF(is hungry)] <e,t> • 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 [Bond]M,g = F(Bond)<e> NP VP NP Vi Bond is hungry

  26. Bond is hungry [is hungry]M,g = x [ xF(is hungry)] <e,t> • [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 [Bond]M,g = F(Bond)<e> NP VP NP Vi Bond is hungry

  27. 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>>

  28. Bond likes Loren S [Bond]M,g = F(Bond)<e>  y [ x [ <x,y>  F(likes) ] ]<e,<e,t>> [Loren]M,g = F(Loren)<e> NP VP NP Vt NP Bond likes NP Loren Lexical interpretation rules

  29. Bond likes Loren S [Bond]M,g = F(Bond)<e>  y [ x [ <x,y>  F(likes) ] ]<e,<e,t>> [Loren]M,g = F(Loren)<e> NP VP NP Vt NP Bond likes NP Loren Pass-up

  30. x [ <x,F(Loren)>  F(likes) ]<e,t> Bond likes Loren S [Bond]M,g = F(Bond)<e>  y [ x [ <x,y>  F(likes) ] ]<e,<e,t>> [Loren]M,g = F(Loren)<e> NP VP NP Vt NP Bond likes NP Loren 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) ]

  31. <F(Bond),F(Loren)>  F(likes)<t> Bond likes Loren x [ <x,F(Loren)>  F(likes) ]<e,t> S [Bond]M,g = F(Bond)<e>  y [ x [ <x,y>  F(likes) ] ]<e,<e,t>> [Loren]M,g = F(Loren)<e> NP VP NP Vt NP Bond likes NP Loren 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>

  32. The problem with object quantifiers S • Proceeding on, the definition of every is: • [every]M,g =P [ Q [ xU [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). NP VP NP Vt NP <<e,t>,t> <e,<e,t>> NC Bond likes Det every fish <e,t> <<e,t>,<<e,t>,t>>

  33. The problem with object quantifiers S • 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. NP VP NP Vt NP <<e,t>,t> <e,<e,t>> NC Bond likes Det every fish <<e,t>,<<e,t>,t>> <e,t>

  34. Quantifier Raising S S NP S NP VP NC 1 S Det NP Vt NP every fish NP VP NC Bond likes Det NP Vt t1 every fish Bond likes

  35. Quantifier Raising S NP • [i]M,g = g(i) : the individual that i points to • [S]M,g = <F(Bond), g(1)>  F(likes) [Bond likes him1] S NC 1 S <t> Det every fish NP <e> VP <e,t> NP Vt t1 <e> <e,<e,t>> Bond likes

  36. Quantifier Raising S <t> NP <<e,t>,t> S • 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. NC 1 S <t> Det <e,t> every fish NP <e> VP <e,t> <<e,t>,<<e,t>,t>> <e> NP Vt t1 <e,<e,t>> Bond likes

  37. 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.

  38. 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].

  39. Quantifier Raising S <t> NP <<e,t>,t> S • [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) NC 1 S <t> Det <e,t> every fish NP <e> VP <e,t> <<e,t>,<<e,t>,t>> <e> NP Vt t1 <e,<e,t>> Bond likes

  40. Quantifier Raising S <t> NP <<e,t>,t> S • 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. NC 1 S <t> Det <e,t> every fish NP <e> VP <e,t> <<e,t>,<<e,t>,t>> <e> NP Vt t1 <e,<e,t>> Bond likes

  41. x [ <F(Bond), x>  F(likes) ] Quantifier Raising Q [ xU [x  F(fish) Q(x)] ] S <t> NP <e,t> <<e,t>,t> S • [S]M,g=Q [ xU [x  F(fish) Q(x)] ] ( x [ <F(Bond), x>  F(likes) ] ) =xU [x  F(fish)  <F(Bond), x>  F(likes) ] NC 1 S <t> Det <e,t> <t,<e,t>> every fish NP <e> VP <e,t> <<e,t>,<<e,t>,t>> <e> NP Vt t1 <e,<e,t>> P [ Q [ xU [P(x) Q(x)] ] ] Bond likes

  42.         

More Related