Discrete Mathematics - L05
Discrete Mathematics - L05
Lecture 5
Date: 4/11/2020
Example:
Q(x , y) = “ x is a student at y ”
Where x and y are predicate variables
Example:
P(x) = “ x is a student at PUA ”
Domain : set of all students
Example2:
Let R(x) = “x < 5 and x 3”
Domain of x is Z+ = { 1, 2, 3, 4, ... }
Truth set of R(x) = { 1, 2, 4 }
Solution:
The truth set of P(x) = { 1, 2, 4, 8 }
The truth set of Q(x) = { 1, 2, 4 }
then Q(x) P(x)
Formally:
∀ x H, x is mortal
where H is the set of all human
Solution:
Check that “x2 x” is true for each individual x in D.
12 1, 22 2, 32 3, 42 4, 52 5
Hence “∀ x D, x2 x” is true.
Example:
There is a student in PUA
∃ a person s such that s is a student in PUA
Formally:
∃ s S such that s is a student in PUA
where S is the set of all Students
Solution:
1. ∀ triangles t, t has three sides
∀ t ∈ T, t has three sides
where T is the set of all triangles
2. ∃ a program p such that p is structured
∃ p ∈ P, such that p is structured
where P is the set of all programs