Section 2.2: Introduction to the Logic of Quantified Statements

Similar documents
Section 2.4: Arguments with Quantified Statements

Notes. Notes. Introduction. Notes. Propositional Functions. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry.

for all x, the assertion P(x) is false. there exists x, for which the assertion P(x) is true.

CPSC 121: Models of Computation. Module 6: Rewriting predicate logic statements

Practice Problems: All Computer Science majors are people. Some computer science majors are logical thinkers. Some people are logical thinkers.

Summary of Course Coverage

CSE20: Discrete Mathematics

CSC Discrete Math I, Spring Sets

University of Illinois at Chicago Department of Computer Science. Final Examination. CS 151 Mathematical Foundations of Computer Science Fall 2012

Strategies for Proofs

THE LOGIC OF QUANTIFIED STATEMENTS

Homework 1. Due Date: Wednesday 11/26/07 - at the beginning of the lecture

Spring 2018 CSE191 Midterm Exam I

(a) (4 pts) Prove that if a and b are rational, then ab is rational. Since a and b are rational they can be written as the ratio of integers a 1

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Introduction to Boolean Algebra

MATH 2100 / 2105 / 2350 EXAM 1

Introduction to Boolean Algebra

Name: CSCI E-220: Artificial Intelligence Midterm Exam, Fall Term 2001

Copyright 2006 Melanie Butler Chapter 1: Review. Chapter 1: Review

Lecture Notes 15 Number systems and logic CSS Data Structures and Object-Oriented Programming Professor Clark F. Olson

Propositional Calculus. Math Foundations of Computer Science

Chapter 1.3 Quantifiers, Predicates, and Validity. Reading: 1.3 Next Class: 1.4. Motivation

Math 2300, Section #1; 14:00-15:15 MW P-101; Daily Notes Fall, 2015

L05 - Negating Statements

CSC 501 Semantics of Programming Languages

CSL105: Discrete Mathematical Structures. Ragesh Jaiswal, CSE, IIT Delhi

CPSC 121 Some Sample Questions for the Final Exam Tuesday, April 15, 2014, 8:30AM

Homework 1 CS 1050 A Due:

CSE 20 DISCRETE MATH. Fall

Chapter 2 Homework Vocabulary Inductive reasoning - Conjecture - Counterexample - Conditional - Hypothesis - Conclusion - Truth value - Negation -

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

Solutions to Selected Exercises

COMP232 - Mathematics for Computer Science

CPSC 121: Models of Computation Assignment #4, due Thursday, March 16 th,2017at16:00

Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand Midterm 1

LECTURE 2 An Introduction to Boolean Algebra

Mathematical Logic Part Two

CS40-S13: Functional Completeness

CSE 20 DISCRETE MATH. Winter

CSE 215: Foundations of Computer Science Recitation Exercises Set #4 Stony Brook University. Name: ID#: Section #: Score: / 4

CS Bootcamp Boolean Logic Autumn 2015 A B A B T T T T F F F T F F F F T T T T F T F T T F F F

Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 6 Outline. Unary Relational Operations: SELECT and

An Evolution of Mathematical Tools

Logic and its Applications

UNIT-II NUMBER THEORY

Today s Topics. What is a set?

Overview. CS389L: Automated Logical Reasoning. Lecture 6: First Order Logic Syntax and Semantics. Constants in First-Order Logic.

Predicate Logic and Quan0fies

Lecture 1: Conjunctive Queries

Lecture 2: NP-Completeness

Math 1113 Notes - Functions Revisited

A Survey of Mathematics with Applications 8 th Edition, 2009

MATH 139 W12 Review 1 Checklist 1. Exam Checklist. 1. Introduction to Predicates and Quantified Statements (chapters ).

Mathematical Logic Part Two

AXIOMS FOR THE INTEGERS

Mathematical Logic Part Two

Example: NFA to DFA Conversion

Lecture 05. Spring 2018 Borough of Manhattan Community College

Propositional Logic. Andreas Klappenecker

Guidelines for Writing Mathematical Proofs

Geometry Lesson 2.1 Conditional Statements. September 4, 2007

Range Restriction for General Formulas

CS3110 Spring 2017 Lecture 9 Inductive proofs of specifications

Introduction to Data Management CSE 344. Lecture 12: Relational Calculus

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Midterm 1

In this section we will study problems for which we can prove that there is no algorithm solving them.

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

First order logic (Ch. 8)

Propositional Calculus. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

== is a decent equivalence

CSE 311: Foundations of Computing. Lecture 8: Predicate Logic Proofs

Syntax of Eiffel: a Brief Overview

Computation Club: Gödel s theorem

CS 512, Spring 2017: Take-Home End-of-Term Examination

Commands, and Queries, and Features. Syntax of Eiffel: a Brief Overview. Escape Sequences. Naming Conventions

Sets. Margaret M. Fleck. 15 September 2010

HOL DEFINING HIGHER ORDER LOGIC LAST TIME ON HOL CONTENT. Slide 3. Slide 1. Slide 4. Slide 2 WHAT IS HIGHER ORDER LOGIC? 2 LAST TIME ON HOL 1

r=1 The Binomial Theorem. 4 MA095/98G Revision

CMPSCI 250: Introduction to Computation. Lecture #7: Quantifiers and Languages 6 February 2012

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

CPSC 121 Midterm 1 Friday October 14th, Signature: Section (circle one): 11:00 15:30 17:00

Introductory logic and sets for Computer scientists

First order logic (Ch. 8)

3EA3 Lecture 16: Linear Search

The Language of Sets and Functions

Honors Geometry KEY Review Exercises for the December Exam

Calculus I Review Handout 1.3 Introduction to Calculus - Limits. by Kevin M. Chevalier

Lecture 5: Predicate Calculus. ffl Predicate Logic ffl The Language ffl Semantics: Structures

My dear students, Believe in yourselves. Believe in your abilities. You have got this! -Dr. M

Propositional Calculus. Math Foundations of Computer Science

First-Order Predicate Logic. CSCI 5582, Fall 2007

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

The Specification Phase

Repetition Through Recursion

Introduction to Sets and Logic (MATH 1190)

Constraint Propagation for Efficient Inference in Markov Logic

Transcription:

Section 2.2: Introduction to the Logic of Quantified Statements In this section, we shall continue to examine some of the fundamentals of predicate calculus. Specifically, we shall look at the negations of quantified statements, consider conditional statements in more detail (and the variants of conditional statements), and look at other related statements. 1. Negations of Quantified Statements When we defined quantified statements, we already considered their negations, so we shall briefly summarize them and then look at some examples. Theorem 1.1. The negation of a statement is equivalent to x D, P(x) x D such that P(x). Theorem 1.2. The negation of a statement is equivalent to x D, P(x) x D, P(x). In summary, the negation of an existential statement is a universal statement and the negation of a universal statement is an existential statement. We illustrate with some examples. Example 1.3. Negate the following statements informally: (i) All cars are red The negation would be There exists a car which is not red or, there are cars which are not red (ii) Some birds cannot fly The negation would be all birds can fly. Example 1.4. Write the following statements formally and then negate them: (i) Some math classes are not fun Let D be the set of all math classes and P := is fun. Then formally, this statement is: x D, P(x). The formal negation of this statement is x D, P(x) 1

2 which is equivalent to (ii) All math classes are fun x D, P(x). Let D be the set of all math classes and P := is fun. Then formally, this statement is: x D, P(x). The formal negation of this statement is x D, P(x). We can use the rules for negating existential and universal statements together with De Morgans laws and our knowledge of the negations of the other basic propositional connectives to negate much more difficult statements. We illustrate with an example. Example 1.5. Negate the following statements: (i) x, P(x) Q(x) We have ( x, P(x) Q(x)) x, (P(x) Q(x)) x, P(x) Q(x) (ii) x, P(x) Q(x) R(x) We have ( x, P(x) Q(x) R(x)) x, (P(x) Q(x) R(x)) x, (P(x) Q(x)) R(x) since we are negating a conditional statement. 2. Universal Conditional Statements As with the regular conditional statement, there are a number of differences between universal conditional statements and regular universal statements, so we consider them separately here. 2.1. Negating a Universal Conditional Statement. In the last example we considered, we negated a universal conditional statement. Since it is a fairly important technique in math and logic, we formalize our answer. Theorem 2.1. The negation of the universal conditional statement x, P(x) Q(x) is the existential statement x, P(x) Q(x). We illustrate with an example. Example 2.2. Negate the statement all red cars are fast The negation of this statement will be there exists a car which is red and which is not fast.

2.2. Related Conditional Statements. Just as with the regular conditional statement, there are a few closely related statements to the universal conditional statement. Definition 2.3. Consider the universal conditional statement x D, P(x) Q(x) (i) The contrapositive of this statement is x D, Q(x) P(x) (ii) The converse of this statement is x D, Q(x) P(x) (iii) The inverse of this statement is x D, P(x) Q(x) In general, the contrapositive of a universal conditional statement is equivalent to a statement and the inverse and converse of a universal conditional statement are equivalent. However, as statement and its converse are not logically equivalent. We illustrate with some examples. Example 2.4. Consider the statement if an integer x does not equal 0 or 1, then x 2 > x. Write the statement as a universal conditional statement and state the contrapositive, converse and inverse. Universal conditional statement: integers x, if x 0 and x 1 then x 2 > x. Contrapositive: integers x, if x 2 x then either x = 0 or x = 1. Converse: integers x, if x 2 > x then x 0 and x 1. Inverse: integers x, if either x = 0 or x = 1 then x 2 x. Notice that the converse and inverse are certainly not logically equivalent to the original statement since the original statement is false (take x = 1/2 as a counter example) and the converse is true. 2.3. Vacuous Truth Of Universal Statements. Just as with the regular conditional statement, a universal conditional statement can be vacuously true or true by default. Specifically, we have the following: Result 2.5. Consider the universal conditional statement x D, P(x) Q(x). If P(x) is false for all x D, then the universal conditional statement is true. In such circumstances, we say it is true by default or vacuously true. 3

4 This seems like a silly statement to make, but we need predicate logic to be consistent with propositional logic. Moreover, when we consider examples, it is more clear why it seems reasonable. Example 2.6. Consider the statement integers x, if x is odd and even, then x is made of cheese. Clearly this is absurd, there is no way that an integer can be made of cheese, but if we look at a little closer, we shall see this is not the case. To show this statement is false, we would need to show its negation is true i.e an integer x, such that x is odd and even, and x is not made of cheese. However, notice that there are no even and odd integers i.e. if P := is odd and even, then P(x) is false for every integer x. Thus this existential expression can never be true (since there are no even and odd integers). It follows that the original statement must be true (since its negation was false) 3. Necessary and Sufficient Conditions, Only if The definitions we introduced for necessary, sufficient and only if can also be extended to universal statements. Definition 3.1. (i) The statement x, r(x) is a sufficient condition for s(x) means x, r(x) s(x). (ii) The statement x, r(x) is a necessary condition for s(x) means x, r(x) s(x) or equivalently x, s(x) r(x). (iii) The statement x, r(x) only if s(x) means x, s(x) r(x) or equivalently x, r(x) s(x). We illustrate with some examples. Example 3.2. Rewrite the following statements in formal logic (the domain is the set of all complex numbers denoted C) and in informal language. (i) x 2 < 0 only if x is an imaginary number Then this formally translates to x C, Q(x) P(x) or complex numbers, if x is not imaginary, then x 2 0 (ii) x 2 < 0 is a sufficient condition for x to be a imaginary number Then this formally translates to x C, P(x) Q(x) or complex numbers, if x 2 < 0, then x is imaginary (iii) x 2 < 0 is a necessary condition for x to be a imaginary number Then this formally translates to x C, P(x) Q(x) or complex numbers, if x 2 0, then x is not imaginary

Homework (i) From the book, pages 95-97: Questions: 2, 3, 4, 8, 9, 13, 15, 19, 25, 28, 32, 37, 38, 42, 43 5