SlideShare a Scribd company logo
Topic To Be Covered:
Logic & Inferences
Jagdamba Education Society's
SND College of Engineering & Research Centre
Department of Computer Engineering
SUBJECT: Artificial Intelligence & Robotics
Lecture No-07(UNIT-03)
Logic & Reasoning
Prof.Dhakane Vikas N
Logic & Inferences
What is Logic?
 Logic can be defined as the proof or validation behind any reason
provided.
 It was important to include logic in Artificial Intelligence because
we want our agent (system) to think and act humanly, and for doing
so, it should be capable of taking any decision based on the current
situation.
 If we talk about normal human behavior, then a decision is made by
choosing an option from the various available options. There are
reasons behind selecting or rejecting an option. So, our artificial
agent should also work in this manner.
 Logic is the key behind any knowledge. It allows a person to filter
the necessary information from the bulk and draw a conclusion. In
artificial intelligence, the representation of knowledge is done via
logics
Logic & Inferences
What is Inference?
 In artificial intelligence, we need intelligent agent/computers which
can create new logic from old logic or by evidence, so generating the
conclusions from evidence and facts is termed as Inference.
 Logic is the systematic study of valid rules of inference, i.e. the
relations that lead to the acceptance of one proposition (the
conclusion) on the basis of a set of other propositions (premises).
 Example:
Minor Premise: Every mammal has spine.
Major Premise: Dog is mammal
Conclusion: Dog has Spine
Formal Logic
What is Formal Logic?
 In the logical level, the raw and discrete information which is
present in the knowledge level is encoded into sentences.
 This level uses some formal language to represent the knowledge
the agent has.
 Formal Logic is way of representation of logic :1)Proposition Logic
2) First order logic.
 At the logical level, an encoding of knowledge into logical sentences
occurs
Formal Logic
What is Formal Logic?
 Formal logic is the abstract study of propositions, statements, or
assertively used sentences .
 Proposition is always a declarative/assertive statement which can
be true or false but not both at the same time such as:
Ex: Narendra modi is a prime minister of India.
If He is -Then it is true, otherwise false.
Formal Logic
What is Formal Logic?
 Sentence can be assertive, imperative and interrogative such as:
Ex: Open the door.(Imperative)
Ex: Do you know me? (Interrogative)
These are not proposition but are sentence according to its function.
 Conclusion: Every proposition can be a sentence but every sentence
can never be a proposition.
Formal Logic
What is Formal Logic?
 Definition of Assertive/Declarative Sentence:
 Most of the sentences of English language are assertive sentences.
The sentence which declares or asserts a statement, feeling,
opinion, incident, event, history, or anything is called an assertive
sentence.
 An assertive sentence ends with a period (.). Assertive sentences can
be either affirmative or negative.
 Examples:
 Alex is a good baseball player.
 He plays for the Rockers club.
Formal Logic
 There are two Usable forms of Formal Logic
I] Proposition Logic
II]First Order Logic
Proposition Logic
I] Propositional Logic (PL)
 Propositional logic is an analytical statement which is either true or
false.
 It is basically a technique that represents the knowledge in logical &
mathematical form.
 There are two types of propositional logic; Atomic and Compound
Propositions.
 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.
Proposition Logic
I] Propositional Logic (PL)
Following are 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, and we can use any symbol for a representing a proposition,
such 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.
Proposition Logic
I] Propositional Logic (PL)
Facts about Propositional Logic
 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, are not propositions
such as "Where is Sachin?", "How are you?", "What is your name?",
are not propositions.
Proposition Logic
I] Propositional Logic (PL)
The examples of propositions are-
 7 + 4 = 10
 Apples are black.
 Narendra Modi is president of India.
 Two and two makes 5.
 Delhi is in India.
Here,
All these statements are propositions.
This is because they are either true or false but not both.
Proposition Logic
I] Propositional Logic (PL)
Types of proposition Logic
1. Atomic propositions
2. Compound propositions
1. Atomic Propositions-
 Atomic propositions are the simple propositions. It consists of a
single proposition symbol. These are the sentences which must be
either true or false.
 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.
Proposition Logic
I] Propositional Logic (PL)
Syntax & Semantics In proposition Logic
2. Compound proposition:
 Compound propositions are constructed by combining simpler or
atomic propositions, using parenthesis and logical connectives.
Example:
a) "It is raining today and street is wet."
b) "Ankit is a doctor and his clinic is in Mumbai."
Proposition Logic
I] Propositional Logic (PL)
Syntax & Semantics In proposition Logic
The syntax of propositional logic defines the allowable sentences for
the knowledge representation.
 Propositional symbols are denoted with capital letters like :A, B,
C….Z
 PL constants have a truth values generally like 0(false) and 1(true)
 PL make use of wrapping parenthesis while writing atomic
sentences. As (…)
Proposition Logic
Syntax & Semantics In proposition Logic
Logical Connectives In PL
 PL makes use of relationship between propositions & it is denoted
by connectives. Following Connectives used in PL
Proposition Logic
Syntax & Semantics In proposition Logic
Truth Table In PL
 To define logical connectives truth table are used.
Proposition Logic
Syntax & Semantics In proposition Logic
Truth Table In PL
 To define logical connectives truth table are used.
 Example: Lets take example , where P^Q i.e. Find the value of P^Q
where P is true and Q is false
Proposition Logic
Semantics In proposition Logic
 World is set of facts which we want to represent to form PL.
 In order to represent this facts propositional symbol can be used
where each propositional symbol interpretation can be mapped to
real world feature.
 Semantics of sentence is meaning of sentence, semantics determine
the interpretation of a sentence.
 Example: You can define semantics of each propositional symbol in
following manner: Considered we tow sentence Like :It is hot &
hum
1. A means “It is True”
2. B means “It is humid”
This sentences are true when its interpretation in the real world is
true.
Ai lecture  07(unit03)
Ai lecture  07(unit03)

More Related Content

What's hot

Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
Amey Kerkar
 
First order predicate logic (fopl)
First order predicate logic (fopl)First order predicate logic (fopl)
First order predicate logic (fopl)
chauhankapil
 
Problems problem spaces and search
Problems problem spaces and searchProblems problem spaces and search
Problems problem spaces and search
Amey Kerkar
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & ReasoningSajid Marwat
 
I. Mini-Max Algorithm in AI
I. Mini-Max Algorithm in AII. Mini-Max Algorithm in AI
I. Mini-Max Algorithm in AI
vikas dhakane
 
Structured Knowledge Representation
Structured Knowledge RepresentationStructured Knowledge Representation
Structured Knowledge Representation
Sagacious IT Solution
 
Ch 7 Knowledge Representation.pdf
Ch 7 Knowledge Representation.pdfCh 7 Knowledge Representation.pdf
Ch 7 Knowledge Representation.pdf
KrishnaMadala1
 
Knowledge Representation & Reasoning AI UNIT 3
Knowledge Representation & Reasoning AI UNIT 3Knowledge Representation & Reasoning AI UNIT 3
Knowledge Representation & Reasoning AI UNIT 3
SURBHI SAROHA
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AIVishal Singh
 
Artificial Intelligence: Natural Language Processing
Artificial Intelligence: Natural Language ProcessingArtificial Intelligence: Natural Language Processing
Artificial Intelligence: Natural Language Processing
Frank Cunha
 
Automated Program Repair Keynote talk
Automated Program Repair Keynote talkAutomated Program Repair Keynote talk
Automated Program Repair Keynote talk
Abhik Roychoudhury
 
04 reasoning systems
04 reasoning systems04 reasoning systems
04 reasoning systemsJohn Issac
 
Artificial intelligence and first order logic
Artificial intelligence and first order logicArtificial intelligence and first order logic
Artificial intelligence and first order logic
parsa rafiq
 
03 algorithm properties
03 algorithm properties03 algorithm properties
03 algorithm propertiesLincoln School
 
First order logic
First order logicFirst order logic
First order logic
Megha Sharma
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AI
vikas dhakane
 
Chaptr 7 (final)
Chaptr 7 (final)Chaptr 7 (final)
Chaptr 7 (final)
Nateshwar Kamlesh
 
Daa notes 1
Daa notes 1Daa notes 1
Daa notes 1
smruti sarangi
 
Ai 8 puzzle problem
Ai 8 puzzle problemAi 8 puzzle problem
Ai 8 puzzle problem
Sanad Bhowmik
 
Forward Backward Chaining
Forward Backward ChainingForward Backward Chaining
Forward Backward Chaining
QAU ISLAMABAD,PAKISTAN
 

What's hot (20)

Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
First order predicate logic (fopl)
First order predicate logic (fopl)First order predicate logic (fopl)
First order predicate logic (fopl)
 
Problems problem spaces and search
Problems problem spaces and searchProblems problem spaces and search
Problems problem spaces and search
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & Reasoning
 
I. Mini-Max Algorithm in AI
I. Mini-Max Algorithm in AII. Mini-Max Algorithm in AI
I. Mini-Max Algorithm in AI
 
Structured Knowledge Representation
Structured Knowledge RepresentationStructured Knowledge Representation
Structured Knowledge Representation
 
Ch 7 Knowledge Representation.pdf
Ch 7 Knowledge Representation.pdfCh 7 Knowledge Representation.pdf
Ch 7 Knowledge Representation.pdf
 
Knowledge Representation & Reasoning AI UNIT 3
Knowledge Representation & Reasoning AI UNIT 3Knowledge Representation & Reasoning AI UNIT 3
Knowledge Representation & Reasoning AI UNIT 3
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AI
 
Artificial Intelligence: Natural Language Processing
Artificial Intelligence: Natural Language ProcessingArtificial Intelligence: Natural Language Processing
Artificial Intelligence: Natural Language Processing
 
Automated Program Repair Keynote talk
Automated Program Repair Keynote talkAutomated Program Repair Keynote talk
Automated Program Repair Keynote talk
 
04 reasoning systems
04 reasoning systems04 reasoning systems
04 reasoning systems
 
Artificial intelligence and first order logic
Artificial intelligence and first order logicArtificial intelligence and first order logic
Artificial intelligence and first order logic
 
03 algorithm properties
03 algorithm properties03 algorithm properties
03 algorithm properties
 
First order logic
First order logicFirst order logic
First order logic
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AI
 
Chaptr 7 (final)
Chaptr 7 (final)Chaptr 7 (final)
Chaptr 7 (final)
 
Daa notes 1
Daa notes 1Daa notes 1
Daa notes 1
 
Ai 8 puzzle problem
Ai 8 puzzle problemAi 8 puzzle problem
Ai 8 puzzle problem
 
Forward Backward Chaining
Forward Backward ChainingForward Backward Chaining
Forward Backward Chaining
 

Similar to Ai lecture 07(unit03)

Knowledege Representation.pptx
Knowledege Representation.pptxKnowledege Representation.pptx
Knowledege Representation.pptx
ArslanAliArslanAli
 
Lecture 1-3-Logics-In-computer-science.pptx
Lecture 1-3-Logics-In-computer-science.pptxLecture 1-3-Logics-In-computer-science.pptx
Lecture 1-3-Logics-In-computer-science.pptx
PriyalMayurManvar
 
Ai lecture 09(unit03)
Ai lecture  09(unit03)Ai lecture  09(unit03)
Ai lecture 09(unit03)
vikas dhakane
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
chauhankapil
 
Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1
Sabu Francis
 
continuity of module 2.pptx
continuity of module 2.pptxcontinuity of module 2.pptx
continuity of module 2.pptx
AnkitaVerma776806
 
Foundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptxFoundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptx
kitsenthilkumarcse
 
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptxARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
RuchitaMaaran
 
Possible Word Representation
Possible Word RepresentationPossible Word Representation
Possible Word Representation
chauhankapil
 
LOGIC-PRESENTATION.pptx
LOGIC-PRESENTATION.pptxLOGIC-PRESENTATION.pptx
LOGIC-PRESENTATION.pptx
AlfredoAmango
 
Ilja state2014expressivity
Ilja state2014expressivityIlja state2014expressivity
Ilja state2014expressivitymaartenmarx
 
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Ashish Duggal
 
Unit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdfUnit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdf
HrideshSapkota2
 
Logic & critical thinking
Logic & critical thinking Logic & critical thinking
Logic & critical thinking
AMIR HASSAN
 
Artificial Intelligence_ Knowledge Representation
Artificial Intelligence_ Knowledge RepresentationArtificial Intelligence_ Knowledge Representation
Artificial Intelligence_ Knowledge Representation
ThenmozhiK5
 
Logic.pdf
Logic.pdfLogic.pdf
Logic.pdf
Jihudumie.Com
 
Discrete Mathematics
Discrete MathematicsDiscrete Mathematics
Discrete Mathematics
Jihudumie.Com
 
Representation of syntax, semantics and Predicate logics
Representation of syntax, semantics and Predicate logicsRepresentation of syntax, semantics and Predicate logics
Representation of syntax, semantics and Predicate logics
chauhankapil
 
Towards a lingua universalis
Towards a lingua universalisTowards a lingua universalis
Towards a lingua universalis
Walid Saba
 

Similar to Ai lecture 07(unit03) (20)

Knowledege Representation.pptx
Knowledege Representation.pptxKnowledege Representation.pptx
Knowledege Representation.pptx
 
Lecture 1-3-Logics-In-computer-science.pptx
Lecture 1-3-Logics-In-computer-science.pptxLecture 1-3-Logics-In-computer-science.pptx
Lecture 1-3-Logics-In-computer-science.pptx
 
Ai lecture 09(unit03)
Ai lecture  09(unit03)Ai lecture  09(unit03)
Ai lecture 09(unit03)
 
AI Lesson 11
AI Lesson 11AI Lesson 11
AI Lesson 11
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1
 
continuity of module 2.pptx
continuity of module 2.pptxcontinuity of module 2.pptx
continuity of module 2.pptx
 
Foundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptxFoundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptx
 
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptxARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
 
Possible Word Representation
Possible Word RepresentationPossible Word Representation
Possible Word Representation
 
LOGIC-PRESENTATION.pptx
LOGIC-PRESENTATION.pptxLOGIC-PRESENTATION.pptx
LOGIC-PRESENTATION.pptx
 
Ilja state2014expressivity
Ilja state2014expressivityIlja state2014expressivity
Ilja state2014expressivity
 
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
 
Unit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdfUnit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdf
 
Logic & critical thinking
Logic & critical thinking Logic & critical thinking
Logic & critical thinking
 
Artificial Intelligence_ Knowledge Representation
Artificial Intelligence_ Knowledge RepresentationArtificial Intelligence_ Knowledge Representation
Artificial Intelligence_ Knowledge Representation
 
Logic.pdf
Logic.pdfLogic.pdf
Logic.pdf
 
Discrete Mathematics
Discrete MathematicsDiscrete Mathematics
Discrete Mathematics
 
Representation of syntax, semantics and Predicate logics
Representation of syntax, semantics and Predicate logicsRepresentation of syntax, semantics and Predicate logics
Representation of syntax, semantics and Predicate logics
 
Towards a lingua universalis
Towards a lingua universalisTowards a lingua universalis
Towards a lingua universalis
 

More from vikas dhakane

Ai lecture 13(unit03)
Ai lecture  13(unit03)Ai lecture  13(unit03)
Ai lecture 13(unit03)
vikas dhakane
 
Ai lecture 13(unit03)
Ai lecture  13(unit03)Ai lecture  13(unit03)
Ai lecture 13(unit03)
vikas dhakane
 
Ai lecture 12(unit03)
Ai lecture  12(unit03)Ai lecture  12(unit03)
Ai lecture 12(unit03)
vikas dhakane
 
Ai lecture 12(unit03)
Ai lecture  12(unit03)Ai lecture  12(unit03)
Ai lecture 12(unit03)
vikas dhakane
 
Ai lecture 11(unit03)
Ai lecture  11(unit03)Ai lecture  11(unit03)
Ai lecture 11(unit03)
vikas dhakane
 
Ai lecture 10(unit03)
Ai lecture  10(unit03)Ai lecture  10(unit03)
Ai lecture 10(unit03)
vikas dhakane
 
Ai lecture 10(unit03)
Ai lecture  10(unit03)Ai lecture  10(unit03)
Ai lecture 10(unit03)
vikas dhakane
 
Ai lecture 05(unit03)
Ai lecture  05(unit03)Ai lecture  05(unit03)
Ai lecture 05(unit03)
vikas dhakane
 
Ai lecture 05(unit03)
Ai lecture  05(unit03)Ai lecture  05(unit03)
Ai lecture 05(unit03)
vikas dhakane
 
Ai lecture 04(unit03)
Ai lecture  04(unit03)Ai lecture  04(unit03)
Ai lecture 04(unit03)
vikas dhakane
 
Ai lecture 04(unit03)
Ai lecture  04(unit03)Ai lecture  04(unit03)
Ai lecture 04(unit03)
vikas dhakane
 
Ai lecture 03(unit03)
Ai lecture  03(unit03)Ai lecture  03(unit03)
Ai lecture 03(unit03)
vikas dhakane
 
Ai lecture 03(unit03)
Ai lecture  03(unit03)Ai lecture  03(unit03)
Ai lecture 03(unit03)
vikas dhakane
 
Ai lecture 003(unit03)
Ai lecture  003(unit03)Ai lecture  003(unit03)
Ai lecture 003(unit03)
vikas dhakane
 
Ai lecture 003(unit03)
Ai lecture  003(unit03)Ai lecture  003(unit03)
Ai lecture 003(unit03)
vikas dhakane
 
Ai lecture 02(unit03)
Ai lecture  02(unit03)Ai lecture  02(unit03)
Ai lecture 02(unit03)
vikas dhakane
 
Ai lecture 01(unit03)
Ai lecture  01(unit03)Ai lecture  01(unit03)
Ai lecture 01(unit03)
vikas dhakane
 
Ai lecture 01(unit03)
Ai lecture  01(unit03)Ai lecture  01(unit03)
Ai lecture 01(unit03)
vikas dhakane
 
Ai lecture 02(unit03)
Ai lecture  02(unit03)Ai lecture  02(unit03)
Ai lecture 02(unit03)
vikas dhakane
 
Ai lecture 06(unit-02)
Ai lecture 06(unit-02)Ai lecture 06(unit-02)
Ai lecture 06(unit-02)
vikas dhakane
 

More from vikas dhakane (20)

Ai lecture 13(unit03)
Ai lecture  13(unit03)Ai lecture  13(unit03)
Ai lecture 13(unit03)
 
Ai lecture 13(unit03)
Ai lecture  13(unit03)Ai lecture  13(unit03)
Ai lecture 13(unit03)
 
Ai lecture 12(unit03)
Ai lecture  12(unit03)Ai lecture  12(unit03)
Ai lecture 12(unit03)
 
Ai lecture 12(unit03)
Ai lecture  12(unit03)Ai lecture  12(unit03)
Ai lecture 12(unit03)
 
Ai lecture 11(unit03)
Ai lecture  11(unit03)Ai lecture  11(unit03)
Ai lecture 11(unit03)
 
Ai lecture 10(unit03)
Ai lecture  10(unit03)Ai lecture  10(unit03)
Ai lecture 10(unit03)
 
Ai lecture 10(unit03)
Ai lecture  10(unit03)Ai lecture  10(unit03)
Ai lecture 10(unit03)
 
Ai lecture 05(unit03)
Ai lecture  05(unit03)Ai lecture  05(unit03)
Ai lecture 05(unit03)
 
Ai lecture 05(unit03)
Ai lecture  05(unit03)Ai lecture  05(unit03)
Ai lecture 05(unit03)
 
Ai lecture 04(unit03)
Ai lecture  04(unit03)Ai lecture  04(unit03)
Ai lecture 04(unit03)
 
Ai lecture 04(unit03)
Ai lecture  04(unit03)Ai lecture  04(unit03)
Ai lecture 04(unit03)
 
Ai lecture 03(unit03)
Ai lecture  03(unit03)Ai lecture  03(unit03)
Ai lecture 03(unit03)
 
Ai lecture 03(unit03)
Ai lecture  03(unit03)Ai lecture  03(unit03)
Ai lecture 03(unit03)
 
Ai lecture 003(unit03)
Ai lecture  003(unit03)Ai lecture  003(unit03)
Ai lecture 003(unit03)
 
Ai lecture 003(unit03)
Ai lecture  003(unit03)Ai lecture  003(unit03)
Ai lecture 003(unit03)
 
Ai lecture 02(unit03)
Ai lecture  02(unit03)Ai lecture  02(unit03)
Ai lecture 02(unit03)
 
Ai lecture 01(unit03)
Ai lecture  01(unit03)Ai lecture  01(unit03)
Ai lecture 01(unit03)
 
Ai lecture 01(unit03)
Ai lecture  01(unit03)Ai lecture  01(unit03)
Ai lecture 01(unit03)
 
Ai lecture 02(unit03)
Ai lecture  02(unit03)Ai lecture  02(unit03)
Ai lecture 02(unit03)
 
Ai lecture 06(unit-02)
Ai lecture 06(unit-02)Ai lecture 06(unit-02)
Ai lecture 06(unit-02)
 

Recently uploaded

Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 

Recently uploaded (20)

Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 

Ai lecture 07(unit03)

  • 1. Topic To Be Covered: Logic & Inferences Jagdamba Education Society's SND College of Engineering & Research Centre Department of Computer Engineering SUBJECT: Artificial Intelligence & Robotics Lecture No-07(UNIT-03) Logic & Reasoning Prof.Dhakane Vikas N
  • 2. Logic & Inferences What is Logic?  Logic can be defined as the proof or validation behind any reason provided.  It was important to include logic in Artificial Intelligence because we want our agent (system) to think and act humanly, and for doing so, it should be capable of taking any decision based on the current situation.  If we talk about normal human behavior, then a decision is made by choosing an option from the various available options. There are reasons behind selecting or rejecting an option. So, our artificial agent should also work in this manner.  Logic is the key behind any knowledge. It allows a person to filter the necessary information from the bulk and draw a conclusion. In artificial intelligence, the representation of knowledge is done via logics
  • 3. Logic & Inferences What is Inference?  In artificial intelligence, we need intelligent agent/computers which can create new logic from old logic or by evidence, so generating the conclusions from evidence and facts is termed as Inference.  Logic is the systematic study of valid rules of inference, i.e. the relations that lead to the acceptance of one proposition (the conclusion) on the basis of a set of other propositions (premises).  Example: Minor Premise: Every mammal has spine. Major Premise: Dog is mammal Conclusion: Dog has Spine
  • 4. Formal Logic What is Formal Logic?  In the logical level, the raw and discrete information which is present in the knowledge level is encoded into sentences.  This level uses some formal language to represent the knowledge the agent has.  Formal Logic is way of representation of logic :1)Proposition Logic 2) First order logic.  At the logical level, an encoding of knowledge into logical sentences occurs
  • 5. Formal Logic What is Formal Logic?  Formal logic is the abstract study of propositions, statements, or assertively used sentences .  Proposition is always a declarative/assertive statement which can be true or false but not both at the same time such as: Ex: Narendra modi is a prime minister of India. If He is -Then it is true, otherwise false.
  • 6. Formal Logic What is Formal Logic?  Sentence can be assertive, imperative and interrogative such as: Ex: Open the door.(Imperative) Ex: Do you know me? (Interrogative) These are not proposition but are sentence according to its function.  Conclusion: Every proposition can be a sentence but every sentence can never be a proposition.
  • 7. Formal Logic What is Formal Logic?  Definition of Assertive/Declarative Sentence:  Most of the sentences of English language are assertive sentences. The sentence which declares or asserts a statement, feeling, opinion, incident, event, history, or anything is called an assertive sentence.  An assertive sentence ends with a period (.). Assertive sentences can be either affirmative or negative.  Examples:  Alex is a good baseball player.  He plays for the Rockers club.
  • 8. Formal Logic  There are two Usable forms of Formal Logic I] Proposition Logic II]First Order Logic
  • 9. Proposition Logic I] Propositional Logic (PL)  Propositional logic is an analytical statement which is either true or false.  It is basically a technique that represents the knowledge in logical & mathematical form.  There are two types of propositional logic; Atomic and Compound Propositions.  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.
  • 10. Proposition Logic I] Propositional Logic (PL) Following are 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, and we can use any symbol for a representing a proposition, such 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.
  • 11. Proposition Logic I] Propositional Logic (PL) Facts about Propositional Logic  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, are not propositions such as "Where is Sachin?", "How are you?", "What is your name?", are not propositions.
  • 12. Proposition Logic I] Propositional Logic (PL) The examples of propositions are-  7 + 4 = 10  Apples are black.  Narendra Modi is president of India.  Two and two makes 5.  Delhi is in India. Here, All these statements are propositions. This is because they are either true or false but not both.
  • 13. Proposition Logic I] Propositional Logic (PL) Types of proposition Logic 1. Atomic propositions 2. Compound propositions 1. Atomic Propositions-  Atomic propositions are the simple propositions. It consists of a single proposition symbol. These are the sentences which must be either true or false.  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.
  • 14. Proposition Logic I] Propositional Logic (PL) Syntax & Semantics In proposition Logic 2. Compound proposition:  Compound propositions are constructed by combining simpler or atomic propositions, using parenthesis and logical connectives. Example: a) "It is raining today and street is wet." b) "Ankit is a doctor and his clinic is in Mumbai."
  • 15. Proposition Logic I] Propositional Logic (PL) Syntax & Semantics In proposition Logic The syntax of propositional logic defines the allowable sentences for the knowledge representation.  Propositional symbols are denoted with capital letters like :A, B, C….Z  PL constants have a truth values generally like 0(false) and 1(true)  PL make use of wrapping parenthesis while writing atomic sentences. As (…)
  • 16. Proposition Logic Syntax & Semantics In proposition Logic Logical Connectives In PL  PL makes use of relationship between propositions & it is denoted by connectives. Following Connectives used in PL
  • 17. Proposition Logic Syntax & Semantics In proposition Logic Truth Table In PL  To define logical connectives truth table are used.
  • 18. Proposition Logic Syntax & Semantics In proposition Logic Truth Table In PL  To define logical connectives truth table are used.  Example: Lets take example , where P^Q i.e. Find the value of P^Q where P is true and Q is false
  • 19. Proposition Logic Semantics In proposition Logic  World is set of facts which we want to represent to form PL.  In order to represent this facts propositional symbol can be used where each propositional symbol interpretation can be mapped to real world feature.  Semantics of sentence is meaning of sentence, semantics determine the interpretation of a sentence.  Example: You can define semantics of each propositional symbol in following manner: Considered we tow sentence Like :It is hot & hum 1. A means “It is True” 2. B means “It is humid” This sentences are true when its interpretation in the real world is true.