Ex 1.4 Predicates and Quantifiers (Without Translation)
Ex 1.4 Predicates and Quantifiers (Without Translation)
Discrete Structures
Ayesha Asmat
[email protected]
Predicate
• a declarative sentence which contains one or
more variables,and is not a proposition,
• but becomes a proposition when the variables
in it are replaced by certain allowable choices
Predicates
x is greater than 3
sub predicate
• Denote by P(x)
• statement P(x) also known as propositional
function P at x.
Example(1 variable)
1. Let P(x) denote the statement “x > 3.” What
are the truth values of P(4) and P(2)?
• True
• When No False example found
• False
• When 1 False example found
Example 1
is false.
Example 3
of all integers.
•Solution:
•False
•x = 0 is a counterexample.
Example 4
• True
• When 1 true example found
• False
• When No true example found
Example 1
True
Example
P(4): 4>3, True
Example 2
• denoted by ∃! or ∃1.
one.”
• true.
• false
Quantifiers with Restricted Domains
23
• – Ex: ∀ y ∃ x (x + y = 1 ) is a proposition
the function becomes proposition
Scope of Quantifiers
• proposition ∀ y ∃ x (x + y = 1 ) with two
25
∃ x is applied to x + y = 1
•The part of the logical expression where a
quantifier is applied is called the scope of that
quantifier
Example
∃x(x + y = 1)
26
∃x P(x) ∨ Q(x)
•
∃x (P(x) ∨ Q(x))
•
• ¬∀ x P(x) ≡ ∃x ¬ P(x).
• ¬∃ x Q(x) ≡ ∀x ¬ Q(x).