Proceedings

Associative Commutative Pattern Matching

Download BibTeX Cite

Proceedings of the Sixth International Joint Conference on Artificial Intelligence. .

© 1979 International Joint Conferences on Artificial Intelligence

Abstract

Plotkin [10] has opened the way to the design of unification alRorithm i ncorporating equality axioms and their use in complete proof systems. In particular he gives ~omplete unificati 0n algorithms for terms containing associative function s~hols and for an arithmetic theor y . Huet gives in [18] a unification algorithm for ~-conversion and discusses in [19] Reneral prop ~ rties of complete set of unifiers. A complete and finite alRorithm for unification with associative commutative function symbols is given in Stickel [14] and Lanyford shows in [22] how to ex tend it to abelian group theory. Various other specific unification problems are d i scussed in [ 9,15, 23], In the case of equational theories which possess a complete set of reductions as de f ined in Knuth-Bendix [7], Fay has given in [20,21] a general unification algorithm, We are interested in this paper in the special case of commutative associative fun~tion symbols, We first study the equivalence problem which is reduced to regognizing the equal i ty of two multiset representations. In the same way, matching reduces to generating ordered partit i ons of a multiset, This generation is carried out by two processe~ operating on tree data structure s spanning the lattice of partitions. Cardinality conditions inherited from the matching pr 0 blem are used to cut the search drastically : our processes operate bidirectionnally in a cor o ut i ne mauner, each one trimming sub-structures from both search spaces. The two processes are formally defined by a unique recursive definition, and their computations correspond to a call- ~ y need interpretation of this definition. The correctness of the method is proved formally. This basic organization is used to derive a new algorithm for associative commutative unification improving over Stickel [14]. 1 '~e have programmed in LISP all these algorithms, using 11niversity of Vincennes's V-LISP system [3], We have applied them to the Stickel-Peterson's generali:!:ation of the Knuth and Bendix extension algorithm [7,8,16], Their alp.orithm relies on associativecommutative unification for the computation of critical pairs, hut also most critically O il associative-commutative match, in order to reduce terms to their normal forms. ~tickel and Peterson proposed to use unification for matching, hut this leads to unnecessary inefficienc i es that preclude the practical use of their method, Fe give in the Appendix running times on a DEC KLIO using the VLISP system, correspondinp, to some of their examples, Most proofs are omitted in this version, the full paper is available as a techn i cal report [24],

  1. E. BALAS: "An additive a l gorithm for solvin~ linear programs with zero one variables". Op. Roo. 13 ( 1965).
  2. V.J. BOW/IAN & J.H. STARR : "Partial orderingl in impli- cit enUD!eration" An. of discr. math. 1 (1977).
  3. J. CHAILLOUX : VLISP 10.3 manuel de rfffrence Uni. Paris 8, Vincennes (1978). '
  4. P. GREUSSAY : "Contribution 1 la dEfinition interprHa- t i ve et .a 1 'implfmentation des lambda-lanaagea,.. Thfae n 78-2, Paris 7(1977).
  5. G. HUET : "An algorithm to generate the basi• of solu- tiona to hoa\Ogeneous linear diophantine equations". Inf . Proc. Let.7, 3 April 78.
  6. G. HUET : "Confluent reductions : Abstract properties and Application• to tenn rewritin~ systems" In J't'oc. of the 18th Symposium on FOCS (1977). .
  7. D. E. KNUTH & P.B. BENDIX : "~imple vord problems in uni- versal Algebras". In Leech, J.(Ed . ), Col"p. problema in Abstract Algebras. Perga11101on Press, 1970.
  8. D.S. LA!/KF()RD & A.M. BALLANTYNE : "Decision procedures for simple equational theories with commutative-associa- tive axioma : co~lete sets of commutative associative reductions''. Tech. rep. MAth. dept. U. of Texas at Austin, ATP 39 (1977).
  9. M. UVESEY & J. SIF:KJ.IMIN : "Unification of A+C-terma (hags) and A+C+I-terms (sets)". Int. Ber. Nr 3176, Inat. fur Inf. I, Universitat ~~rlsruhe.
  10. l G. PLOTKIN : "Building in equational theories" In l'elt- z~r & Michie(Ed) Machine Intelligence 7 ~dinburgh University Pr••• 1972.
  11. I r l R. REBIJH & E. SACERDOTI : "A oreliminary Q-LISP l'anual". Tech . note 81, SRI, Menlo Park, 1973.
  12. J.F. RULIFSON, J.A. DERKSEN~ R.o! . W .4LD!NGER : "llA4 : a procedural calculus for intuitive reasonning''. •Tech. Note 71, SRI, Menlo Park, 1972. }o(2 36" 4' 13' 412 lll + ~I u2 + ~I ul +~2 -u2 + ~2 I" 21" 25" 45" 49" 2" I I 20 11 I I 37" 4 1 30 11 4'47" 5" 5'5" 6'35" 14'35" 16'5" I
  13. !.R. SLAGlE : "Automated Theorem proving for theories with simplifiers commutativity and assoc i ativity " , J, ACM 21,4 (1974).
  14. M.E. STICKEL : "A complete unification algorithm for as- sociative-commutative functions". Proc. of the 4th IJCAI Tbilisi (1975). IJCAI
  15. M.E. STICKEL : "Unification algorithms for artificial intelligence languages" Ph.D. Carnegie ~ellon, Pittsburgh, Penn (197~).
  16. M.F:. STICKEL & G. E. PETERSON: "Complete sets of reduc- tions for equational theories 11 1J. of Arizone. Techn. Report ( 197a).
  17. J. VU:LLEMIN : "A data structure for manipulating prio- rity queues" C. ACM Vol 21 (4)(1978).
  18. G. HUET : "A unification Algorithm f o r typed ~-calculus" 1 Theo. Com. Science I (1975).
  19. G. HUET: "Resolution d'fquations dans les langages d'ordre 1,2,•••,w': Thhe d'Etat II. Paris VII ( 1976).
  20. M.,r. FAY : "First order unification in equational theo- ries"Tech. Report N-78-5-002 U. of C•lifornia ~"nta-Cru z (1978).
  21. M.JFAY : "First order unification in equational theories!' Fourth Workahop on automated deduction ~ustin Texaa(1979~
  22. D. LANKFORD : "A unification algorithm for ahelian p,roup • theory"Report MRP1. Dep. of !lath. Louisiana Tech. tJni.
  23. M. LIVESEr, .:. SIECY.MANN, P. SZABO, F. U/IVEPEf.HT : l'nifi:.. cation problems for combinations of associativity, com-• mutativity, distributivity and idempotence axioms. Fourth Workshop on automated deduction. Austin Texas Feb.(l979)
  24. J.M. HULLOT : "Associative-cOII'allutative pattern matching"' Report IRIA-LABORIA to appear (1979).

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards