Complete Inference Rules f o r t h e Cancellation L a w s —Extended 1. Abstract— Jieh Hsiang Michael Rusinowitch Department of Computer Science CRIN ICOT Ko Sakai SUNY at Stony Brook B.P. 239 M i t a Kokusai Bldg, 2 I F Stony Brook, NY 11794 54506 Vandoeuvre-les-Nancy 1-4-28 M i t a , M i n a t o - k u U.S.A. France 108 T o k y o , Japan Introduction In many cases, specialiied inference rules which incorporate certain axioms into the inference mechanism can produce fewer redundant consequences and proofs. The most notable example more efficient is paramodulation. Inference rules for inequalities, partial orerings, special binary relations have also been found ([BIH80], [S1N73], [MaW85]). Recently there has also been considerable inference rules for the cancellation law. interests in xy =yx in ring inference rule called consequences theory. [W0M86] introduced negative paramodulation to resulting from methods provide only cancellation. These t w o inference rules, w i t h resolution and paramodulation, form i t , w i t h the Knuth-Bendix method, to prove t h a t implies The soundness of the rules is quite immediate. Stickel ((Sti84j) used an find useful However, these a complete theorem proving strategy for first order predicate calculus with cancellable. equality The only when some extra axiom operators needed is ad hoc treatments of cancellation. are right reflexivity, In this \ \ paper we present some complete sets of inference rules, which 1 can replace the cancellation axioms. Due to space limitation, 1 These inference rules are not complete and cannot eliminate the cancellation axiom from the input set of clauses. we only outline the inference theorem w i t h o u t proofs. illustrate how rules and state the main Only simple examples are given to the rules are used. The proof and more 2.2. Cancellation with Identity Similar inference rules can be designed for other types of examples will be given in the full paper. cancellation laws. an identity t 2. Inference Rules for Cancellation Laws We present inference rules for three types of cancellation with For example, in an algebraic theory w i t h for an operator /, there is the cancellation law identity: Although this law laws, the basic cancellation, cancellation w i t h identity, and is a consequence of right cancellation and left identity, it may cancellation except the null element. also be given as an independent axiom without the other two. 2.1. ([Sti84j) has demonstrated the power of incorporating this The operator + in ring theory satisfies this law, and Stickel Right Cancellation A function / is right cancellable if it satisfies the right cancellation law convenience we For only consider right cancellation is handled symmetrically. cancellation. axiom intoinference rules. W i t h this axiom, we modify rule Cl into: Left Although cancellation has only one axiom, it may lead to many resolvents and paramodulants in a resolution based theorem prover if simply treated as a clause. Replacing it w i t h inference rules ensures It is interesting to note t h a t this inference rule alone suffices In to secure completeness, i.e., resolution and paramodulation, the following we give a "rough-cut" version of the inference w i t h C I l for each operator satisfying this axiom, form a t h a t only those " r e l e v a n t " ones are generated and kept. rules. A more efficient orderings is given later. version involving We say two lists simplification and complete strategy for first order logic w i t h equality when some operators are right cancellable w i t h identity. The rule C2 can also be modified into a rule unifier such t h a t s, a = f t a for all 1. 990 REASONING Although the reduction rule is similar to ([WRC67|), there are some subtle differences. demodulation Reductions are based on a well-founded ordering, while demodulation may not be. Each reduction step reduces a clause to a "smaller" one. Reductions can be applied whenever applicable, as much as possible, without the risk of falling into an infinite loop. Paramodulation can utilize this ordering on terms and be improved to the oriented paramodulation inference rule: 3. Inference Simplification Rules with Ground-Linear Orderings where The inference rules introduced in the above section can r is be improved substantially (with completeness preserved) and restriction of with more powerful equational inference rules such as oriented other paramodulatton and paramodulants. demodulation, if a notion of simplification orderings ([Der82]) on the term structure is introduced. Let non-variable is different subterm from of D . Oriented paramodulation in the is not smaller than any literal Using T(F , X ) be the set of terms and . a paramodulation in the C. This ground-linear eliminates many simplification potential ordering to be compare literals w i t h i n a clause also restricts the cancellation the set of atoms in the language. Also let T (F ) be the set of inference rules to be performed only on the literals among the ground largest in a clause. The rules C 1 and C 2 become: terms Herbrand base. (Herbrand universe) We also consider s — t same atom. An ordering simplification ordering if h e n a n d is a ordering and t — s partial has the the as the is ordering if it is also total on a ordering monotonic subterm superterm of a term is larger than simplification I is a it preserves the substitution property, is t and which (if t <s property the term ground-linear itself). (any A simplification The most important property of these orderings is that they are wellfounded. Variations of simplification orderings have appeared in It is interesting to note t h a t if a pre dic ate-first type ground- A comprehensive discussion is in linear simplification ordering is used on the term structure [Der85]. A more detailed description of the version presented (that is, atoms are compared lexicographically first by their [Der82], [Pla78], [Pet83], Hsiang, Rusinowitch, and Sakai 991 predicate symbols, w i t h = as the smallest predicate) then no cancellation inference need be performed on any clause which contains a non-equality literal, since all equality literals are smaller than any literal w i t h non-equality predicate. Even the resolution inference rule can be restricted by the ordering (into oriented resolution). For simplicity we give the binary resolution version here. [WoM86] introduced handling cancellation. negative paramodulation for This inference rule cannot completely eliminate the cancellation axiom. A simple counterexample is the unsatisfiable set is right cancellable. Neither negative paramodulation nor paramodulation/resolution is applicable to any of the clauses. However, negative paramodulation is compatible w i t h the cancellation inference rules introduced here, and it provides for backward chaining. The inclusion of such an inference rule should further improve the efficiency of a refutational proving system involving the cancellation axioms. Oriented resolution is different from ordered resolution or ordered predicate resolution (see [ChL73]) in t h a t the ordering 5. on literals are given in a natural way. [B1H80] For example, there is References because in any ground-linear ordering. a set of clauses S is [Der82] iction can be obtained from [Der85j w i t h the inference rules , and fac- transfinite semantic inductively defined trees which Hines, "Variable involves ((HsR86j), and a a Inequalities", 5th CADE, 1980, 70-87. C. L. Chang and C. T. Lee, Symbolic Logic and N. Theorem Proving, Academic Dershowitx, "Orderings for Term N. Dershowitz, " T e r m i n a t i o n " , [HsR86] Press, Rewriting 1st RTA, LNCS J. Hsiang and M. Rusinowitch, "A New Method for completeness, M. 202, M a y , 1985, 180-224. toring. of L. Systems", J.TCS, 1 7 , 3 (1982), 279-301. and the right cancellation law if and only if contrad- proof and 1973. unsatisfiable w i t h respect to the equational axioms The Bledsoe Mechanical These inference rules yield a complete strategy: Given W. Prover for simplification [ChL73] Theorem W. Elimination and Chaining in a Resolution-based no oriented resolvents between clauses notion of notion of C -interpretations which incorporate the Establishing Refutational Completeness in Theorem P r o v i n g " , 8th CADE, O x f o r d , England, 1986, 141-152. [KnB70] D. E. K n u t h and P. B. Bendix, "Simple W o r d equality axioms and the cancellation law, is given in the full Problems in Universal Algebras", in Computational paper. Algebra, J. Leach, (ed.), Pergamon Press, 1970, The proof technique introduced in [HsR86] also enables us to eliminate the functional reflexive axioms. 263-297. The inference rules for the other cancellation axioms can be modified according to the ordering in a similar way. [MaW85] The completeness theorems are also similar. Discussion G. E. Peterson, Equality", which incorporated the cancellation laws into the inference The 12th major ICALP, Nafplion, "A Technique for Establishing Completeness Results in We presented several complete sets of inference rules mechanism. Deduction", Greece, July, 1985. [Pet83] 4. Z. M a n n a and R. Waldinger, "Special Relations in Automated advantage of these specialized SIAM J. Theorem Proving w i t h of Computing, 1 2 , 1 (1983), 82-100. [Pla78| D. A. Plaisted, "A Recursively Defined Ordering inference rules is t h a t they may produce fewer redundant for consequences and more direct proofs. Systems", UIUCDCS-R-78-943, Univ. of Illinois, We have also described ground-linear simplification orderings and how they can be use to improve inference rules in general. The cancellation Proving inference rules can also be used to Ordering ([Sti84]). 682-688. In a prototype implementation these inference rules [Sti84] 14 critical pairs rather than the usual 17. [KnB70j another way of dealing with the basic each cancellable operator, is given. This method can be extended easily to first order theory. The completeness of their of theorem. is an easy corollary our However, their approach seems to produce more REASONING Theorem Inference Prover Rules", having Comm. Partial ACM, 1973, M. Stickel, "A Case Study of Theorem Proving by Implies Ring Comutativity", 7th CADE, 1984, 248-258. [WRC67] L. Wos, G. A. Robinson, D. F. Carson and L. Shalla, completeness redundant consequences and does not seem to be efficient. 992 Rewriting Knuth-Bendix M e t h o d Discovering t h a t cancellation axioms, by adding a new function symbol for method Term J. Slagle and K. N o r t o n , "Experiments w i t h an Automatic speed up the completion process in Knuth-Bendix procedure In of Urbana, I L , 1978. [S1N73] enable us to find the canonical set for groups after generating Termination "The Concept of Demodulation in Theorem P r o v i n g " , J. ACM, 1 4 , 4 (1967), . [W0M86] L. Wos and W. McCune, "Negative P a r a m o d u l a t i o n " , 8th CADE, 1986, 229-239.
© Copyright 2026 Paperzz