This document outlines lecture material on predicate calculus from a discrete mathematics course taught by Dr. D. Ezhilmaran and M. Adhiyaman at VIT University in Tamil Nadu, India. It defines predicates, the universe of discourse, universal and existential quantifiers, and provides examples of translating statements using these logical concepts. The document also presents solutions to several problems applying the rules of predicate calculus and inference.
MAT-1014 Discrete Mathematicsand Graph Theory
Faculty: Dr.D.Ezhilmaran
Teaching Research Associate: M.Adhiyaman
Department of Mathematics, School of Advanced Sciences, VIT- Univeristy,
Vellore, Tamilnadu, India
ezhilmaran.d@vit.ac.in
January 31, 2017
Faculty: Dr.D.Ezhilmaran Teaching Research Associate: M.Adhiyaman (VIT)Discrete Mathematics January 31, 2017 1 / 18
2.
Overview
1 Module −2Predicate Calculus
The Predicate Calculus
Inference Theory of the Predicate Calculus
Faculty: Dr.D.Ezhilmaran Teaching Research Associate: M.Adhiyaman (VIT)Discrete Mathematics January 31, 2017 2 / 18
3.
Predicate Calculus
Consider thestatement
p : x is a prime number (the statement is not a proposition)
The truth value of p depends on the value of x.
p is true when x = 3, and false when x = 10.
In this section we extend the system of logic to include such an above
statements.
Faculty: Dr.D.Ezhilmaran Teaching Research Associate: M.Adhiyaman (VIT)Discrete Mathematics January 31, 2017 3 / 18
4.
Definition 1. (predicates).
Apredicate refers to a property that the subject of the statement can
have. A predicate is a sentence that contains a finite number of specific
values are substituted for the variables.
That is, let P(x) be a statement involving variable x and a set D. We call
P as a propositional function if for each x in D, P(x) is a proposition.
Faculty: Dr.D.Ezhilmaran Teaching Research Associate: M.Adhiyaman (VIT)Discrete Mathematics January 31, 2017 4 / 18
5.
Definition 2. (universeof discourse)
The set D is called the domain of discourse (oruniverse of discourse) of P.
It is the set of all possible values which can be assigned to variables in
statements involving predicates.
Example: Let p(x) denote the statement x ≥ 4. What are the truth values
of p(5) (T) and p(2) (F).
Example: Let g(x, y) denote the statement g.c.d(x, y) = 1. What are the
truth values of g(3, 5) (T) and g(2, 8) (F)
Faculty: Dr.D.Ezhilmaran Teaching Research Associate: M.Adhiyaman (VIT)Discrete Mathematics January 31, 2017 5 / 18
6.
Definition 3. (universalquantifier)
Consider the proposition
All odd prime numbers are greater than 2. The word all in this proposition
is a logical quantifier. The proposition can be translated as follows:
For every x, if x is an odd prime then x is greater than 2
Similarly, the proposition:
Every rational number is a real number may be translated as.
For every x, if x is a rational number, then x is a real number.
The phrase for every x is called a universal quantifier.
Faculty: Dr.D.Ezhilmaran Teaching Research Associate: M.Adhiyaman (VIT)Discrete Mathematics January 31, 2017 6 / 18
7.
In symbols itis denoted by (∀x) or (x).
The phrases for every x, for all x and for each x have the same meaning
and we can symbolize each by (x).
If P(x) denotes a predicate (propositional function), then the universal
quantification for P(x), is the statement.
(x) P(x) is true.
Faculty: Dr.D.Ezhilmaran Teaching Research Associate: M.Adhiyaman (VIT)Discrete Mathematics January 31, 2017 7 / 18
8.
Example :
(a) LetA = {x : x is a natural number less than 9}
Here P(x) is the sentence x is a natural number less than 9. The common
property is a natural number less than 9. P(1) is true, therefore, 1 ∈ A
and P(12) is not true, therefore 12 /∈ A.
(b) The proposition (∀N) (n + 4 > 3) is true.
Since {n|n + 4 > 3} = {1, 2, 3, . . . } = N.
(c) The proposition (∀N) (n + 2 > 8) is false.
Since {n|n + 2 > 8} = {7, 8, 9, . . . } = N.
Faculty: Dr.D.Ezhilmaran Teaching Research Associate: M.Adhiyaman (VIT)Discrete Mathematics January 31, 2017 8 / 18
9.
Definition 4. (existentialquantifier).
In some situations we only require that there be at least one value for each
the predicate is true. This can be done by prefixing P(x) with the phrase
there exists an. The phrase there exists an is called an existential
quantifier.
Faculty: Dr.D.Ezhilmaran Teaching Research Associate: M.Adhiyaman (VIT)Discrete Mathematics January 31, 2017 9 / 18
10.
The existential quantificationfor a predicate is the statement There exists
a value of x for which P(x).
The symbol, ∃ is used to denote the logical quantifier there exists. The
phrases There exists an x, There is a x, for some x and for at least one x
have the same meaning.
The existential quantifier for P(x) is denoted by (∃ x) P(x)
Faculty: Dr.D.Ezhilmaran Teaching Research Associate: M.Adhiyaman (VIT)Discrete Mathematics January 31, 2017 10 / 18
11.
Example :
(a) Theproposition there is an integer between 1 and 3 may be written as
(∃ an integer) (the integer is between 1 and 3)
(b) The proposition (∃N) (n + 4 < 7) is true.
Since {n|n + 4 < 7} = {1, 2} = φ.
(c) The proposition (∃N) (n + 6 < 4) is false.
Since {n|n + 6 < 4} = φ.
Faculty: Dr.D.Ezhilmaran Teaching Research Associate: M.Adhiyaman (VIT)Discrete Mathematics January 31, 2017 11 / 18
12.
IV. Problems:
(i) Showthat (x)(H(x) −→ M(x)) ∧ H(a) =⇒ M(a).
Solution:
Step 1 (x)(H(x) −→ M(x)) Rule P
Step 2 H(a) −→ M(a) Rule US
Step 3 H(a) Rule P
Step 4 M(a) {2, 3} and apply Modus Ponens
Faculty: Dr.D.Ezhilmaran Teaching Research Associate: M.Adhiyaman (VIT)Discrete Mathematics January 31, 2017 12 / 18
13.
(ii) Show that
(x)(P(x)−→ Q(x)) ∧ (x)(Q(x) −→ R(x)) =⇒ (x)(P(x) −→ R(x)).
Solution:
Step 1 (x)(P(x) −→ Q(x)) Rule P
Step 2 P(a) −→ Q(a) Rule US
Step 3 (x)(Q(x) −→ R(x)) Rule P
Step 4 Q(a) −→ R(a) Rule US
Step 5 P(a) −→ R(a) {2,4},I7
Step 6 (x)P(x) −→ R(x) Rule UG
Faculty: Dr.D.Ezhilmaran Teaching Research Associate: M.Adhiyaman (VIT)Discrete Mathematics January 31, 2017 13 / 18