• Tidak ada hasil yang ditemukan

Proving p→q

N/A
N/A
Protected

Academic year: 2025

Membagikan "Proving p→q"

Copied!
3
0
0

Teks penuh

(1)

2110200 Discrete Structures

Department of Computer Engineering Faculty of ENGINEERING| Chulalongkorn University

Methods of Proving Theorems Methods of Proving Theorems

Indirect proof Indirect proof

Vacuous proof

Vacuous proof Trivial proof Trivial proof Counterexample

Counterexample

Proof by Contradiction

Proof by Contradiction Existence

Proof Existence

Proof

Proof by cases Proof by

cases Direct proof

Direct proof

2110200 Discrete Structures

Department of Computer Engineering Faculty of ENGINEERING| Chulalongkorn University

Understanding How theorems are stated Understanding How theorems are stated

• Many theorems concerns elements in a domain, such as integers or real numbers.

If x > y, where x and y are positive real numbers, then x 2 > y 2

For all positive real numbers, if x > y, then x 2 > y 2

really means

2110200 Discrete Structures

Department of Computer Engineering Faculty of ENGINEERING| Chulalongkorn University

Universal instantiation / Universal generalization Universal instantiation / Universal generalization

)) ( )

(

( P n Q n

Z even

n →

∀ ∈

“If n is an even integer, n 2 is an even integer”

P(n): n is an even integer.

Q(n): n 2 is an even integer.

) ( )

( c Q c

P →

∴ Universal Instantiation

proof P ( c ) → Q ( c ) ≡ T

When c is any even integer

T )) ( )

(

( → ≡

∀ ∈ P n Q n

Z even

n

Universal Generalization

2110200 Discrete Structures

Department of Computer Engineering Faculty of ENGINEERING| Chulalongkorn University

Proving

Proving p p → → q q

Direct Proof

Proof by Contraposition Vacuous Proof

Trivial Proof

Proof by Contradiction

(2)

2110200 Discrete Structures

Department of Computer Engineering Faculty of ENGINEERING| Chulalongkorn University

Proving

Proving p p→ →q q

Direct Proof

Proof by Contraposition Vacuous Proof

Trivial Proof Proof by Contradiction

Show that if p is true, q must be true.

p → q ≡ ¬q → ¬p Show that if ¬q is true, ¬p must be true.

2110200 Discrete Structures

Department of Computer Engineering Faculty of ENGINEERING| Chulalongkorn University

• Example (Rosen Ex.1 p.77):

Show that “If n is an odd integer, n 2 is an odd integer”

2110200 Discrete Structures

Department of Computer Engineering Faculty of ENGINEERING| Chulalongkorn University

• Example (Rosen Ex.1 p.80):

Show that “If n is an integer and n 2 is odd, then n is odd.”

2110200 Discrete Structures

Department of Computer Engineering Faculty of ENGINEERING| Chulalongkorn University

Example (Rosen Ex.4 p.78):

Prove that if , where a and b are positive integers, then or

ab n =

n

a ≤ b ≤ n

(3)

2110200 Discrete Structures

Department of Computer Engineering Faculty of ENGINEERING| Chulalongkorn University

Example (Rosen Ex.6 p.79):

Prove that the sum of two rational numbers is rational.

The real number r is rational if there exist integers p and q with q≠0 such that r = p/q

2110200 Discrete Structures

Department of Computer Engineering Faculty of ENGINEERING| Chulalongkorn University

Proving

Proving p p →q → q

Direct Proof

Proof by Contraposition Vacuous Proof

Trivial Proof Proof by Contradiction

Show that p is false.

So, p→q is always true.

Show that q is true.

So, p→q is always true.

Used in Math Induction

2110200 Discrete Structures

Department of Computer Engineering Faculty of ENGINEERING| Chulalongkorn University

Proving

Proving p p → → q q

• Example (Rosen Ex.5 p.78) P(n) = “If n > 1,then n 2 > n”

Show that P(0) is true.

• Example (Rosen Ex.6 p.79)

P(n) = “If a and b are positive integers with a ≥ b, then a n ≥ b n ”

Show that P(0) is true.

Referensi

Dokumen terkait

Document details 20 of 35 Detection of the beef quality: Using mobile-based K-mean clustering method Conference Paper , , Computer Engineering Department, Engineering Faculty,

Atiwong Suchato Department of Computer Engineering, Chulalongkorn University Discrete Mathematics • Example: “The Hatcheck Problem” An employee checks the hats of n people at a

Atiwong Suchato Department of Computer Engineering, Chulalongkorn University Discrete Mathematics • Example: How many cards must be selected from a standard deck of 52 cards to

Hodak1* 1Department of Physics, Faculty of Science, Chulalongkorn University Bangkok, Thailand 2Department of Chemical Engineering, Faculty of Engineering, Chulalongkorn University

Pn: Basic Step: Inductive Step: Atiwong Suchato Department of Computer Engineering, Chulalongkorn University Discrete Mathematics • Example: Prove that every amount of postage of

FACULTY OF ENGINEERING CHULALONGKORN UNIVERSITY 2110443 Human Computer Interactions ข้อสอบปลายภาค ภาคการศึกษาปลาย ปีการศึกษา 2551 วันพฤหัสบดีที่ 26 กุมภาพันธ์ พ.ศ...

Atiwong Suchato Department of Computer Engineering, Chulalongkorn University Discrete Mathematics • Example: A bucket containing 5 different balls.. We pick 3 balls randomly from the

UNIMAS-Faculty of Engineering Awarded Honour of Invention, Gold, Silver and Bronze at i-ENVEX 2013 Faculty of Engineering made Universiti Malaysia Sarawak UNIMAS proud proving