22
Introduction to Predicates and Quantified Statements I Lecture 9 Section 2.1 Wed, Jan 31, 2007

Introduction to Predicates and Quantified Statements I

  • Upload
    admon

  • View
    43

  • Download
    2

Embed Size (px)

DESCRIPTION

Introduction to Predicates and Quantified Statements I. Lecture 9 Section 2.1 Wed, Jan 31, 2007. Predicates. A predicate is a sentence that contains a finite number of variables, and becomes a statement when values are substituted for the variables. - PowerPoint PPT Presentation

Citation preview

Page 1: Introduction to Predicates and Quantified Statements I

Introduction to Predicates and Quantified Statements ILecture 9Section 2.1 Wed, Jan 31, 2007

Page 2: Introduction to Predicates and Quantified Statements I

Predicates

A predicate is a sentence that contains a finite number of variables, andbecomes a statement when values are

substituted for the variables. If today is x, then Discrete Math meets

today.The predicate becomes true when x =

Wednesday.

Page 3: Introduction to Predicates and Quantified Statements I

Domains of Predicate Variables

The domain D of a predicate variable x is the set of all values that x may take on.

Let P(x) be the predicate. x is a free variable. The truth set of P(x) is the set of all values

of x D for which P(x) is true.

Page 4: Introduction to Predicates and Quantified Statements I

Domains of Predicate Variables

In the previous example, we could define the domain of x to be

D = {Sunday, Monday, Tuesday, Wednesday, Thursday,

Friday, Saturday} Then the truth set of the predicate is

S = {Monday, Tuesday, Wednesday, Friday}

Page 5: Introduction to Predicates and Quantified Statements I

The Universal Quantifier

The symbol is the universal quantifier. The statement

x S, P(x)means “for all x in S, P(x),” where S D.

In this case, x is a bound variable, bound by the quantifier .

Page 6: Introduction to Predicates and Quantified Statements I

The Universal Quantifier

The statement is true if P(x) is true for all x in S.

The statement is false if P(x) is false for at least one x in S.

Page 7: Introduction to Predicates and Quantified Statements I

Examples

Statement“7 is a prime number” is true.

Predicate“x is a prime number” is neither true nor false.

Statements“x {2, 3, 5, 7}, x is a prime number” is true.“x {2, 3, 6, 7}, x is a prime number” is

false.

Page 8: Introduction to Predicates and Quantified Statements I

Examples of Universal Statements

x {1, …, 10}, x2 > 0. x {1, …, 10}, x2 > 100. x R, x3 – x 0. x R, y R, x2 + xy + y2 0. x , x2 > 100.

Page 9: Introduction to Predicates and Quantified Statements I

Identities

Algebraic identities are universal statements.

When we write the algebraic identity (x + 1)2 = x2 + 2x + 1

what we mean isx R, (x + 1)2 = x2 + 2x + 1.

Page 10: Introduction to Predicates and Quantified Statements I

Identities

DeMorgan’s Law ~(p q) (~p) (~q)

is equivalent top, q {T, F}, ~(p q) = (~p) (~q).

Page 11: Introduction to Predicates and Quantified Statements I

The Existential Quantifier

The symbol is the existential quantifier. The statement

x S, P(x)means “there exists x in S such that P(x),” where S D.

x is a bound variable, bound by the quantifier .

Page 12: Introduction to Predicates and Quantified Statements I

The Existential Quantifier

The statement is true if P(x) is true for at least one x in S.

The statement is false if P(x) is false for all x in S.

Page 13: Introduction to Predicates and Quantified Statements I

Examples of Universal Statements

x {1, …, 10}, x2 > 0. x {1, …, 10}, x2 > 100. x R, x3 – x 0. x R, y R, x2 + xy + y2 0. x , x2 > 100.

Page 14: Introduction to Predicates and Quantified Statements I

Solving Equations

An algebraic equation has a solution if there exists a value for x that makes it true.

x R, (x + 1)2 = x2 + x + 2.

Page 15: Introduction to Predicates and Quantified Statements I

Boolean Expressions

A boolean expression Is not a contradiction if there exist truth

values for its variables that make it true.Is not a tautology if there exists truth

values for its variables that make if false. The expression

p q p q.is neither a contradiction nor a tautology.

Page 16: Introduction to Predicates and Quantified Statements I

Universal Conditional Statements

The statementx S, P(x) Q(x)

is a universal conditional statement. Example: x R, if x > 0, then x + 1/x

2. Example: n N,if n 13, then

(½)n2 + 3n – 4 > 8n + 12.

Page 17: Introduction to Predicates and Quantified Statements I

Universal Conditional Statements

Suppose that predicates P(x) and Q(x) have the same domain D.

If P(x) Q(x) for all x in the truth set of P(x), then we write

P(x) Q(x).

Page 18: Introduction to Predicates and Quantified Statements I

Examples

x > 0 x + 1/x 2. n is a multiple of 6 n is a multiple of 2

and n is a multiple of 3. n is a multiple of 8 n is a multiple of 2

and n is a multiple of 4.

Page 19: Introduction to Predicates and Quantified Statements I

Universal Biconditional Statements

Again, suppose that predicates P(x) and Q(x) have the same domain D.

If P(x) Q(x) for all x in the truth set of P(x), then we write

P(x) Q(x).

Page 20: Introduction to Predicates and Quantified Statements I

Examples

Which of the following are true?x > 0 x + 1/x 2.n is a multiple of 6 n is a multiple of 2

and n is a multiple of 3.n is a multiple of 8 n is a multiple of 2

and n is a multiple of 4.

Page 21: Introduction to Predicates and Quantified Statements I

Solving Algebraic Equations

Steps in solving algebraic equations are equivalent to universal conditional statements.

The stepx + 3 = 8 x = 5

is justified by the statement x + 3 = 8 x = 5.

Page 22: Introduction to Predicates and Quantified Statements I

Solving Algebraic Equations

An algebraic step from P(x) to Q(x) is reversible only if P(x) Q(x).

Reversible stepsAdding 1 to both sides.Taking logarithms.

Not reversible stepsSquaring both sides.Multiplying by an arbitrary constant.