# Resolution Theorem Proving

**Prerequisite: **

- AI | Proofs, and Inferences in Proving Propositional Theorem
- Wumpus World in Artificial Intelligence

In this article, we will discuss the inference algorithms that use inference rules. Iterative deepening search is a full search algorithm in the sense that it will locate any achievable goal. Nevertheless, if the available inference rules are insufficient, the goal is not reachable — no proof exists that employs just those inference rules. The proof in the preceding section, for example, would fail if the biconditional elimination rule was eliminated. The present part introduces resolution, a single inference rule that, when combined with any full search algorithm, gives a complete inference method.

In the wumpus universe, we start with a simplified version of the resolution rule. Take a look at the steps that led up to **the figure above **– the agent travels from [2,1] to [1,1], then to [1,2], where it smells a stink but notices no breeze. The following information has been added to the knowledge base:

We can now infer the lack of pits in [2,2] and [1,3] (remember that [1,1] is already known to be pitless) using the same approach that leads to R10 earlier:

To acquire the fact that there is a pit in [1,1], [2,2], or [3,1], we may use biconditional elimination on R3, followed by Modus Ponens on R5, as follows:

The resolution rule is now applied for the first time: the literal P2,2 in R13 resolves with the literal P2,2 in R15, yielding the resolvent.

If a pit exists in one of [1,1], [2,2], or [3,1], and it is not in [2,2], it is in [1,1] or [3,1]. Similarly, the literal P1,1 in R1 is resolved by P3,1 when compared to the literal P1,1 in R16 to R17.

In English, if a pit exists in either [1,1] or [3,1], and it is not in [1,1], it is in [3,1]. The unit resolution inference rule, l1 lk, m, is used in these last two inference stages.

where each l is a literal and l and m are complimentary literals (In other words, negation).

As a result, the unit resolution rule creates a new clause from a clause (a disjunction of literals) and a literal. A single literal, often known as a unit clause, can be understood as a disjunction of one literal.

The full resolution rule can be generalized to

where and are complementary literals. This means that when two clauses are resolved, a new clause is created that contains all of the literal from the two original clauses save the two complimentary literals.

There is one additional technical feature to the resolution rule: each literal should only appear once in the resultant clause. Factoring is the process of removing numerous copies of literal. For example, resolving with yields , which may be simplified to just A.

Consider the literal , which is complementary to the literal in the other sentence, to determine how sound the resolution rule is. If is true, then is false, and so must be true, since is supplied. If is false, then must be true because l1lk is supplied. Now, because it can be true or false, one of these conclusions must be true—exactly as the resolution rule requires.

The resolution rule is even more startling because it is the foundation for a family of full inference methods. A resolution-based theorem proving can determine if in propositional logic for any statement and . The following two subsections describe how resolution does this.