Lecture 3 Exercises
Laura Kovács
Problem 3.1
Let be a sound inference system on clauses and let be a non-empty set of clauses. Consider a fair -inference process
and let denote its limit. Show that is the -closure of .
Note. Prove that is the smallest -saturated set containing . Recall the property from the lecture that every is a subset of the -closure of .
Solution
We prove three statements.
-
is saturated. Suppose not. Then there are and an inference
with . Because each is persistent, all appear from some index onward. Fairness ensures is eventually derived, hence , a contradiction.
-
Every -saturated superset of contains . Let be saturated with . We show by induction on that .
- Base: holds by assumption.
- Step: assume . If we are done. Otherwise the new clause in is inferred from premises in . By the induction hypothesis the premises lie in , and saturation of implies . Thus . As , we conclude .
-
Combining (1) and (2), is saturated, contains , and is contained in every saturated set containing . Therefore it is the smallest such set, i.e., the -closure of .
Problem 3.2
Let be a total well-founded ordering on ground non-equality atoms, and use the same symbol for the induced literal ordering. Let and be ground clauses without equality literals. Denote by and the maximal atoms of and (with respect to ). Assume and are the same atom syntactically, that occurs negatively in , and that occurs only positively in . Show that .
Solution
Since and are the same atom, is also maximal in . Because occurs only positively in , every other literal in satisfies under the literal ordering. Hence the multiset extension yields .
By assumption occurs only negatively in , so is a literal of and is maximal there: for every other atom we have . Thus is the top literal of . Since and is the maximal literal in , the bag extension ordering gives .
Problem 3.3
Let and be strict well-founded orderings on sets and . Define an ordering on by
Show that is well-founded.
Solution
Assume for contradiction that admits an infinite descending chain
Examining the first components, each transition either decreases strictly in or keeps the first component equal. Because is well-founded, the sequence has a minimal element: there is such that for all . Hence for we must have , and the definition of forces . That yields an infinite descending -chain, contradicting well-foundedness of . Therefore is well-founded.
Problem 3.4
Let be a total well-founded ordering on the ground atoms with . Consider the bag extension of (denoted again by ). Using this ordering, compare and order the clauses
Solution
Since is total, for we have and . In particular , , , and , .
For multisets, if then , so and . Combining the comparisons yields
By transitivity,