Laura Kovács
Problem 8.1
Let f be unary, g binary, a,b,c constants, and x,y,z variables. The weight function satisfies w(s)=1 for every symbol and variable, and the precedence is g≫f≫c≫b≫a. Using KBO (extended to literals/clauses), answer:
- Do C1 and C2 make C3 redundant?
C1C2C3:a=b∨f(a)=a:f(f(x))=a:f(f(b))=b∨f(a)=a
- Does C4 make C5 redundant?
C4C5:f(g(x,a))=f(y):f(g(x,z))=f(g(y,b))∨f(g(x,b))=f(g(a,b))
- Does C6 make C7 redundant?
C6C7:g(x,y)=f(x):g(f(x),f(z))=f(f(x))∨g(a,b)=c
Solution
- Yes. Clause C3 is ground. Instantiating C2 with {x↦b} yields f(f(b))=a, and together with ground C1 these clauses entail C3. Both supporting clauses are strictly smaller than C3 under KBO, so every ground instance of C3 (namely C3 itself) is redundant.
- Yes. The ground instance f(g(a,a))=f(g(a,a)) of C4 lies in C4∗, is unsatisfiable, and is smaller than any ground instance of C5. Therefore each ground instance of C5 is redundant with respect to C4∗.
- Yes. Renaming z to y shows g(f(x),f(z))=f(f(x)) is an instance of g(x,y)=f(x). For any ground instance of C7, the literal g(f(s),f(t))=f(f(s)) is implied by the corresponding ground instance of C6 and is strictly smaller than the full clause, so C6 renders C7 redundant.
Problem 8.2
Consider the inference (in SUP, no BR):
p(h(g(d,b)))∨f(h(b))=h(g(y,y))x=f(c)∨p(x)f(h(b))=h(g(y,y))∨h(g(d,b))=f(c)
with predicate symbol p, function symbols f,g,h, constants b,c,d, and variables x,y.
- Prove the inference is sound.
- Is it a simplifying inference of SUP for some KBO? Justify.
Solution
-
Let M satisfy both premises. If M⊨f(h(b))=h(g(y,y)), the conclusion is immediate. Otherwise the second premise forces M⊨h(g(d,b))=f(c), which combined with the first premise yields M⊨p(h(g(d,b))), again making the conclusion true. Hence the inference is sound.
-
No. A simplifying inference would make at least one premise redundant given the other premise and the conclusion. However:
- Model M1 with domain {a,b}, interpreting p as false everywhere and all f,g,h results as a, satisfies C2 and the conclusion but not C1.
- Model M2 with domain {b,c,d,f,g,h}, interpreting p as the entire domain and assigning f,g,h as in the LaTeX solution, satisfies C1 and the conclusion but not C2.
Therefore neither premise becomes redundant, so the inference is not simplifying for any KBO.
Problem 8.3
Consider the superposition inference (with lθ=l′ and l′=t selected):
(rθ=t)∨Dl=rl′=t∨D
subject to l≻r, l′≻t, rθ≻t, (l=r)θ≻D, (l′=t)≻D, and a well-behaved selection function.
- Is (rθ=t)∨D≻l′=t∨D always true?
- Does l′=t∨D necessarily become redundant after applying the inference?
Solution
- No. Because ≻ is a simplification ordering, l≻r implies lθ≻rθ. Since lθ=l′, we obtain l′≻rθ. Multiset extension then gives l′=t∨D≻rθ=t∨D, so the conclusion is strictly smaller, not larger.
- No. Redundancy would require that every ground instance of l′=t∨D be entailed by smaller ground instances from the premises. When l,r,t are ground, we have l=l′ and, because rθ=t is smaller, l=r≻l′=t. Hence l′=t∨D is not larger than l=r, contradicting the ordering requirement for redundancy. Thus the premise need not become redundant.
Problem 8.4
In SUP (with BR), consider
f(a,a)=g(a)f(a,b)=g(x)∨f(x,y)=g(a)f(y,b)=g(y)∨f(x,a)=g(x)∨f(y,y)=g(z)
where f,g are function symbols, x,y,z variables, and a,b constants.
- Prove the inference is sound.
- Is it simplifying for any KBO? Justify.
Solution
- Instantiate both premises with θ={x↦a,y↦a}. Binary resolution yields f(a,a)=g(a)∨f(a,a)=g(a)∨f(a,a)=g(z). Two applications of equality factoring generate f(a,a)=g(a)∨g(a)=g(a) and then f(a,a)=g(a)∨g(a)=g(a)∨g(a)=g(a). Two equality-resolution steps reduce this to f(a,a)=g(a). Therefore the conclusion follows by sound SUP rules, so the inference is sound.
- No. A simplifying inference would make at least one premise redundant. Consider:
- Model I1 with domain {a,b}, interpreting f(x,a)=x, f(x,b)=b, and g(x)=x. Then I1⊨f(a,a)=g(a) and I1⊨f(x,a)=g(x), so I1 satisfies the second premise and the conclusion, but I1⊨f(a,b)=g(x)∨f(x,y)=g(a) for {x↦b,y↦b}; hence the first premise is not redundant.
- Model I2 with domain {a,b}, interpreting f(x,y)=a and g(x)=x. Then I2 satisfies the first premise and the conclusion but falsifies the second premise for {x↦b,y↦b,z↦b}. Therefore the second premise is not redundant either.
Thus the inference is not simplifying under any KBO.