1 Introduction. 2 Set-Theory Formalisms. Formal Semantics -W2: Limitations of a Set-Theoretic Model SWU LI713 Meagan Louie August 2015

Size: px
Start display at page:

Download "1 Introduction. 2 Set-Theory Formalisms. Formal Semantics -W2: Limitations of a Set-Theoretic Model SWU LI713 Meagan Louie August 2015"

Transcription

1 Formal Semantics -W2: Limitations of a Set-Theoretic Model SWU LI713 Meagan Louie August Introduction Recall from last week: The Semantic System 1. The Model/Ontology 2. Lexical Entries 3. Compositional Rules Elements in the ontology model real-world (or not) referents. These elements are organized into domains: 1. D e, Individuals = {a, b, c, d,...} 2. D t, Truth Values = {1, 0} Lexical Entries are how we use words to refer to elements in the ontology, or mathematical objects based on those elements (eg., sets, pairs, sets of pairs, sets of sets, etc.) 1. Names refer directly to individuals in the ontology, eg., Harry Potter= a, Draco Malfoy = d 2. Common Nouns refer to sets of individuals, eg., girl = {b, f, g}, animal={e, h} Compositional Rules tell us how to interpret syntactic rules of combination: 1. Predication: S DP VP. S =1 iff, DP VP 2. Modification: NP Adj N. NP = Adj N 3. Select: DP D NP. DP = the singleton/maximal member of NP 4. Saturate: VP V DP. VP = {x: x, DP V } These guys,. are interpretation brackets, so read DP as the interpretation of DP - i.e., some individual in the ontology 2 Set-Theory Formalisms The toy model I set up last week is based on set theory In general, it s useful to be comfortable with set-theoretic formalisms 2.1 Set Theory Basics (Partee et al. (1990), Chapter 1) A set is an abstract collection of distinct objects;. these objects are called members of that set A, B, C...for sets, a, b, c...for for members of sets 3. Adjectives refer to sets of individuals, eg., red-haired = {c, g}, blond = {d, f} 4. Verbs refer to intransitive verbs: sets of individuals eg., flies = {h,e,...} transitive verbs: sets of ordered pairs of individuals eg., love = { g,a, i,e, a,q, c,q, d, q, g, q... } set membership: x Y Sets are also objects, so they can be members of other sets Three ways to specify a set: 1. List: If the set is finite, you can just list all of its members. eg., love = { g,a, i,e, a,q, c,q, d, q, g, q } (x Y)

2 2. Property/Predicate: {x: x book & x red } 1 Why do we need Set Theory? eg., love ={ x,y : loves(x,y) } 3. Recursive Rules: (a) 4 E (b) If x E, then x +2 E (c) Nothing else belongs to E Sets are defined by their members. sets with identical members are the same set (State finite members) (Give recursive rules) Why do we need all of this math? Why can t we just describe what words mean using plain-speaking non-technical terminology? The goal of natural-language semantics is to account for. what words mean, and. how their meanings combine into new meanings So if you use natural language words to describe meaning... cardinality: A subset: A B proper subset: A B Intersection: A B Union: A B ( ) ( ) Difference: A - B Complement: A The empty set: (Note: A, for every A) Cartesian Product A B = { x, y : x A and y B}...you re assuming that someone can explain what those natural language words mean!...and if that person uses natural language to explain what those natural language words mean...etc. Mathematical languages defined independently of natural languages i.e., a way to objectively describe meaning and avoid a methodological infinite regress 2.2 Set-Theoretic Homework Exercise from Partee et al. (1990) Given the following sets: A = {a, b, c, 2, 3, 4} B = {a,b} C = {c,2} D = {b,c} E = {a, b, {c}} F = G = {{a,b}, {c,2}} Predicate Logic Other logical systems are commonly used to represent various kinds of meaning in natural language. Eg., propositional logic and predicate logic. The meaning of lexical entries will often be represented using notation from these formal systems: (1) Are the following true or false? a. c A d. {c} E b. c F e. {c} C c. c E f. B A g. {D} G h. {{c}} E i. F E. love(x,y) Predicate-Logic Notation Although these systems are really useful, I m not focusing them in this course because (i) they are tools that linguistics uses, not properly linguistics, and (more importantly 1 YOu can also use the notation, in place of the : notation, eg., {x x book & x red }. (ii) unlike formal semantics, there are a lot of resources to learn available online, eg.,

3 3 Towards A More Complex Model The goal of last week s toy model was to (hopefully) convince you 1. Truth-conditions are a way to formalize what (at least one aspect of) NL meaning is, and 2. A semantic system consisting of an ontology, lexical entries and compositional rules can model these truth-conditions in a compositional way Treating slowly, with a knife, in the bathroom, at midnight as arguments is problematic from a learnability perspective! These phrases seem to behave like modifiers with respect to entailment patterns: Definition: Entailment A sentence S 1 entails a sentence S 2 ( S 1 = S 2 ),. iff in every context in which S 1 is true,.. S 2 is also true. But the simple set-theoretic model is quite limited in terms of the range of meanings it can express... So far we can model situations about individuals and the relations between them But meaning in language is more nuanced and complex than this! In order to accommodate the meaning of tense, aspect, modal marking, etc, we need a more nuanced and complex system We ll be Adding elements/domains to our ontology Using functions as opposed to sets to formalize lexical entries. (But we ll have fewer compositional rules) 3.1 Adding to our Ontology Lexical Entries so far:. eat = { x, y : eats(x,y)} The individuals, x, y, are the verb s individual arguments Davidson (1967): Famously argued that verbs must also refer to an event argument, using the sentence (2): (2) Jones buttered the toast slowly with a knife in the bathroom at midnight. (3) a. It s a [big, red, sparkly balloon] NP b. {x: balloon(x) & big(x) & red(x) & sparkly(x) }. = {x: balloon(x)} {x: big(x)} {x: red(x)} {x: sparkly(x)} (4) a. It s a [red, sparkly balloon] NP b. {x: balloon(x) & red(x) & sparkly(x) } (3a) = (4a) - as expected given our intersection rule! (5) a. Jones buttered the toast slowly with a knife in the bathroom b. Jones buttered the toast slowly with a knife c. Jones buttered the toast slowly d. Jones buttered the toast Observation: (5a) = (5b) = (5c) = (5d) Q:...but if they are modifiers, what are they semantically modifying?. Not the agent (butter-er) or theme (butter-ee)! Davidson: They re modifying a buttering event argument. Idea: A verb s lexical entry would then look something like this:

4 (6) butter = { e, x, y : butter(e,x,y) }. (Read butter(e,x,y) as e is an event of x buttering y ) 3.2 Modifying Lexical Entries Problem: It s not clear how to incorporate something like aspect into the set-theoretic model we ve set up 1. D e, Individuals = {a, b, c, d,...} type e (9) VP 2 2. D t, Truth Values = {1, 0} type t 3. E, Events = {e 1, e 2, e 3, e 4,... } type l This morning =t prog VP 1 VP = {e: make(e, m, b)} Events can be used to capture the meaning of aspects: (7) Context: I noticed I was running late this morning and left my breakfast on the counter half-made in order to get to campus on time NP Meagan V make breakfast a. This morning, I made simple breakfast False! b. This morning, I was making prog breakfast True! (8) a. Progressive = the runtime of e overlaps with t 2 b. Simple/Perfective = the runtime of e is contained within t. (Let t = This morning) 1. D e, Individuals = {a, b, c, d,...} type e 2. D t, Truth Values = {1, 0} type t 3. E, Events = {e 1, e 2, e 3, e 4,... } type l 4. I, Times = {t 1, t 2, t 3, t 4,... } type i 2 There is A LOT more to the meaning of progressive/imperfective morphology crosslinguistically than this analysis, but this is a good start. This is based on Kratzer (1998) s adaptation of Klein (1994) s IMPF vs PFV. Attempt: Let prog = {e: e t}. The set of events that overlap with some time, t. And this combines via modification with the VP But this leaves us with VP 1 denoting a set of events...how can this combine with the reference time ( in this case, with t, this morning)? We need VP 1 to combine with the t that this morning reers to, and this has to somehow yield a truth-value... This would require some new kind of compositional rule... But we don t want to create new kinds of compositional rules for each new kind phenomenon we want to incorporate into our system! 3.3 The Solution: Lexical Entries as Functions We already know that language learners need to memorize lexical entries The lexicon is where the main meaning components of our system should be stored! (Not as a bunch of different compositional rules that need to be memorized) By formalizing lexical entries as functions, we can do this and avoid a proliferation of compositional rules

5 4 Primer on Functions 4.1 What s a Function? Recall: Sets are unordered collections pairs and other n-tuples are ordered This is why they are useful for representing relations like eat:. eat(x,y) Order matters, because if the relation eat holds between the pair Harry, chocolate frog......this does not entail that the relation eat holds between the pair chocolate frog, Harry! Definition: Relation A relation R is a mapping from a domain A to a range B c a b d e g f A linguistic phrase that formerly denoted a set. now denotes the characteristic function of that set. 1. Names refer directly to individuals in the ontology eg., Harry Potter= a, Draco Malfoy = d 2. Common Nouns refer to e, t functions from sets of individuals to truth-values 3. Adjectives refer to e, t functions from sets of individuals to truth-values 4. Intransitive verbs refer to e, t functions from sets of individuals to truth-values If we follow this pattern: Transitive verbs should refer to functions from sets of ordered pairs of individuals to truth-values...but this doesn t reflect syntax - individual arguments aren t merged in pairs VP, t A B DP V, e, t Definition: Function subject, e V DP A relation R from A to B is a function iff it both:. 1. Each element in A is paired with just one element in Y. 2. The domain of R is equal to A. 4.2 Lexical Entries as Functions The Characteristic Function of Sets Each set, X, has a characteristic function This function takes an object, a. and yields true (1) if a X object,e We want a transitive verb to take a single argument And we want the resulting V to yield something like a intransitive verb (i.e., something that maps from individuals to truth-values) 5. Transitive verbs refer to e, e, t functions from sets of individuals... to functions from sets of individuals to truth-values

6 And what about determiners? Before: They apply to a set of individuals (eg., an NP), and select an individual from that set Now: They apply to a function, f, from individuals to truth-values (eg., an NP), and yield an individual that satisfies f. 6. Determiners refer to e, t, e functions from sets of individuals to individuals Next Week: Alonzo Church s Typed Lambda Calculus! Function Application, Modification Optional Reading: Partee et al. (1990): pp Heim & Kratzer (1998): Ch. 2 Lexical entries formalized this way will allow us to collapse the compositional rules predication, select and saturate,. into one compositional rule: function application We ll formalize this next week What sort of Notation should we use for functions? Pair-Notation? We can represent a function from individuals to truth-values as a set of ordered pairs: References Davidson, Donald The logical form of action sentences Heim, Irene & Angelika Kratzer Semantics in generative grammar Blackwell Textbooks in Linguistics. Blackwell Oxford. Klein, Wolfgang Time in language. Psychology Press. Kratzer, Angelika Scope or Pseudoscope? Are there Wide-scope Indefinites? In Susan Rothstein (ed.), Events and grammar, Kluwer Academic Publishers. Partee, Barbara, Alice Ter Meulen & Robert Wall Mathematical Methods in Linguistics, vol. 30 Studies in Linguistics and Philosophy. Kluwer Academic Publishers.. hungry = { a, 0, b, 0, c, 1, d, 0, e, 1, f, 1,...} But this is very unwieldy! It also fails to represent the fact that there is a non-arbitrary relationship between the argument and value...

Proseminar on Semantic Theory Fall 2013 Ling 720 An Algebraic Perspective on the Syntax of First Order Logic (Without Quantification) 1

Proseminar on Semantic Theory Fall 2013 Ling 720 An Algebraic Perspective on the Syntax of First Order Logic (Without Quantification) 1 An Algebraic Perspective on the Syntax of First Order Logic (Without Quantification) 1 1. Statement of the Problem, Outline of the Solution to Come (1) The Key Problem There is much to recommend an algebraic

More information

LING 510, Lab 3 September 23, 2013

LING 510, Lab 3 September 23, 2013 LING 510, Lab 3 September 23, 2013 Agenda: Go over Homework 1 Go over JYW, if there are questions Go over function application (what we ended with on Thursday) 1. Frequently missed questions on Homework

More information

CSC Discrete Math I, Spring Sets

CSC Discrete Math I, Spring Sets CSC 125 - Discrete Math I, Spring 2017 Sets Sets A set is well-defined, unordered collection of objects The objects in a set are called the elements, or members, of the set A set is said to contain its

More information

Lecture 5. Logic I. Statement Logic

Lecture 5. Logic I. Statement Logic Ling 726: Mathematical Linguistics, Logic. Statement Logic V. Borschev and B. Partee, September 27, 2 p. Lecture 5. Logic I. Statement Logic. Statement Logic...... Goals..... Syntax of Statement Logic....2.

More information

9/19/12. Why Study Discrete Math? What is discrete? Sets (Rosen, Chapter 2) can be described by discrete math TOPICS

9/19/12. Why Study Discrete Math? What is discrete? Sets (Rosen, Chapter 2) can be described by discrete math TOPICS What is discrete? Sets (Rosen, Chapter 2) TOPICS Discrete math Set Definition Set Operations Tuples Consisting of distinct or unconnected elements, not continuous (calculus) Helps us in Computer Science

More information

Recursively Enumerable Languages, Turing Machines, and Decidability

Recursively Enumerable Languages, Turing Machines, and Decidability Recursively Enumerable Languages, Turing Machines, and Decidability 1 Problem Reduction: Basic Concepts and Analogies The concept of problem reduction is simple at a high level. You simply take an algorithm

More information

A set with only one member is called a SINGLETON. A set with no members is called the EMPTY SET or 2 N

A set with only one member is called a SINGLETON. A set with no members is called the EMPTY SET or 2 N Mathematical Preliminaries Read pages 529-540 1. Set Theory 1.1 What is a set? A set is a collection of entities of any kind. It can be finite or infinite. A = {a, b, c} N = {1, 2, 3, } An entity is an

More information

Chapter 3. Set Theory. 3.1 What is a Set?

Chapter 3. Set Theory. 3.1 What is a Set? Chapter 3 Set Theory 3.1 What is a Set? A set is a well-defined collection of objects called elements or members of the set. Here, well-defined means accurately and unambiguously stated or described. Any

More information

F15: Formalizing definiteness

F15: Formalizing definiteness F15: Formalizing definiteness Ling 331 / 731 Spring 2016 We saw how the truth-conditional meaning of definiteness involves reference and a presupposition of uniqueness We know the syntactic structure of

More information

The discussion of Chapter 1 will be split into two sessions; the first will cover 1.1 and 1.2; the second will cover 1.3, 1.4, and 1.5.

The discussion of Chapter 1 will be split into two sessions; the first will cover 1.1 and 1.2; the second will cover 1.3, 1.4, and 1.5. 1 The discussion of Chapter 1 will be split into two sessions; the first will cover 1.1 and 1.2; the second will cover 1.3, 1.4, and 1.5. 2 http://memory alpha.org/wiki/file:surak_tos.jpg. Copyright Paramount/CBS.

More information

Semantics and Pragmatics of NLP Propositional Logic, Predicates and Functions

Semantics and Pragmatics of NLP Propositional Logic, Predicates and Functions , Semantics and Pragmatics of NLP, and s Alex Ewan School of Informatics University of Edinburgh 10 January 2008 , 1 2 3 4 Why Bother?, Aim: 1 To associate NL expressions with semantic representations;

More information

Semantics and Generative Grammar. Expanding Our Formalism, Part 2 1. These more complex functions are very awkward to write in our current notation

Semantics and Generative Grammar. Expanding Our Formalism, Part 2 1. These more complex functions are very awkward to write in our current notation Expanding Our Formalism, Part 2 1 1. Lambda Notation for Defining Functions A Practical Concern: Most expressions of natural language will have some kind of function as their extension... These more complex

More information

Context-Free Grammars

Context-Free Grammars Department of Linguistics Ohio State University Syntax 2 (Linguistics 602.02) January 3, 2012 (CFGs) A CFG is an ordered quadruple T, N, D, P where a. T is a finite set called the terminals; b. N is a

More information

Sets MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Sets Fall / 31

Sets MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Sets Fall / 31 Sets MAT231 Transition to Higher Mathematics Fall 2014 MAT231 (Transition to Higher Math) Sets Fall 2014 1 / 31 Outline 1 Sets Introduction Cartesian Products Subsets Power Sets Union, Intersection, Difference

More information

SOFTWARE ENGINEERING DESIGN I

SOFTWARE ENGINEERING DESIGN I 2 SOFTWARE ENGINEERING DESIGN I 3. Schemas and Theories The aim of this course is to learn how to write formal specifications of computer systems, using classical logic. The key descriptional technique

More information

Introduction to Semantics. Expanding Our Formalism, Part 2 1

Introduction to Semantics. Expanding Our Formalism, Part 2 1 Expanding Our Formalism, Part 2 1 1. Lambda Notation for Defining Functions As you may have guessed by this point, most expressions of natural language will have some kind of function as their extension

More information

2.1 Sets 2.2 Set Operations

2.1 Sets 2.2 Set Operations CSC2510 Theoretical Foundations of Computer Science 2.1 Sets 2.2 Set Operations Introduction to Set Theory A set is a structure, representing an unordered collection (group, plurality) of zero or more

More information

564 Lecture 21 Nov. 4, 1999

564 Lecture 21 Nov. 4, 1999 564 Lecture 21 Nov. 4, 1999 1 Homework notes: 1. What we're doing when we calculate value of a tree like one "Dino is brown dinosaur that licked Fred", is we're calculating its truth-conditions, i.e. we're

More information

LECTURE 8: SETS. Software Engineering Mike Wooldridge

LECTURE 8: SETS. Software Engineering Mike Wooldridge LECTURE 8: SETS Mike Wooldridge 1 What is a Set? The concept of a set is used throughout mathematics; its formal definition matches closely our intuitive understanding of the word. Definition: A set is

More information

This is already grossly inconvenient in present formalisms. Why do we want to make this convenient? GENERAL GOALS

This is already grossly inconvenient in present formalisms. Why do we want to make this convenient? GENERAL GOALS 1 THE FORMALIZATION OF MATHEMATICS by Harvey M. Friedman Ohio State University Department of Mathematics friedman@math.ohio-state.edu www.math.ohio-state.edu/~friedman/ May 21, 1997 Can mathematics be

More information

3.1 Constructions with sets

3.1 Constructions with sets 3 Interlude on sets Sets and functions are ubiquitous in mathematics. You might have the impression that they are most strongly connected with the pure end of the subject, but this is an illusion: think

More information

Review of Sets. Review. Philippe B. Laval. Current Semester. Kennesaw State University. Philippe B. Laval (KSU) Sets Current Semester 1 / 16

Review of Sets. Review. Philippe B. Laval. Current Semester. Kennesaw State University. Philippe B. Laval (KSU) Sets Current Semester 1 / 16 Review of Sets Review Philippe B. Laval Kennesaw State University Current Semester Philippe B. Laval (KSU) Sets Current Semester 1 / 16 Outline 1 Introduction 2 Definitions, Notations and Examples 3 Special

More information

Lecture 7. Introduction to Function-Argument Structure and Lambdas. 1. Function-argument structure in natural language

Lecture 7. Introduction to Function-Argument Structure and Lambdas. 1. Function-argument structure in natural language B. Partee, March 15, 2006 p.1 Lecture 7. Introduction to Function-Argument Structure and Lambdas 1. Function-argument structure in natural language...1 1.1. Function-argument application as basic semantic

More information

Context-Free Grammars. Carl Pollard Ohio State University. Linguistics 680 Formal Foundations Tuesday, November 10, 2009

Context-Free Grammars. Carl Pollard Ohio State University. Linguistics 680 Formal Foundations Tuesday, November 10, 2009 Context-Free Grammars Carl Pollard Ohio State University Linguistics 680 Formal Foundations Tuesday, November 10, 2009 These slides are available at: http://www.ling.osu.edu/ scott/680 1 (1) Context-Free

More information

LING 130: Quantified Noun Phrases

LING 130: Quantified Noun Phrases LING 130: Quantified Noun Phrases James Pustejovsky March 15, 2010 1 Syntax for Typed λ-calculus We will now present a language which uses specific types of entities, where the entities are combined with

More information

Today s Topics. What is a set?

Today s Topics. What is a set? Today s Topics Introduction to set theory What is a set? Set notation Basic set operations What is a set? Definition: A set is an unordered collection of objects Examples: Sets can contain items of mixed

More information

Propositional Logic. Part I

Propositional Logic. Part I Part I Propositional Logic 1 Classical Logic and the Material Conditional 1.1 Introduction 1.1.1 The first purpose of this chapter is to review classical propositional logic, including semantic tableaux.

More information

L322 Syntax. Chapter 3: Structural Relations. Linguistics 322 D E F G H. Another representation is in the form of labelled brackets:

L322 Syntax. Chapter 3: Structural Relations. Linguistics 322 D E F G H. Another representation is in the form of labelled brackets: L322 Syntax Chapter 3: Structural Relations Linguistics 322 1 The Parts of a Tree A tree structure is one of an indefinite number of ways to represent a sentence or a part of it. Consider the following

More information

Denotational semantics

Denotational semantics 1 Denotational semantics 2 What we're doing today We're looking at how to reason about the effect of a program by mapping it into mathematical objects Specifically, answering the question which function

More information

CSC 501 Semantics of Programming Languages

CSC 501 Semantics of Programming Languages CSC 501 Semantics of Programming Languages Subtitle: An Introduction to Formal Methods. Instructor: Dr. Lutz Hamel Email: hamel@cs.uri.edu Office: Tyler, Rm 251 Books There are no required books in this

More information

CMSC 330: Organization of Programming Languages. Operational Semantics

CMSC 330: Organization of Programming Languages. Operational Semantics CMSC 330: Organization of Programming Languages Operational Semantics Notes about Project 4, Parts 1 & 2 Still due today (7/2) Will not be graded until 7/11 (along with Part 3) You are strongly encouraged

More information

Each function has a DOMAIN and a RANGE (CO-DOMAIN), which are sets:

Each function has a DOMAIN and a RANGE (CO-DOMAIN), which are sets: Hana Filip hana.filip@gmail.com http://user.phil-fak.uni-duesseldorf.de/~filip/ Department of Linguistics Heinrich-Heine-Universität Düsseldorf Germany semantically complete, or saturated, expressions.

More information

Sets 1. The things in a set are called the elements of it. If x is an element of the set S, we say

Sets 1. The things in a set are called the elements of it. If x is an element of the set S, we say Sets 1 Where does mathematics start? What are the ideas which come first, in a logical sense, and form the foundation for everything else? Can we get a very small number of basic ideas? Can we reduce it

More information

Context-Free Grammars

Context-Free Grammars Context-Free Grammars Carl Pollard yntax 2 (Linguistics 602.02) January 3, 2012 Context-Free Grammars (CFGs) A CFG is an ordered quadruple T, N, D, P where a. T is a finite set called the terminals; b.

More information

2 Ambiguity in Analyses of Idiomatic Phrases

2 Ambiguity in Analyses of Idiomatic Phrases Representing and Accessing [Textual] Digital Information (COMS/INFO 630), Spring 2006 Lecture 22: TAG Adjunction Trees and Feature Based TAGs 4/20/06 Lecturer: Lillian Lee Scribes: Nicolas Hamatake (nh39),

More information

1. true / false By a compiler we mean a program that translates to code that will run natively on some machine.

1. true / false By a compiler we mean a program that translates to code that will run natively on some machine. 1. true / false By a compiler we mean a program that translates to code that will run natively on some machine. 2. true / false ML can be compiled. 3. true / false FORTRAN can reasonably be considered

More information

Complexity Theory. Compiled By : Hari Prasad Pokhrel Page 1 of 20. ioenotes.edu.np

Complexity Theory. Compiled By : Hari Prasad Pokhrel Page 1 of 20. ioenotes.edu.np Chapter 1: Introduction Introduction Purpose of the Theory of Computation: Develop formal mathematical models of computation that reflect real-world computers. Nowadays, the Theory of Computation can be

More information

Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103. Chapter 2. Sets

Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103. Chapter 2. Sets Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from Discrete Mathematics and It's Applications Kenneth H.

More information

Introduction II. Sets. Terminology III. Definition. Definition. Definition. Example

Introduction II. Sets. Terminology III. Definition. Definition. Definition. Example Sets Slides by Christopher M. ourke Instructor: erthe Y. Choueiry Spring 2006 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 1.6 1.7 of Rosen cse235@cse.unl.edu Introduction

More information

More Theories, Formal semantics

More Theories, Formal semantics Parts are based on slides by Carl Pollard Charles University, 2011-11-12 Optimality Theory Universal set of violable constraints: Faithfulness constraints:surface forms should be as close as to underlying

More information

COMS 1003 Fall Introduction to Computer Programming in C. Bits, Boolean Logic & Discrete Math. September 13 th

COMS 1003 Fall Introduction to Computer Programming in C. Bits, Boolean Logic & Discrete Math. September 13 th COMS 1003 Fall 2005 Introduction to Computer Programming in C Bits, Boolean Logic & Discrete Math September 13 th Hello World! Logistics See the website: http://www.cs.columbia.edu/~locasto/ Course Web

More information

1 Introduction CHAPTER ONE: SETS

1 Introduction CHAPTER ONE: SETS 1 Introduction CHAPTER ONE: SETS Scientific theories usually do not directly describe the natural phenomena under investigation, but rather a mathematical idealization of them that abstracts away from

More information

Logic as a framework for NL semantics. Outline. Syntax of FOL [1] Semantic Theory Type Theory

Logic as a framework for NL semantics. Outline. Syntax of FOL [1] Semantic Theory Type Theory Logic as a framework for NL semantics Semantic Theory Type Theory Manfred Pinkal Stefan Thater Summer 2007 Approximate NL meaning as truth conditions. Logic supports precise, consistent and controlled

More information

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics 400 lecture note #4 [Ch 6] Set Theory 1. Basic Concepts and Definitions 1) Basics Element: ; A is a set consisting of elements x which is in a/another set S such that P(x) is true. Empty set: notated {

More information

Semantics of programming languages

Semantics of programming languages Semantics of programming languages Informatics 2A: Lecture 27 John Longley School of Informatics University of Edinburgh jrl@inf.ed.ac.uk 21 November, 2011 1 / 19 1 2 3 4 2 / 19 Semantics for programming

More information

UNIVERSITY OF EDINBURGH COLLEGE OF SCIENCE AND ENGINEERING SCHOOL OF INFORMATICS INFR08008 INFORMATICS 2A: PROCESSING FORMAL AND NATURAL LANGUAGES

UNIVERSITY OF EDINBURGH COLLEGE OF SCIENCE AND ENGINEERING SCHOOL OF INFORMATICS INFR08008 INFORMATICS 2A: PROCESSING FORMAL AND NATURAL LANGUAGES UNIVERSITY OF EDINBURGH COLLEGE OF SCIENCE AND ENGINEERING SCHOOL OF INFORMATICS INFR08008 INFORMATICS 2A: PROCESSING FORMAL AND NATURAL LANGUAGES Saturday 10 th December 2016 09:30 to 11:30 INSTRUCTIONS

More information

Knowledge Representation

Knowledge Representation Knowledge Representation References Rich and Knight, Artificial Intelligence, 2nd ed. McGraw-Hill, 1991 Russell and Norvig, Artificial Intelligence: A modern approach, 2nd ed. Prentice Hall, 2003 Outline

More information

Solving Natural Language Math Problems

Solving Natural Language Math Problems Solving Natural Language Math Problems Takuya Matsuzaki (Nagoya University) Noriko H. Arai (National Institute of Informatics) Solving NL Math why? It is the first and the last goal of symbolic approach

More information

Semantics of programming languages

Semantics of programming languages Semantics of programming languages Informatics 2A: Lecture 28 Mary Cryan School of Informatics University of Edinburgh mcryan@inf.ed.ac.uk 21 November 2018 1 / 18 Two parallel pipelines A large proportion

More information

F08: Intro to Composition

F08: Intro to Composition F08: Intro to Composition Semantics - Ling 331/731 University of Kansas 1 erbs as functions (1). Here is a sadly simplified sentence structure: S P P There are two lexical items that feed this structure:

More information

Logical Grammar: Introduction to Hyperintensional S

Logical Grammar: Introduction to Hyperintensional S Logical Grammar: Introduction to Hyperintensional Semantics Department of Linguistics Ohio State University July 8, 2011 What was Wrong with Montague Semantics? (1/2) Montague (late 1960s) was first to

More information

Organization of Programming Languages CS3200/5200N. Lecture 11

Organization of Programming Languages CS3200/5200N. Lecture 11 Organization of Programming Languages CS3200/5200N Razvan C. Bunescu School of Electrical Engineering and Computer Science bunescu@ohio.edu Functional vs. Imperative The design of the imperative languages

More information

Introduction to Lexical Functional Grammar. Wellformedness conditions on f- structures. Constraints on f-structures

Introduction to Lexical Functional Grammar. Wellformedness conditions on f- structures. Constraints on f-structures Introduction to Lexical Functional Grammar Session 8 f(unctional)-structure & c-structure/f-structure Mapping II & Wrap-up Summary of last week s lecture LFG-specific grammar rules (i.e. PS-rules annotated

More information

Research Seminar The syntax and semantics of questions Spring 1999 February 16, 1999 Week 3: Introduction to the semantics of questions

Research Seminar The syntax and semantics of questions Spring 1999 February 16, 1999 Week 3: Introduction to the semantics of questions 050.822 Research Seminar The syntax and semantics of questions Spring 1999 February 16, 1999 Paul Hagstrom Week : Introduction to the semantics of questions The Semantics of Questions (Hamblin 1958) The

More information

Sets. Margaret M. Fleck. 15 September 2010

Sets. Margaret M. Fleck. 15 September 2010 Sets Margaret M. Fleck 15 September 2010 These notes cover set notation, operations on sets, and how to prove claims involving sets (Rosen sections 2.1 and 2.2). They also cover some logic subtleties that

More information

Semantics via Syntax. f (4) = if define f (x) =2 x + 55.

Semantics via Syntax. f (4) = if define f (x) =2 x + 55. 1 Semantics via Syntax The specification of a programming language starts with its syntax. As every programmer knows, the syntax of a language comes in the shape of a variant of a BNF (Backus-Naur Form)

More information

Hagstrom, Chapter 5 A semantics for single questions and indefinites Presented by Yağmur Sağ

Hagstrom, Chapter 5 A semantics for single questions and indefinites Presented by Yağmur Sağ Hagstrom, 1998- Chapter 5 A semantics for single questions and indefinites Presented by Yağmur Sağ I. Introduction Aim of the paper To assign a consistent semantic contribution to the -ka morpheme which

More information

COMP Logic for Computer Scientists. Lecture 17

COMP Logic for Computer Scientists. Lecture 17 COMP 1002 Logic for Computer Scientists Lecture 17 5 2 J Puzzle: the barber In a certain village, there is a (male) barber who shaves all and only those men of the village who do not shave themselves.

More information

14.1 Encoding for different models of computation

14.1 Encoding for different models of computation Lecture 14 Decidable languages In the previous lecture we discussed some examples of encoding schemes, through which various objects can be represented by strings over a given alphabet. We will begin this

More information

MITOCW watch?v=kz7jjltq9r4

MITOCW watch?v=kz7jjltq9r4 MITOCW watch?v=kz7jjltq9r4 PROFESSOR: We're going to look at the most fundamental of all mathematical data types, namely sets, and let's begin with the definitions. So informally, a set is a collection

More information

Formal languages and computation models

Formal languages and computation models Formal languages and computation models Guy Perrier Bibliography John E. Hopcroft, Rajeev Motwani, Jeffrey D. Ullman - Introduction to Automata Theory, Languages, and Computation - Addison Wesley, 2006.

More information

2/18/14. Uses for Discrete Math in Computer Science. What is discrete? Why Study Discrete Math? Sets and Functions (Rosen, Sections 2.1,2.2, 2.

2/18/14. Uses for Discrete Math in Computer Science. What is discrete? Why Study Discrete Math? Sets and Functions (Rosen, Sections 2.1,2.2, 2. Why Study Discrete Math? Sets and Functions (Rosen, Sections 2.1,2.2, 2.3) TOPICS Discrete math Set Definition Set Operations Tuples Digital computers are based on discrete units of data (bits). Therefore,

More information

Syntax-semantics interface and the non-trivial computation of meaning

Syntax-semantics interface and the non-trivial computation of meaning 1 Syntax-semantics interface and the non-trivial computation of meaning APA/ASL Group Meeting GVI-2: Lambda Calculi, Type Systems, and Applications to Natural Language APA Eastern Division 108th Annual

More information

Syntactic Analysis. CS345H: Programming Languages. Lecture 3: Lexical Analysis. Outline. Lexical Analysis. What is a Token? Tokens

Syntactic Analysis. CS345H: Programming Languages. Lecture 3: Lexical Analysis. Outline. Lexical Analysis. What is a Token? Tokens Syntactic Analysis CS45H: Programming Languages Lecture : Lexical Analysis Thomas Dillig Main Question: How to give structure to strings Analogy: Understanding an English sentence First, we separate a

More information

COMPUTABILITY THEORY AND RECURSIVELY ENUMERABLE SETS

COMPUTABILITY THEORY AND RECURSIVELY ENUMERABLE SETS COMPUTABILITY THEORY AND RECURSIVELY ENUMERABLE SETS JOSHUA LENERS Abstract. An algorithm is function from ω to ω defined by a finite set of instructions to transform a given input x to the desired output

More information

CS101 Introduction to Programming Languages and Compilers

CS101 Introduction to Programming Languages and Compilers CS101 Introduction to Programming Languages and Compilers In this handout we ll examine different types of programming languages and take a brief look at compilers. We ll only hit the major highlights

More information

Some Interdefinability Results for Syntactic Constraint Classes

Some Interdefinability Results for Syntactic Constraint Classes Some Interdefinability Results for Syntactic Constraint Classes Thomas Graf tgraf@ucla.edu tgraf.bol.ucla.edu University of California, Los Angeles Mathematics of Language 11 Bielefeld, Germany 1 The Linguistic

More information

Ling/CSE 472: Introduction to Computational Linguistics. 4/6/15: Morphology & FST 2

Ling/CSE 472: Introduction to Computational Linguistics. 4/6/15: Morphology & FST 2 Ling/CSE 472: Introduction to Computational Linguistics 4/6/15: Morphology & FST 2 Overview Review: FSAs & FSTs XFST xfst demo Examples of FSTs for spelling change rules Reading questions Review: FSAs

More information

Chapter 2 & 3: Representations & Reasoning Systems (2.2)

Chapter 2 & 3: Representations & Reasoning Systems (2.2) Chapter 2 & 3: A Representation & Reasoning System & Using Definite Knowledge Representations & Reasoning Systems (RRS) (2.2) Simplifying Assumptions of the Initial RRS (2.3) Datalog (2.4) Semantics (2.5)

More information

2 Review of Set Theory

2 Review of Set Theory 2 Review of Set Theory Example 2.1. Let Ω = {1, 2, 3, 4, 5, 6} 2.2. Venn diagram is very useful in set theory. It is often used to portray relationships between sets. Many identities can be read out simply

More information

Linking Semantics for Modification

Linking Semantics for Modification Introduction Linking Semantics for Modification Cleo Condoravdi Joint work with David Beaver Zukunftskolleg, University of Konstanz 1 Workshop on Semantics for Textual Inference University of Colorado

More information

Functional Programming. Pure Functional Languages

Functional Programming. Pure Functional Languages Functional Programming Pure functional PLs S-expressions cons, car, cdr Defining functions read-eval-print loop of Lisp interpreter Examples of recursive functions Shallow, deep Equality testing 1 Pure

More information

Matrices. Chapter Matrix A Mathematical Definition Matrix Dimensions and Notation

Matrices. Chapter Matrix A Mathematical Definition Matrix Dimensions and Notation Chapter 7 Introduction to Matrices This chapter introduces the theory and application of matrices. It is divided into two main sections. Section 7.1 discusses some of the basic properties and operations

More information

CS103 Spring 2018 Mathematical Vocabulary

CS103 Spring 2018 Mathematical Vocabulary CS103 Spring 2018 Mathematical Vocabulary You keep using that word. I do not think it means what you think it means. - Inigo Montoya, from The Princess Bride Consider the humble while loop in most programming

More information

Theory of Computations Spring 2016 Practice Final Exam Solutions

Theory of Computations Spring 2016 Practice Final Exam Solutions 1 of 8 Theory of Computations Spring 2016 Practice Final Exam Solutions Name: Directions: Answer the questions as well as you can. Partial credit will be given, so show your work where appropriate. Try

More information

So many Logics, so little time

So many Logics, so little time So many Logics, so little time One classical way to organize them is by tractability vs. expressivity. Description Logics (DLs) are basically subsets of FO logic, located in a 'sweet spot' which provides

More information

Computational Linguistics: Feature Agreement

Computational Linguistics: Feature Agreement Computational Linguistics: Feature Agreement Raffaella Bernardi Contents 1 Admin................................................... 4 2 Formal Grammars......................................... 5 2.1 Recall:

More information

Program Verification & Testing; Review of Propositional Logic

Program Verification & Testing; Review of Propositional Logic 8/24: p.1, solved; 9/20: p.5 Program Verification & Testing; Review of Propositional Logic CS 536: Science of Programming, Fall 2018 A. Why Course guidelines are important. Active learning is the style

More information

CS 3512, Spring Instructor: Doug Dunham. Textbook: James L. Hein, Discrete Structures, Logic, and Computability, 3rd Ed. Jones and Barlett, 2010

CS 3512, Spring Instructor: Doug Dunham. Textbook: James L. Hein, Discrete Structures, Logic, and Computability, 3rd Ed. Jones and Barlett, 2010 CS 3512, Spring 2011 Instructor: Doug Dunham Textbook: James L. Hein, Discrete Structures, Logic, and Computability, 3rd Ed. Jones and Barlett, 2010 Prerequisites: Calc I, CS2511 Rough course outline:

More information

Introduction to Haskell

Introduction to Haskell Introduction to Haskell Matt Mullins Texas A&M Computing Society October 6, 2009 Matt Mullins (TACS) Introduction to Haskell October 6, 2009 1 / 39 Outline Introduction to Haskell Functional Programming

More information

CMSC 201 Fall 2016 Lab 09 Advanced Debugging

CMSC 201 Fall 2016 Lab 09 Advanced Debugging CMSC 201 Fall 2016 Lab 09 Advanced Debugging Assignment: Lab 09 Advanced Debugging Due Date: During discussion Value: 10 points Part 1: Introduction to Errors Throughout this semester, we have been working

More information

MATH 22 MORE ABOUT FUNCTIONS. Lecture M: 10/14/2003. Form follows function. Louis Henri Sullivan

MATH 22 MORE ABOUT FUNCTIONS. Lecture M: 10/14/2003. Form follows function. Louis Henri Sullivan MATH 22 Lecture M: 10/14/2003 MORE ABOUT FUNCTIONS Form follows function. Louis Henri Sullivan This frightful word, function, was born under other skies than those I have loved. Le Corbusier D ora innanzi

More information

CMPSCI 250: Introduction to Computation. Lecture #1: Things, Sets and Strings David Mix Barrington 22 January 2014

CMPSCI 250: Introduction to Computation. Lecture #1: Things, Sets and Strings David Mix Barrington 22 January 2014 CMPSCI 250: Introduction to Computation Lecture #1: Things, Sets and Strings David Mix Barrington 22 January 2014 Things, Sets, and Strings The Mathematical Method Administrative Stuff The Objects of Mathematics

More information

Functional Programming. Pure Functional Programming

Functional Programming. Pure Functional Programming Functional Programming Pure Functional Programming Computation is largely performed by applying functions to values. The value of an expression depends only on the values of its sub-expressions (if any).

More information

Formal Systems and their Applications

Formal Systems and their Applications Formal Systems and their Applications Dave Clarke (Dave.Clarke@cs.kuleuven.be) Acknowledgment: these slides are based in part on slides from Benjamin Pierce and Frank Piessens 1 Course Overview Introduction

More information

arxiv: v2 [cs.ai] 18 Sep 2013

arxiv: v2 [cs.ai] 18 Sep 2013 Lambda Dependency-Based Compositional Semantics Percy Liang September 19, 2013 arxiv:1309.4408v2 [cs.ai] 18 Sep 2013 Abstract This short note presents a new formal language, lambda dependency-based compositional

More information

Going beyond propositional logic

Going beyond propositional logic Going beyond propositional logic Consider the following statements: p: Ling took CS245 q: Ling passed CS245 r: Ling failed CS245 Taken literally, these are all atomic statements, and formally they have

More information

Introduction to Lexical Analysis

Introduction to Lexical Analysis Introduction to Lexical Analysis Outline Informal sketch of lexical analysis Identifies tokens in input string Issues in lexical analysis Lookahead Ambiguities Specifying lexers Regular expressions Examples

More information

Semantics of programming languages

Semantics of programming languages Semantics of programming languages Informatics 2A: Lecture 27 Alex Simpson School of Informatics University of Edinburgh als@inf.ed.ac.uk 18 November, 2014 1 / 18 Two parallel pipelines A large proportion

More information

Denotational Semantics. Domain Theory

Denotational Semantics. Domain Theory Denotational Semantics and Domain Theory 1 / 51 Outline Denotational Semantics Basic Domain Theory Introduction and history Primitive and lifted domains Sum and product domains Function domains Meaning

More information

CS 242. Fundamentals. Reading: See last slide

CS 242. Fundamentals. Reading: See last slide CS 242 Fundamentals Reading: See last slide Syntax and Semantics of Programs Syntax The symbols used to write a program Semantics The actions that occur when a program is executed Programming language

More information

Programming Languages Third Edition

Programming Languages Third Edition Programming Languages Third Edition Chapter 12 Formal Semantics Objectives Become familiar with a sample small language for the purpose of semantic specification Understand operational semantics Understand

More information

RACKET BASICS, ORDER OF EVALUATION, RECURSION 1

RACKET BASICS, ORDER OF EVALUATION, RECURSION 1 RACKET BASICS, ORDER OF EVALUATION, RECURSION 1 COMPUTER SCIENCE 61AS 1. What is functional programming? Give an example of a function below: Functional Programming In functional programming, you do not

More information

A point is pictured by a dot. While a dot must have some size, the point it represents has no size. Points are named by capital letters..

A point is pictured by a dot. While a dot must have some size, the point it represents has no size. Points are named by capital letters.. Chapter 1 Points, Lines & Planes s we begin any new topic, we have to familiarize ourselves with the language and notation to be successful. My guess that you might already be pretty familiar with many

More information

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 4 MODULE, SPRING SEMESTER MATHEMATICAL FOUNDATIONS OF PROGRAMMING ANSWERS

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 4 MODULE, SPRING SEMESTER MATHEMATICAL FOUNDATIONS OF PROGRAMMING ANSWERS The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 4 MODULE, SPRING SEMESTER 2012 2013 MATHEMATICAL FOUNDATIONS OF PROGRAMMING ANSWERS Time allowed TWO hours Candidates may complete the front

More information

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions): CS 70 Discrete Mathematics for CS Fall 2003 Wagner Lecture 7 This lecture returns to the topic of propositional logic. Whereas in Lecture 1 we studied this topic as a way of understanding proper reasoning

More information

Class Intro & Compositional Semantics & Others

Class Intro & Compositional Semantics & Others LING 147. Semantics of Questions Week 1 Yimei Xiang September 1, 2016 1 Class intro Class Intro & Compositional Semantics & Others What does a declarative denote? A declarative denotes a proposition. Its

More information

Problem One: A Quick Algebra Review

Problem One: A Quick Algebra Review CS103A Winter 2019 Solutions for Week One Handout 01S Problem One: A Quick Algebra Review In the first week of CS103, we'll be doing a few proofs that will require some algebraic manipulations and reasoning

More information

1 Parsing (25 pts, 5 each)

1 Parsing (25 pts, 5 each) CSC173 FLAT 2014 ANSWERS AND FFQ 30 September 2014 Please write your name on the bluebook. You may use two sides of handwritten notes. Perfect score is 75 points out of 85 possible. Stay cool and please

More information

LOGIC AND DISCRETE MATHEMATICS

LOGIC AND DISCRETE MATHEMATICS LOGIC AND DISCRETE MATHEMATICS A Computer Science Perspective WINFRIED KARL GRASSMANN Department of Computer Science University of Saskatchewan JEAN-PAUL TREMBLAY Department of Computer Science University

More information