SlideShare a Scribd company logo
1 of 37
Propositional logic
Knowledge representation
There are mainly four ways of knowledge representation which
are given as follows:
• Logical Representation
• Semantic Network Representation
• Frame Representation
• Production Rules
Logical representation
• Logical representation is a language with some concrete rules
which deals with propositions and has no ambiguity in
representation.
• Logical representation means drawing a conclusion based on
various conditions.
• It consists of precisely defined syntax and semantics which
supports the sound inference. Each sentence can be translated
into logics using syntax and semantics.
Syntax:
• Syntaxes are the rules which decide how we
can construct legal sentences in the logic.
• It determines which symbol we can use in
knowledge representation.
• How to write those symbols.
Semantics:
• Semantics are the rules by which we can interpret
the sentence in the logic.
• Semantic also involves assigning a meaning to
each sentence.
Logical representation can be categorised into
mainly two logics:
• Propositional Logics
• Predicate logics
Propositional logic
syntax
• The syntax of propositional logic defines the
allowable sentences for the knowledge
representation.
• There are two types of Propositions:
– Atomic Propositions
– Compound propositions
• Atomic Proposition: Atomic propositions
consists of a single proposition symbol. These
are the sentences which must be either true or
false.
Example
• 2+2 is 4, it is an atomic proposition as it is a tr
ue fact.
• "The Sun is cold" is also a proposition as it is a
false fact.
• Compound proposition: Compound
propositions are constructed by combining
simpler or atomic propositions, using
parenthesis and logical connectives.
Example
• "It is raining today, and street is wet."
• "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:
• Negation: A sentence such as ¬ P is called negation of P. A
literal can be either Positive literal or negative literal.
• Conjunction: A sentence which has ∧ connective such as, P
∧ Q is called a conjunction.
Example: Rohan is intelligent and hardworking. It can be
written as,
P= Rohan is intelligent,
Q= Rohan is hardworking. → P∧ Q.
• Disjunction: A sentence which has ∨ connective, such as P
∨ Q. is called disjunction, where P and Q are the
propositions.
Example: "Ritika is a doctor or Engineer"
Here P= Ritika is Doctor. Q= Ritika is Engineer. so we can
write it as P ∨ Q.
• Implication: A sentence such as P → Q, is called
an implication. Implications are also known as if-
then rules. It can be represented as
If it is raining, then the street is wet.
Let P= It is raining, and Q= Street is wet, so
it is represented as P → Q
• Biconditional: A sentence such as P⇔ Q is a
Biconditional sentence.
• Example If I am breathing, then I am alive
P= I am breathing, Q= I am alive, it can be
represented as P ⇔ Q.
Propositional Logic Connectives
Truth table with three propositions
Precedence order for Propositional
Logic
• Two propositions are said to be logically equivalent if and only
if the columns in the truth table are identical to each other.
• Two propositions A and B, so for logical equivalence, we can
write it as A⇔B.
Semantics
The semantics defines the rules for determining the truth of a
sentence with respect to a particular model.
• Atomic proposition variable for Wumpus world:
• Let Pi,j be true if there is a Pit in the room [i, j].
• Let Bi,j be true if agent perceives breeze in [i, j], (dead or
alive).
• Let Wi,j be true if there is wumpus in the square[i, j].
• Let Si,j be true if agent perceives stench in the square [i, j].
• Let Vi,j be true if that square[i, j] is visited.
• Let Gi,j be true if there is gold (and glitter) in the square [i,
j].
• Let OKi,j be true if the room is safe.
• If the sentences in the knowledge base make
use of the proposition symbols P1,2, P2,2, and
P3,1, then one possible model is
m1 = {P1,2 = false, P2,2 = false, P3,1 = true} .
[with three proposition symbols, there are 23 = 8 possible models]
• The truth value of any sentence s can be
computed with respect to any model m by a
simple recursive evaluation.
Propositional Inference
Logical Equivalence
• To manipulate logical sentences we need some
rewrite rules.
• Two sentences are logically equivalent iff they are
true in same models: α ≡ ß iff α╞ β and β╞ α
Validity and satisfiability
Validity
• Example
Some basic facts about propositional
logic
• Propositional logic is also called Boolean logic as it
works on 0 and 1.
• In propositional logic, we use symbolic variables to
represent the logic, Ex. A, B, C, P, Q, R, etc.
• Propositions can be either true or false, but it cannot be
both.
• Propositional logic consists of an object, relations or
function, and logical connectives.
• These connectives are also called logical operators.
• The propositions and connectives are the basic
elements of the propositional logic.
• Connectives can be said as a logical operator
which connects two sentences.
• A proposition formula which is always true is
called tautology, and it is also called a valid
sentence.
• A proposition formula which is always false is
called Contradiction.
• Statements which are questions, commands, or
opinions are not propositions such as "Where is
Rohini", "How are you", "What is your name",
are not propositions.
Limitations of Propositional logic
• We cannot represent relations like ALL, some,
or none with propositional logic. Example:
– All the girls are intelligent.
– Some apples are sweet.
• Propositional logic has limited expressive
power.
• In propositional logic, we cannot describe
statements in terms of their properties or
logical relationships.
Example
• Analyze the statement, “if you get more doubles than any
other player you will lose, or that if you lose you must have
bought the most properties,” using truth tables.
i) Let's represent the statement as a logical proposition using the following
variables:
P: you get more doubles than any other player
Q: you lose
R: you bought the most properties
(P -> Q) V (Q -> R)
• Are the statements, “it will not rain or snow”
and “it will not rain and it will not snow”
logically equivalent?
• Prove that the
Statements ¬(P→Q) and P∧¬Q are logically
equivalent without using truth tables.

More Related Content

Similar to Module_4_2.pptx

- Logic - Module 1B - Logic and Propositions course lactur .pdf
- Logic - Module 1B - Logic and Propositions course lactur .pdf- Logic - Module 1B - Logic and Propositions course lactur .pdf
- Logic - Module 1B - Logic and Propositions course lactur .pdfMehdiHassan67
 
chapter2 Know.representation.pptx
chapter2 Know.representation.pptxchapter2 Know.representation.pptx
chapter2 Know.representation.pptxwendifrawtadesse1
 
Logic in Predicate and Propositional Logic
Logic in Predicate and Propositional LogicLogic in Predicate and Propositional Logic
Logic in Predicate and Propositional LogicArchanaT32
 
Knowledege Representation.pptx
Knowledege Representation.pptxKnowledege Representation.pptx
Knowledege Representation.pptxArslanAliArslanAli
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxPriyalMayurManvar
 
d79c6256b9bdac53_20231124_093457Lp9AB.pptx
d79c6256b9bdac53_20231124_093457Lp9AB.pptxd79c6256b9bdac53_20231124_093457Lp9AB.pptx
d79c6256b9bdac53_20231124_093457Lp9AB.pptxvictoriadaza4
 
AI_Probability.pptx
AI_Probability.pptxAI_Probability.pptx
AI_Probability.pptxssuserc8e745
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)Nitesh Singh
 
CS Artificial Intelligence chapter 4.pptx
CS Artificial Intelligence chapter 4.pptxCS Artificial Intelligence chapter 4.pptx
CS Artificial Intelligence chapter 4.pptxethiouniverse
 
Introduction to mathematical analysis
Introduction to mathematical analysisIntroduction to mathematical analysis
Introduction to mathematical analysisAnoojaI
 
Ch2 (8).pptx
Ch2 (8).pptxCh2 (8).pptx
Ch2 (8).pptxDeyaHani
 
First Order Logic
First Order LogicFirst Order Logic
First Order LogicMianMubeen3
 
Ai lecture 07(unit03)
Ai lecture  07(unit03)Ai lecture  07(unit03)
Ai lecture 07(unit03)vikas dhakane
 
Horn clause and applications with detail
Horn clause and applications with detailHorn clause and applications with detail
Horn clause and applications with detailmaninderpal15
 
Dimas Andi Setiawan-1910631060011
Dimas Andi Setiawan-1910631060011Dimas Andi Setiawan-1910631060011
Dimas Andi Setiawan-1910631060011DimasSetiawan36
 

Similar to Module_4_2.pptx (20)

Logic (1)
Logic (1)Logic (1)
Logic (1)
 
- Logic - Module 1B - Logic and Propositions course lactur .pdf
- Logic - Module 1B - Logic and Propositions course lactur .pdf- Logic - Module 1B - Logic and Propositions course lactur .pdf
- Logic - Module 1B - Logic and Propositions course lactur .pdf
 
chapter2 Know.representation.pptx
chapter2 Know.representation.pptxchapter2 Know.representation.pptx
chapter2 Know.representation.pptx
 
Logic in Predicate and Propositional Logic
Logic in Predicate and Propositional LogicLogic in Predicate and Propositional Logic
Logic in Predicate and Propositional Logic
 
AI-Unit4.ppt
AI-Unit4.pptAI-Unit4.ppt
AI-Unit4.ppt
 
10a.ppt
10a.ppt10a.ppt
10a.ppt
 
Knowledege Representation.pptx
Knowledege Representation.pptxKnowledege Representation.pptx
Knowledege Representation.pptx
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptx
 
Logic
LogicLogic
Logic
 
d79c6256b9bdac53_20231124_093457Lp9AB.pptx
d79c6256b9bdac53_20231124_093457Lp9AB.pptxd79c6256b9bdac53_20231124_093457Lp9AB.pptx
d79c6256b9bdac53_20231124_093457Lp9AB.pptx
 
AI_Probability.pptx
AI_Probability.pptxAI_Probability.pptx
AI_Probability.pptx
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)
 
CS Artificial Intelligence chapter 4.pptx
CS Artificial Intelligence chapter 4.pptxCS Artificial Intelligence chapter 4.pptx
CS Artificial Intelligence chapter 4.pptx
 
Introduction to mathematical analysis
Introduction to mathematical analysisIntroduction to mathematical analysis
Introduction to mathematical analysis
 
Ch2 (8).pptx
Ch2 (8).pptxCh2 (8).pptx
Ch2 (8).pptx
 
First Order Logic
First Order LogicFirst Order Logic
First Order Logic
 
Ai lecture 07(unit03)
Ai lecture  07(unit03)Ai lecture  07(unit03)
Ai lecture 07(unit03)
 
continuity of module 2.pptx
continuity of module 2.pptxcontinuity of module 2.pptx
continuity of module 2.pptx
 
Horn clause and applications with detail
Horn clause and applications with detailHorn clause and applications with detail
Horn clause and applications with detail
 
Dimas Andi Setiawan-1910631060011
Dimas Andi Setiawan-1910631060011Dimas Andi Setiawan-1910631060011
Dimas Andi Setiawan-1910631060011
 

More from DrKalaavathiBuvanesh

More from DrKalaavathiBuvanesh (6)

Text Book-2--linear-algebra.pdf
Text Book-2--linear-algebra.pdfText Book-2--linear-algebra.pdf
Text Book-2--linear-algebra.pdf
 
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdfSAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
 
Module_5_1.pptx
Module_5_1.pptxModule_5_1.pptx
Module_5_1.pptx
 
Module_3_1.pptx
Module_3_1.pptxModule_3_1.pptx
Module_3_1.pptx
 
IEEE_Wireless.pdf
IEEE_Wireless.pdfIEEE_Wireless.pdf
IEEE_Wireless.pdf
 
IEEEWired.pdf
IEEEWired.pdfIEEEWired.pdf
IEEEWired.pdf
 

Recently uploaded

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 

Recently uploaded (20)

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 

Module_4_2.pptx

  • 2. Knowledge representation There are mainly four ways of knowledge representation which are given as follows: • Logical Representation • Semantic Network Representation • Frame Representation • Production Rules
  • 3. Logical representation • Logical representation is a language with some concrete rules which deals with propositions and has no ambiguity in representation. • Logical representation means drawing a conclusion based on various conditions. • It consists of precisely defined syntax and semantics which supports the sound inference. Each sentence can be translated into logics using syntax and semantics.
  • 4. Syntax: • Syntaxes are the rules which decide how we can construct legal sentences in the logic. • It determines which symbol we can use in knowledge representation. • How to write those symbols.
  • 5. Semantics: • Semantics are the rules by which we can interpret the sentence in the logic. • Semantic also involves assigning a meaning to each sentence. Logical representation can be categorised into mainly two logics: • Propositional Logics • Predicate logics
  • 7.
  • 8.
  • 9. syntax • The syntax of propositional logic defines the allowable sentences for the knowledge representation. • There are two types of Propositions: – Atomic Propositions – Compound propositions
  • 10. • Atomic Proposition: Atomic propositions consists of a single proposition symbol. These are the sentences which must be either true or false. Example • 2+2 is 4, it is an atomic proposition as it is a tr ue fact. • "The Sun is cold" is also a proposition as it is a false fact.
  • 11. • Compound proposition: Compound propositions are constructed by combining simpler or atomic propositions, using parenthesis and logical connectives. Example • "It is raining today, and street is wet." • "Ankit is a doctor, and his clinic is in Mumbai ."
  • 12. 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:
  • 13. • Negation: A sentence such as ¬ P is called negation of P. A literal can be either Positive literal or negative literal. • Conjunction: A sentence which has ∧ connective such as, P ∧ Q is called a conjunction. Example: Rohan is intelligent and hardworking. It can be written as, P= Rohan is intelligent, Q= Rohan is hardworking. → P∧ Q. • Disjunction: A sentence which has ∨ connective, such as P ∨ Q. is called disjunction, where P and Q are the propositions. Example: "Ritika is a doctor or Engineer" Here P= Ritika is Doctor. Q= Ritika is Engineer. so we can write it as P ∨ Q.
  • 14. • Implication: A sentence such as P → Q, is called an implication. Implications are also known as if- then rules. It can be represented as If it is raining, then the street is wet. Let P= It is raining, and Q= Street is wet, so it is represented as P → Q • Biconditional: A sentence such as P⇔ Q is a Biconditional sentence. • Example If I am breathing, then I am alive P= I am breathing, Q= I am alive, it can be represented as P ⇔ Q.
  • 16.
  • 17. Truth table with three propositions
  • 18. Precedence order for Propositional Logic
  • 19. • Two propositions are said to be logically equivalent if and only if the columns in the truth table are identical to each other. • Two propositions A and B, so for logical equivalence, we can write it as A⇔B.
  • 20. Semantics The semantics defines the rules for determining the truth of a sentence with respect to a particular model. • Atomic proposition variable for Wumpus world: • Let Pi,j be true if there is a Pit in the room [i, j]. • Let Bi,j be true if agent perceives breeze in [i, j], (dead or alive). • Let Wi,j be true if there is wumpus in the square[i, j]. • Let Si,j be true if agent perceives stench in the square [i, j]. • Let Vi,j be true if that square[i, j] is visited. • Let Gi,j be true if there is gold (and glitter) in the square [i, j]. • Let OKi,j be true if the room is safe.
  • 21. • If the sentences in the knowledge base make use of the proposition symbols P1,2, P2,2, and P3,1, then one possible model is m1 = {P1,2 = false, P2,2 = false, P3,1 = true} . [with three proposition symbols, there are 23 = 8 possible models] • The truth value of any sentence s can be computed with respect to any model m by a simple recursive evaluation.
  • 22.
  • 23.
  • 24.
  • 26.
  • 27. Logical Equivalence • To manipulate logical sentences we need some rewrite rules. • Two sentences are logically equivalent iff they are true in same models: α ≡ ß iff α╞ β and β╞ α
  • 30. Some basic facts about propositional logic • Propositional logic is also called Boolean logic as it works on 0 and 1. • In propositional logic, we use symbolic variables to represent the logic, Ex. A, B, C, P, Q, R, etc. • Propositions can be either true or false, but it cannot be both. • Propositional logic consists of an object, relations or function, and logical connectives. • These connectives are also called logical operators. • The propositions and connectives are the basic elements of the propositional logic.
  • 31. • Connectives can be said as a logical operator which connects two sentences. • A proposition formula which is always true is called tautology, and it is also called a valid sentence. • A proposition formula which is always false is called Contradiction. • Statements which are questions, commands, or opinions are not propositions such as "Where is Rohini", "How are you", "What is your name", are not propositions.
  • 32. Limitations of Propositional logic • We cannot represent relations like ALL, some, or none with propositional logic. Example: – All the girls are intelligent. – Some apples are sweet. • Propositional logic has limited expressive power. • In propositional logic, we cannot describe statements in terms of their properties or logical relationships.
  • 33. Example • Analyze the statement, “if you get more doubles than any other player you will lose, or that if you lose you must have bought the most properties,” using truth tables. i) Let's represent the statement as a logical proposition using the following variables: P: you get more doubles than any other player Q: you lose R: you bought the most properties (P -> Q) V (Q -> R)
  • 34.
  • 35. • Are the statements, “it will not rain or snow” and “it will not rain and it will not snow” logically equivalent?
  • 36.
  • 37. • Prove that the Statements ¬(P→Q) and P∧¬Q are logically equivalent without using truth tables.