Atif Manzoor, Ph.D. Atif - Manzoor@ciitlahore - Edu.pk
Atif Manzoor, Ph.D. Atif - Manzoor@ciitlahore - Edu.pk
Atif Manzoor, Ph.D. Atif - Manzoor@ciitlahore - Edu.pk
pk
Slides
\\bdc\share drive\AtifManzoor
\\172.16.17.7\share drive\AtifManzoor
is not commutative.
not associative.
Precedence of quantifiers
and has higher precedence then all logical operators
x P(x) v Q(x) is the disjunction of x P(x) and Q(x) In other words it will mean (x P(x)) v (Q(x)) rather than
x (P(x) v Q(x))
Quantification as Loops
Using this procedure xyP(x,y) is true if P(x,y) is true for all values of x,y as we loop through y for each value of x. xyP(x,y) is true if P(x,y) is true for at least one set of values x,y as we loop through y for each value of x. And so on.
Free variables
Variables in a statement are free variables unless we
predicate
Binding variables
Let P(x,y) be x > y Consider: x P(x,y) This is not a proposition! What is y?
11
Binding variables 2
(x P(x)) Q(x)
The x in Q(x) is not bound; thus not a proposition
(x P(x)) (x Q(x))
Both x values are bound; thus it is a proposition
12
A note on quantifiers
Recall that P(x) is a propositional function Recall that a proposition is a statement that is either true or false There are two ways to make a propositional function into a proposition:
Supply it with a value For example, P(5) is false, P(0) is true Provide a quantifiaction For example, x P(x) is false and x P(x) is true
Let P(x) be x == 0
x Q(x), where Q(x) is the statement x has studies mathematics in high school Every student in this class has not studied mathematics in high school x Q(x)
x Q(x) x Q(x)
x P(x)
x P(x)
Recall negation rules for single quantifiers: x P(x) = x P(x) x P(x) = x P(x) Essentially, you change the quantifier(s), and negate what its quantifying
Examples:
(xy P(x,y)) = x y P(x,y) = xy P(x,y) (xyz P(x,y,z)) = xyz P(x,y,z) = xyz P(x,y,z) = xyz P(x,y,z)
P is true To disprove it (negate it), you need to show that there exists an x such that for all y, P is false
y, P is true To disprove it (negate it), you need to show that for all x, there exists a y such that P is false
Summary
Precedence of quantifiers Expressions with multiple quantifiers Quantifiers as loop Free and bound variables Negating quantifiers Morgans law for quantifiers Negating expressions with multiple quantifiers
Questions?