Proof by Contradiction CS 270 Math Foundations of CS Jeremy Johnson.

Slides:



Advertisements
Similar presentations
With examples from Number Theory
Advertisements

Introduction to Proofs
Workshop Lesson 3: Terminating & Repeating Decimals 7 th Grade.
Disjunctive Normal Form CS 680: Formal Methods Jeremy Johnson.
COUNTING AND PROBABILITY
Revision - Surds Production by I Porter
Predicate Calculus Formal Methods in Verification of Computer Systems Jeremy Johnson.
1 Inference Rules and Proofs Z: Inference Rules and Proofs.
1 Inference Rules and Proofs Z: Inference Rules and Proofs.
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
Introduction to Proofs ch. 1.6, pg. 87,93 Muhammad Arief download dari
Introduction to Proofs Goals 1.Introduce notion of proof & basic proof methods. 2.Distinguish between correct & incorrect arguments 3.Understand & construct.
Introduction to Logic Logical Form: general rules
WHOLE NUMBERS; INTEGERS Whole numbers: Z 0,+ = the natural numbers  {0}. Integers:
Rational Numbers and Decimals
CS2013 Maths for Computing Science Proof (part b) Adam Wyner University of Aberdeen Computing Science.
Fractions & Decimals.
Chapter 6: The Real Numbers and Their Representations
Lesson 5-1 Pages Writing Fractions as Decimals.
Learn to write rational numbers in equivalent forms.
Write each decimal as a fraction in simplest form. – 3. –0.625
Rational Numbers Math 8.
4.4 – DIVIDING DECIMALS Catherine Conway Math 081.
Introduction to Proofs
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
1 Inference Rules and Proofs (Z); Program Specification and Verification Inference Rules and Proofs (Z); Program Specification and Verification.
5.6 Notes: Find Rational Zeros. Rational Zeros: Where the graph crosses the x-axis at a rational number Rational Zero Theorem: To find the possible rational.
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.
I CAN COMPARE AND ORDER RATIONAL NUMBERS BY USING A NUMBER LINE. 1.5 RATIONAL NUMBERS.
Natural Deduction CS 270 Math Foundations of CS Jeremy Johnson.
The Real Number System. Whole numbers Whole numbers Rational numbers Whole numbers Natural numbers Integers / ¾ 18% π √2√2 − ….
Integrated Mathematics Real Numbers. Rational Numbers Examples of Rational Numbers.
Decimal to Fraction  To change a decimal to a fraction, take the place value and reduce!  0.5 means 5 tenths, so 5/10.  Now reduce 5/10 = ½  0.5 =
Disjunctive Normal Form CS 270: Math Foundation of CS Jeremy Johnson.
CSE 311 Foundations of Computing I Lecture 9 Proofs and Set Theory Autumn 2012 CSE
Chapter 1: The Foundations: Logic and Proofs
Chapter 6: The Real Numbers and Their Representations.
Snick  snack Supplement: Worked Set Proofs Based on work by Meghan Allen.
Divisibility Rules: What are they? Rules to help you determine if numbers are divisible by other numbers. Divisible – if a number can be divided by another.
Aim: How do we work on the expression with negative or zero exponent?
Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson.
2.5 and 2.6 Multiplication and Division of Rational #’s.
Repeating decimals – How can they be written as fractions? is a rational number.
CS104:Discrete Structures Chapter 2: Proof Techniques.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: Proofs and Set theory.
Whole, Integers, Rational and Natural Numbers M7N1. Students will understand the meaning of positive and negative rational numbers and use them in computation.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
Introduction to Proofs
5-3(D) Real Numbers.
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.
CSE 311 Foundations of Computing I Lecture 8 Proofs Autumn 2011 CSE 3111.
Predicate Calculus CS 270 Math Foundations of Computer Science Jeremy Johnson Presentation uses material from Huth and Ryan, Logic in Computer Science:
Introduction to Proofs Goals 1.Introduce notion of proof & basic proof methods. 2.Distinguish between correct & incorrect arguments 3.Understand & construct.
Proof by Contradiction
and d are integers and d  0.
{P} ⊦ Q if and only if {P} ╞ Q
Chapter 6: The Real Numbers and Their Representations
Disjunctive Normal Form
Lecture 6 CS 1813 – Discrete Mathematics
Elementary Metamathematics
No new reading for Monday. Exam #2 is Wednesday.
Changing Fractions to Decimals Guided Notes
COUNTING AND PROBABILITY
CS 270 Math Foundations of CS
Dividing a decimal by a whole number
Proof Tactics, Strategies and Derived Rules
Foundations of Discrete Mathematics
Exercise Use long division to find the quotient. 180 ÷ 15.
6.7 Dividing a Polynomial by a Polynomial
L5-7 Notes: Fractions as Decimals
Presentation transcript:

Proof by Contradiction CS 270 Math Foundations of CS Jeremy Johnson

Outline

Decimals and Fractions

Repeating Decimals

Theorem. A number r is rational iff it has a terminating or repeating decimal expansion Proof  If r = a/b perform long division to compute the decimal expansion. At each step divide what is left by b, m = qb + r, 0 ≤ r < b. There are b possible remainders. If r = 0 the expansion is terminating. If r has occurred previously the expansion is repeating. After at most b steps one of these must happen.

Repeating Decimals

Decimal Expansion of sqrt(2)

x0 := 1.0; x1 := 2.0; n := 20; for i from 1 to n do x := (x0+x1)/2; if x^2 > 2 then x1 := x; else x0 := x; end if; end do;

Decimal Expansion of sqrt(2)  Does the expansion terminate or repeat?  Maybe it doesn’t?  How long should I look?  Maybe it’s not rational?

Proof that sqrt(2) is not Rational

Negation Rules

Introduction and elimination rules Double negation     e 

Proof by Contradiction Negation elimination called proof by contradiction Assume  and derive a a contradiction

Exercise Prove that  A  A and A   A

Law of the Excluded Middle 1  (p  p) assumption 2Assumption 3 (p  p) 4 5  p 6 p  p 7 8

De Morgan’s Law  (P  Q)   P   Q 1 (P  Q)(P  Q) premise 2assumption 3 P  QP  Q  i PP 6Q 7 P  QP  Q  i P  QP  Q  i 5,9

De Morgan’s Law  (P  Q)   P   Q 1 P  QP  Q premise 2  e1 1 3  e2 1 4assumption 5P 6  e 2,5 7Q  i2 6 8  e 3,7 9  e 4,5-6, (P  Q)(P  Q)  i 4-9

Exercise Prove  (P  Q)   P   Q

Exercise Prove  P   Q   (P  Q)