First-Order Logic in Artificial Intelligence - Javatpoint
First-Order Logic in Artificial Intelligence - Javatpoint
intelligence
In the topic of Propositional logic, we have seen that how to represent
statements using propositional logic. But unfortunately, in propositional
logic, we can only represent the facts, which are either true or false. PL is not
sufficient to represent the complex sentences or natural language
statements. The propositional logic has very limited expressive power.
Consider the following sentence, which we cannot represent using PL logic.
First-Order logic:
First-order logic is another way of knowledge representation in
artificial intelligence. It is an extension to propositional logic.
First-order logic (like natural language) does not only assume that
the world contains facts like propositional logic but also assumes
the following things in the world:
Function: Father of, best friend, third inning of, end of, ......
As a natural language, first-order logic also has two main parts:
a. Syntax
b. Semantics
Variables x, y, z, a, b,....
Connectives ∧, ∨, ¬, ⇒, ⇔
Equality ==
Quantifier ∀, ∃
Atomic sentences:
Complex Sentences:
Complex sentences are made by combining atomic sentences using
connectives.
Consider the statement: "x is an integer.", it consists of two parts, the first
part x is the subject of the statement and second part "is an integer," is
known as a predicate.
These are the symbols that permit to determine or identify the range
and scope of the variable in the logical expression. There are two
types of quantifier:
Universal Quantifier:
For all x
For each x
For every x.
Example:
It will be read as: There are all x where x is a man who drink coffee.
Existential Quantifier:
Existential quantifiers are the type of quantifiers, which express that the
statement within its scope is true for at least one instance of something.
It is denoted by the logical operator ∃, which resembles as inverted E. When
it is used with a predicate variable then it is called as an existential
quantifier.
Example:
It will be read as: There are some x where x is a boy who is intelligent.
Points to remember:
The main connective for universal quantifier ∀ is implication →.
The main connective for existential quantifier ∃ is and ∧.
Properties of Quantifiers:
In universal quantifier, ∀x∀y is similar to ∀y∀x.
← Prev Next →
Preparation
Interview Company
Questions Interview
Questions
Interview
Company
Trending Technologies
B.Tech / MCA
OS C. Network Compiler D.
C. Graphics Software E.
.Net
Data Mining
Tutorial
Data Mining