Predicate_Logic
Predicate_Logic
WSU-Tricities
The Need for Predicate Logic
1
Now obviously this is a valid logical statement, but proving it goes
beyond the logic we’ve yet covered in this class.
You might get clever and try use modus ponens
p→q
p
. ˙ .q
2
It turns out that words like all or some, take us beyond the
propostional logic we’ve considered so far. They require us to step
back, break our statements up into their component parts, and
introduce variables.
Such logical expressions bring us to the realm of predicate logic.
3
Consider the statement
He is an instructor at WSU-TC
4
We can break this predicate up into it’s modifiers.
If we let x denote any person, we can then write the phrase.
x is an instructor at WSU-TC
P = is an instructor at WSU-TC
Q = is an instructor at
As
P(x)
5
Or
x is an instructor at y
as
Q(x, y)
Q(x, y) ≡ x is an instructor at y
6
Predicate Examples
Q(x, y) ≡ x is an instructor at y
7
Predicate Examples
Q(x, y) ≡ x is an instructor at y
8
Predicates
Definition
A predicate is a sequence that contains a finite number of variables
a becomes a statement when specific values are substituted for the
variables. The domain of the predicate variable is the set of all
values that may be substituted in place of the variables.
9
Predicate Truth Values EXamples
1. P(2)
2. P(0)
3. P(1)
4. P(16/2)
10
Predicate Truth Values EXamples
1. P(2)
2
= 1, 1 ∈ Z, TRUE
2
2. P(0)
0
= 0, 0 ∈ Z, TRUE
2
3. P(1)
1
= 0.5, 0.5 ̸∈ Z, FALSE
2
4. P(16/2)
16
= 4, 4 ∈ Z, TRUE
4
What set of numbers makes the resulting statement P(x) true?
11
Quantifiers
12
Universal Quantifier
13
Or, symbollically,letting P be is mortal, and D be all human beings.
∀x ∈ D, P(x)
s∈D
. ˙ .P(s)
14
Domain of the Universal Statement
Notation
The domain D of a the predicate variable can fall between the
universal qualifier symbol and the variable, as in
∀ real numbers x
∀x ∈ R
15
Universal Statements
Definition
Let Q(x) be a predicate and D the domain of x. A universal
statement of the form ∀x ∈ D, Q(x) is defined to be true iff Q(x) is
true for every x ∈ D; it is false iff there is atleast one x such that
Q(x) is false.
A value x ∈ D for which Q(x) is false is called a counter-example to
the statement ∀x ∈ D, Q(x)
∀x ∈ Znon-neg , Q(x)
Q = divide by 2 is positive
16
Universal statement examples
1. ∀x ∈ D, x2 ≥ x
2. ∀x ∈ D, x2 > x
17
Existential Quantifier
∃x ∈ R |xk = x
18
Existential Quantifier
Definition
Let Q(x) be a predicate and D the domain of x, an existential
statement is a statement of the form ∃x ∈ D such that Q(x). It is by
definition true iff Q(x) is just for at least one x in D. It is false, iff
Q(x) is false for all x in D.
19
Existential Predicate Example
1. ∃m ∈ Z+ such that m2 = m
2. Let E = {5, 6, 7, 8}. ∃m ∈ E such that m2 = m
20
Universal Conditional Statements
Or, semi-symbolically.
21
1. Using the notation we’ve covered so far, try to write the
statement
P(x) does not imply Q(x)
22
Negations of Universal Statements
23
The negation of a universal statement
∀x ∈ D, Q(x)
That is:
24
Negations of Existential Statements
25
The negation of a statement of the form
Is logically equivalent to the universal statement that all are not Q(x)
∀x ∈ D, ∼ Q(x)
Symbolically
26
Negations of Universal Conditional Statements
∼ (p → q)
p∧ ∼ q
27
Our universal conditional statement has the form
28
Consider the predicate statement
For all the students in my class, if the student studies, then
they will get an A on the test.
Here we had
29
Relation to De Morgans laws
∀n ∈ D, n ≤ 4
30
∼ (P(1)∧P(2)∧P(3)∧P(4)∧P(5)) ≡∼ P(1)∨ ∼ P(2)∨ ∼ P(3)∨ ∼ P(4)∨ ∼ P(5)
31
Contrapositive, Converse, and Inverse of Universal Conditionals
∀x ∈ D, P(x) → Q(x)
We can define
1. The Contrapositive:
∀x ∈ D, ∼ Q(x) →∼ P(x)
32
2. The Converse:
∀x ∈ D, Q(x) → P(x)
3. The Inverse:
∀x ∈ D, ∼ P(x) →∼ Q(x)
33
Converse, Inverse, Contrapositive
∀x ∈ R, x > 2 → x2 > 4
34
1. Contrapositive
∀x ∈ R, x2 ≤ 4 → x ≤ 2
2. Converse
∀x ∈ R, x2 > 4 → x > 2
3. Inverse
∀x ∈ R, x ≤ 2 → x2 ≤ 4
35
Vacuous Truths
But! There are not any graduate students in this class. So is this
statement true or false?
It is was known as a vacuous truth
36
Vacuous Truths
Definition
For a universal conditional statement of the form
∀x ∈ D, P(x) → Q(X)
this statement is known as vacuously true iff P(x) is false for all
x∈D
∀x ∈ D, ∼ P(x)
37
Multiply Quantified Statements
Does this mean that there is a single person supervising every single
detal of the process, or that for every detail of the production
process, someone is supervising it?
It turns out that this ambiguous, it either is technically correct.
38
When we encounter statements which more than one ∃ or ∀ appears,
we adopt the convention of interpreting them from right to left.
Consider the statement
For all real numbers x, there exists an integer y such that
0≤x−y≤1
This means, for any of the real numbers that you pick, x, you can
then pick a certain y such that P(x, y) is true.
This is not saying that there is some single integer y which makes
P(x, y) true for every single choice of x.
x gets chosen first, and then y
39
Alternatively, consider the statement
There exists an integer y such that all real numbers multiplied
by this integer yields that integer.
40
Tarski’s World
∀x ∈ D, ∃y ∈ E|P(x, y)
∃x ∈ D|∀y ∈ E, P(x, y)
42
Multiple Quantifiers Example
43
Evaluate the following statement:
44
Evaluate the following statement:
45
Evaluate the following statement:
46
Evaluate the following statement:
47
Converting from informal to formal language
48
Give the formal notation for the following statements
∀x ∈ R̸=0 , ∃y ∈ R|x × y = 1
∃x ∈ R|∀y ∈ R, x × y ̸= 1
49
Negations of multiply quantified statements
50
∼ (∀x ∈ D, ∃y ∈ E|P(x, y))
∃x ∈ D|∀y ∈ E, ∼ P(x, y)
51
Use the rules of negation for universal and existential statements to
find the negation of the following
52
Use the rules of negation for universal and existential statements to
find the negation of the following
∀x ∈ D, ∃y ∈ E| ∼ P(x, y)
53
Definition
The negation of a universal existential statement is an existential
universal statement with a negated predicate.
54
Order of Operators
These statements are the same, but the order of the operators is
switched, and the meanings are vastly different.
55
In Summary
56