Tutorial 2: First Order Logic and Methods of Proofs

Slides:



Advertisements
Similar presentations
Is it rational or irrational?
Advertisements

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Review: Mathematical Induction Use induction to prove that the sum of the.
With examples from Number Theory
Discrete Math Methods of proof 1.
Introduction to Proofs
PROOF BY CONTRADICTION
Review for CS1050. Review Questions Without using truth tables, prove that  (p  q)   q is a tautology. Prove that the sum of an even integer and an.
Chapter 3 Elementary Number Theory and Methods of Proof.
Chapter 3 Direct Proof and Proof by Contrapositive
The Pigeonhole Principle
Proof Must Have Statement of what is to be proven.
1 Indirect Argument: Contradiction and Contraposition.
What is the best way to start? 1.Plug in n = 1. 2.Factor 6n 2 + 5n Let n be an integer. 4.Let n be an odd integer. 5.Let 6n 2 + 5n + 4 be an odd.
Methods of Proof Leo Cheung. A Quick Review Direct proof Proof by contrapositive Proof by contradiction Proof by induction.
Courtesy Costas Busch - RPI1 Non-regular languages.
Introduction to Proofs ch. 1.6, pg. 87,93 Muhammad Arief download dari
1 Non-regular languages. 2 Regular languages Non-regular languages.
Methods of Proof Lecture 4: Sep 16 (chapter 3 of the book)
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
Methods of Proof & Proof Strategies
CSCI 2110 Discrete Mathematics Tutorial 10 Chin 1.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Introduction to Proofs
Proofs 1/25/12.
Methods of Proof. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical theorems. Direct.
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
Methods of Proofs PREDICATE LOGIC The “Quantifiers” and are known as predicate quantifiers. " means for all and means there exists. Example 1: If we.
1 Section 1.1 A Proof Primer A proof is a demonstration that some statement is true. We normally demonstrate proofs by writing English sentences mixed.
Chapter 5 Existence and Proof by contradiction
Methods of Proof Lecture 3: Sep 9. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical.
Predicates and Quantified Statements M , 3.2.
CS201: Data Structures and Discrete Mathematics I
P. 270 #47-49.
Name the set(s) of numbers to which each number belongs. a. –13b integers rational numbers ALGEBRA 1 LESSON 1-3 Exploring Real Numbers 1-3.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Introduction to Proofs.
Chapter 1: Introduction
4.1 Proofs and Counterexamples. Even Odd Numbers Find a property that describes each of the following sets E={…, -4, -2, 0, 2, 4, 6, …} O={…, -3, -1,
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
Week 4 - Monday.  What did we talk about last time?  Divisibility  Quotient-remainder theorem  Proof by cases.
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
Inverse, Contrapositive & indirect proofs Sections 6.2/6.3.
1 Find as many examples as you can of w, x, y, z so that w is accepted by this DFA, w = x y z, y ≠ ε, | x y | ≤ 7, and x y n z is in L for all n ≥ 0.
Introduction to Proofs
1 CMSC 250 Chapter 3, Number Theory. 2 CMSC 250 Introductory number theory l A good proof should have: –a statement of what is to be proven –"Proof:"
Week 4 - Wednesday.  What did we talk about last time?  Divisibility  Proof by cases.
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
5-5 Indirect Proof. Indirect Reasoning: all possibilities are considered and then all but one are proved false. The remaining possibility must be true.
The Pigeonhole Principle. Pigeonhole principle The pigeonhole principle : If k is a positive integer and k+1 or more objects are placed into k boxes,
EXAMPLE 3 Write an indirect proof Write an indirect proof that an odd number is not divisible by 4. GIVEN : x is an odd number. PROVE : x is not divisible.
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Chapter 1 Logic and Proof.
Objectives Identify, write, and analyze the truth value of conditional statements. Write the inverse, converse, and contrapositive of a conditional statement.
Standard Representations of Regular Languages
CSE322 PUMPING LEMMA FOR REGULAR SETS AND ITS APPLICATIONS
CISC 2315 Discrete Structures
Direct Proof by Contraposition Direct Proof by Contradiction
The Pigeonhole Principle
Indirect Argument: Contradiction and Contraposition
Sets and Logic…. Chapter 3
Indirect Proof by Contradiction Direct Proof by Cases
Elementary Questions about Regular Languages
CS 220: Discrete Structures and their Applications
(1.4) An Introduction to Logic
Elementary Number Theory & Proofs
Indirect Argument: Contradiction and Contraposition
The Pigeonhole Principle
Topic Past Papers –Proofs
Dr. Halimah Alshehri MATH 151 Dr. Halimah Alshehri Dr. Halimah Alshehri.
Foundations of Discrete Mathematics
Presentation transcript:

Tutorial 2: First Order Logic and Methods of Proofs Peter Poon

Agenda First Order Logic Methods of Proofs Order of quantifier Formulation Negation Methods of Proofs Direct Proof Contrapositive Contradiction

First Order Logic

Order of quantifier Which one are equivalent?

Order of quantifier Which one are equivalent?

Formulation Express the following using first order logic Let be the set of all positive integers be the set of all real numbers be “x is prime”

Formulation Express the following using first order logic

Negation You know that Write down the negation of the following statements

Negation Write down the negation of the following statements

Method of Proof

Direct Proof For every positive integer n, is even

Direct Proof For every positive integer n, is even

Contrapositive If n2 is divisible by 3, then n is divisible by 3

Contrapositive If n2 is divisible by 3, then n is divisible by 3 Contrapositive form If n is not divisible by 3, then n2 is not divisible by 3 Case 1: n = 3k + 1 n2 = (3k + 1)2 = 9k2 + 6k + 1 = 3(3k2 + 2k) + 1 Case 2: n = 3k + 2 n2 = (3k + 2)2 = 9k2 + 12k + 4 = 3(3k2 + 4k + 1) + 1 Both are not divisible by 3

Contradiction Show that is not rational. Given If n2 is divisible by 3, then n is divisible by 3

Contradiction Show that is not rational. If is rational Given If n2 is divisible by 3, then n is divisible by 3 If is rational Since , which is divisible by 3 So p = 3k, k is positive integer Also p2 = 3q2 so 9k2 = 3q2 q2 = 3k2 (p and q have the common factor 3 contradiction!!!)

Contradiction If there 40 pigeons sharing 7 pigeonholes, then at least 1 pigeonhole have more then 5 pigeons.

Contradiction If there 40 pigeons sharing 7 pigeonholes, then at least 1 pigeonhole have more then 5 pigeons. Assume it is false Then every pigeonhole have at most 5 pigeons Total number of pigeons <= 5 * 7 = 35 Contradiction!!! Pigeonhole principle http://en.wikipedia.org/wiki/Pigeonhole_principle

Conclusion Contrapositive Contradiction Find the contrapositive form Prove it Contradiction Assume it is false Show it is impossible by finding contradiction