Top Banner
Predicates and Quantified Statements M260 3.1, 3.2
23

Predicates and Quantified Statements M260 3.1, 3.2.

Jan 02, 2016

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Predicates and Quantified Statements M260 3.1, 3.2.

Predicates and Quantified Statements

M260 3.1, 3.2

Page 2: Predicates and Quantified Statements M260 3.1, 3.2.

Predicate Example

• James is a student at Southwestern College.

• P(x,y)

• x is a student at y.

Page 3: Predicates and Quantified Statements M260 3.1, 3.2.

Predicate Truth Set

• P(x) is a predicate and x has domain D.

• The truth set of P(x):

• {x D P(x)}

Page 4: Predicates and Quantified Statements M260 3.1, 3.2.

• For all

• For every

• For arbitrary

• For any

• For each

• Given any

Page 5: Predicates and Quantified Statements M260 3.1, 3.2.

Universal Statement

x D, Q(x)

• When true

• When false

• Counter examples

Page 6: Predicates and Quantified Statements M260 3.1, 3.2.

• There exists

• We can find a

• There is at least one

• For some

• For at least one

Page 7: Predicates and Quantified Statements M260 3.1, 3.2.

Existential Statement

x D such that Q(x)

• When true

• When false

Page 8: Predicates and Quantified Statements M260 3.1, 3.2.

Translation Examples

x, x20x, x2-1 m such that m2=m

Page 9: Predicates and Quantified Statements M260 3.1, 3.2.

Translation Examples

• If a real number is an integer then it is a rational number

• All bytes have eight bits

• No fire trucks are green.

Page 10: Predicates and Quantified Statements M260 3.1, 3.2.

Formal and Informal

• For all polygons p, if p is a square, then p is a rectangle.

• For all squares p, p is a rectangle.

• There exists a number n such that n is prime and n is even.

• There exists a prime number n such that n is even.

Page 11: Predicates and Quantified Statements M260 3.1, 3.2.

Trailing Quantifier

• For all squares p, p is a rectangle.

• p is a rectangle for any square p.

• There exists a prime number n such that n is even.

• n is even for some prime number n.

Page 12: Predicates and Quantified Statements M260 3.1, 3.2.

Equivalent forms of and

xU if P(x) then Q(x) xD, Q(x)

Where D is all x such that P(x)

Page 13: Predicates and Quantified Statements M260 3.1, 3.2.

Implicit Quantification

• If n is a number, then it is a rational number

• If x>2 then x2>4.

• x>2 x2>4

Page 14: Predicates and Quantified Statements M260 3.1, 3.2.

and

• P(x) Q(x) means that the truth set of P(x) is contained in the truth set of Q(x).

• P(x) Q(x) means P(x) and Q(x) have identical truth sets.

Page 15: Predicates and Quantified Statements M260 3.1, 3.2.

Negation of Quantified Statements

• For all x in D, Q(x)

• There exists x in D such that ~Q(x).

• “all are” versus “some are not”

Page 16: Predicates and Quantified Statements M260 3.1, 3.2.

Negation of Quantified Statements

• There exists x in D such that Q(x)

• For all x in D, ~Q(x).

• “some are” versus “all are not”

Page 17: Predicates and Quantified Statements M260 3.1, 3.2.

Try These

• ~(For every prime p, p is odd)

• ~(There exists a triangle T, such that the sum of the angles of T equals 200 degrees)

Page 18: Predicates and Quantified Statements M260 3.1, 3.2.

No Politicians are Honest

• Formal

• Formal negation

• Informal negation

Page 19: Predicates and Quantified Statements M260 3.1, 3.2.

All computer programs are finite.

• Formal

• Formal negation

• Informal negation

Page 20: Predicates and Quantified Statements M260 3.1, 3.2.

Some dancers are over 40

• Formal

• Formal negation

• Informal negation

Page 21: Predicates and Quantified Statements M260 3.1, 3.2.

~(x, P(x)Q(x))

x such that ~(P(x)Q(x))x such that P(x)~Q(x)

Page 22: Predicates and Quantified Statements M260 3.1, 3.2.

More on Universal Conditional

xU if P(x) then Q(x)

• Contrapositive

• Converse

• Conditional

Page 23: Predicates and Quantified Statements M260 3.1, 3.2.

Necessary and Sufficient Conditions, Only If

x, r(x) is a sufficient condition for s(x). x, r(x) is a necessary condition for s(x). x, r(x) only if s(x).