Laura Kovács
Problem 5.1
Show that positive factoring in the binary resolution system BR can be simulated using superposition inferences (ignoring selection functions).
Solution
Interpret non-equality literals as equalities to a special constant ⊤. The positive factoring rule
p∨Cp∨p∨C(BR)can be emulated by first applying equality factoring
p=⊤∨⊤=⊤∨Cp=⊤∨p=⊤∨C(EF)and then equality resolution
p=⊤∨Cp=⊤∨⊤=⊤∨C(ER).Thus the factored clause is obtained solely via superposition rules.
Problem 5.2
Let ≻ be a KBO with precedence inverse≫times. Compare the sides of
inverse(times(x,y))=times(inverse(y),inverse(x))
under ≻ when:
- weight(inverse)=weight(times)=1
- weight(inverse)=0 and weight(times)=1
Solution
- The left-hand side has weight 2+weight(x)+weight(y); the right-hand side has weight 3+weight(y)+weight(x), so times(inverse(y),inverse(x))≻inverse(times(x,y)).
- Both sides have weight 1+weight(x)+weight(y). Precedence tie-breaking gives inverse≫times, hence inverse(times(x,y))≻times(inverse(y),inverse(x)).
Problem 5.3
Let Σ contain only function symbols and at least one constant. With precedence ≫ and weight function w compatible with ≫, describe the ground terms of minimal weight under the induced KBO.
Solution
The minimal-weight ground terms are:
- Constants c∈Σ of minimal weight among all constants, and
- Terms of the form fn(c) with n>0, where c is such a minimal-weight constant and w(f)=0.
Problem 5.4
Consider the clause set
(1)(2)(3)(4)g(f(a))=a∨g(f(b))=af(a)=af(b)=f(b)∨f(b)=ag(a)=a
Show that S={(1),(2),(3),(4)} is unsatisfiable by saturating with the ground superposition calculus SUP≻,σ (including ground binary resolution) for a well-behaved σ, under:
- ≻ generated by f≫a≫g≫b with w(f)=0, w(a)=2, w(g)=3, w(b)=1
- ≻ generated by g≫a≫b≫f with w(g)=0, w(a)=3, w(f)=1, w(b)=1
State the selected literals and maximal terms.
Solution
Selected literals (underlined) and maximal terms (double underlined):
- Ordering f≫a≫g≫b:
- (1)g(f(a))=a∨g(f(b))=a
- (2)f(a)=a
- (3)f(b)=f(b)∨f(b)=a
- (4)g(a)=a
- Equality resolution on (3) gives (5)f(b)=a.
- Superposition of (2) into (1) yields (6)g(a)=a∨g(f(b))=a.
- Resolving (6) with (4) produces (7)g(f(b))=a.
- Superposition of (4) into (5) yields (8)g(f(b))=a.
- Resolving (7) and (8) produces □.
- The same comparisons hold for the second ordering, so the derivation repeats and again yields □.
Problem 5.5
Let ≻ be the KBO with precedence f≫a≫b≫c and weights w(f)=w(a)=w(b)=w(c)=1. For the clause set
(1)(2)(3)a=b∨a=cf(a)=f(b)b=c
show that saturation under SUP≻,σ (with ground binary resolution and well-behaved σ) derives a contradiction while generating only four new clauses.
Solution
Underline selected literals and double-underline maximal terms:
- (1)a=b∨a=c
- (2)f(a)=f(b)
- (3)b=c
Steps:
- Equality factoring on (1) yields (4)a=b∨b=c.
- Binary resolution of (3) and (4) produces (5)a=b.
- Superposition of (2) with (5) yields (6)f(b)=f(b).
- Equality resolution on (6) gives (7)□.
Exactly four derived clauses—(4) through (7)—are generated before the contradiction appears.