Semantics I, Rutgers University Week 3-1 Yimei Xiang September 17, Predicate logic

Similar documents
06 From Propositional to Predicate Logic

Proseminar on Semantic Theory Fall 2013 Ling 720 First Order (Predicate) Logic: Syntax and Natural Deduction 1

Ling 98a: The Meaning of Negation (Week 5)

Denote John by j and Smith by s, is a bachelor by predicate letter B. The statements (1) and (2) may be written as B(j) and B(s).

LING 106. Knowledge of Meaning Lecture 3-1 Yimei Xiang Feb 6, Propositional logic

Predicate Calculus lecture 1

Philosophy 240 Symbolic Logic Russell Marcus Hamilton College Fall 2014

Formal (Natural) Deduction for Predicate Calculus

LIN1032 Formal Foundations for Linguistics

Predicate Logic. CSE 191, Class Note 02: Predicate Logic Computer Sci & Eng Dept SUNY Buffalo

Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures

Ling 130 Notes: Predicate Logic and Natural Deduction

Section Summary. Section 1.5 9/9/2014

Predicate Logic: Sematics Part 1

Predicate Calculus - Syntax

Predicate Logic - Introduction

Predicate Calculus. Lila Kari. University of Waterloo. Predicate Calculus CS245, Logic and Computation 1 / 59

Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3. Section 1.3 Predicates and Quantifiers

Logic. Readings: Coppock and Champollion textbook draft, Ch

Introduction to first-order logic:

Predicate Logic. Example. Statements in Predicate Logic. Some statements cannot be expressed in propositional logic, such as: Predicate Logic

All psychiatrists are doctors All doctors are college graduates All psychiatrists are college graduates

Introduction to Intensional Logic. Ling 406/802 Read Meaning and Grammar, Ch

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PREDICATE LOGIC

Introduction to Sets and Logic (MATH 1190)

Propositional Logic. Yimei Xiang 11 February format strictly follow the laws and never skip any step.

Discrete Mathematics and Its Applications

Discrete Structures for Computer Science

DISCRETE MATHEMATICS BA202

2. Use quantifiers to express the associative law for multiplication of real numbers.

Predicates, Quantifiers and Nested Quantifiers

ICS141: Discrete Mathematics for Computer Science I

MAT2345 Discrete Math

COMP9414: Artificial Intelligence First-Order Logic

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Quantifiers Here is a (true) statement about real numbers: Every real number is either rational or irrational.

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

Lecture 5. Predicate Logic 1. October 13, 2008 Hana Filip 1

1.3 Predicates and Quantifiers

Predicate Calculus. Formal Methods in Verification of Computer Systems Jeremy Johnson

I thank the author of the examination paper on which sample paper is based. VH

AAA615: Formal Methods. Lecture 2 First-Order Logic

2/18/14. What is logic? Proposi0onal Logic. Logic? Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1.

Propositional Logic Not Enough

Basics of conversational implicatures

SYMBOLIC LOGIC UNIT 10: SINGULAR SENTENCES

Introduction to Predicate Logic Part 1. Professor Anita Wasilewska Lecture Notes (1)

Proposi'onal Logic Not Enough

Tecniche di Verifica. Introduction to Propositional Logic

Mat 243 Exam 1 Review

INTRODUCTION TO PREDICATE LOGIC HUTH AND RYAN 2.1, 2.2, 2.4

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

CSI30. Chapter 1. The Foundations: Logic and Proofs Nested Quantifiers

CS 220: Discrete Structures and their Applications. Predicate Logic Section in zybooks

First-Order Logic (FOL)

Predicates and Quantifiers. Nested Quantifiers Discrete Mathematic. Chapter 1: Logic and Proof

Discrete Structures CRN Test 3 Version 1 CMSC 2123 Autumn 2013

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

COMP 409: Logic Homework 5

Exercises. Exercise Sheet 1: Propositional Logic

Deduction by Daniel Bonevac. Chapter 8 Identity and Functions

EXERCISES BOOKLET. for the Logic Manual. Volker Halbach. Oxford. There are no changes to the exercises from last year s edition

First Order Logic (FOL) 1 znj/dm2017

Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January )

Logic and Modelling. Introduction to Predicate Logic. Jörg Endrullis. VU University Amsterdam

First order logic. Example The deduction of statements: This reasoning is intuitively correct. Every man is mortal. Since Ade is a man, he is mortal.


Homogeneity and Plurals: From the Strongest Meaning Hypothesis to Supervaluations

Recall that the expression x > 3 is not a proposition. Why?

Mathematical Logic. Reasoning in First Order Logic. Chiara Ghidini FBK-IRST, Trento, Italy. May 2, 2013

Topic DPL: Answers. Exercise 1.1a Explain why the rule &E for MPL is a sound rule.

Propositional Logic. Premises: If Jack knows Jill, then Jill knows Jack. Jack knows Jill. Conclusion: Is it the case that Jill knows Jack?

Logic. Lesson 3: Tables and Models. Flavio Zelazek. October 22, 2014

2-4: The Use of Quantifiers

Propositional Functions. Quantifiers. Assignment of values. Existential Quantification of P(x) Universal Quantification of P(x)

Interpretations of PL (Model Theory)

Introduction to Decision Sciences Lecture 2

CS 214 Introduction to Discrete Structures. Chapter 1 Formal Logic. Mikel D. Petty, Ph.D.

Predicate Calculus. CS 270 Math Foundations of Computer Science Jeremy Johnson

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

Today s Lecture. ICS 6B Boolean Algebra & Logic. Predicates. Chapter 1: Section 1.3. Propositions. For Example. Socrates is Mortal

Logical Structures in Natural Language: First order Logic (FoL)

Predicates and Quantifiers. CS 231 Dianna Xu

Computational Logic. Recall of First-Order Logic. Damiano Zanardini

CS 250/251 Discrete Structures I and II Section 005 Fall/Winter Professor York

COMP4418: Knowledge Representation and Reasoning First-Order Logic

Announcements. CS311H: Discrete Mathematics. Introduction to First-Order Logic. A Motivating Example. Why First-Order Logic?

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.


Predicate Logic: Syntax

Automated Reasoning Lecture 5: First-Order Logic

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

Definite Logic Programs

First order Logic ( Predicate Logic) and Methods of Proof

6. COMPLEX PREDICATES

Proving Arguments Valid in Predicate Calculus

4 Quantifiers and Quantified Arguments 4.1 Quantifiers

Transcription:

Semantics I, Rutgers University Week 3-1 Yimei Xiang September 17, 2018 Predicate logic 1. Why propositional logic is not enough? Discussion: (i) Does (1a) contradict (1b)? [Two sentences are contradictory iff they cannot be simultaneously true.] (ii) If it does, can you show this contradiction by propositional logic? (1) a. Mary is wearing a blue skirt. b. Nobody is wearing a blue skirt. Discussion: How did we translate the following quantificational sentences in set-theoretic notations? (2) a. Kitty is a cat. b. Some cat meows. c. Every cat meows. 2. Vocabulary and syntax of predicate Logic Vocabulary of predicate logic (3) a. Individual constants: d, n, j, m,... b. Individual variables: x, y, z,... (Individual variables and constants together are called terms.) c. Predicates: P, Q, R,..., each with a fixed finite number of argument places. d. Connectives:,,,, e. Quantifiers: i. existential quantifier (means some in the sense of at least one, possibly more ), ii. universal quantifier (means every ) f. Constituency labels: ( ), [ ], commas Syntax of predicate logic (4) Basic expressions a. terms individual constants: d, n, j, m,... individual variables: x, y, z,... b. predicates: unary predicates: happy, bored, linguist, philosopher, cellist, smokes binary predicates: kissed, loves, admires n-ary predicates:?? (5) Well-formed formulas a. Every sentence variable is a wff. 1

b. If t 1 and t 1 are terms, then t 1 = t 2 is a wff. c. If t 1 is an individual term and P is a one-place predicate term, then P(t 1 ) is a wff. d. If t 1 and t 2 are individual terms and P is a two-place predicate term, then P(t 1, t 2 ) is a wff. e. If P is a n-place predicate and t 1, t 2,..., t n are terms, then P(t 1, t 2,..., t n ) is a wff. f. If α is a wff and x is an individual variable, then [ xα] and [ xα] are wffs. 1 g. If α and β are wffs, then α, (α β), (α β), (α β), and (α β) are wffs. h. Nothing else is a wff of predicate logic. We can also drop some of the brackets like what we did in propositional logic. Exercise: Following the recursive rules above, identify whether each of the following strings is a wff of predicate logic. (H is a one-place predicate, L is a two-place predicate, jd are individual constants, xy are individual variables.) (6) a. H b. j c. j = d d. H(j) e. L(j) f. L(j, x) g. xh(y) h. x y[h(x) L(d, x)] Scope, bound/free variables, closed/open formula In xα and xα, α is the scope of x and x. (7) a. x y[h(x) L(d, x)] (scope of x) (scope of y) b. x[q(x) y[p(y) zs(x, y, z)]] (scope of x) (scope of y) (scope of z) Bound/free variables, closed/open formula: * An occurrence of a variable x is bound if it occurs in the scope of x/ x, otherwise it is free. * (8) a. x[p(x)], x[p(y) Q(x)] b. P(x), yp(x) Every occurrence of a variable x can only be bound at most once. Example: In (9), the occurrence of x in Q(x) has been bound by its closest eligible binder x, and thus is not bound by x. (9) x[p(x) xq(x)] is equivalent to x[p(x) yq(y)] * A wff is closed iff it does not contain any free variables, otherwise it is open. 1 This definition allows vacuous quantification (e.g., xp(j)) and is more permissive than the one in Allwood et al. (1977). 2

3. Semantics of predicate logic 3.1. Without variables Models The truth value of any statement in predicate logic depends on the domain of discourse and the choice of semantic values for the constants and predicates. We interpret expressions of predicate logic in models. A model M is a pair D, I, in particular: D is the domain of discourse (i.e., the set of considered individuals). I is an interpretation function that assigns a semantic value to each basic non-logical constant expression. 2 For an expression α, α M is called the interpretation/denotation of α relative to M. Example: a toy language L Categories Expressions in L NL counterparts Names a, b, c, d Andy, Billy, Cindy, Danny 1-place predicates H, C happy, cried 2-place predicates L, K dislike, know (10) M 1 = D 1, I 1, where a. D 1 = {Andy, Billy, Cindy, Danny} b. Interpreting names/ individual constants I 1 (a) = Andy, I 1 (b) = Billy, I 1 (c) = Cindy, I 1 (d) = Danny c. Interpreting predicates I 1 (H) = {Andy, Billy} I 1 (C) = {Andy, Billy, Cindy} I 1 (L) = { Andy, Danny, Billy, Cindy } I 1 (K) = { Andy, Danny, Billy, Cindy, Cindy, Andy } Semantics of predicate logic (without variables) (a and b are individual constants, P is a predicate, φ and ψ are formulas.) (11) Semantics of basic expressions a. a M = I(a) b. P M = I(P) (12) Semantics of formulas a. a = b M = 1 iff a M = b M b. P(a) M = 1 iff a M P M. c. P(a 1, a 2,..., a n ) M = 1 iff a 1 M, a 2 M,..., a n M P M. d. φ M = 1 iff φ M = 0. e. φ ψ M = 1 iff φ M = 1 and ψ M = 1. f. φ ψ M = 1 iff φ M = 1 or ψ M = 1. 2 The value of a basic expression depends on the model, while the contribution of a connective to the meaning is the same regardless of the model. Hence, predicates and individual constants are non-logical constants, while connectives are logical constants. 3

g. φ ψ M = 1 iff φ M = 0 or ψ M = 1. h. φ ψ M = 1 iff φ M = ψ M. Exercise: (i) Give one sentence with a negation which is true relatives to M 1, (ii) Give one sentence with an implication which is true relative to M 1. 3.2. With variables Interpreting individual variables The above rules allow us to interpret constants and formulas. But, what about individual variables? The device that we use to interpret variables is called an assignment function, a function that specifies for each variable, how that variable is to be interpreted. For example: g 1 = x Andy y Billy z Cindy... g 2 = x Billy y Andy z Cindy... Thus, to interpret expressions in a language that involves variables, we need both M and g. For an expression α, α M,g is called the interpretation/denotation of α relative to M and assignment function g. (13) x M,g = g(x), for example: a. x M,g 1 = g1 (x) = Andy b. x M,g 2 = g 2 (x) = Billy Interpreting quantification Informally, xh(x) is true in a model M iff no matter which individual we assign to x, H(x) is true. Likewise, xh(x) is true in a model M iff for some individual that we assign to x, H(x) is true. (14) g[x k] is an assignment function that is exactly like g save that g(x) = k. For example: g 1 [x Billy] = x Billy y Billy z Cindy... (15) a. xp(x) M,g = 1 iff P(x) M,g[x k] = 1 for some constant individual k D. b. xp(x) M,g = 1 iff P(x) M,g[x k] = 1 for every constant individual k D. Exercise: For each of the following wffs, determine its truth relative to M 1 and g 1. (16) a. H(x) b. xh(x) c. x H(x) d. xc(x) e. x yk(x, y) f. x[h(x) C(x)] 4

Semantics of predicate logic (Final!) (17) Semantics of basic expressions a. If α is a non-logical constant, α M,g = I(α) b. If α is an individual variable, α M,g = g(α) (18) Semantics of formulas a. Equality If a and b are terms, a = b M,g = 1 iff a M,g = b M,g b. Predication If P is a one-place predicate, and a is a term: P(a) M,g = 1 iff a M,g P M,g. If P is an n-place predicate, and a 1, a 2,..., a n are terms: P(a 1, a 2,..., a n ) M,g = 1 iff a 1 M,g, a 2 M,g,..., a n M,g P M,g. c. Negation and binary connectives If φ and ψ are formulas: φ M,g = 1 iff φ M,g = 0. φ ψ M,g = 1 iff φ M,g = 1 and ψ M,g = 1. φ ψ M,g = 1 iff φ M,g = 1 or ψ M,g = 1. φ ψ M,g = 1 iff φ M,g = 0 or ψ M,g = 1. φ ψ M,g = 1 iff φ M,g = ψ M,g. d. Quantification If x is a variable and φ is a formula: xφ M,g = 1 iff φ M,g[x k] = 1 for some constant individual k D. xφ M,g = 1 iff φ M,g[x k] = 1 for every constant individual k D. 4. Translations between predicate logic and English Predicates P(t) 1-place predicate run, happy, teacher, meet John, who arrived relative clause P(t 1, t 2 ) 2-place predicate meet, taller than, come from P(t 1, t 2, t 3 ) 3-place predicate give, show P(t 1, t 2,..., t n ) n-place predicate Translation of an atomic formula: Quantifiers (19) a. Kitty meows Key: M(x): x meows; k: Kitty Translation: M(k) b. John introduced Andy to Billy. Key: I(x, y, z): x introduce y to z; j: John; a: Andy; b: Billy Translation: I(j, a, b) Existential quantification: (20) John admires some teacher. a. T(c) A(j, c) Cindy is a teacher and John admires Cindy. b. x[t(x) A(j, x)] There is some x such that x is a teacher and John admires x. 5

Universal quantification: (21) Every teacher is friendly. a. T(p) F(p) If Peter is a teacher, then he is friendly. b. T(b) F(b) If Bill is a teacher, then he is friendly. c. x[t(x) F(x)] For every x, If x is a teacher, then x is friendly. Discussion: The following wffs are not appropriate translations for (20) and (21). Why? (22) a. x[t(x) A(j, x)] b. x[t(x) F(x)] Exercise: Translate the following formulas into good English sentences. (H: be human, L: like, m: Mary) (23) a. x[h(x) L(x, m)] b. x[h(x) L(x, m)] c. x[h(x) y[h(y) L(x, y)]] d. x[h(x) L(x, m) y[h(y) L(x, y)]] Exercise: Translate the following sentences into predicate logic. (Ignore the details of tense and aspect.) (24) a. Charles has a pen, but Elsa doesn t. b. No one is going to visit John. c. Every student enrolled in Semantics I is interested in some linguistic topic. More about translations of quantificational expressions Sometimes, the quantificational force of a sentence might not be explicitly expressed: (25) a. A whale is a mammal. (Generic sentence) x[w(x) M(x)] b. Students who are late are to be punished. (Bare plurals) x[s(x) L(x) P(x)] Scope ambiguity of quantifiers (26) Every boy invited some girl. a. Every boy is such that he invited a girl. x[b(x) y[g(x) I(x, y)]] b. There is a girl such that she is invited by every boy. y[g(y) x[b(x) I(x, y)]] Interactions between negation and existential quantifiers (27) a. John saw someone. x[h(x) S(j, x)] b. John didn t see someone. c. John didn t see anyone. d. John didn t see a person. 6