First Order Logic
First Order Logic
• Universal Quantifier
• Existential Quantifier
Universal Quantifier
• Universal Quantifier in First Order Logic in AI is a symbol in a
logical expression that signifies that the given expression is
true in its range for all instances of the concerned entity. It is
represented by the symbol ∀∀ (an inverted A). If x is a variable,
then ∀x is read as "For all x" or "For every x" or "For each x".
• For example, let us take the sentence, "All cats like fish". Let us
take a variable x which can take the value of "cat". Let us take
a predicate cat (x) which is true if x is a cat. Similarly, let us
take another predicate likes (x,y) which is true if x likes y.
Therefore, using the universal quantifier ∀∀, we can write
∀x cat (x)⟹ likes (x, fish )
This expression is read as "For all x, if x is a cat, then x likes to
fish"
Existential Quantifier
• An existential Quantifier in First Order Logic in Artificial
Intelligence is a symbol in a logical expression that signifies that the
given expression is true in its range for at least one of the instances
of the concerned entity. It is represented by the symbol ∃∃ (an
inverted E). If x is a variable, then ∃x is read as "There exists
x" or "For some x" or "For at least one x".
• For example, let us take the sentence, "Some students like ice
cream". Let us take a variable x which can take the value of
"student". Let us take a predicate student (x), which is true if x is a
student. Similarly, let us take another predicate likes likes (x,y),
which is true if x likes y. Therefore, using the existential quantifier ∃,
we can write
∃x student (x)∧ likes (x, ice-cream )
This expression reads, "There exists some x such that x is a student
and also likes ice cream".