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

Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersMairaAshraf6
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxSCMS School of Architecture
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...Amil baba
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilVinayVitekari
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxMuhammadAsimMuhammad6
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesRAJNEESHKUMAR341697
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 

Recently uploaded (20)

Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 

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.