Beruflich Dokumente
Kultur Dokumente
Example (continued)
• Let p, q denote the atomic propositions:
p: ‘All animals are cows’
q: ‘There is at least one animal that is not a cow’
• Then the argument is ¬p → q
• Is this a tautology?
• NO! – for if p and q are both false, then ¬p → q
is false
• Thus the original argument, which seems quite
reasonable, doesn’t appear to be logically valid
3
1
Discrete Mathematics 2002 Lecture 14, 22-August-2002
Predicates
• A predicate is a statement containing one or
more variables. If values are assigned to all
the variables, the result is a proposition.
• Example: ‘y ≥ 7’ is a predicate, where y is a
variable denoting any real number
• Example: ‘x is in Africa’ is a predicate,
where x is a variable denoting the name of a
country
5
2
Discrete Mathematics 2002 Lecture 14, 22-August-2002
Quantifiers
• The expressions ‘for all’ and ‘there exists’ are
called quantifiers
• The process of applying a quantifier to a
variable is called quantifying the variable
• A variable that has been quantified is said to
be bound
• Example: In ‘There exists a y such that y ≥ 7’,
the variable y is bound by the quantifier ‘there
exists’
• A variable that is not bound is said to be free
7
Another Example
• Example: Write in symbols
‘For all y, y < 7 or y ≥ 7’
Solution: Let P(y) & Q(y) denote the
predicates ‘y < 7’ & ‘y ≥ 7’, respectively.
Then the proposition can be written as
∀y [P(y) ∨ Q(y)].
Note: Since Q(y) is equivalent to ¬P(y),
this can also be written as
∀y [P(y) ∨ ¬P(y)]
9
3
Discrete Mathematics 2002 Lecture 14, 22-August-2002