SlideShare a Scribd company logo
1 of 12
RESOLUTION METHOD IN
AI
Assistant proof. Dr. Emad I Abdul Kareem
RESOLUTION METHOD IN AI
Resolution method is an inference rule which is used in both
Propositional as well as First-order Predicate Logic in different ways. This
method is basically used for proving the satisfiability of a sentence. In
resolution method, we use Proof by Refutation technique to prove the given
statement.
The key idea for the resolution method is to use the knowledge base
and negated goal to obtain null clause (which indicates contradiction).
Resolution method is also called Proof by Refutation. Since the knowledge
base itself is consistent, the contradiction must be introduced by a negated
goal. As a result, we have to conclude that the original goal is true.
RESOLUTION METHOD IN
PROPOSITIONAL LOGIC
In propositional logic, resolution method is the only inference rule
which gives a new clause when two or more clauses are coupled together.
Using propositional resolution, it becomes easy to make a theorem prover
sound and complete for all. The process followed to convert the propositional
logic into resolution method contains the below steps:
• Convert the given statements into clausal form,
• Apply and proof the given goal using negation rule.
• Use those literals which are needed to prove.
• Solve the clauses together and achieve the goal.
But, before solving problems using Resolution method, let’s understand
two normal forms
CONVERT THE GIVEN STATEMENTS INTO
CLAUSAL FORM ( CONJUNCTIVE
NORMAL FORM(CNF))
∀x [B(x) → (∃y [Q(x, y) ∧ ⌐ P(y)]
∧ ⌐ ∃y [Q(x, y) ∧ Q(y, x)]
∧ ∀y [⌐ B(y) → ⌐ E(x, y)])]
1- Eliminate the implication (→)
E1 → E2 = ⌐ E1 ∨ E2
∀x [⌐ B(x) ∨ ( ∃y [ Q(x ,y) ∧ ⌐ P(y) ]
∧ ⌐ ∃y [ Q(x ,y) ∧ Q(y ,x) ]
∧ ∀y [⌐(⌐ B(y)) ∨ ⌐ E(x ,y)] ) ]
∀x [B(x) → (∃y [Q(x, y) ∧ ⌐ P(y)]
∧ ∀y [⌐ B(y) → ⌐ E(x, y)])]
2- Move the negation down to the atomic formulas (by using the following rules)
• ⌐ (P∧Q) ≡ ⌐ P ∨ ⌐ Q
• ⌐ (P∨Q) ≡ ⌐ P ∧ ⌐ Q
• ⌐ (⌐ (P)) ≡ P
• ⌐ ∀x (P (x)) ≡ ∃x (⌐ P (x))
• ⌐ ∃x (P (x)) ≡ ∀x (⌐ P (x))
∀x[⌐ B(x) ∨ ( ∃y [ Q(x,y) ∧ ⌐ P(y) ]
∧ ∀y [ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ]
∧ ∀y [ B(y) ∨ ⌐ E(x,y)] ) ]
3- Purge existential quantifiers
The function that is eliminate the existential are called “Skolem function”
∀x[⌐ B(x) ∨ ( [ Q(x , f (x)) ∧ ⌐ P(f (x)) ]
∧ ∀y [ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ]
∧ ∀y [ B(y) ∨ ⌐ E(x,y)] ) ]
∧ ⌐ ∃y [ Q(x ,y) ∧ Q(y ,x) ]
∧ ∀y [⌐(⌐ B(y)) ∨ ⌐ E(x ,y)] ) ]
∀x[⌐ B(x) ∨ ( ∃y [ Q(x,y) ∧ ⌐ P(y) ]
4- Rename variables, as necessary, so that no two variables are the same.
∀x[⌐ B(x) ∨ ( [ Q(x , f (x)) ∧ ⌐ P(f (x)) ]
∧ ∀y [ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ]
∧ ∀z [ B(z) ∨ ⌐ E(x,z)] ) ]
5- Move the Universal quantifiers to the left of the statement.
∀x ∀y ∀z [⌐ B(x) ∨ ( [ Q(x , f (x)) ∧ ⌐ P(f (x)) ]
∧ [ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ]
∧ [ B(z) ∨ ⌐ E(x,z)] ) ]
∧ ∀y [ B(y) ∨ ⌐ E(x,y)] ) ]
∀x[⌐ B(x) ∨ ( [ Q(x , f (x)) ∧ ⌐ P(f (x)) ]
∧ ∀y [ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ]
∧ ∀z [ B(z) ∨ ⌐ E(x,z)] ) ]
6- Move the disjunction down to the literals, using distributive laws
E1 ∨ (E2 ∧ E3 ∧ E4 ∧…) ≡ (E1 ∨ E2) ∧ (E1∨E3) ∧ ….
E1 ∧ (E2 ∨ E3 ∨ E4∨…) ≡ (E1 ∧ E2) ∨ (E1∧E3) ∨ ….
∀x ∀y ∀z [ ( ⌐ B(x) ∨ ( Q(x , f (x))
∧ ( ⌐ B(x) ∨ ⌐ P(f (x) ) )
∧ ( ⌐ B(x) ∨ ⌐ Q(x,y) ∨ ⌐ Q(y,x) )
∧ (⌐ B(x) ∨ B(z) ∨ ⌐ E(x,z) ) ]
7- Eliminate the conjunctions
∀x [ ⌐ B(x) ∨ ( Q(x , f (x) ]
∀x [⌐ B(x) ∨ ⌐ P(f (x) ) ]
∀x ∀y [ ⌐ B(x) ∨ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ]
∀x ∀z [⌐ B(x) ∨ B(z) ∨ ⌐ E(x,z) ]
∀x ∀y ∀z [⌐ B(x) ∨ ( [ Q(x , f (x)) ∧ ⌐ P(f (x)) ]
∧ [ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ]
∧ [ B(z) ∨ ⌐ E(x,z)] ) ]
∀x ∀y ∀z [ ( ⌐ B(x) ∨ ( Q(x , f (x))
∧ ( ⌐ B(x) ∨ ⌐ P(f (x) ) )
∧ ( ⌐ B(x) ∨ ⌐ Q(x,y) ∨ ⌐ Q(y,x) )
∧ (⌐ B(x) ∨ B(z) ∨ ⌐ E(x,z) ) ]
8- Rename all the variables, as necessary, so that no two variables are the same.
∀x [ ⌐ B(x) ∨ ( Q(x , f (x) ]
∀w [⌐ B(w) ∨ ⌐ P(f (w) ) ]
∀u ∀y [⌐ B(u) ∨ ⌐ Q(u,y) ∨ ⌐ Q(y,u) ]
∀a ∀z [⌐ B(a) ∨ B(z) ∨ ⌐ E(a,z) ]
9- Purge the universal quantifiers.
⌐ B(x) ∨ ( Q(x , f (x))
⌐ B(w) ∨ ⌐ P(f (w) )
⌐ B(u) ∨ ⌐ Q(u,y) ∨ ⌐ Q(y,u)
⌐ B(a) ∨ B(z) ∨ ⌐ E(a,z) )
∀x [ ⌐ B(x) ∨ ( Q(x , f (x) ]
∀x [⌐ B(x) ∨ ⌐ P(f (x) ) ]
∀x ∀y [ ⌐ B(x) ∨ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ]
∀x ∀z [⌐ B(x) ∨ B(z) ∨ ⌐ E(x,z) ]
∀x [ ⌐ B(x) ∨ ( Q(x , f (x) ]
∀x [⌐ B(x) ∨ ⌐ P(f (x) ) ]
∀x ∀y [ ⌐ B(x) ∨ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ]
∀x ∀z [⌐ B(x) ∨ B(z) ∨ ⌐ E(x,z) ]
EXAMPLE
Consider the following Knowledge Base:
The humidity is high or the sky is cloudy. ‫غائمة‬ ‫السماء‬ ‫أو‬ ‫عالية‬ ‫الرطوبة‬
.
If the sky is cloudy, then it will rain. ‫تمطر‬ ‫فسوف‬ ، ‫غائمة‬ ‫السماء‬ ‫كانت‬ ‫إذا‬
.
If the humidity is high, then it is hot. ‫حارا‬ ‫الطقس‬ ‫يكون‬ ‫ثم‬ ،‫عالية‬ ‫الرطوبة‬ ‫كانت‬ ‫إذا‬
.
It is not hot. ‫ليس‬ ‫الطقس‬
‫حارا‬
.
Goal: It will rain.
Use propositional logic and apply resolution method to prove that the goal is
derivable from the given knowledge base.
Solution: Let’s construct propositions of the given sentences one by one:
1) Let,
The humidity is high or the sky is cloudy
P: Humidity is high.
Q: Sky is cloudy.
It will be represented as P V Q.
2) If the sky is cloudy, then it will rain
Q: Sky is cloudy. …from (1)
Let, R: It will rain.
It will be represented as Q → R.
3) If the humidity is high, then it is hot.
P: Humidity is high. …from (1)
Let, S: It is hot.
It will be represented as P → S.
4) ¬S: It is not hot.
Applying resolution method:
1. P V Q.
2. Q → R.
In (2), Q → R will be converted as (¬Q V R)
3. P → S.
In (3), P → S will be converted as (¬P V S)
4. ¬S.
Negation of Goal (¬R): It will not rain.
Finally, apply the rule as shown below:
The End

More Related Content

What's hot

Decision Tree Learning
Decision Tree LearningDecision Tree Learning
Decision Tree LearningMilind Gokhale
 
Production System in AI
Production System in AIProduction System in AI
Production System in AIBharat Bhushan
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AIvikas dhakane
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemMohammad Imam Hossain
 
Fuzzy logic and application in AI
Fuzzy logic and application in AIFuzzy logic and application in AI
Fuzzy logic and application in AIIldar Nurgaliev
 
Uncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial IntelligenceUncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial IntelligenceExperfy
 
The n Queen Problem
The n Queen ProblemThe n Queen Problem
The n Queen ProblemSukrit Gupta
 
Strassen's matrix multiplication
Strassen's matrix multiplicationStrassen's matrix multiplication
Strassen's matrix multiplicationMegha V
 
Adversarial Search
Adversarial SearchAdversarial Search
Adversarial SearchMegha Sharma
 
Congestion control
Congestion controlCongestion control
Congestion controlAman Jaiswal
 
Genetic Algorithm in Artificial Intelligence
Genetic Algorithm in Artificial IntelligenceGenetic Algorithm in Artificial Intelligence
Genetic Algorithm in Artificial IntelligenceSinbad Konick
 
Decision properties of reular languages
Decision properties of reular languagesDecision properties of reular languages
Decision properties of reular languagesSOMNATHMORE2
 
Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2DigiGurukul
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}FellowBuddy.com
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithmBushra M
 
knowledge representation using rules
knowledge representation using rulesknowledge representation using rules
knowledge representation using rulesHarini Balamurugan
 

What's hot (20)

Backtracking
BacktrackingBacktracking
Backtracking
 
Decision Tree Learning
Decision Tree LearningDecision Tree Learning
Decision Tree Learning
 
Production System in AI
Production System in AIProduction System in AI
Production System in AI
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AI
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction Problem
 
Fuzzy logic and application in AI
Fuzzy logic and application in AIFuzzy logic and application in AI
Fuzzy logic and application in AI
 
Uncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial IntelligenceUncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial Intelligence
 
The n Queen Problem
The n Queen ProblemThe n Queen Problem
The n Queen Problem
 
AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)
 
Strassen's matrix multiplication
Strassen's matrix multiplicationStrassen's matrix multiplication
Strassen's matrix multiplication
 
Adversarial Search
Adversarial SearchAdversarial Search
Adversarial Search
 
Naive bayes
Naive bayesNaive bayes
Naive bayes
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Genetic Algorithm in Artificial Intelligence
Genetic Algorithm in Artificial IntelligenceGenetic Algorithm in Artificial Intelligence
Genetic Algorithm in Artificial Intelligence
 
Decision properties of reular languages
Decision properties of reular languagesDecision properties of reular languages
Decision properties of reular languages
 
Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2
 
Hill climbing algorithm
Hill climbing algorithmHill climbing algorithm
Hill climbing algorithm
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
knowledge representation using rules
knowledge representation using rulesknowledge representation using rules
knowledge representation using rules
 

Similar to Resolution method in AI.pptx

Truth, deduction, computation lecture e
Truth, deduction, computation   lecture eTruth, deduction, computation   lecture e
Truth, deduction, computation lecture eVlad Patryshev
 
Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceasimnawaz54
 
Algorithmic foundations.docx
Algorithmic foundations.docxAlgorithmic foundations.docx
Algorithmic foundations.docxedwin orege
 
1004_theorem_proving_2018.pptx on the to
1004_theorem_proving_2018.pptx on the to1004_theorem_proving_2018.pptx on the to
1004_theorem_proving_2018.pptx on the tofariyaPatel
 
On uniformly continuous uniform space
On uniformly continuous uniform spaceOn uniformly continuous uniform space
On uniformly continuous uniform spacetheijes
 
L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicManjula V
 
Discrete mathematic question answers
Discrete mathematic question answersDiscrete mathematic question answers
Discrete mathematic question answersSamet öztoprak
 
Fixed Point Results for Weakly Compatible Mappings in Convex G-Metric Space
Fixed Point Results for Weakly Compatible Mappings in Convex G-Metric SpaceFixed Point Results for Weakly Compatible Mappings in Convex G-Metric Space
Fixed Point Results for Weakly Compatible Mappings in Convex G-Metric Spaceinventionjournals
 
Truth, deduction, computation lecture a
Truth, deduction, computation   lecture aTruth, deduction, computation   lecture a
Truth, deduction, computation lecture aVlad Patryshev
 
Some properties of two-fuzzy Nor med spaces
Some properties of two-fuzzy Nor med spacesSome properties of two-fuzzy Nor med spaces
Some properties of two-fuzzy Nor med spacesIOSR Journals
 
Matrix Transformations on Some Difference Sequence Spaces
Matrix Transformations on Some Difference Sequence SpacesMatrix Transformations on Some Difference Sequence Spaces
Matrix Transformations on Some Difference Sequence SpacesIOSR Journals
 
One solution for many linear partial differential equations with terms of equ...
One solution for many linear partial differential equations with terms of equ...One solution for many linear partial differential equations with terms of equ...
One solution for many linear partial differential equations with terms of equ...Lossian Barbosa Bacelar Miranda
 
Some Common Fixed Point Results for Expansive Mappings in a Cone Metric Space
Some Common Fixed Point Results for Expansive Mappings in a Cone Metric SpaceSome Common Fixed Point Results for Expansive Mappings in a Cone Metric Space
Some Common Fixed Point Results for Expansive Mappings in a Cone Metric SpaceIOSR Journals
 

Similar to Resolution method in AI.pptx (20)

Truth, deduction, computation lecture e
Truth, deduction, computation   lecture eTruth, deduction, computation   lecture e
Truth, deduction, computation lecture e
 
Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inference
 
Algorithmic foundations.docx
Algorithmic foundations.docxAlgorithmic foundations.docx
Algorithmic foundations.docx
 
1004_theorem_proving_2018.pptx on the to
1004_theorem_proving_2018.pptx on the to1004_theorem_proving_2018.pptx on the to
1004_theorem_proving_2018.pptx on the to
 
On uniformly continuous uniform space
On uniformly continuous uniform spaceOn uniformly continuous uniform space
On uniformly continuous uniform space
 
chapter9.ppt
chapter9.pptchapter9.ppt
chapter9.ppt
 
L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logic
 
Discrete mathematic question answers
Discrete mathematic question answersDiscrete mathematic question answers
Discrete mathematic question answers
 
Metric space
Metric spaceMetric space
Metric space
 
09
0909
09
 
Chap05
Chap05Chap05
Chap05
 
Aed.pptx
Aed.pptxAed.pptx
Aed.pptx
 
Fixed Point Results for Weakly Compatible Mappings in Convex G-Metric Space
Fixed Point Results for Weakly Compatible Mappings in Convex G-Metric SpaceFixed Point Results for Weakly Compatible Mappings in Convex G-Metric Space
Fixed Point Results for Weakly Compatible Mappings in Convex G-Metric Space
 
Truth, deduction, computation lecture a
Truth, deduction, computation   lecture aTruth, deduction, computation   lecture a
Truth, deduction, computation lecture a
 
Some properties of two-fuzzy Nor med spaces
Some properties of two-fuzzy Nor med spacesSome properties of two-fuzzy Nor med spaces
Some properties of two-fuzzy Nor med spaces
 
Mcs 013 solve assignment
Mcs 013 solve assignmentMcs 013 solve assignment
Mcs 013 solve assignment
 
Matrix Transformations on Some Difference Sequence Spaces
Matrix Transformations on Some Difference Sequence SpacesMatrix Transformations on Some Difference Sequence Spaces
Matrix Transformations on Some Difference Sequence Spaces
 
dma_ppt.pdf
dma_ppt.pdfdma_ppt.pdf
dma_ppt.pdf
 
One solution for many linear partial differential equations with terms of equ...
One solution for many linear partial differential equations with terms of equ...One solution for many linear partial differential equations with terms of equ...
One solution for many linear partial differential equations with terms of equ...
 
Some Common Fixed Point Results for Expansive Mappings in a Cone Metric Space
Some Common Fixed Point Results for Expansive Mappings in a Cone Metric SpaceSome Common Fixed Point Results for Expansive Mappings in a Cone Metric Space
Some Common Fixed Point Results for Expansive Mappings in a Cone Metric Space
 

Recently uploaded

mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 

Recently uploaded (20)

mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 

Resolution method in AI.pptx

  • 1. RESOLUTION METHOD IN AI Assistant proof. Dr. Emad I Abdul Kareem
  • 2. RESOLUTION METHOD IN AI Resolution method is an inference rule which is used in both Propositional as well as First-order Predicate Logic in different ways. This method is basically used for proving the satisfiability of a sentence. In resolution method, we use Proof by Refutation technique to prove the given statement. The key idea for the resolution method is to use the knowledge base and negated goal to obtain null clause (which indicates contradiction). Resolution method is also called Proof by Refutation. Since the knowledge base itself is consistent, the contradiction must be introduced by a negated goal. As a result, we have to conclude that the original goal is true.
  • 3. RESOLUTION METHOD IN PROPOSITIONAL LOGIC In propositional logic, resolution method is the only inference rule which gives a new clause when two or more clauses are coupled together. Using propositional resolution, it becomes easy to make a theorem prover sound and complete for all. The process followed to convert the propositional logic into resolution method contains the below steps: • Convert the given statements into clausal form, • Apply and proof the given goal using negation rule. • Use those literals which are needed to prove. • Solve the clauses together and achieve the goal. But, before solving problems using Resolution method, let’s understand two normal forms
  • 4. CONVERT THE GIVEN STATEMENTS INTO CLAUSAL FORM ( CONJUNCTIVE NORMAL FORM(CNF)) ∀x [B(x) → (∃y [Q(x, y) ∧ ⌐ P(y)] ∧ ⌐ ∃y [Q(x, y) ∧ Q(y, x)] ∧ ∀y [⌐ B(y) → ⌐ E(x, y)])] 1- Eliminate the implication (→) E1 → E2 = ⌐ E1 ∨ E2 ∀x [⌐ B(x) ∨ ( ∃y [ Q(x ,y) ∧ ⌐ P(y) ] ∧ ⌐ ∃y [ Q(x ,y) ∧ Q(y ,x) ] ∧ ∀y [⌐(⌐ B(y)) ∨ ⌐ E(x ,y)] ) ] ∀x [B(x) → (∃y [Q(x, y) ∧ ⌐ P(y)] ∧ ∀y [⌐ B(y) → ⌐ E(x, y)])]
  • 5. 2- Move the negation down to the atomic formulas (by using the following rules) • ⌐ (P∧Q) ≡ ⌐ P ∨ ⌐ Q • ⌐ (P∨Q) ≡ ⌐ P ∧ ⌐ Q • ⌐ (⌐ (P)) ≡ P • ⌐ ∀x (P (x)) ≡ ∃x (⌐ P (x)) • ⌐ ∃x (P (x)) ≡ ∀x (⌐ P (x)) ∀x[⌐ B(x) ∨ ( ∃y [ Q(x,y) ∧ ⌐ P(y) ] ∧ ∀y [ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ] ∧ ∀y [ B(y) ∨ ⌐ E(x,y)] ) ] 3- Purge existential quantifiers The function that is eliminate the existential are called “Skolem function” ∀x[⌐ B(x) ∨ ( [ Q(x , f (x)) ∧ ⌐ P(f (x)) ] ∧ ∀y [ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ] ∧ ∀y [ B(y) ∨ ⌐ E(x,y)] ) ] ∧ ⌐ ∃y [ Q(x ,y) ∧ Q(y ,x) ] ∧ ∀y [⌐(⌐ B(y)) ∨ ⌐ E(x ,y)] ) ] ∀x[⌐ B(x) ∨ ( ∃y [ Q(x,y) ∧ ⌐ P(y) ]
  • 6. 4- Rename variables, as necessary, so that no two variables are the same. ∀x[⌐ B(x) ∨ ( [ Q(x , f (x)) ∧ ⌐ P(f (x)) ] ∧ ∀y [ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ] ∧ ∀z [ B(z) ∨ ⌐ E(x,z)] ) ] 5- Move the Universal quantifiers to the left of the statement. ∀x ∀y ∀z [⌐ B(x) ∨ ( [ Q(x , f (x)) ∧ ⌐ P(f (x)) ] ∧ [ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ] ∧ [ B(z) ∨ ⌐ E(x,z)] ) ] ∧ ∀y [ B(y) ∨ ⌐ E(x,y)] ) ] ∀x[⌐ B(x) ∨ ( [ Q(x , f (x)) ∧ ⌐ P(f (x)) ] ∧ ∀y [ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ] ∧ ∀z [ B(z) ∨ ⌐ E(x,z)] ) ]
  • 7. 6- Move the disjunction down to the literals, using distributive laws E1 ∨ (E2 ∧ E3 ∧ E4 ∧…) ≡ (E1 ∨ E2) ∧ (E1∨E3) ∧ …. E1 ∧ (E2 ∨ E3 ∨ E4∨…) ≡ (E1 ∧ E2) ∨ (E1∧E3) ∨ …. ∀x ∀y ∀z [ ( ⌐ B(x) ∨ ( Q(x , f (x)) ∧ ( ⌐ B(x) ∨ ⌐ P(f (x) ) ) ∧ ( ⌐ B(x) ∨ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ) ∧ (⌐ B(x) ∨ B(z) ∨ ⌐ E(x,z) ) ] 7- Eliminate the conjunctions ∀x [ ⌐ B(x) ∨ ( Q(x , f (x) ] ∀x [⌐ B(x) ∨ ⌐ P(f (x) ) ] ∀x ∀y [ ⌐ B(x) ∨ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ] ∀x ∀z [⌐ B(x) ∨ B(z) ∨ ⌐ E(x,z) ] ∀x ∀y ∀z [⌐ B(x) ∨ ( [ Q(x , f (x)) ∧ ⌐ P(f (x)) ] ∧ [ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ] ∧ [ B(z) ∨ ⌐ E(x,z)] ) ] ∀x ∀y ∀z [ ( ⌐ B(x) ∨ ( Q(x , f (x)) ∧ ( ⌐ B(x) ∨ ⌐ P(f (x) ) ) ∧ ( ⌐ B(x) ∨ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ) ∧ (⌐ B(x) ∨ B(z) ∨ ⌐ E(x,z) ) ]
  • 8. 8- Rename all the variables, as necessary, so that no two variables are the same. ∀x [ ⌐ B(x) ∨ ( Q(x , f (x) ] ∀w [⌐ B(w) ∨ ⌐ P(f (w) ) ] ∀u ∀y [⌐ B(u) ∨ ⌐ Q(u,y) ∨ ⌐ Q(y,u) ] ∀a ∀z [⌐ B(a) ∨ B(z) ∨ ⌐ E(a,z) ] 9- Purge the universal quantifiers. ⌐ B(x) ∨ ( Q(x , f (x)) ⌐ B(w) ∨ ⌐ P(f (w) ) ⌐ B(u) ∨ ⌐ Q(u,y) ∨ ⌐ Q(y,u) ⌐ B(a) ∨ B(z) ∨ ⌐ E(a,z) ) ∀x [ ⌐ B(x) ∨ ( Q(x , f (x) ] ∀x [⌐ B(x) ∨ ⌐ P(f (x) ) ] ∀x ∀y [ ⌐ B(x) ∨ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ] ∀x ∀z [⌐ B(x) ∨ B(z) ∨ ⌐ E(x,z) ] ∀x [ ⌐ B(x) ∨ ( Q(x , f (x) ] ∀x [⌐ B(x) ∨ ⌐ P(f (x) ) ] ∀x ∀y [ ⌐ B(x) ∨ ⌐ Q(x,y) ∨ ⌐ Q(y,x) ] ∀x ∀z [⌐ B(x) ∨ B(z) ∨ ⌐ E(x,z) ]
  • 9. EXAMPLE Consider the following Knowledge Base: The humidity is high or the sky is cloudy. ‫غائمة‬ ‫السماء‬ ‫أو‬ ‫عالية‬ ‫الرطوبة‬ . If the sky is cloudy, then it will rain. ‫تمطر‬ ‫فسوف‬ ، ‫غائمة‬ ‫السماء‬ ‫كانت‬ ‫إذا‬ . If the humidity is high, then it is hot. ‫حارا‬ ‫الطقس‬ ‫يكون‬ ‫ثم‬ ،‫عالية‬ ‫الرطوبة‬ ‫كانت‬ ‫إذا‬ . It is not hot. ‫ليس‬ ‫الطقس‬ ‫حارا‬ . Goal: It will rain. Use propositional logic and apply resolution method to prove that the goal is derivable from the given knowledge base.
  • 10. Solution: Let’s construct propositions of the given sentences one by one: 1) Let, The humidity is high or the sky is cloudy P: Humidity is high. Q: Sky is cloudy. It will be represented as P V Q. 2) If the sky is cloudy, then it will rain Q: Sky is cloudy. …from (1) Let, R: It will rain. It will be represented as Q → R. 3) If the humidity is high, then it is hot. P: Humidity is high. …from (1) Let, S: It is hot. It will be represented as P → S. 4) ¬S: It is not hot.
  • 11. Applying resolution method: 1. P V Q. 2. Q → R. In (2), Q → R will be converted as (¬Q V R) 3. P → S. In (3), P → S will be converted as (¬P V S) 4. ¬S. Negation of Goal (¬R): It will not rain. Finally, apply the rule as shown below: