Today we will probably finish Course Notes 2.3: Predicates and Quantifiers.

Similar documents
2-4: The Use of Quantifiers

Introduction to Sets and Logic (MATH 1190)

Propositional Logic Not Enough

Predicate Calculus - Syntax

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

CSE 20 DISCRETE MATH. Winter

Predicate Logic: Sematics Part 1

Predicate Logic. Andreas Klappenecker

CM10196 Topic 2: Sets, Predicates, Boolean algebras

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

With Question/Answer Animations. Chapter 2

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

Predicate Calculus lecture 1

Math Fundamentals of Higher Math

Math.3336: Discrete Mathematics. Nested Quantifiers

1.1 Language and Logic

Section Summary. Section 1.5 9/9/2014

Discrete Mathematics

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.

Proposi'onal Logic Not Enough

CSC165 Mathematical Expression and Reasoning for Computer Science

1.1 Language and Logic

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

PREDICATE LOGIC. Schaum's outline chapter 4 Rosen chapter 1. September 11, ioc.pdf

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.

Announcements CompSci 102 Discrete Math for Computer Science

Logic and Proof. On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes!

On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes! 26-Aug-2011 MA

Intro to Logic and Proofs

CSCE 222 Discrete Structures for Computing. Predicate Logic. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

software design & management Gachon University Chulyun Kim

Lecture Predicates and Quantifiers 1.5 Nested Quantifiers

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

Discrete Mathematical Structures: Theory and Applications

ICS141: Discrete Mathematics for Computer Science I

Sets McGraw-Hill Education

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

ECOM Discrete Mathematics

Discrete Mathematics and Its Applications

MAT 243 Test 1 SOLUTIONS, FORM A

MATH 22 INFERENCE & QUANTIFICATION. Lecture F: 9/18/2003

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

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

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

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

STRATEGIES OF PROBLEM SOLVING

MAT2345 Discrete Math

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

Logical Reasoning. Chapter Statements and Logical Operators

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

Propositional Logic, Predicates, and Equivalence

Mat 243 Exam 1 Review

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Background for Discrete Mathematics

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

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Exclusive Disjunction

Predicates, Quantifiers and Nested Quantifiers

Section 2.1: Introduction to the Logic of Quantified Statements

Logic. Def. A Proposition is a statement that is either true or false.

CHAPTER 1. Preliminaries. 1 Set Theory

ICS141: Discrete Mathematics for Computer Science I

Predicate Logic. Predicates. Math 173 February 9, 2010

Readings: Conjecture. Theorem. Rosen Section 1.5

CSE Discrete Structures

CSE 20 DISCRETE MATH WINTER

CSE 20 DISCRETE MATH SPRING

Logic, Sets, and Proofs

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

MATH 215 Sets (S) Definition 1 A set is a collection of objects. The objects in a set X are called elements of X.

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

Negations of Quantifiers

THE LOGIC OF QUANTIFIED STATEMENTS

AAA615: Formal Methods. Lecture 2 First-Order Logic

University of Aberdeen, Computing Science CS2013 Predicate Logic 4 Kees van Deemter

Announcement. Homework 1

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

Predicate logic. G. Carl Evans. Summer University of Illinois. Propositional Logic Review Predicate logic Predicate Logic Examples

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

! Predicates! Variables! Quantifiers. ! Universal Quantifier! Existential Quantifier. ! Negating Quantifiers. ! De Morgan s Laws for Quantifiers

Statements and Quantifiers

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall Set-builder notation (a more precise way of describing a set)

Variable Names. Some Ques(ons about Quan(fiers (but answers are not proven just stated here!) x ( z Q(z) y P(x,y) )

1 The Foundation: Logic and Proofs

CSE Discrete Structures

For all For every For each For any There exists at least one There exists There is Some

Equivalence of Propositions

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

Exercises 1 - Solutions

Foundations of Mathematics Worksheet 2

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

Chapter 2: The Logic of Quantified Statements

COMP9414: Artificial Intelligence First-Order Logic

15414/614 Optional Lecture 3: Predicate Logic

4 Quantifiers and Quantified Arguments 4.1 Quantifiers

Supplementary Logic Notes CSE 321 Winter 2009

Mathematical Logic Part Two

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

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

Transcription:

Friday, Sept 14 Today we will probably finish Course Notes 2.3: Predicates and Quantifiers. After that, we might begin Course Notes 1.1: Definitions in Set Mathematics.

EXAMPLE Let P(x): 'x is a JRR Tolkien authority;' Q(x): 'x is a nerd;' R(x,y): 'x has read y.' The universe for x is the set of all people, the universe for y is the set of all JRR Tolkien novels. True/false The symbolization for 'Every nerd who has read at least one JRR Tolkien novel is a JRR Tolkien authority' is x[(q(x) yr(x, y)) P(x)] A. True B. False

EXERCISE Select the negation of Every wolverine is bitey. A. No wolverine is bitey. B. At least one wolverine is bitey. C. At least one wolverine is not bitey. D. None of these.

Negating Quantified propositions (DeMorgan s Laws for Quantifiers) 1. xp(x) x P(x) 2. xp(x) x P(x) That is, the negation of P(x) is true for all x is There is at least one x for which P(x) is not true. That is, the negation of There is at least one x for which P(x) is true is P(x) is false for all x which can also be stated There is no x for which P(x) is true.

EXAMPLE Write the negation of At least one badger is cuddly. Answer

EXAMPLE What is the negation of x[(q(x) R(x, The Hobbit)) P(x)]? A. x[ (Q(x) R(x, The Hobbit)) P(x)] B. x[ (Q(x) R(x, The Hobbit)) P(x)] C. x[(q(x) R(x, The Hobbit)) P(x)] D. x[(q(x) R(x, The Hobbit)) P(x)] E. None of these In words, the negation of Every nerd who has read The Hobbit is a JRR Tolkien authority is

DeMorgan s Laws for Nested Quantifiers If there is more than one quantifier, then the negation operator should be passed from left to right across one quantifier at a time, using the appropriate DeMorgan Law at each step. EXAMPLE Use DeMorgan s Laws to negate: x y[q(x) R(x,y)]

SOMETHING ELSE Suppose U = {x 1, x 2 }, P(x), Q(x) are predicates, and P(x 1 ) is T P(x 2 ) is F Q(x 1 ) is F Q(x 2 ) is T Evaluate each of these quantified propositions: 1. x[p(x) Q(x)] 2. xp(x) xq(x) Which propositions are true? A. Prop. 1 only is true B. Prop. 2 only is true C. Prop. 1 and Prop. 2 are both true D. Both are false

The result of the previous exercise proves the following fact (from the end of Chapter 2 Section 3) about distributing quantifiers. For any propositions P(x), Q(x) x[p(x) Q(x)] xp(x) xq(x) That is, the universal quantifier does/does not distribute over a disjunction.

Referring to the previous example, note that x[p(x) Q(x)] is. xp(x) xq(x) is. This proves: For any predicates P(x), Q(x) x[p(x) Q(x)] xp(x) xq(x) That is, the existential quantifier does/does not distribute over a conjunction. Finally, two other facts that cannot be proven with just a single example: x[p(x) Q(x)] xp(x) xq(x) x[p(x) Q(x)] xp(x) xq(x)

Course Notes 1.1: Definitions in set mathematics While introducing material from Course Notes 2.3, we also introduced, as needed, some terminology from Course Notes 1.1. Before moving into Chapter 3, we will finish Course Notes 1.1. The terminology and notation of set mathematics is common vocabulary for almost any theoretical or higher level discussion in math and computing.

Chapter 1, Section 1: Set Mathematics, definitions Set A set S is an unordered collection of objects. Element The objects contained in a set are called its elements or members. If x is an element of set S, we write If x is not an element of set S, we write Universe In each situation there is an underlying universal set U, either stated or implied, from which elements may be drawn.

Methods for defining or describing particular sets Roster method The elements of a set are listed, separated by commas, within curly braces. Example S = {a, b, c, d} When we are using the roster method, the order in which the elements are listed is not important, and redundant listing of elements is ignored. S = {a, b, c, d} = { } = { } T/F (a, b, c, d) = {a, b, c, d}

Roster method with ellipses Suppose our universe is the set of integers. Within this universe we will define a set T as follows: T = { 1, 0, 1,..., 10} When we use ellipses like this, the assumption is that the context makes their meaning clear. A set is well defined if there is no uncertainty as to whether or not a particular object belongs in it. A set that is not well defined is said to be ill defined.

Set-builder notation defines a set by describing, rather than listing, its elements. Let the universe be the set of real numbers. Within this universe define a set V as follows: V = {x x > 1.3 and x < 2π} This is read V is the set of all x such that x is greater than 1.3 and x is less than 2π. We should recognize that V is the infinite set containing all real numbers between 1.3 and 2π. In other words, V is the open interval. The vertical bar represents such that. We can also use a colon instead of the vertical bar: V = EXAMPLE Using set builder notation, the set T that was previously defined using the roster method and ellipses can be alternatively defined: