









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Discrete math topics such as time complexities
Typology: Lecture notes
1 / 16
This page cannot be seen from the preview
Don't miss anything!










We often express statements that depend on one or more parameter. For example, let P(n) have the interpretation “n is a prime number.” Then, P(2) = “2 is a prime number” and P(4) = “4 is a prime nubmer”.
Predicates with Several Arguments
2
n
2
n
We call ∀ the universal quantifier and n the
Suppose that P(n) is a predicate over a finite universe, say {1,2,3}. Then ∀nP(n) is equivalent to P(1)⋀P(2)⋀P(3).
2
Two statements involving quantifiers and predicates are logically equivalent if and only if they have the same truth values no matter which predicates are substituted into these statements and which domain is used. We write A ≡ B for logically equivalent A and B.
¬ 8 x(P (x)! Q(x)) ⌘ 9x¬(P (x)! Q(x)) ⌘ 9x¬(¬P (x) _ Q(x)) ⌘ 9x(¬¬P (x) ^ ¬Q(x)) ⌘ 9x(P (x) ^ ¬Q(x)) ¬ 8 x(P (x)! Q(x)) ⌘ 9x(P (x) ^ ¬Q(x))
Step (1) is by de Morgan’s Law for universal quantified predicate statement. Step (2) is by the logical equivalence between implication and disjunction (proposition 2.2). Step (3) is by de Morgan’s Law for disjunction. Step (4) is by double negation law.
Suppose that P(x,y) is a predicate over a finite universe (domain), say Dx={1,2} and Dy={3,4}. Then
Domain for x is the set of persons. Domain for y is the set of all inputs. C(x,y): the program of person x crashes on input y L(x,y): the program of person x loops forever on input y
(1) “There is an input that causes every person’s program to crash or loop forever.” (2) “Every person’s program has some input on which it either crashes or loops forever.”