Artificial Intelligence 3451: UNIT: 03 Knowledge Representation (First Order Logic)
Artificial Intelligence 3451: UNIT: 03 Knowledge Representation (First Order Logic)
Artificial Intelligence 3451: UNIT: 03 Knowledge Representation (First Order Logic)
UNIT: 03
Knowledge Representation(First Order Logic )
Lecture: 08
Variables x, y, z, a, b,....
Connectives ∧, ∨, ¬, ⇒, ⇔
Equality ==
Quantifier ∀, ∃
Elements and their symbols in
Predicate Logic
The elements for which different symbols are defined
are:
Objects:
It refers to an entity that exists in the real world.
For example, Jawad, John, etc. are referred to as Objects.
Functions:
Any function performed by the object/on the object.
For example, LeftLeg, writes, eats, etc. are some of the functions.
Relations:
The relation of an object with the other object defines its relation.
For example, brother, mother, king, etc. are some types of relations which
exist in the real world.
Symbols used to represent these
elements
Constant Symbols:
These symbols are used to represent the objects.
Predicate Symbols:
These symbols are used to represent relations.
Function Symbols:
These symbols are used to represent the functions performed
by the object.
Semantic
Semantics:
It defines the sense of the given predicate. It allows to make more
logical expression by devising its semantics. Semantics allow us to
understand the sentence meaning.
Let’s understand Predicate logic with the help of below
examples:
Example 1: Lipton is a tea.
Solution: Here, the object is Lipton.
It will be represented as Tea(Lipton).
Example 2: Every man is mortal.
Solution: Here, the quantifier is the universal identifier, and the object is
man.
Let x be the man.
Thus, it will be represented as x: man(x) → mortal(x).
Example 3: All girls are intelligent.
Solution: Here, we are talking about all girls. It means universal quantifier
will be used. The object is girls. Let, y be the girls.
Therefore, it will be represented as girls(y) → intelligent(y).
Example 4: All that glitters is not gold.
Solution: Here, we will represent gold as x.
Therefore, it will be represented as glitters(x) → ¬gold(x).
Example 5: Some boys are obedient.
Solution: Here, boys are objects. The quantifier used will be existential
quantifier. Let x be the boys. Thus, it will be represented as
Ǝx: boys(x) → obedient(x).
Example 6: Some cows are black and some cows are white.
Solution: Let, x be the cows. Therefore, it will be represented as:
Ǝx: cows(x) → black(x) Ʌ white(x).
Knowledge Engineering in FOPL
Knowledge engineering is the process where a knowledge
engineer investigates a specific domain, learn the
important concepts regarding that domain, and creates the
formal representation of the objects and relations in that
domain.
Knowledge Engineering Process
An engineering term is used when we are talking about
any project.
Therefore, knowledge engineering over a project
involves the below described steps:
Inference in First-order Logic
While defining inference, we mean to define effective
procedures for answering questions in FOPL.
FOPL offers the following inference rules:
Inference rules for quantifiers
Universal Instantiation (UI):
In this, we can infer any sentence by substituting a ground term (a
term without variables) for the variables.
In short, when we create the FOPL of the given statement, we can
easily infer any other statement using that FOPL
Notation:
Let, SUBST( θ , α ) be the result of the given sentence α , and
its substitute is θ.