Inference in Propositional Logic: Resolution — Beginner-Friendly Notes
1. What Inference Means
Given a knowledge base (set of sentences believed true), entailment asks "does logically follow?" Inference is an algorithm to compute it. Resolution is a complete inference procedure for propositional logic.
2. Key Logical Equivalences (needed for CNF)
- $P \Rightarrow Q \equiv
eg P \lor Q$ - $
eg(P \land Q) \equiv
eg P \lor
eg Q$ (De Morgan) - $
eg(P \lor Q) \equiv
eg P \land
eg Q$ - Double negation: $
eg
eg P \equiv P$ - Distributivity:
3. CNF — Conjunctive Normal Form
Resolution works on CNF: a conjunction (AND) of clauses, each clause is a disjunction (OR) of literals (atoms or negated atoms).
Example CNF: $(P \lor Q) \land (
eg P \lor R) \land (
eg Q \lor
eg R)$
Steps to CNF:
- Eliminate (use $
eg P \lor Q$). - Move $
eg$ inward (De Morgan). - Distribute over .
4. Resolution Rule (one line)
From and $(D \lor
eg P)(C \lor D)P$ cancels.
(P ∨ Q) , (¬P ∨ R) ⊢ (Q ∨ R)
5. Refutation (Proof by Contradiction) Procedure
To prove :
- Convert $KB \land
eg α$ to CNF. - Repeatedly apply resolution to generate new clauses.
- If you derive empty clause (, contradiction), then is proved (since $KB \land
eg α$ is unsatisfiable). - If no new clauses and no → $KB
ot\models α$.
Tiny example:
- → CNF: ${P,
eg P \lor Q}Q$. - Add $
eg Q{P}, {
eg P \lor Q}, {
eg Q}$. - Resolve with $
eg P \lor QQQ
eg Q□$ → proved.
6. Why Resolution Matters
- Sound: only derives entailed sentences.
- Complete: can prove any (with refutation).
- Basis for many SAT solvers and for first-order resolution later.
7. One-Line Summary
Propositional resolution converts $KB \land
eg αKB \models α$.
8. Quick Self-Check
- Convert to CNF.
- Resolve with $(
eg P \lor
eg Q)$ — what do you get?