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

Similar documents
Strategies for Proofs

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

Quantifiers. P. Danziger

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)

THE LOGIC OF QUANTIFIED STATEMENTS

Section Summary. Section 1.5 9/9/2014

Section 2.1: Introduction to the Logic of Quantified Statements

Mat 243 Exam 1 Review

Chapter 2: The Logic of Quantified Statements. January 22, 2010

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Sec$on Summary. Mathematical Proofs Forms of Theorems Trivial & Vacuous Proofs Direct Proofs Indirect Proofs

cse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference

1.1 Language and Logic

Exercise Set 1 Solutions Math 2020 Due: January 30, Find the truth tables of each of the following compound statements.

Some Review Problems for Exam 1: Solutions

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

1.1 Language and Logic

Lecture 3. Logic Predicates and Quantified Statements Statements with Multiple Quantifiers. Introduction to Proofs. Reading (Epp s textbook)

MATH 271 Summer 2016 Practice problem solutions Week 1

Today. Proof using contrapositive. Compound Propositions. Manipulating Propositions. Tautology

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

Logic, Sets, and Proofs

Proof by contrapositive, contradiction

Section 3.1: Direct Proof and Counterexample 1

Foundations of Discrete Mathematics

DISCRETE MATHEMATICS BA202

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

Logic Propositional logic; First order/predicate logic

2-4: The Use of Quantifiers

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

First order Logic ( Predicate Logic) and Methods of Proof

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

What is a proof? Proofing as a social process, a communication art.

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

Direct Proof and Proof by Contrapositive

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

Section 2.3: Statements Containing Multiple Quantifiers

Computer Science 280 Spring 2002 Homework 2 Solutions by Omar Nayeem

Foundation of proofs. Jim Hefferon.

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

Basic Logic and Proof Techniques

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

Computer Science Section 1.6

Proof by Contradiction

Homework 3: Solutions

Writing proofs for MATH 61CM, 61DM Week 1: basic logic, proof by contradiction, proof by induction

A. Propositional Logic

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

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

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

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

CSC165 Mathematical Expression and Reasoning for Computer Science

Predicate Calculus lecture 1

2 Conditional and Biconditional Propositions

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

Predicate Logic: Syntax

1. Propositions: Contrapositives and Converses

CSE 20 DISCRETE MATH. Fall

Discrete Mathematics Recitation Course 張玟翔

Discrete Structures for Computer Science

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

CSE 20 DISCRETE MATH. Winter

Proof. Theorems. Theorems. Example. Example. Example. Part 4. The Big Bang Theory

software design & management Gachon University Chulyun Kim

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

Midterm Exam Solution

Mathematical Reasoning (Part I) 1

Propositional and Predicate Logic

1 Direct Proofs Technique Outlines Example Implication Proofs Technique Outlines Examples...

Your quiz in recitation on Tuesday will cover 3.1: Arguments and inference. Your also have an online quiz, covering 3.1, due by 11:59 p.m., Tuesday.

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

Introduction to Sets and Logic (MATH 1190)

ECOM Discrete Mathematics

Quantifiers. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing February, 2018

Propositional and Predicate Logic

CS70 is a course about on Discrete Mathematics for Computer Scientists. The purpose of the course is to teach you about:

Midterm: Sample 3. ECS20 (Fall 2017) 1) Using truth tables, establish for each of the two propositions below if it is a tautology, a contradiction

Propositional Logic Not Enough

Lecture 5 : Proofs DRAFT

MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG

PROBLEM SET 3: PROOF TECHNIQUES

MATH 215 Discrete Mathematics Worksheets. Which of these are propositions? What are the truth values of those that are propositions?

Show Your Work! Point values are in square brackets. There are 35 points possible. Tables of tautologies and contradictions are on the last page.

Argument. whenever all the assumptions are true, then the conclusion is true. If today is Wednesday, then yesterday is Tuesday. Today is Wednesday.

Compound Propositions

3.6. Disproving Quantified Statements Disproving Existential Statements

Predicate Logic & Quantification

Section Summary. Proof by Cases Existence Proofs

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.

CITS2211 Discrete Structures Proofs

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. Introductory Notes in Discrete Mathematics Solution Guide

Discrete Mathematics and Probability Theory Fall 2012 Vazirani Note 1

Predicate Logic. Andreas Klappenecker

MCS-236: Graph Theory Handout #A4 San Skulrattanakulchai Gustavus Adolphus College Sep 15, Methods of Proof

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

Exercise 2. Prove that [ 1, 1] is the set of all the limit points of ( 1, 1] = {x R : 1 <

Proofs. Chapter 2 P P Q Q

Proof Terminology. Technique #1: Direct Proof. Learning objectives. Proof Techniques (Rosen, Sections ) Direct Proof:

The Process of Mathematical Proof

Introduction to Decision Sciences Lecture 2

Transcription:

G. Carl Evans University of Illinois Summer 2013

Propositional logic Propositional Logic Review AND, OR, T/F, implies, etc Equivalence and truth tables Manipulating propositions

Implication Propositional Logic Review

Implication Propositional Logic Review a b a b a b b a b ( a b) ( b a) T T T T T T F F F F F T T F T F F T T F

Today Propositional Logic Review Be able to incorporate predicates and quantifiers into logical statements Be able to manipulate statements with quantifiers Learn how to prove a universal statement

Predicate Logic Propositional Logic Review Predicate: propositions that have input variables with a range of values For some integer x, x > 10 Cars that are read and speeding are likely to be ticketed. isred(x) speeding(x) likely to be ticketed(x) A person s mother s mother is his/her grandmother For every set of people x, y, z mother(x, y) mother(y, z) grandmother(x, z)

Quantifiers Propositional Logic Review For some x : x For all x : x For exactly one x :!x

Binding and Scope Propositional Logic Review x, p(x) q(x) Binding: x Scope: p(x) q(x) x, x 2 = 0 Binding: x Scope: x 2 = 0

Manipulating quantifiers: Negation Negation: Examples ( x, p(x)) x, p(x) ( x, p(x)) x, p(x) Not all dogs are fat is equivalent to At least one dog is not fat. There does not exist one fat dog is equivalent to All dogs are not fat.

Contrapositive Propositional Logic Review x, p(x) q(x) x, q(x) p(x)

Quantifiers with two variables For all integers a and b, a + b a

Quantifiers with two variables For all integers a and b, a + b a a Z, b Z, a + b a or a, b Z, a + b a For every real a, there exists an integer b such that a + b a

Quantifiers with two variables For all integers a and b, a + b a a Z, b Z, a + b a or a, b Z, a + b a For every real a, there exists an integer b such that a + b a a R, b Z, a + b a

Proving universal statements Claim: For any integers a and b, if a and b are odd, then ab is also odd.

Proving universal statements Claim: For any integers a and b, if a and b are odd, then ab is also odd. Definition: integer a is odd iff a = 2m + 1 for some integer m Let a, b Z s.t. a and b are odd. Then by definition of odd a = 2m + 1.m Z and b = 2n + 1.n Z So ab = (2m + 1)(2n + 1) = 4mn + 2m + 2n + 1 = 2(2mn + m + n) + 1 and since m, n Z it holds that (2mn + m + n) Z, so ab = 2k + 1 for some k Z. Thus ab is odd by definition of odd. QED

Approach to proving universal statements State the supposition (hypothesis) and define any variables Expand definitions such as odd or rational into their technical meaning (if necessary) Manipulate expression until claim is verified by a simple statement End with This is what was to be shown. or QED to make it obvious that the proof is finished. Tip: work out the proof on scratch paper first, then rewrite it in a clear, logical order with justification for each step.

Claim: For any real k, if k is rational, then k 2 is rational.

Claim: For any real k, if k is rational, then k 2 is rational. Definition: real k is rational iff k = m n for some integers m, n, with n 0. Let k Q. By definition of rational k = m n for some m, n Z with n 0. k 2 = m n 2 = m 2 Since m, n Z, m 2, n 2 Z and since n 0, n 2 0, k 2 is rational by definition. QED n 2

Claim: For all integers n, 4(n 2 + n + 1) 3n 2 is a perfect square. Definition: k is a perfect square iff k = m 2 for some integer m. Let n be an integer. 4(n 2 + n + 1) 3n 2 = n 2 + 4n + 4 = (n + 2) 2 Since n is an integer n + 2 is an integer so by definition of perfect square 4(n 2 + n + 1) 3n 2 is a perfect square. QED

Claim: The product of any two rational numbers is a rational number. Definition: real k is rational iff k = m n for some integers m, n, with n 0. Let a, b be rational numbers. By definition of rational a = m n, b = j k n and k are not 0. for some m, n, j, k Z s.t. ab = m j n k = mj nk Since m, n, j, k are integers mj, nk are integers and since n and k are not 0 nk 0. Thus by definition of rational ab is rational. QED