2 Predicate Logic
2 Predicate Logic
Lecture Module 12
Limitation of PL
● The facts like:
− “peter is a man”, “paul is a man”, “john is a man” can be
symbolized by P, Q and R, respectively in PL.
− We can not draw any conclusions about similarities between
P, Q and R.
● Better representations of these facts can be
● Further, the sentences like “All men are mortal” can
not be represented in PL.
− MAN(peter), MAN(paul) and MAN(john).
− Similarity between these facts that they are all man can be
easily derived.
● In Predicate Logic (logical extension of PL) such
sentences can be easily represented.
− The limitations of propositional logic are removed to some
extent.
Predicate Logic
● It has three more logical notions as compared to PL.
−Terms, Predicates and
− Quantifiers
● Term
− a constant (single individual or concept i.e.,5, john etc.),
− a variable that stands for different individuals
− n-place function f(t1, …, tn) where t1, …, tn are terms. A
function is a mapping that maps n terms to a term.
● Predicate
− a relation that maps n terms to a truth value true (T) or false (F).
● Quantifiers
− Universal or existential quantifiers i.e. and used in
conjunction with variables.
Examples
● “x loves y” is represented as LOVE(x, y) which maps it
to true or false when x and y get instantiated to actual
values.
● “john’s father loves john” is represented as
LOVE(father(john), john).
− Here father is a function that maps john to his father.
● x is greater than y is represented in predicate calculus
as GT(x, y).
● It is defined as follows:
GT( x, y) = T , if x y
= F , otherwise
● Symbols like GT and LOVE are called predicates
− Predicates two terms and map to T or F depending upon the
values of their terms.
Examples – Cont..
− (q x) [x] V (q x) ( [x] V )
− V (q x) [x] (q x) ( V [x])
− (q x) [x] (q x) ( [x] )
− (q x) [x] (q x) ( [x])
− ~((x) [x]) (x) (~ [x])
− ~((x) [x]) (x) (~ [x])
Skolemisation (Standard Form)
(i) ( vi )
{x / abraham, y / mike}
Answer: Yes
Different Type of Queries
● Non ground queries
Query:“Does there exist x such that x is a father of
robert ?” {Who is father of robert?}
FATHER (x, robert).
Query: “Does there exist x such that abraham is a
father of x?" {abraham is father of whom?}
FATHER (abraham, x).
Query: “Do there exist x and y such that x is a father of
y?" { who is father of whom?}
FATHER (x, y).