Graduate

GraduateMathematical Logic and FoundationsPropositional Logic


Resolution


Resolution is a fundamental rule of inference used in propositional logic and automated theorem proving. It plays an important role in logic programming and forms the basis of the programming language Prolog. The technique is based on the principle of refutation, where one proves the impossibility of a proposition by assuming its negation and obtaining a contradiction. In propositional logic, resolution is used to derive a conclusion by resolving a set of clauses.

Basics of propositional logic

In propositional logic, we deal with propositions, which are statements that can be true or false. These propositions are represented by propositional variables such as p, q, r, etc. Combined propositions are formed using logical connectives such as AND (), OR (), NOT (¬), IMPLIES (), and EQUIVALENT ().

A literal is either a propositional variable or the negation of a propositional variable. A clause is a disjunction of a literal. For example, the clause (p ∨ ¬q ∨ r) contains the literals p, ¬q, and r.

The central concept in solution is the solution rule, which allows us to deduce a new clause from two existing clauses that contain complementary literals. Complementary literals are pairs, such as p and ¬p, that are negations of each other.

Resolution rules

The solution rule can be formally expressed as follows:

C1: (A ∨ X)
C2: (¬x ∨ b)
,
Answer: (A ∨ B)

Here, C1 and C2 are clauses containing letters x and ¬x, respectively. The clause (A ∨ B) is the result of solving these two clauses on the letter x.

Consider the following example:

C1: (p ∨ q)
C2: (¬q ∨ r)
,
Res: (P ∨ R)

In this case, the literal q in C1 and ¬q in C2 are complemented. The solution result is (p ∨ r).

Conjunctive normal form (CNF)

To use the solution effectively, propositions must be converted into a specific form known as conjunctive normal form (CNF). A formula is in CNF if it is a conjunction of one or more clauses, where each clause is a disjunction of literals.

Converting a logical formula to CNF involves a series of equivalence transformations:

  • Eliminate implications and equivalences using logical equivalences such as:
            p → q ≡ ¬p ∨ q
            p ↔ q ≡ (p → q) ∧ (q → p)
    
  • Move the NOTs inwards using De Morgan's laws and double negation:
            ¬(p ∧ q) ≡ ¬p ∨ ¬q
            ¬(p ∨ q) ≡ ¬p ∧ ¬q
            ¬¬P ≡ P
    
  • Distribute the OR over the AND, making sure that all clauses become disjunctions of literal terms.

Example of conversion to CNF

Consider the formula:

 (P → Q) → (Q → R)

Step 1: Eliminate the implications:

 ¬(¬p∨q) ∨ (¬q∨r)

Step 2: Apply De Morgan's Laws:

 (p ∧ ¬q) ∨ (¬q ∨ r)

Step 3: Deliver:

 (p ∨¬q) ∧ (p ∨r)

Now, the formula is in CNF.

Example of a solution in propositional logic

Let us consider an example of how resolution can be used to solve a logic problem:

The following statements are given:

  1. If it is raining, then the ground is wet. (R → W)
  2. If the ground is wet, the sky is cloudy. (W → C)
  3. There are no clouds in the sky. (¬C)

Prove that it is not raining. (¬R)

Represent each statement in CNF:

  • ¬R ∨ W (derived from R → W)
  • ¬W ∨ C (derived from W → C)
  • ¬C

To prove ¬R, add the negation of the conclusion as an assumption and resolve the contradiction:

Add R to the set.

Solution:

1. R
2.¬R ∨ W
3. ¬W ∨ C
4. ¬C

Solve (1) R and (2) ¬R ∨ W:

 5. W
Solve (5) W and (3) ¬W ∨ C:
 6. C
(6) C contradicts (4) ¬C. Therefore, assumption R must be false, so ¬R is true.

Properties of resolution

Resolution has several important properties that make it a powerful tool in automated theorem proving:

  • Soundness: If a clause emerges from the solution rule, then that clause is logically implied by the initial set of clauses.
  • Completeness: If a set of clauses is unsatisfiable (that is, they cannot all be true at the same time), then the solution can reflect that unsatisfiability.
  • Refutation completeness: If a contradiction can be derived from a set of clauses, then the solution will eventually find it.

Complexity and limitations

Although resolution is a powerful technique, it is important to note its limitations:

  • Exponential growth: The space of possible segments can grow exponentially in size, making solutions computationally expensive for large problems.
  • Restricted to CNF: Since the solution works on CNF, any problem must be transformed into this form, which can sometimes involve a large number of clauses.

Visual representation of resolution

To make the solution more clear, let's look at a simple diagrammatic representation. Consider these sentences:

A (A ∨ B) ¬B
(A ∨ B) ¬B A

The solution step A combines (A ∨ B) and (¬B) to make a conjecture.

Solution strategies

In practice, a number of strategies and optimizations are employed to efficiently use the solution. These strategies aim to control the order and method in which clauses are solved, often based on heuristics or specific algorithms.

  • Unit solution: This involves prioritizing single letter blocks, known as unit blocks, in order to simplify and rapidly reduce the size of the problem.
  • Input resolution: ensures that resolution is performed between a segment of the original set and a newly derived segment, thereby reducing complexity.
  • Set of support strategy: focuses on reducing the search space by solving clauses only within a specified subset, often used in interactive theorem proving.

Applications in computer science

Resolution is widely used in computer science disciplines, particularly in areas such as artificial intelligence and logic programming. Its main applications include:

  • Automated theorem proving: As a primary technique in proof systems and automated reasoning tools, solution proving helps verify the validity of logical statements.
  • Logic programming: Solution theory is the basis of languages such as Prolog, where logical relations are resolved to form computation questions.
  • Satisfiability solvers: Modern SAT solvers apply solution-based strategies to determine whether a propositional formula can be satisfied.

Conclusion

Resolution in propositional logic is a robust and compelling method for logical reasoning. By leveraging the power of inference through the resolution rule, it provides a systematic approach to proving the validity or contradiction of statements expressed in propositional logic. While its application in real-world scenarios can be computationally intensive, its theoretical basis holds immense value for understanding logical systems and developing practical, automated tools in computer science.

Solution inference provides great insight into the logical structure of problems, making it possible to construct efficient algorithms for tackling complex logical reasoning tasks, and it remains an important area of study in mathematics and computer science.


Graduate → 8.1.4


U
username
0%
completed in Graduate


Comments