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:

Slides:



Advertisements
Similar presentations
Problems of syntax-semantics interface ESSLLI 02 Trento.
Advertisements

Chapter 4 Syntax.
Grammars, constituency and order A grammar describes the legal strings of a language in terms of constituency and order. For example, a grammar for a fragment.
Prof. Johnnie Baker Module Basic Structures: Sets
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
2.1 Sets ‒Sets ‒Common Universal Sets ‒Subsets 2.2 Set Operations 2.3 Functions 2.4 Sequences and Summations 1.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Section 1.6: Sets Sets are the most basic of discrete structures and also the most general. Several of the discrete structures we will study are built.
CAS LX b. Questions. Seeking truth Much of what we’ve done this semester has to do with characterizing (our knowledge of) the conditions under which.
Copyright © Cengage Learning. All rights reserved. CHAPTER 1 SPEAKING MATHEMATICALLY SPEAKING MATHEMATICALLY.
Sets DISCRETE STRUCTURE ABDUL BASIT TAHIR, KAMRAN ALI, FAIZAN ILLAHI, NOMAN AHMAD, ARSALAN MUBASHIR.
March 10: Quantificational Notions Interpretations: Every interpretation interprets every individual constant, predicate, and sentence letter of PL. Our.
March 5: more on quantifiers We have encountered formulas and sentences that include multiple quantifiers: Take, for example: UD: People in Michael’s office.
Meaning and Language Part 1.
CAS LX 502 Semantics 2b. A formalism for meaning 2.5, 3.2, 3.6.
Discrete Math 6A Max Welling. Recap 1. Proposition: statement that is true or false. 2. Logical operators: NOT, AND, OR, XOR, ,  3. Compound proposition:
CSCI 1900 Discrete Structures
CAS LX 502 Semantics 3a. A formalism for meaning (cont ’ d) 3.2, 3.6.
CAS LX 502 8b. Formal semantics A fragment of English.
CAS LX 502 Semantics 5b. Pronouns, assignments, and quantifiers 5.7(.1), 6.1.
Mathematical Preliminaries (Hein 1.1 and 1.2) Sets are collections in which order of elements and duplication of elements do not matter. – {1,a,1,1} =
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
1 ENM 503 Block 1 Algebraic Systems Lesson 2 – The Algebra of Sets The Essence of Sets What are they?
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Copyright © 2014 Curt Hill Sets Introduction to Set Theory.
Propositional Calculus CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Semantic Construction lecture 2. Semantic Construction Is there a systematic way of constructing semantic representation from a sentence of English? This.
Albert Gatt LIN3021 Formal Semantics Lecture 4. In this lecture Compositionality in Natural Langauge revisited: The role of types The typed lambda calculus.
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
Sets and Sentences Open Sentences Foundations of Real Analysis.
Key Concepts Representation Inference Semantics Discourse Pragmatics Computation.
MATH 224 – Discrete Mathematics
CompSci 102 Discrete Math for Computer Science
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
Rules, Movement, Ambiguity
Lecture 4: Predicates and Quantifiers; Sets.
Section 2.1. Section Summary Definition of sets Describing Sets Roster Method Set-Builder Notation Some Important Sets in Mathematics Empty Set and Universal.
Naïve Set Theory. Basic Definitions Naïve set theory is the non-axiomatic treatment of set theory. In the axiomatic treatment, which we will only allude.
Mathematical Preliminaries
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
CAS LX a. Plurals, mass, and measurement. Singular individuals The Last Juror is a book. Cat’s Cradle is a book. Semantics is a book. [book] M,g.
Chapter 2 With Question/Answer Animations. Section 2.1.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
CAS LX 502 Semantics 5a. Plurals, mass, and measurement 5.5.
◦ Process of describing the structure of phrases and sentences Chapter 8 - Phrases and sentences: grammar1.
CAS LX b. Binding. Syntactic base rules (F2) S  NP VPVP  Vt NP S  S ConjPVP  Vi ConjP  Conj SNP  Det N C S  Neg SNP  N P Det  the, a, everyN.
CAS LX b. Summarizing the fragment analysis, relative clauses.
1 Section 8.3 Higher-Order Logic A logic is higher-order if it allows predicate names or function names to be quantified or to be arguments of a predicate.
CAS LX 502 9b. Formal semantics Pronouns and quantifiers.
PREDICATES AND QUANTIFIERS COSC-1321 Discrete Structures 1.
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
Section 2.1. Sets A set is an unordered collection of objects. the students in this class the chairs in this room The objects in a set are called the.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
Week 3. Clauses and Trees English Syntax. Trees and constituency A sentence has a hierarchical structure Constituents can have constituents of their own.
Dr. Ameria Eldosoky Discrete mathematics
Chapter 2 Sets and Functions.
CHAPTER 2 Set Theory A B C.
3b. A formalism for meaning (cont’d again): F2 3.2, 3.6
Formal Modeling Concepts
MATH 224 – Discrete Mathematics
11a. Predicate modification and adjectives
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
Chapter 2 Sets and Functions.
Set-Builder Notation.
Predicates and Quantifiers
Semantics 2: Syntax-Semantics Interface
COMPILER CONSTRUCTION
Terminology and Symbols
Presentation transcript:

CAS LX a. 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. 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}

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

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

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

Ordered pairs Ordered pairs are like a two-membered set in which order matters: ≠ ; ≠ {1, 3} = {3, 1}; {1, 1} = {1} An ordered n-tuple is sometimes called a vector:

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 BC

Labeled brackets So, the tree on the right provides the same information as: [ S [ NP [ Np Bond ] ] [ VP [ Vt likes] [ NP [ Np Loren] ] ] ] S NPVP Vt likes NPNP Bond NP NPNP Loren

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 inputoutput

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. f not is a function that, for any x  {true,false}, returns  x. We can also write the mapping explicitly, using ordered pairs of the form : f not = {, } Or, we can write in the form input[output]: f not = x[  x].

Applying functions to arguments The input that we provide to a function is called its argument. f not (true) = the output f not maps true to. f not (true) = x[  x] (true) = true x[  x] =  true = false.

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. f and = y [ x [ x  y ] ] This function takes a single argument, returns a function. f and (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. f and (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.

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 ] =  8 = = 76

Modified functions Suppose f square = x [ x  x ]. f square (2) = 4, f square (3) = 9, f square (4) = 16, etc. Now, suppose we want a new function, f new, that is just like f square except that if you give it 3, it gives you 5 instead of 9. f new (2) = 4, f new (3) = 5, f new (4) = 16, etc. We can write it like this: f new = f square [3/5]. This means: f new (x) = 5 if x=3, f square (x) otherwise.

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.

Our little fragment (F 2 ) 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  N P ) or consist of a determiner and a common noun (NP  Det N C ). Sentences can be negated (S  Neg S) or coordinated (S  S ConjP; ConjP  Conj S).

Syntactic base rules S  NP VPVP  Vt NP S  S ConjPVP  Vi ConjP  Conj SNP  Det N C S  Neg SNP  N P Det  the, a, everyN P  Pavarotti, Loren, Bond, Nemo, Dory, Blinky, Semantics, The Last Juror, he n, she n, it n, him n, her n, himself n, herself n, itself n. Conj  and, or Vt  likes, hates Vi  is boring, is hungry Neg  it is not the case thatN C  book, fish, man, woman

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

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, where x and y are individuals from U, and x likes y in the situation modeled by M.

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

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: We add two basic types: = individual, = 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 because it is true or false of individuals.

Lexical interpretation rules To interpret proper names, we use the denotation provided by F. [Pavarotti] M,g = F(Pavarotti) 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) ] [fish] M,g = x [ x  F(fish) ]

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

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 NPNP [Bond] M,g = F(Bond) [is hungry] M,g = x [ x  F(is hungry)] Bond

Bond is hungry S has two daughters, one is a function ( ) and one can serve as an argument ( ) 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 NPNP [Bond] M,g = F(Bond) [is hungry] M,g = x [ x  F(is hungry)] Bond

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)] = F(Bond)  F(is hungry) S NP VP Vi is hungry NPNP [Bond] M,g = F(Bond) [is hungry] M,g = x [ x  F(is hungry)] Bond

Lexical interpretation rules To interpret transitive verbs, we use a function that, given the object as an argument, returns a predicate ( ) that can be applied to the subject, and is ultimately true if the ordered pair is in the denotation provided by F. [likes] M,g = y [ x [  F(likes) ] ] >

Bond likes Loren S NPVP Vt likes NPNP Bond NP NPNP Loren [Bond] M,g = F(Bond) [Loren] M,g = F(Loren) y [ x [  F(likes) ] ] > Lexical interpretation rules

Bond likes Loren S NPVP Vt likes NPNP Bond NP NPNP Loren [Bond] M,g = F(Bond) [Loren] M,g = F(Loren) y [ x [  F(likes) ] ] > Pass-up

Bond likes Loren S NPVP Vt likes NPNP Bond NP NPNP Loren [Bond] M,g = F(Bond) [Loren] M,g = F(Loren) y [ x [  F(likes) ] ] > Functional Application: [Vt] M,g is type > (takes an argument), and [NP] M,g is type. So [VP] M,g = [Vt] M,g ([NP] M,g ) = y [ x [  F(likes) ] ] ( F(Loren) ) = F(Loren) y [ x [  F(likes) ]] = x [  F(likes) ] x [  F(likes) ]

Bond likes Loren S NPVP Vt likes NPNP Bond NP NPNP Loren [Bond] M,g = F(Bond) [Loren] M,g = F(Loren) y [ x [  F(likes) ] ] > Functional Application: [VP] M,g is type (takes an argument), and [NP] M,g is type. So [S] M,g = [VP] M,g ([NP] M,g ) = x [  F(likes) ] ( F(Bond) ) = F(Bond) x [  F(likes) ] ] =  F(likes) x [  F(likes) ]  F(likes)

The problem with object quantifiers 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). S NPVP Vt likes NPNP Bond NP Det every NCNC fish,t>,,t>> >

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 (but the other is,t>). One needs (but the other is >). This is why QR is needed. QR replaces the NP with t i, interpreted as type, which can be taken by [Vt] M,g as an argument. S NPVP Vt likes NPNP Bond NP Det every NCNC fish,t>,,t>> >

Quantifier Raising S NPVP Vt likes NPNP Bond NP Det every NCNC fish S NPVP Vt likes NPNP Bond NP Det every NCNC fish t1t1 S 1 S

Quantifier Raising [  i ] M,g = g(i):the individual that i points to [S] M,g =  F(likes) [Bond likes him 1 ] S NPVP Vt likes NPNP Bond NP Det every NCNC fish t1t1 S 1 S >

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 a predicate (type ), and that therefore [1] M,g must be type >. We want [1] M,g to turn Bond likes it 1 into something Bond likes. S NPVP Vt likes NPNP Bond NP Det every NCNC fish t1t1 S 1 S >,,t>>,t>

Lambda abstraction We have something that means Bond likes it 1 (  F(likes) ). We want something that means something Bond likes: 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.

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

Quantifier Raising [S] M,g =  F(likes) [S] M,g[1/x] =  F(likes) =  F(likes) S NPVP Vt likes NPNP Bond NP Det every NCNC fish t1t1 S 1 S >,,t>>,t>

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(likes) ], as desired. S NPVP Vt likes NPNP Bond NP Det every NCNC fish t1t1 S 1 S >,,t>>,t>

Quantifier Raising [S] M,g = Q [  x  U [x  F(fish)  Q(x)] ] ( x [  F(likes) ] ) =  x  U [x  F(fish)   F(likes) ] S NPVP Vt likes NPNP Bond NP Det every NCNC fish t1t1 S 1 S >,,t>>,t> P [ Q [  x  U [P(x)  Q(x)] ] ] Q [  x  U [x  F(fish)  Q(x)] ] x [  F(likes) ] >

[Pavarotti] M,g = F(Pavarotti) (any N P ) [is boring] M,g = x [ x  F(is boring) ] (any N C or Vi) [likes] M,g = y [ x [  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 [  x  U [P(x)  Q(x)] ] ] [a] M,g = P [ Q [  x  U [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 t i Y ] ] ]

            