4
Most read
9
Most read
17
Most read
ARTIFICAL INTELLIGENCE
(R18 III(II Sem))
Department of computer science and engineering
(AI/ML)
Session 20
by
Asst.Prof.M.Gokilavani
VITS
4/25/2023 Dpaertment of CSE ( AL & ML) 1
TEXTBOOK:
• Artificial Intelligence A modern Approach, Third Edition, Stuart
Russell and Peter Norvig, Pearson Education.
REFERENCES:
• Artificial Intelligence, 3rd Edn, E. Rich and K.Knight (TMH).
• Artificial Intelligence, 3rd Edn, Patrick Henny Winston, Pearson
Education.
• Artificial Intelligence, Shivani Goel, Pearson Education.
• Artificial Intelligence and Expert Systems- Patterson, Pearson
Education.
4/25/2023 Dpaertment of CSE ( AL & ML) 2
Topics covered in session 20
• Adversarial Search: Games, Optimal Decisions in Games, Alpha–Beta Pruning,
Imperfect Real-Time Decisions.
• Constraint Satisfaction Problems: Defining Constraint Satisfaction Problems,
Constraint Propagation, Backtracking Search for CSPs, Local Search for CSPs,
The Structure of Problems.
• Propositional Logic: Knowledge-Based Agents, The Wumpus World, Logic,
Propositional Logic, Propositional Theorem Proving: Inference and proofs, Proof
by resolution, Horn clauses and definite clauses, Forward and backward chaining,
Effective Propositional Model Checking, Agents Based on Propositional Logic.
4/25/2023 Dpaertment of CSE ( AL & ML) 3
RECAP
• Knowledge: Taking decisions and reasoning to act efficiently.
• sentences are expressed in a language which is called a knowledge
representation language.
• Knowledge-base of KBA stores fact about the world.
• Types of knowledge
• Technique of knowledge representation
• Inference system: Inference system applies logical rules to the KB to deduce new
information.
• Inference Knowledge: Inferential knowledge approach represents knowledge in
the form of formal logics.
Example: Let's suppose there are two statements:
a. Marcus is a man
b. All men are mortal
Then it can be represented as:
a. man(Marcus)
b. ∀x = men (x) ----------> mortal (x)s
4/25/2023 Dpaertment of CSE ( AL & ML) 4
Basic of Logical Representation
• Logic : 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. (Symbols)
• Semantics: Semantics are the rules by which we can interpret the
sentence in the logic. ( meaning of sentence).
• Pros: Logical representation enables us to do logical reasoning.
• Cons: Logical representation technique may not be very natural, and
inference may not be so efficient.
4/25/2023 Dpaertment of CSE ( AL & ML) 5
Propositional Logic
Logical representation can be categorized into mainly two logics:
• Propositional Logic
• Predicate Logic
• Propositional Logic: Propositional logic (PL) is the simplest form of
logic where all the statements are made by propositions.
• A proposition is a declarative statement which is either true or false.it
can not be both.
• Example:
a) It is Sunday.
b) The Sun rises from West (False proposition)
c) 3+3= 7(False proposition)
d) 5 is a prime number.
4/25/2023 Dpaertment of CSE ( AL & ML) 6
Propositional Logic
• Propositional logic consists of an object, relations or function, and
logical connectives.
• These connectives are also called logical operators.
4/25/2023 Dpaertment of CSE ( AL & ML) 7
Types of Propositions
There are two types of Propositions:
a. Atomic Propositions
b. Compound propositions
a. Atomic Proposition: 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.
b. 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."
4/25/2023 Dpaertment of CSE ( AL & ML) 8
Semantic Knowledge Representation
(predicate logic)
• Semantic networks are alternative of predicate logic for knowledge
representation.
• If-Then rule or IS-A relation (Inheritance).
• Pros: These networks are simple and easily understandable.
• Cons: Human-like memory (Which has 1015 neurons and links) to store the
information.
• Example:
Statements: a. Jerry is a cat.
b. Jerry is a mammal
c. Jerry is owned by Priya.
d. Jerry is brown colored.
e. All Mammals are animal.
4/25/2023 Dpaertment of CSE ( AL & ML) 9
4/25/2023 Dpaertment of CSE ( AL & ML) 10
Rule of Inference
• What is Inference? we need intelligent computers which can create
new logic from old logic or by evidence, so generating the conclusions
from evidence and facts is termed as Inference.
• Inference rules are the templates for generating valid arguments.
(formal sentence).
• Terminologies:
• Implication: It is one of the logical connectives which can be
represented as P → Q. It is a Boolean expression.
• Converse: The converse of implication, which means the right-hand
side proposition goes to the left-hand side and vice-versa. It can be
written as Q → P.
4/25/2023 Dpaertment of CSE ( AL & ML) 11
Rule of Inference
4/25/2023 Dpaertment of CSE ( AL & ML) 12
Contrapositive: The negation of converse is termed as contrapositive, and
it can be represented as ¬ Q → ¬ P.
Inverse: The negation of implication is called inverse. It can be represented
as ¬ P → ¬ Q.
Resolution
• The Resolution rule state that if P∨Q and ¬ P∧R is true, then Q∨R will
also be true. It can be represented as:
4/25/2023 Dpaertment of CSE ( AL & ML) 13
Proof of Resolution
• Resolution is a single inference rule which can efficiently operate on
the conjunctive normal form or clausal form.
• Unification is a key concept in proofs by resolutions.
• Clause: Disjunction of literals (an atomic sentence) is called a clause.
It is also known as a unit clause.
• Conjunctive Normal Form: A sentence represented as a conjunction
of clauses is said to be conjunctive normal form or CNF.
• Rule is also called the binary resolution rule because it only resolves
exactly two literals.
4/25/2023 Dpaertment of CSE ( AL & ML) 14
Steps for Resolution
1. Conversion of facts into first-order logic.
2. Convert FOL statements into CNF
3. Negate the statement which needs to prove (proof by contradiction)
4. Draw resolution graph (unification).
4/25/2023 Dpaertment of CSE ( AL & ML) 15
Example: John likes all kind of food
Step 1: Conversion of Facts into FOL.
Step 2: Conversion of FOL into CNF
In First order logic resolution, it is required to convert the FOL
into CNF as CNF form makes easier for resolution proofs.
Step 3: Negate the statement to be proved.
• In this statement, we will apply negation to the conclusion statements, which will
be written as
Step 4: Draw Resolution Graph
4/25/2023 Dpaertment of CSE ( AL & ML) 16
Horn clauses and definite clauses
4/25/2023 Dpaertment of CSE ( AL & ML) 17
• Definite clause: A clause which is a disjunction of literals
with exactly one positive literal is known as a definite clause or strict
horn clause.
• Horn clause: A clause which is a disjunction of literals with at most
one positive literal is known as horn clause. Hence all the definite
clauses are horn clauses.
Example:
(¬ p V ¬ q V k)
It has only one positive literal k.
It is equivalent to p ∧ q → k.
Topics to be covered in next session 21
• First Order Logic (FOL)
Thank you!!!
4/25/2023 Dpaertment of CSE ( AL & ML) 18

More Related Content

PPTX
Constraint satisfaction problems (csp)
PPTX
AI_Session 15 Alpha–Beta Pruning.pptx
PPTX
AI_Session 21 First order logic.pptx
PPTX
Logics for non monotonic reasoning-ai
PPTX
knowledge representation in artificial intelligence
PPTX
Simulated Annealing
PPTX
AI_Session 14 Min Max Algorithm.pptx
PPTX
Rule based system
Constraint satisfaction problems (csp)
AI_Session 15 Alpha–Beta Pruning.pptx
AI_Session 21 First order logic.pptx
Logics for non monotonic reasoning-ai
knowledge representation in artificial intelligence
Simulated Annealing
AI_Session 14 Min Max Algorithm.pptx
Rule based system

What's hot (20)

PDF
Logic programming (1)
PPTX
Query processing and optimization (updated)
PPTX
Performance analysis(Time & Space Complexity)
PPTX
AI_Session 25 classical planning.pptx
PPTX
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
PPTX
Semantic nets in artificial intelligence
PPTX
Forward Backward Chaining
PPT
1.Role lexical Analyzer
PPTX
Propositional logic
PPTX
AI_Session 10 Local search in continious space.pptx
PPTX
AI search techniques
PPTX
Truth management system
PPTX
AI: Learning in AI
PPTX
frames.pptx
PDF
Design and analysis of algorithms
PPT
AI Lecture 3 (solving problems by searching)
PDF
Machine learning
PPTX
2. forward chaining and backward chaining
PPT
Ll(1) Parser in Compilers
PPTX
Genetic algorithms in Data Mining
Logic programming (1)
Query processing and optimization (updated)
Performance analysis(Time & Space Complexity)
AI_Session 25 classical planning.pptx
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
Semantic nets in artificial intelligence
Forward Backward Chaining
1.Role lexical Analyzer
Propositional logic
AI_Session 10 Local search in continious space.pptx
AI search techniques
Truth management system
AI: Learning in AI
frames.pptx
Design and analysis of algorithms
AI Lecture 3 (solving problems by searching)
Machine learning
2. forward chaining and backward chaining
Ll(1) Parser in Compilers
Genetic algorithms in Data Mining
Ad

Similar to AI_Session 20 Horn clause.pptx (20)

PPTX
22PCOAM11 Unit 2:Session 12 Horn Clause.pptx
PPTX
AI3391 Artificial Intelligence Session 25 Horn clause.pptx
PPTX
AI_session 23 Resolution.pptx
PPTX
22PCOAM11 Unit 3: Session 15 Resolution.pptx
PPTX
Knowledge representation and Predicate logic
PPTX
FAI - Unit 4 - Logic and Knowledges.pptx
PPTX
Knowledge & logic in Artificial Intelligence.pptx
PDF
Chapter 4 - Knowledge Representation and Reasoning (1).pdf
PDF
Knowledge Representation, Prepositional Logic, Representation and Mapping
PDF
AI NOTES ppt 4.pdf
PPT
PropositionalLogic.ppt
PPT
Artificial intelligent Lec 5-logic
PPT
Unit III Knowledge Representation in AI K.Sundar,AP/CSE,VEC
PPT
Propositional and first-order logic different chapters
PPTX
Knowledege Representation.pptx
PPT
Logic.ppt
PDF
Unit4: Knowledge Representation
PDF
Ai lecture 07(unit03)
PPT
10a.ppt
PDF
Knowledge base artificial intelligence.pdf
22PCOAM11 Unit 2:Session 12 Horn Clause.pptx
AI3391 Artificial Intelligence Session 25 Horn clause.pptx
AI_session 23 Resolution.pptx
22PCOAM11 Unit 3: Session 15 Resolution.pptx
Knowledge representation and Predicate logic
FAI - Unit 4 - Logic and Knowledges.pptx
Knowledge & logic in Artificial Intelligence.pptx
Chapter 4 - Knowledge Representation and Reasoning (1).pdf
Knowledge Representation, Prepositional Logic, Representation and Mapping
AI NOTES ppt 4.pdf
PropositionalLogic.ppt
Artificial intelligent Lec 5-logic
Unit III Knowledge Representation in AI K.Sundar,AP/CSE,VEC
Propositional and first-order logic different chapters
Knowledege Representation.pptx
Logic.ppt
Unit4: Knowledge Representation
Ai lecture 07(unit03)
10a.ppt
Knowledge base artificial intelligence.pdf
Ad

More from Guru Nanak Technical Institutions (20)

PPTX
22PCOAM21 Data Quality Session 3 Data Quality.pptx
PPTX
22PCOAM21 Session 1 Data Management.pptx
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
PDF
III Year II Sem 22PCOAM21 Data Analytics Syllabus.pdf
PDF
22PCOAM16 _ML_Unit 3 Notes & Question bank
PDF
22PCOAM16 Machine Learning Unit V Full notes & QB
PDF
22PCOAM16_MACHINE_LEARNING_UNIT_IV_NOTES_with_QB
PDF
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
PPTX
22PCOAM16 Unit 3 Session 23 Different ways to Combine Classifiers.pptx
PPTX
22PCOAM16 Unit 3 Session 22 Ensemble Learning .pptx
PPTX
22PCOAM16 Unit 3 Session 24 K means Algorithms.pptx
PPTX
22PCOAM16 ML Unit 3 Session 18 Learning with tree.pptx
PPTX
22PCOAM16 ML Unit 3 Session 21 Classification and Regression Trees .pptx
PPTX
22PCOAM16 ML Unit 3 Session 20 ID3 Algorithm and working.pptx
PPTX
22PCOAM16 ML Unit 3 Session 19 Constructing Decision Trees.pptx
PDF
22PCOAM16 ML UNIT 2 NOTES & QB QUESTION WITH ANSWERS
PDF
22PCOAM16 _ML_ Unit 2 Full unit notes.pdf
PDF
22PCOAM16_ML_Unit 1 notes & Question Bank with answers.pdf
PDF
22PCOAM16_MACHINE_LEARNING_UNIT_I_NOTES.pdf
PPTX
22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx
22PCOAM21 Data Quality Session 3 Data Quality.pptx
22PCOAM21 Session 1 Data Management.pptx
22PCOAM21 Session 2 Understanding Data Source.pptx
III Year II Sem 22PCOAM21 Data Analytics Syllabus.pdf
22PCOAM16 _ML_Unit 3 Notes & Question bank
22PCOAM16 Machine Learning Unit V Full notes & QB
22PCOAM16_MACHINE_LEARNING_UNIT_IV_NOTES_with_QB
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
22PCOAM16 Unit 3 Session 23 Different ways to Combine Classifiers.pptx
22PCOAM16 Unit 3 Session 22 Ensemble Learning .pptx
22PCOAM16 Unit 3 Session 24 K means Algorithms.pptx
22PCOAM16 ML Unit 3 Session 18 Learning with tree.pptx
22PCOAM16 ML Unit 3 Session 21 Classification and Regression Trees .pptx
22PCOAM16 ML Unit 3 Session 20 ID3 Algorithm and working.pptx
22PCOAM16 ML Unit 3 Session 19 Constructing Decision Trees.pptx
22PCOAM16 ML UNIT 2 NOTES & QB QUESTION WITH ANSWERS
22PCOAM16 _ML_ Unit 2 Full unit notes.pdf
22PCOAM16_ML_Unit 1 notes & Question Bank with answers.pdf
22PCOAM16_MACHINE_LEARNING_UNIT_I_NOTES.pdf
22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx

Recently uploaded (20)

PPTX
22ME926Introduction to Business Intelligence and Analytics, Advanced Integrat...
PDF
VTU IOT LAB MANUAL (BCS701) Computer science and Engineering
PPTX
SC Robotics Team Safety Training Presentation
PPTX
IOP Unit 1.pptx for btech 1st year students
PDF
Software defined netwoks is useful to learn NFV and virtual Lans
PPTX
Design ,Art Across Digital Realities and eXtended Reality
PPT
Module_1_Lecture_1_Introduction_To_Automation_In_Production_Systems2023.ppt
PPTX
quantum theory on the next future in.pptx
PPTX
1. Effective HSEW Induction Training - EMCO 2024, O&M.pptx
PPTX
Module1.pptxrjkeieuekwkwoowkemehehehrjrjrj
PPTX
Research Writing, Mechanical Engineering
PPT
Unit - I.lathemachnespct=ificationsand ppt
PDF
electrical machines course file-anna university
PDF
IAE-V2500 Engine Airbus Family A319/320
PPTX
Real Estate Management PART 1.pptxFFFFFFFFFFFFF
PDF
Module 1 part 1.pdf engineering notes s7
PDF
LS-6-Digital-Literacy (1) K12 CURRICULUM .pdf
PPTX
ARCHITECTURE AND PROGRAMMING OF EMBEDDED SYSTEMS
PDF
Engineering Solutions for Ethical Dilemmas in Healthcare (www.kiu.ac.ug)
PDF
BBC NW_Tech Facilities_30 Odd Yrs Ago [J].pdf
22ME926Introduction to Business Intelligence and Analytics, Advanced Integrat...
VTU IOT LAB MANUAL (BCS701) Computer science and Engineering
SC Robotics Team Safety Training Presentation
IOP Unit 1.pptx for btech 1st year students
Software defined netwoks is useful to learn NFV and virtual Lans
Design ,Art Across Digital Realities and eXtended Reality
Module_1_Lecture_1_Introduction_To_Automation_In_Production_Systems2023.ppt
quantum theory on the next future in.pptx
1. Effective HSEW Induction Training - EMCO 2024, O&M.pptx
Module1.pptxrjkeieuekwkwoowkemehehehrjrjrj
Research Writing, Mechanical Engineering
Unit - I.lathemachnespct=ificationsand ppt
electrical machines course file-anna university
IAE-V2500 Engine Airbus Family A319/320
Real Estate Management PART 1.pptxFFFFFFFFFFFFF
Module 1 part 1.pdf engineering notes s7
LS-6-Digital-Literacy (1) K12 CURRICULUM .pdf
ARCHITECTURE AND PROGRAMMING OF EMBEDDED SYSTEMS
Engineering Solutions for Ethical Dilemmas in Healthcare (www.kiu.ac.ug)
BBC NW_Tech Facilities_30 Odd Yrs Ago [J].pdf

AI_Session 20 Horn clause.pptx

  • 1. ARTIFICAL INTELLIGENCE (R18 III(II Sem)) Department of computer science and engineering (AI/ML) Session 20 by Asst.Prof.M.Gokilavani VITS 4/25/2023 Dpaertment of CSE ( AL & ML) 1
  • 2. TEXTBOOK: • Artificial Intelligence A modern Approach, Third Edition, Stuart Russell and Peter Norvig, Pearson Education. REFERENCES: • Artificial Intelligence, 3rd Edn, E. Rich and K.Knight (TMH). • Artificial Intelligence, 3rd Edn, Patrick Henny Winston, Pearson Education. • Artificial Intelligence, Shivani Goel, Pearson Education. • Artificial Intelligence and Expert Systems- Patterson, Pearson Education. 4/25/2023 Dpaertment of CSE ( AL & ML) 2
  • 3. Topics covered in session 20 • Adversarial Search: Games, Optimal Decisions in Games, Alpha–Beta Pruning, Imperfect Real-Time Decisions. • Constraint Satisfaction Problems: Defining Constraint Satisfaction Problems, Constraint Propagation, Backtracking Search for CSPs, Local Search for CSPs, The Structure of Problems. • Propositional Logic: Knowledge-Based Agents, The Wumpus World, Logic, Propositional Logic, Propositional Theorem Proving: Inference and proofs, Proof by resolution, Horn clauses and definite clauses, Forward and backward chaining, Effective Propositional Model Checking, Agents Based on Propositional Logic. 4/25/2023 Dpaertment of CSE ( AL & ML) 3
  • 4. RECAP • Knowledge: Taking decisions and reasoning to act efficiently. • sentences are expressed in a language which is called a knowledge representation language. • Knowledge-base of KBA stores fact about the world. • Types of knowledge • Technique of knowledge representation • Inference system: Inference system applies logical rules to the KB to deduce new information. • Inference Knowledge: Inferential knowledge approach represents knowledge in the form of formal logics. Example: Let's suppose there are two statements: a. Marcus is a man b. All men are mortal Then it can be represented as: a. man(Marcus) b. ∀x = men (x) ----------> mortal (x)s 4/25/2023 Dpaertment of CSE ( AL & ML) 4
  • 5. Basic of Logical Representation • Logic : 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. (Symbols) • Semantics: Semantics are the rules by which we can interpret the sentence in the logic. ( meaning of sentence). • Pros: Logical representation enables us to do logical reasoning. • Cons: Logical representation technique may not be very natural, and inference may not be so efficient. 4/25/2023 Dpaertment of CSE ( AL & ML) 5
  • 6. Propositional Logic Logical representation can be categorized into mainly two logics: • Propositional Logic • Predicate Logic • Propositional Logic: Propositional logic (PL) is the simplest form of logic where all the statements are made by propositions. • A proposition is a declarative statement which is either true or false.it can not be both. • Example: a) It is Sunday. b) The Sun rises from West (False proposition) c) 3+3= 7(False proposition) d) 5 is a prime number. 4/25/2023 Dpaertment of CSE ( AL & ML) 6
  • 7. Propositional Logic • Propositional logic consists of an object, relations or function, and logical connectives. • These connectives are also called logical operators. 4/25/2023 Dpaertment of CSE ( AL & ML) 7
  • 8. Types of Propositions There are two types of Propositions: a. Atomic Propositions b. Compound propositions a. Atomic Proposition: 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. b. 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." 4/25/2023 Dpaertment of CSE ( AL & ML) 8
  • 9. Semantic Knowledge Representation (predicate logic) • Semantic networks are alternative of predicate logic for knowledge representation. • If-Then rule or IS-A relation (Inheritance). • Pros: These networks are simple and easily understandable. • Cons: Human-like memory (Which has 1015 neurons and links) to store the information. • Example: Statements: a. Jerry is a cat. b. Jerry is a mammal c. Jerry is owned by Priya. d. Jerry is brown colored. e. All Mammals are animal. 4/25/2023 Dpaertment of CSE ( AL & ML) 9
  • 10. 4/25/2023 Dpaertment of CSE ( AL & ML) 10
  • 11. Rule of Inference • What is Inference? we need intelligent computers which can create new logic from old logic or by evidence, so generating the conclusions from evidence and facts is termed as Inference. • Inference rules are the templates for generating valid arguments. (formal sentence). • Terminologies: • Implication: It is one of the logical connectives which can be represented as P → Q. It is a Boolean expression. • Converse: The converse of implication, which means the right-hand side proposition goes to the left-hand side and vice-versa. It can be written as Q → P. 4/25/2023 Dpaertment of CSE ( AL & ML) 11
  • 12. Rule of Inference 4/25/2023 Dpaertment of CSE ( AL & ML) 12 Contrapositive: The negation of converse is termed as contrapositive, and it can be represented as ¬ Q → ¬ P. Inverse: The negation of implication is called inverse. It can be represented as ¬ P → ¬ Q.
  • 13. Resolution • The Resolution rule state that if P∨Q and ¬ P∧R is true, then Q∨R will also be true. It can be represented as: 4/25/2023 Dpaertment of CSE ( AL & ML) 13
  • 14. Proof of Resolution • Resolution is a single inference rule which can efficiently operate on the conjunctive normal form or clausal form. • Unification is a key concept in proofs by resolutions. • Clause: Disjunction of literals (an atomic sentence) is called a clause. It is also known as a unit clause. • Conjunctive Normal Form: A sentence represented as a conjunction of clauses is said to be conjunctive normal form or CNF. • Rule is also called the binary resolution rule because it only resolves exactly two literals. 4/25/2023 Dpaertment of CSE ( AL & ML) 14
  • 15. Steps for Resolution 1. Conversion of facts into first-order logic. 2. Convert FOL statements into CNF 3. Negate the statement which needs to prove (proof by contradiction) 4. Draw resolution graph (unification). 4/25/2023 Dpaertment of CSE ( AL & ML) 15
  • 16. Example: John likes all kind of food Step 1: Conversion of Facts into FOL. Step 2: Conversion of FOL into CNF In First order logic resolution, it is required to convert the FOL into CNF as CNF form makes easier for resolution proofs. Step 3: Negate the statement to be proved. • In this statement, we will apply negation to the conclusion statements, which will be written as Step 4: Draw Resolution Graph 4/25/2023 Dpaertment of CSE ( AL & ML) 16
  • 17. Horn clauses and definite clauses 4/25/2023 Dpaertment of CSE ( AL & ML) 17 • Definite clause: A clause which is a disjunction of literals with exactly one positive literal is known as a definite clause or strict horn clause. • Horn clause: A clause which is a disjunction of literals with at most one positive literal is known as horn clause. Hence all the definite clauses are horn clauses. Example: (¬ p V ¬ q V k) It has only one positive literal k. It is equivalent to p ∧ q → k.
  • 18. Topics to be covered in next session 21 • First Order Logic (FOL) Thank you!!! 4/25/2023 Dpaertment of CSE ( AL & ML) 18