Resolution in the Predicate
Calculus
Chapter 16.
2
Outline
 Unification
 Predicate-Calculus Resolution
 Completeness and Soundness
 Converting Arbitrary wffs to Clause Form
 Using Resolution to Prove Theorems
 Answer Extraction
 The Equality Predicate
3
16.1 Unification
 Abbreviating wffs of the form by
, where are literals that
might contain occurrences of the variables
 Simply dropping the universal quantifiers and assuming
universal quantification of any variables in the
 Clauses: WFFs in the abbreviated form
 If two clauses have matching but complementary literals, it
is possible to resolve them
 Example: ,
4
16.1 Unification
 Unification: A process that computes the appropriate
substitution
 Substitution instance of an expression is obtained by
substituting terms for variables in that expression.
 Four substitution instances
 The first instance --- alphabetic variant.
 The last of the four different variables is called a ground
instance (A ground term is a term that contains no variables).
]),(,[ ByfxP
]),(,[
]),(),([
]),(,[
]),(,[
BAfCP
BAfzgP
BAfxP
BwfzP
5
16.1 Unification
 Any substitution can be represented by a set of ordered
pairs
 The pair means that term is substituted for every
occurrence of the variable throughout the scope of the
substitution.
 No variables can be replaced by a tern containing that same
variable.
}/,,/,/{ 2211 nnS  
ii  / i
i
]),(,[ ByfxP
}/,/{
}/,/)({
}/{
}/,/{
4
3
2
1
yAxCs
yAxzgs
yAs
ywxzs




]),(,[
]),(),([
]),(,[
]),(,[
BAfCP
BAfzgP
BAfxP
BwfzP
6
 w s denotes a substitution instance of an expression w,
using a substitution s. Thus,
 The composition s1 and s2 is denoted by s1 s2, which
is that substitution obtained by first applying s2 to the
terms of s1 and then adding any pairs of s2 having
variables not occurring among the variables of s1. Thus,
7
16.1 Unification

 Let w be P(x,y), s1 be {f(y)/x}, and s2 be {A/y} then,
and
 Substitutions are not, in general, commutative
 Unifiable: a set of expressions is unifiable if there
exists a substitution s such that
 unifies , to yield
8
16.1 Unification
 MGU (Most general (or simplest) unifier) has the property
that if s is any unifier of yielding , then there
exists a substitution such that .
Furthermore, the common instance produced by a most
general unifier is unique except for alphabetic variants.
 UNIFY
 Can find the most general unifier of a finite set of unifiable
expressions and that report failure when the set cannot be unified.
 Basic to UNIFY is the idea of a disagreement set.
 The disagreement set of a nonempty set W of expressions is obtained
by locating the first symbol at which not all the expressions in W have
exactly the same symbol, and then extracting from each expression in W
the subexpression that begins with the symbol occupying that position.
9
UNIFY( ) ( is a set of list-structured expressions.)
1. (Initialization step; is the
empty substitution. )
2. If is a singleton, exit with , the mgu of .
Otherwise, continue.
3. the disagreement set of .
4. If there exists elements and in such
that is a variable that does not occur in ,
continue. Otherwise, exit with failure: is not
Unifiable.
5. {note that }
6. .
7. Go to step 2
16.1 Unification



0, ,k kk      
k k 
kD 
k
kv kt kD
kv kt

1 1{ / }, { / }k k k k k k k kt v t v      1 1k k k   
1k k 
10
Predicate-Calculus Resolution
 are two clauses. Atom in and a literal
in such that and have a most general unifier, ,
then these two clauses have a resolvent, . The resolvent
is obtained by applying the substitution to the union of
and , leaving out the complementary literals.
 Examples:
{ ( ), ( , )},{ ( ), ( , )} { ( , ), ( , )}
{ ( , ), ( ), ( )},{ ( , ), ( )} { ( ), ( ), ( )},{ ( , ), ( ), ( , )}
P x Q x y P A R B z Q A y R B z
P x x Q x R x P A z Q B Q A R A Q B P B B R B P A z

   


11
Completeness and Soundness
 Predicate-calculus resolution is sound
 If  is the resolvent of two clauses  and , then {, }|= 
 Completeness of resolution
 It is impossible to infer by resolution alone all the formulas that
are logically entailed by a given set.
 In propositional resolution, this difficulty is surmounted by using
resolution refutation.
12
Converting Arbitrary wffs to
Clause Form
1. Eliminate implication signs.
2. Reduce scopes of negation signs.
3. Standardize variables
 Since variables within the scopes of quantifiers are like “dummy
variables”, they can be renamed so that each quantifier has its
own variable symbol.
4. Eliminate existential quantifiers.
13
Converting Arbitrary wffs to
Clause Form
 Skolem function, Skolemization:
 Replace each occurrence of its existentially quantified
variable by a Skolem function whose arguments are those
universally quantified variables
 Function symbols used in Skolem functions must be “new”.
14
Converting Arbitrary wffs to
Clause Form
 Skolem function of no arguments
 Skolem form: To eliminate all of the existentially quantified
variables from a wff, the proceding procedure on each subformula
is used in turn. Eliminating the existential quantifiers from a set of
wffs produces what is called the Skolem form of the set of
formulas.
 The skolem form of a wff is not equivalent to the original wff.
.
 What is true is that a set of formulas,  is satisfiable if and only if
the Skolem form of  is. Or more usefully for purpose of
resolution refutations,  is unsatisfiable if and only if the Skolem
form of  is unsatifiable.
15
Converting Arbitrary wffs to
Clause Form
5. Convert to prenex form
 At this stage, there are no remaining existential quantifiers, and
each universal quantifier has its own variable symbol.
 A wff in prenex form consists of a string of quantifiers called a
prefix followed by a quantifier-free formula called a matrix. The
prenex form of the example wff marked with an * earlier is
6. Put the matrix in conjunctive normal form
 When the matrix of the preceding example wff is put in
conjunctive normal form, it became
16
Converting Arbitrary wffs to
Clause Form
7. Eliminate universal quantifiers
 Assume that all variables in the matrix are universally
quantified.
8. Eliminate  symbols
 The explicit occurrence of  symbols may be eliminated by
replacing expressions of the form with the set of wffs
.
17
Converting Arbitrary wffs to
Clause Form
9. Rename variables
 Variable symbols may be renamed so that no variable symbol
appears in more than one clause .
18
 To prove wff  from , proceed just as in the propositional
calculus.
1. Negate ,
2. Convert this negation to clause form, and
3. Add it to the clause form of .
4. Then apply resolution until the empty clause is deduced.
Using Resolution to Prove Theorem
19
Using Resolution to Prove Theorem
 Problem: the package delivery robot.
 Suppose this robot knows that all of the packages in room
27 are smaller than any of the ones in room 28.
1.
2.
 Suppose that the robot knows the following:
3. P(A)
4. P(B)
5. I(A,27)I(A,28) // package A is either in room 27 or in room 28
6. I(B,27) // package B is in room 27
7. S(B,A) // package B is not smaller than package A.
20
Using Resolution to Prove Theorem
21
16.6 Answer Extraction
22
16.7 The Equality Predicate
 Equality relation: Equals(A,B) or A=B
 Reflexive (x)Equals(x,x)
 Symmetric (x, y)[Equals(x, y)Equals(y, x)]
 Transitive ( x, y, z)[Equals(x, y)  Equals(y, z) 
Equals(x, z)]
23
16.7 The Equality Predicate
 Paramodulation(调解)
 Equality-specific inference rule to be used in combination with
resolution in cases where the knowledge base contains the equality
predicate .
 1, 2 are two clauses. If and ,
where , ,  are terms, where 1` are clauses, and where  is
a literal containing the term , and if  and  have a most general
unifier , then infer the binary paramodulant of 1 and 2:
where [()] denotes the result of replacing a single occurrence
of  in  by .
24
 Prove P(B) from P(A) and (A=B)
 For a refutation-style proof, we must deduce the empty clause
from the clauses P(B), P(A), and (A=B).
 Using paramodulation on the last two clauses,  is P(A),  is
A,  is A, and  is B. Since A (in the role of ) and A (in the
role of ) unify trivially without a substitution, the binary
paramodulation is P(B), which is the result of replacing an
occurrence of  (that is A) with  (that is B). Resolving this
paramodulant with P(B) yields the empty clause.
25
 With a slight extension to the kinds of paramodulants allowed, it
can be shown that paramodulation combined with resolution
refutation is complete for knowledge bases containing the equality
predicate.
 If an external process is able to return a truth value for an equality
predicate, we can replace that predicate by T or F as appropriate.
In resolution reputation, clauses containing the literal T can then
be eliminated. The literal F in any clause can be eliminated.
26
 The problem of proving that if a package, say , A, is in
a particular room, say, R1, then it cannot be in a
different room, say, R2.
 Statements in knowledge base.
(x, y, u, v)[In(x, u) (uv)]In(x, v), In(A, R1)
 In attempting to prove In(A, R2). Converting the first
formula into clause form yields In(x, u)(u=v)  In(x, v)
 The strategy postpones dealing with equality predicates until
they contain only ground terms. Resolving the clause with the
negation of the wff to be proved yields (R2=V)  In(A, v).
 Resolving the result with the given wff In(A,R1) yields
(R2=R1).
 If the knowledge base actually contains the wff (R2=R1),
then it produces the empty clause, completing the refutation.
27
16.7 The Equality Predicate
 If the reasoning involves numbers, it might need an
unmanageably large set of wffs. Instead of having all wffs
explicitly in the knowledge base, it would be better to
provide a routine that would be able to evaluate
expressions of the form (=) for all (ground)  and .
 Several other relations (greater than, less than…) and
functions (plus, times, divides,…) could be evaluated
directly rather than reasoned about with formulas.
 Evaluation of expressions is thus a powerful , efficiency-
enhancing tool in automated reasoning systems.

More Related Content

PDF
16 2 predicate resolution
PDF
AI Lesson 13
PDF
AI Lesson 14
PDF
AI Lesson 16
PDF
AI Lesson 15
PDF
AI Lesson 17
PDF
Some notes on Tight Frames
PDF
16 2 predicate resolution
AI Lesson 13
AI Lesson 14
AI Lesson 16
AI Lesson 15
AI Lesson 17
Some notes on Tight Frames

What's hot (19)

PDF
PDF
14 pro resolution
PDF
Sentient Arithmetic and Godel's Incompleteness Theorems
PDF
Raices primitivas
PDF
03 propsem
DOCX
Chapter 3
PPTX
CMSC 56 | Lecture 9: Functions Representations
PDF
Decomposition of continuity and separation axioms via lower and upper approxi...
PDF
Hecke Curves and Moduli spcaes of Vector Bundles
PPT
Presentation- Research Paper
PDF
PDF
Real and convex analysis
PDF
D. h. fremlin measure theory, volume 5, part 1 (2000, torres fremlin)
PDF
13 propositional calculus
PPTX
20 sequences x
PPT
Csr2011 june17 14_00_bulatov
PDF
A Note on Hessen berg of Trapezoidal Fuzzy Number Matrices
PPT
Csr2011 june17 14_00_bulatov
PDF
AI Lesson 12
14 pro resolution
Sentient Arithmetic and Godel's Incompleteness Theorems
Raices primitivas
03 propsem
Chapter 3
CMSC 56 | Lecture 9: Functions Representations
Decomposition of continuity and separation axioms via lower and upper approxi...
Hecke Curves and Moduli spcaes of Vector Bundles
Presentation- Research Paper
Real and convex analysis
D. h. fremlin measure theory, volume 5, part 1 (2000, torres fremlin)
13 propositional calculus
20 sequences x
Csr2011 june17 14_00_bulatov
A Note on Hessen berg of Trapezoidal Fuzzy Number Matrices
Csr2011 june17 14_00_bulatov
AI Lesson 12
Ad

Viewers also liked (11)

PPT
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
PPT
3 fol examples v2
PPT
Inference in first order logic12
PPTX
Jarrar: First Order Logic- Inference Methods
PPTX
Jarrar: First Order Logic
PPTX
Jarrar: Propositional Logic Inference Methods
PPT
Discrete Math Lecture 02: First Order Logic
PPT
Attacks in MANET
PPT
Predicate Logic
PPTX
Artificial Intelligence
PDF
Deep Learning - The Past, Present and Future of Artificial Intelligence
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
3 fol examples v2
Inference in first order logic12
Jarrar: First Order Logic- Inference Methods
Jarrar: First Order Logic
Jarrar: Propositional Logic Inference Methods
Discrete Math Lecture 02: First Order Logic
Attacks in MANET
Predicate Logic
Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial Intelligence
Ad

Similar to 16 1 predicate resolution (20)

PPT
firstorder_predicate_logic_resolution.ppt
PPT
Ch09.ppt dilfidsnpfpdsvklnvskv vdv;dlvd k;vsvdvk
PPT
chapter9.ppt
PPT
L03 ai - knowledge representation using logic
PPT
MCA 3rd sem Unit_III_Predicate_Logics .ppt
PDF
16_FirstOrderLogic.p_4_moduleModuleNotespdf
PPTX
1004_theorem_proving_2018.pptx on the to
PDF
A Superposition Oriented Theorem Prover
PPT
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
PDF
Theorem proving 2018 2019
PPTX
Theorem proving 2018 2019
PPT
Lec8-PredicateLogic knowledge representation.ppt
PPT
PredicateLogic or FOL for Computer Science
PPT
C2.0 propositional logic
PPTX
Resolution(decision)
PPT
Ch8-LogicalRepresentationAndReasoning.ppt
PPT
Unit III Knowledge Representation in AI K.Sundar,AP/CSE,VEC
PPT
Predlogic
PPTX
lec3 AI.pptx
firstorder_predicate_logic_resolution.ppt
Ch09.ppt dilfidsnpfpdsvklnvskv vdv;dlvd k;vsvdvk
chapter9.ppt
L03 ai - knowledge representation using logic
MCA 3rd sem Unit_III_Predicate_Logics .ppt
16_FirstOrderLogic.p_4_moduleModuleNotespdf
1004_theorem_proving_2018.pptx on the to
A Superposition Oriented Theorem Prover
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
Theorem proving 2018 2019
Theorem proving 2018 2019
Lec8-PredicateLogic knowledge representation.ppt
PredicateLogic or FOL for Computer Science
C2.0 propositional logic
Resolution(decision)
Ch8-LogicalRepresentationAndReasoning.ppt
Unit III Knowledge Representation in AI K.Sundar,AP/CSE,VEC
Predlogic
lec3 AI.pptx

More from Tianlu Wang (20)

PDF
L7 er2
PDF
L8 design1
PDF
L9 design2
PDF
12 adversal search
PDF
11 alternative search
PDF
10 2 sum
PDF
22 planning
PDF
21 situation calculus
PDF
20 bayes learning
PDF
19 uncertain evidence
PDF
18 common knowledge
PDF
17 2 expert systems
PDF
17 1 knowledge-based system
PDF
15 predicate
PDF
09 heuristic search
PDF
08 uninformed search
PDF
07 plan agent
PDF
06 robot vision
PDF
05 state machine
PDF
04 2 machine evolution
L7 er2
L8 design1
L9 design2
12 adversal search
11 alternative search
10 2 sum
22 planning
21 situation calculus
20 bayes learning
19 uncertain evidence
18 common knowledge
17 2 expert systems
17 1 knowledge-based system
15 predicate
09 heuristic search
08 uninformed search
07 plan agent
06 robot vision
05 state machine
04 2 machine evolution

Recently uploaded (20)

PPTX
SOCSCI-III-XI-SIRIUS.pptxaaaaaaaaaaaaaaa
PDF
INSEAD_Executive_Education_At-A-Glance.pdf
PDF
2025_Mohammad Mahbub KxXxáacscascsacabir.pdf
PPTX
Slides-Archival-Moment-FGCCT-6Feb23.pptx
PPTX
Imelda Ppt Improved 1 March 2021 (1) (3) (1).pptx
PPTX
CMU-WEEK-2_TOPIC_Photography_Its_Definition_Historical_Background_and_Princi ...
PPTX
arts-history-and-development-week-7.1.pptx
PDF
Annah la Javanaise_ The Truth Behind Gauguin’s Model.pdf
PDF
15901922083_ph.cology3.pdf..................................................
PPT
huyfuygkgkugi iyugib jiygi uyuyguygv uyguyv
PDF
15901922083_PQA.pdf................................
PPTX
SUBANEN DANCE DUMENDINGAN DANCE LITERATURE
PDF
lebo101.pdf biology chapter important .....
PPTX
writing ppt.pptxfbfbfghbfghbfgbfgbhbfdhgbfdhgd
PDF
Himalayan Nature and Tibetan Buddhist Culture in Arunachal -- Kazuharu Mizuno...
PPTX
Quiz GP1.pptxasasasasasassasasasasasaasa
PPTX
428591223-Social-Science-Meaning-Nature-and-Scope.pptx
PPTX
Operational Research check it out. I like this it is pretty good
PPTX
Contemporary Arts and the Potter of Thep
PPTX
PLANT CELL description and characteristics
SOCSCI-III-XI-SIRIUS.pptxaaaaaaaaaaaaaaa
INSEAD_Executive_Education_At-A-Glance.pdf
2025_Mohammad Mahbub KxXxáacscascsacabir.pdf
Slides-Archival-Moment-FGCCT-6Feb23.pptx
Imelda Ppt Improved 1 March 2021 (1) (3) (1).pptx
CMU-WEEK-2_TOPIC_Photography_Its_Definition_Historical_Background_and_Princi ...
arts-history-and-development-week-7.1.pptx
Annah la Javanaise_ The Truth Behind Gauguin’s Model.pdf
15901922083_ph.cology3.pdf..................................................
huyfuygkgkugi iyugib jiygi uyuyguygv uyguyv
15901922083_PQA.pdf................................
SUBANEN DANCE DUMENDINGAN DANCE LITERATURE
lebo101.pdf biology chapter important .....
writing ppt.pptxfbfbfghbfghbfgbfgbhbfdhgbfdhgd
Himalayan Nature and Tibetan Buddhist Culture in Arunachal -- Kazuharu Mizuno...
Quiz GP1.pptxasasasasasassasasasasasaasa
428591223-Social-Science-Meaning-Nature-and-Scope.pptx
Operational Research check it out. I like this it is pretty good
Contemporary Arts and the Potter of Thep
PLANT CELL description and characteristics

16 1 predicate resolution

  • 1. Resolution in the Predicate Calculus Chapter 16.
  • 2. 2 Outline  Unification  Predicate-Calculus Resolution  Completeness and Soundness  Converting Arbitrary wffs to Clause Form  Using Resolution to Prove Theorems  Answer Extraction  The Equality Predicate
  • 3. 3 16.1 Unification  Abbreviating wffs of the form by , where are literals that might contain occurrences of the variables  Simply dropping the universal quantifiers and assuming universal quantification of any variables in the  Clauses: WFFs in the abbreviated form  If two clauses have matching but complementary literals, it is possible to resolve them  Example: ,
  • 4. 4 16.1 Unification  Unification: A process that computes the appropriate substitution  Substitution instance of an expression is obtained by substituting terms for variables in that expression.  Four substitution instances  The first instance --- alphabetic variant.  The last of the four different variables is called a ground instance (A ground term is a term that contains no variables). ]),(,[ ByfxP ]),(,[ ]),(),([ ]),(,[ ]),(,[ BAfCP BAfzgP BAfxP BwfzP
  • 5. 5 16.1 Unification  Any substitution can be represented by a set of ordered pairs  The pair means that term is substituted for every occurrence of the variable throughout the scope of the substitution.  No variables can be replaced by a tern containing that same variable. }/,,/,/{ 2211 nnS   ii  / i i ]),(,[ ByfxP }/,/{ }/,/)({ }/{ }/,/{ 4 3 2 1 yAxCs yAxzgs yAs ywxzs     ]),(,[ ]),(),([ ]),(,[ ]),(,[ BAfCP BAfzgP BAfxP BwfzP
  • 6. 6  w s denotes a substitution instance of an expression w, using a substitution s. Thus,  The composition s1 and s2 is denoted by s1 s2, which is that substitution obtained by first applying s2 to the terms of s1 and then adding any pairs of s2 having variables not occurring among the variables of s1. Thus,
  • 7. 7 16.1 Unification   Let w be P(x,y), s1 be {f(y)/x}, and s2 be {A/y} then, and  Substitutions are not, in general, commutative  Unifiable: a set of expressions is unifiable if there exists a substitution s such that  unifies , to yield
  • 8. 8 16.1 Unification  MGU (Most general (or simplest) unifier) has the property that if s is any unifier of yielding , then there exists a substitution such that . Furthermore, the common instance produced by a most general unifier is unique except for alphabetic variants.  UNIFY  Can find the most general unifier of a finite set of unifiable expressions and that report failure when the set cannot be unified.  Basic to UNIFY is the idea of a disagreement set.  The disagreement set of a nonempty set W of expressions is obtained by locating the first symbol at which not all the expressions in W have exactly the same symbol, and then extracting from each expression in W the subexpression that begins with the symbol occupying that position.
  • 9. 9 UNIFY( ) ( is a set of list-structured expressions.) 1. (Initialization step; is the empty substitution. ) 2. If is a singleton, exit with , the mgu of . Otherwise, continue. 3. the disagreement set of . 4. If there exists elements and in such that is a variable that does not occur in , continue. Otherwise, exit with failure: is not Unifiable. 5. {note that } 6. . 7. Go to step 2 16.1 Unification    0, ,k kk       k k  kD  k kv kt kD kv kt  1 1{ / }, { / }k k k k k k k kt v t v      1 1k k k    1k k 
  • 10. 10 Predicate-Calculus Resolution  are two clauses. Atom in and a literal in such that and have a most general unifier, , then these two clauses have a resolvent, . The resolvent is obtained by applying the substitution to the union of and , leaving out the complementary literals.  Examples: { ( ), ( , )},{ ( ), ( , )} { ( , ), ( , )} { ( , ), ( ), ( )},{ ( , ), ( )} { ( ), ( ), ( )},{ ( , ), ( ), ( , )} P x Q x y P A R B z Q A y R B z P x x Q x R x P A z Q B Q A R A Q B P B B R B P A z       
  • 11. 11 Completeness and Soundness  Predicate-calculus resolution is sound  If  is the resolvent of two clauses  and , then {, }|=   Completeness of resolution  It is impossible to infer by resolution alone all the formulas that are logically entailed by a given set.  In propositional resolution, this difficulty is surmounted by using resolution refutation.
  • 12. 12 Converting Arbitrary wffs to Clause Form 1. Eliminate implication signs. 2. Reduce scopes of negation signs. 3. Standardize variables  Since variables within the scopes of quantifiers are like “dummy variables”, they can be renamed so that each quantifier has its own variable symbol. 4. Eliminate existential quantifiers.
  • 13. 13 Converting Arbitrary wffs to Clause Form  Skolem function, Skolemization:  Replace each occurrence of its existentially quantified variable by a Skolem function whose arguments are those universally quantified variables  Function symbols used in Skolem functions must be “new”.
  • 14. 14 Converting Arbitrary wffs to Clause Form  Skolem function of no arguments  Skolem form: To eliminate all of the existentially quantified variables from a wff, the proceding procedure on each subformula is used in turn. Eliminating the existential quantifiers from a set of wffs produces what is called the Skolem form of the set of formulas.  The skolem form of a wff is not equivalent to the original wff. .  What is true is that a set of formulas,  is satisfiable if and only if the Skolem form of  is. Or more usefully for purpose of resolution refutations,  is unsatisfiable if and only if the Skolem form of  is unsatifiable.
  • 15. 15 Converting Arbitrary wffs to Clause Form 5. Convert to prenex form  At this stage, there are no remaining existential quantifiers, and each universal quantifier has its own variable symbol.  A wff in prenex form consists of a string of quantifiers called a prefix followed by a quantifier-free formula called a matrix. The prenex form of the example wff marked with an * earlier is 6. Put the matrix in conjunctive normal form  When the matrix of the preceding example wff is put in conjunctive normal form, it became
  • 16. 16 Converting Arbitrary wffs to Clause Form 7. Eliminate universal quantifiers  Assume that all variables in the matrix are universally quantified. 8. Eliminate  symbols  The explicit occurrence of  symbols may be eliminated by replacing expressions of the form with the set of wffs .
  • 17. 17 Converting Arbitrary wffs to Clause Form 9. Rename variables  Variable symbols may be renamed so that no variable symbol appears in more than one clause .
  • 18. 18  To prove wff  from , proceed just as in the propositional calculus. 1. Negate , 2. Convert this negation to clause form, and 3. Add it to the clause form of . 4. Then apply resolution until the empty clause is deduced. Using Resolution to Prove Theorem
  • 19. 19 Using Resolution to Prove Theorem  Problem: the package delivery robot.  Suppose this robot knows that all of the packages in room 27 are smaller than any of the ones in room 28. 1. 2.  Suppose that the robot knows the following: 3. P(A) 4. P(B) 5. I(A,27)I(A,28) // package A is either in room 27 or in room 28 6. I(B,27) // package B is in room 27 7. S(B,A) // package B is not smaller than package A.
  • 20. 20 Using Resolution to Prove Theorem
  • 22. 22 16.7 The Equality Predicate  Equality relation: Equals(A,B) or A=B  Reflexive (x)Equals(x,x)  Symmetric (x, y)[Equals(x, y)Equals(y, x)]  Transitive ( x, y, z)[Equals(x, y)  Equals(y, z)  Equals(x, z)]
  • 23. 23 16.7 The Equality Predicate  Paramodulation(调解)  Equality-specific inference rule to be used in combination with resolution in cases where the knowledge base contains the equality predicate .  1, 2 are two clauses. If and , where , ,  are terms, where 1` are clauses, and where  is a literal containing the term , and if  and  have a most general unifier , then infer the binary paramodulant of 1 and 2: where [()] denotes the result of replacing a single occurrence of  in  by .
  • 24. 24  Prove P(B) from P(A) and (A=B)  For a refutation-style proof, we must deduce the empty clause from the clauses P(B), P(A), and (A=B).  Using paramodulation on the last two clauses,  is P(A),  is A,  is A, and  is B. Since A (in the role of ) and A (in the role of ) unify trivially without a substitution, the binary paramodulation is P(B), which is the result of replacing an occurrence of  (that is A) with  (that is B). Resolving this paramodulant with P(B) yields the empty clause.
  • 25. 25  With a slight extension to the kinds of paramodulants allowed, it can be shown that paramodulation combined with resolution refutation is complete for knowledge bases containing the equality predicate.  If an external process is able to return a truth value for an equality predicate, we can replace that predicate by T or F as appropriate. In resolution reputation, clauses containing the literal T can then be eliminated. The literal F in any clause can be eliminated.
  • 26. 26  The problem of proving that if a package, say , A, is in a particular room, say, R1, then it cannot be in a different room, say, R2.  Statements in knowledge base. (x, y, u, v)[In(x, u) (uv)]In(x, v), In(A, R1)  In attempting to prove In(A, R2). Converting the first formula into clause form yields In(x, u)(u=v)  In(x, v)  The strategy postpones dealing with equality predicates until they contain only ground terms. Resolving the clause with the negation of the wff to be proved yields (R2=V)  In(A, v).  Resolving the result with the given wff In(A,R1) yields (R2=R1).  If the knowledge base actually contains the wff (R2=R1), then it produces the empty clause, completing the refutation.
  • 27. 27 16.7 The Equality Predicate  If the reasoning involves numbers, it might need an unmanageably large set of wffs. Instead of having all wffs explicitly in the knowledge base, it would be better to provide a routine that would be able to evaluate expressions of the form (=) for all (ground)  and .  Several other relations (greater than, less than…) and functions (plus, times, divides,…) could be evaluated directly rather than reasoned about with formulas.  Evaluation of expressions is thus a powerful , efficiency- enhancing tool in automated reasoning systems.