You are on page 1of 8

-2

Quantiers
P. Danziger

Elementary Quantiers (2.1)

We wish to be able to use variables, such as x or n in logical statements. We do this by using the two quantiers: 1. - There Exists 2. - For All Denition 1 1. A predicate is a sentence which contains a nite number of variables and becomes a statment if particular values are substituted for the variables. 2. The domain of a predicate variable is the set of possible values which that variable can take. Generally the truth value of a quantied statement depends on the domain of the variables. Thus quantied statements have one of the following general forms: 1. x S, P (x). 2. x S such that P (x). Here S is a set (the domain of x), and P (x) is a property which x may or may not have. P (x) evaluates to either true or false for each choice of x from S. The rst form is called a universal statement, it is true if all elements of S have the property P and false otherwise. The second form is called an existential statement, it is true if there exists at least one x S with the property P and false otherwise. Universal statements usually involve words like: every all, any or each. Existential statements usually involve words like: some at least one, we can nd or there exists. The such that in existential statements is sometimes abreviated to s.t. Note P (x) may be thought of as a function from S to {T, F}. Example 2 1. All buttercups are yellow Let B = {x | x is a Buttercups }. Y (x) = x is yellow. x B, Y (x). 2. All cars are yellow Let C = {x | x is a car }. Y (x) = x is yellow. x C, Y (x).

(True)

(False)

Note that the only dierence between 1 and 2 is the domain of x, yet their truth values are dierent. 1

-2

Quantiers

P. Danziger

3. There is a yellow car x C such that Y (x). 4. All integers are positive x Z, x > 0. 5. All natural numbers, except 0, are positive x N, x = 0 x > 0, or x N, x = 0 x 0. 6. There is a natural number x, which satises x + 3 = 2 x N such that x + 3 = 2. 7. There is an integer number x, which satises x + 3 = 2 x Z such that x + 3 = 2. 8. Every integer satises x + 3 = 2. x Z, x + 3 = 2.

(True) (False) (True) (False) (True) (False)

1.1

Proofs with Qauntiers

If D = {x1 , x2 , . . . , xn } is a nite set then: x D, P (x) P (x1 ) P (x2 ) . . . P (xn ). And x D s.t. P (x) P (x1 ) P (x2 ) . . . P (xn ). So is like a big and, and is like a big or 1. We can show that a universal statement is true by going through every value in the domain. This is called the method of exhaustion. This has obvious problems if the domain is large, or worse yet not nite. 2. We can show that a universal statement is false by nding a counterexample. i.e. an element of the domain which does not satisfy the property. 3. We can show that an existential statement is true by nding an element of the domain with the required property. This is called proof by construction. 4. We can show that an existential statement is false by the method of exhaustion above.

-2

Quantiers

P. Danziger

Example 3 Let S = {2, 4, 6} and D = {2, 4, 5}. 1. x S, x is even. 2 is even, 4 is even, 6 is even, so true by exhaustion. 2. x D, x is even. A counterexample is x = 5, so false. 3. x S s.t. x is even. Take x = 4, so true. 4. x S s.t. x is not even. 2 is even, 4 is even, 6 is even, so false by exhaustion.

1.2

Domain Change
x D, P (x) x, x D P (x). x S, x D P (x).

Given a statement of the form we may rewrite it as Or if D S : This is called if - then form, or a domain change. Example 4 1. Write x Z+ , 2x Z+ in if - then form. For every positive integer, twice it is also a positive integer. x Z, x Z+ 2x Z+ . For every integer, if it is positive then so is twice it. 2. All valid arguments with true premises have true conclusions Let A = {p | p is an argument form } and V = {p | p is a valid argument form }. x V, the premises of x are true the conclusion of x is true. We may do a similar thing for existential statements using and. can be rewritten as Or if D S : Example 5 1. x Z+ such that x is even. There is a positive even integer x Z, s.t. x Z+ x is even. 2. Some owers are yellow. Let F = {x | x is a ower }. x F, such that x is yellow. x, x F, x is yellow. 3 x D such that P (x). x s.t. x D P (x). x S s.t. x D P (x).

-2

Quantiers

P. Danziger

1.3

Negations of Quantied Statements

Consider the negation of All owers are Yellow (x F, Y (x)). This will be untrue if there is at least one non yellow ower i.e. ( x F s.t. Y (x)). Theorem 6 The negation of a universal statement of the form x S, P (x) is x S, P (x). i.e. (x S, P (x)) x S, P (x). Consider the statement Some owers are yellow, ( x F s.t. Y (x)) this will be false if all owers are not yellow, i.e. (x F, Y (x)). Theorem 7 The negation of an existential statement of the form x S s.t. P (x) is x S, P (x). i.e. ( x S s.t. P (x)) x S, P (x). Example 8 Write negations of the following statements. 1. All integers are even Logical form: x Z, x is even. Negation: x Z s.t. x is not even. There is at least one non even integer. 2. There is an integer which divides 7 Logical form: x Z s.t. x divides 7. Negation: x Z, x does not divide 7. There is no integer which divides 7. 3. If x is an integer then x > 0. Logical form: x, x Z x > 0. Negation: x s.t. (x Z x > 0) x s.t. x Z x 0 There is a number which is both an integer and non negative. (False) (True) (False)

1.4

Vacuously True Universal Statements

Consider the statement All my dogs have eas. This translates to x D, F (x), where D = { dogs owned by me } and F (x) = x has eas. But what if I have no dogs, so D = , the empty set. Thus we have x , F (x). Is this statement true or false? It should be one or the other since it doesnt seem reasonable that the mere non existence of the subject (my dog) should suddenly turn this sentence from a statement into something which is not a statement. In general universal statements about the empty set are always true. We say that it is vacuously true. In particular the following statements are true: 4

-2

Quantiers

P. Danziger

1. All my dogs have eas 2. None of my dogs have eas

(x D, F (x)) (x D, F (x))

On the other hand Existential statements about the empty set are generally false, since they state that something exists in the empty set. thus I have a dog with eas. (x D, s.t. F (x)) is clearly false since it claims that, among other things, that I have a dog. This is also consistent with the negation rule. For example, the negation of the (False) existential statement x D, s.t. F (x) above, is the (True) statement 2 x D, F (x), None of my dogs have eas above.

Multiply Quantied Statements

The real power of quantiers is found when we use more than one in a statement. We may have statements with more than one quantied variable. If there is more than one variable with the same quantier they are put togther if possible. Example 9 1. The sum of any two natural numbers is greater than either of them x, y N, x + y > x x + y > y. The quanties both x and y. 2. There are two integers whose sum is twice the rst. x, y Z s.t. x + y = 2x. The quanties both x and y. We can have more than two variables: 3. There are three integers whose sum is 25. x, y, z Z s.t. x + y + z = 25. We can use the same quantier for dierent sets: 4. There is an integer and a rational number whose sum is 2.5. x Z, y Q, s.t. x + y = 2.5. More interesting statements can be formed by mixing quantiers. x A, y B s.t. P (x, y) means that for every x in A we can nd a y in B such that the property P (x, y) is true. 5

-2

Quantiers

P. Danziger

Whereas the statement x A s.t. y B, P (x, y) means that there is a xed element x in A such that P (x, y) is true for every y in B. Note Order is important. Example 10 1. There is an integer whose sum with any other integer is equal to the second. x Z such that y Z, x + y = y. This is true, the number (x) with this property is 0. 2. For every integer, there is another integer whose sum with the rst is 0. x Z, y Z such that x + y = 0. This is true: y = x, but note that the value of y depends on x. i.e. each x gets a dierent y. 3. There is an integer whose sum with any other real number is equal to twice itself. x Z such that y R, x + y = 2x. This is false there is no such number. 4. For every integer there is a real number such that their sum is twice the integer. x Z, y R such that x + y = 2x. This is true, take y = x. 5. All fractions may be expressed as the ratio of two integers. x Q, p, q Z such that x = p . q This is true - see the denition of Q. 6. There is no greatest integer. x Z, y Z such that y > x. Literally this translates as for every integer there is an integer which is greater than it. 7. Between any two rational numbers there is an irrational number. x, y Q, z I such that x < z < y or y < z < x. This is true. The negation rule still applies, so: (x A, y B s.t. P (x, y)) x A s.t. y B, P (x, y). ( x A s.t. y B, P (x, y)) x A, y B s.t. P (x, y).

2.1

Scope

The scope of a quantied variable is as follows: 1. If the quantier appears at the beginning of the statement the scope is the whole statement. 2. If the quantier appears after a separator (, , ) then the scope is until the next separator, or the end of the statement if there is none. 3. We may use brackets to change the scope. 6

-2

Quantiers

P. Danziger

Example 11 Put the following numbered statements in symbolic form, given that: B = {x | x is a bee} F = {x | x is a ower} L(x, y) = x likes y U = the universal set.

1. All bees like all owers x B, y F, L(x, y). 2. Some bees like all owers. x B s.t. y F, L(x, y). 3. All bees like some ower x B, y F s.t. L(x, y). 4. Only bees like owers. x U, (y F s.t. L(x, y)) x B. x U, y F s.t. L(x, y) x B. 5. Some bees like only owers x B s.t. y U, L(x, y) y F . 6. No bee likes only owers. x B, y U s.t. L(x, y) y F . 7. Every bee hates all owers x B, y F, L(x, y). 8. No bee hates all owers ( x B s.t. y F, L(x, y)) x B, y F s.t. L(x, y).

2.2

Variants of Universal Conditional Statements

Given a statement involving a quantier and an implication we may consider the contrapositive, converse and inverse of the statement. Denition 12 Given a statement of the form x S, P (x) Q(x) we have the following: Contrapositive x S, Q(x) P (x). Converse x S, Q(x) P (x). Inverse x S, P (x) Q(x). As before a statement is logically equivalent to its contrapositive, but not to its converse or inverse. 7

-2

Quantiers

P. Danziger

Example 13 Write the contrapositive, converse and inverse of the statement The square of every real number greater than 1 is greater than itself. The symbolic form of the statment is: x R, x > 1 x2 > x. Contrapositive: x R, x2 x x 1. If the square of a real number is less than itself then that number is less than 1 Converse: x R, x2 > x x > 1. If the square of a real number is greater than itself then that number is greater than 1. Inverse: x R, x 1 x2 x. Any real number less than 1 has square less than or equal to itself. Note that in this case the converse and inverse are false. (Take x negative.)

2.3

Necessary and Sucient

We can also dene the concepts of necessary and sucient. Denition 14 1. x, P (x) is a sucient condition for Q(x), means x, P (x) Q(x) 2. x, P (x) is a necessary condition for Q(x), means x, P (x) Q(x) 3. x, P (x) only if for Q(x), means x, Q(x) P (x) Example 15 1. In order to pass it is necessary that the student complete the nal exam. Let S = {x | x is a student }, C(x) = x completes the nal exam. P (x) = x passes. x S, C(x) P (x). If any student does not complete the nal, then they wont pass. (But might complete nal and still fail) 2. For an integer to be less than 6 it is sucient that it be less than 3 x Z, x < 3 x < 6. (Not necessary, for example take x = 5) 3. A necessary and sucient condition for a positive integer to be even is that there is some positive integer which is half the rst x Z+ , x is even k Z+ s.t. x = 2k

You might also like