AIFA 5 Predicate Logic Resolution 040923
AIFA 5 Predicate Logic Resolution 040923
04/09/2023
Sudeshna Sarkar
Arnab Sarkar
Koustav Rudra
Conversion to Normal Form
• A formula is said to be in clause form if it is of the form:
• ∀!"∀!#… ∀!$ [C1∧C2 ∧… ∧Ck]
• Each of these clauses could be disjunction of some predicates
• ∃!" ∀! {~p(x) ∨ { ∃# 𝑞 𝑥, 𝑦 ∧ ~𝑝 𝑓 𝑥1 ∧ ∀$ ~𝑞 𝑥, 𝑧 ∨𝑝 𝑥 }}
• Pick out leftmost ∃# B(y) and replace it by B(F(xi1, xi2,…, xin)), where:
• xi1, xi2,…, xin are all the distinct free variables of ∃# B(y) that are universally quantified to the
left of ∃# B(y), and
• F is any n-ary function constant which does not occur already
• ∀! {~p(x) ∨ { 𝑞 𝑥, 𝑔(𝑥) ∧ ~𝑝 𝑓 𝑎 ∧ ∀% ~𝑞 𝑥, 𝑧 ∨𝑝 𝑥 }}
Conversion to Normal Form
• Step7: Move all universal quantifiers to the left
• ∀! {~p(x) ∨ { 𝑞 𝑥, 𝑔(𝑥) ∧ ~𝑝 𝑓 𝑎 ∧ ∀% ~𝑞 𝑥, 𝑧 ∨𝑝 𝑥 }}
• ∀! ∀% {~p(x) ∨ { 𝑞 𝑥, 𝑔(𝑥) ∧ ~𝑝 𝑓 𝑎 ∧ ~𝑞 𝑥, 𝑧 ∨𝑝 𝑥 }}
• Right side we have a set of predicates that are quantified from outside
Conversion to Normal Form
• Step8: Distribute ∧ over ∨
• ∀! ∀% {~p(x) ∨ { 𝑞 𝑥, 𝑔(𝑥) ∧ ~𝑝 𝑓 𝑎 ∧ ~𝑞 𝑥, 𝑧 ∨𝑝 𝑥 }}
• Right side we have a set of predicates that are quantified from outside
• Use Boolean algebra to get CNF
Resolution Refutation Proof
Procedure for Resolution
• Convert the set of rules and facts into clause form (conjunction of clauses)
• Insert the negation of the goal as another clause
• Use resolution to deduce a refutation
• If the refutation is obtained then the goal can be deduced from the set of facts and
rules
• 𝜑 : F1∧F2∧…∧FnàG
• 𝜑 : ~(F1∧F2∧…∧Fn)∨G Valid
• Unit clause
• A clause that does not have any OR
• It just has one predicate or its negation
• Incomplete in general
• There might be cases that can’t be deduced using unit resolution but can be
deduced using other resolution methods
• Incomplete in general
• Find them in appropriate order in which to apply them to deduce clauses and goals
Thank You