Professional Documents
Culture Documents
Predicate Calculus
Predicate Calculus
09/08/2023
Introduction:
1. In mathematics and computer programs, we encounter statements involving
variables such as “x > 10”, “x = y + 5” and “x + y = z”. These statements are
neither true nor false, when the values of the variables are not specified.
2. The statement “x is greater than 10” has 2 parts. The first part, the variable x, is
the subject of the statement. The second part “is greater than 10”, which refers to
a property that the subject can have, is called the predicate.
3. Notation:
Denote “x is greater than 10” by the notation P(x), where P denotes the
predicate “is greater than 10” and x is the variable.
P(x) is called the propositional function at x.
Once a value has been assigned to the variable x, the statement P(x) becomes a
proposition and has a truth value.
4. NOTE:
The statements “x = y + 5” and “x + y = z” will be denoted by P(x, y)
and P(x, y, z) respectively.
(ie):Many mathematical statements assert that a property is true for all values of a
variable in a particular domain, called the universe of discourse. Such a statement is
expressed using a universal quantification. The universal quantification
of P(x) is the statement.
QUANTIFIERS
1. UNIVERSAL QUANTIFIER
2. EXISTENTIAL QUANTIFIER
The symbol ∀ is called the universal The symbol ∃ is called the existential
quantifier quantifier
Eg:If P(x) = x2 <10 , where the universe Eg: When P(x) = x2 > 10 , where the
consists of the positive integers 1, universe of discourse consists of the
2, 3 and 4, then ∀ x P(x) = P(1) Ʌ P(2) Ʌ positive integers not exceeding 4, then the
P(3) Ʌ P(4) . truth value of ∃ xP(x) is T,
the truth value of ∀x P(x) = T Ʌ T Ʌ T Ʌ F since P(1) v P(2) v P(3) v P(4) is true as
= F. P(4) is true
∀xP(x)= every student (in the class) has studied computer programming
The negation of this statement is “There is a student in the class who has not studied
computer programming”.
Symbolically: ∃ P(x).
Similarly, ∃ xP(x) means that “there is a student in the class who has studied
computer programming . The negation of this statement is “Every student in
this class has not studied computer programming”, which is denoted by
∀ x ~P(x).
Let A and B be any two predicate formulas defined over a common universe of
discourse E. When each of the variables appearing in A and B is replaced by
any element (object name) of the universe E, if the resulting statements have
the same truth values, then A and B are said to be equivalent to each other over
E and denoted as A ≡ B or A ↔ B over E.
INFERENCE THEORY OF PREDICATE CALCULUS
1. Three basic rules Rule P, Rule T and Rule CP of inference used in statement
calculus can also be used in predicate calculus.
Note:
• US stands for Universal Specification
• UG stands for Universal Generalization
• ES stands for Existential Specification
• EG stands for Existential Generalization
Problem 1:
Let us consider the following argument.
Exercise:
Show that the conclusion