Propositional Logic in Artificial Intelligence
Propositional Logic in Artificial Intelligence
intelligence
Propositional logic (PL) is the simplest form of logic where all the
statements are made by propositions. A proposition is a declarative
statement which is either true or false. It is a technique of knowledge
representation in logical and mathematical form.
Example:
a) It is Sunday.
b) The Sun rises from West (False proposition)
c) 3+3= 7(False proposition)
d) 5 is a prime number.
The syntax of propositional logic defines the allowable sentences for the
knowledge representation. There are two types of Propositions:
a. Atomic Propositions
b. Compound propositions
Example:
a) 2+2 is 4, it is an atomic proposition as it is a true fact.
b) "The Sun is cold" is also a proposition as it is a false fact.
Example:
a) "It is raining today, and street is wet."
b) "Ankit is a doctor, and his clinic is in Mumbai."
Logical Connectives:
Logical connectives are used to connect two simpler propositions or
representing a sentence logically. We can create compound propositions
with the help of logical connectives. There are mainly five connectives,
which are given as follows:
⇧
1. Negation: A sentence such as ¬ P is called negation of P. A literal can
be either Positive literal or negative literal.
Truth Table:
In propositional logic, we need to know the truth values of propositions in all
possible scenarios. We can combine all the possible combination with
logical connectives, and the representation of these combinations in a
tabular format is called Truth table. Following are the truth table for all
logical connectives:
⇧
Truth table with three propositions:
Precedence of connectives: ⇧
Just like arithmetic operators, there is a precedence order for propositional
connectors or logical operators. This order should be followed while
evaluating a propositional problem. Following is the list of the precedence
order for operators:
Precedence Operators
Logical equivalence:
Let's take two propositions A and B, so for logical equivalence, we can write
it as A⇔B. In below truth table we can see that column for ¬A∨ B and A→B,
are identical hence A is Equivalent to B
Properties of Operators:
⇧
Commutativity:
P∧ Q= Q ∧ P, or
P ∨ Q = Q ∨ P.
Associativity:
(P ∧ Q) ∧ R= P ∧ (Q ∧ R),
(P ∨ Q) ∨ R= P ∨ (Q ∨ R)
Identity element:
P ∧ True = P,
P ∨ True= True.
Distributive:
P∧ (Q ∨ R) = (P ∧ Q) ∨ (P ∧ R).
P ∨ (Q ∧ R) = (P ∨ Q) ∧ (P ∨ R).
DE Morgan's Law:
¬ (P ∧ Q) = (¬P) ∨ (¬Q)
¬ (P ∨ Q) = (¬ P) ∧ (¬Q).
Double-negation elimination:
¬ (¬P) = P.
⇧
← Prev Next →
For Videos Join Our Youtube Channel: Join
Now
Preparation
Verbal Ability
⇧
Verbal A.
Aptitude Reasoning
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