Skip to main content

A Modular Equational Generalization Algorithm

  • Conference paper
Logic-Based Program Synthesis and Transformation (LOPSTR 2008)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 5438))

Abstract

This paper presents a modular equational generalization algorithm, where function symbols can have any combination of associativity, commutativity, and identity axioms (including the empty set). This is suitable for dealing with functions that obey algebraic laws, and are typically mechanized by means of equational atributes in rule-based languages such as ASF+SDF, Elan, OBJ, Cafe-OBJ, and Maude. The algorithm computes a complete set of least general generalizations modulo the given equational axioms, and is specified by a set of inference rules that we prove correct. This work provides a missing connection between least general generalization and computing modulo equational theories, and opens up new applications of generalization to rule-based languages, theorem provers and program manipulation tools such as partial evaluators, test case generators, and machine learning techniques, where function symbols obey algebraic axioms. A Web tool which implements the algorithm has been developed which is publicly available.

This work has been partially supported by the EU (FEDER) and the Spanish MEC/MICINN under grant TIN 2007-68093-C02-02, Integrated Action HA 2006-0007, UPV PAID-06-07 project, and Generalitat Valenciana under grants GVPRE/2008/113 and BFPI/2007/076; also by NSF Grant CNS 07-16638.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Aït-Kaci, H., Sasaki, Y.: An Axiomatic Approach to Feature Term Generalization. In: Flach, P.A., De Raedt, L. (eds.) ECML 2001. LNCS, vol. 2167, pp. 1–12. Springer, Heidelberg (2001)

    Chapter  Google Scholar 

  2. Alpuente, M., Escobar, S., Meseguer, J., Ojeda, P.: A modular Equational Generalization Algorithm. Technical Report DSIC-II/6/08, DSIC-UPV (2008)

    Google Scholar 

  3. Alpuente, M., Escobar, S., Meseguer, J., Ojeda, P.: Order–Sorted Generalization. Electr. Notes Theor. Comput. Sci. (to appear) (2008)

    Google Scholar 

  4. Alpuente, M., Falaschi, M., Vidal, G.: Partial evaluation of functional logic programs. ACM Trans. Program. Lang. Syst. 20(4), 768–844 (1998)

    Article  Google Scholar 

  5. Alpuente, M., Lucas, S., Hanus, M., Vidal, G.: Specialization of functional logic programs based on needed narrowing. TPLP 5(3), 273–303 (2005)

    MathSciNet  MATH  Google Scholar 

  6. Baader, F., Snyder, W.: Unification theory. In: Handbook of Automated Reasoning. Elsevier, Amsterdam (1999)

    Google Scholar 

  7. Belli, F., Jack, O.: Declarative paradigm of test coverage. Softw. Test., Verif. Reliab. 8(1), 15–47 (1998)

    Article  Google Scholar 

  8. Bergstra, J.A., Heering, J., Klint, P.: Algebraic Specification. ACM Press, New York (1989)

    MATH  Google Scholar 

  9. Borovanský, P., Kirchner, C., Kirchner, H., Moreau, P.-E.: ELAN from a rewriting logic point of view. Theoretical Computer Science 285, 155–185 (2002)

    Article  MathSciNet  MATH  Google Scholar 

  10. Boyer, R., Moore, J.: A Computational Logic. Academic Press, London (1980)

    MATH  Google Scholar 

  11. Clavel, M., Durán, F., Eker, S., Lincoln, P., Martí-Oliet, N., Meseguer, J., Talcott, C.: All About Maude - A High-Performance Logical Framework. Springer, New York (2007)

    MATH  Google Scholar 

  12. Clavel, M., Palomino, M.: The ITP tool’s manual. Universidad Complutense, Madrid (April 2005), http://maude.sip.ucm.es/itp/

  13. Cortier, V., Delaune, S., Lafourcade, P.: A Survey of Algebraic Properties used in Cryptographic Protocols. Journal of Computer Security 14(1), 1–43 (2006)

    Article  Google Scholar 

  14. Diaconescu, R., Futatsugi, K.: CafeOBJ Report. AMAST Series in Computing, vol. 6. World Scientific, Singapore (1998)

    MATH  Google Scholar 

  15. Escobar, S., Meseguer, J., Thati, P.: Narrowing and rewriting logic: from foundations to applications. Electr. Notes Theor. Comput. Sci. 177, 5–33 (2007)

    Article  MATH  Google Scholar 

  16. Escobar, S., Meadows, C., Meseguer, J.: A rewriting-based inference system for the NRL Protocol Analyzer and its meta-logical properties. Theoretical Computer Science 367(1-2), 162–202 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  17. Gallagher, J.P.: Tutorial on specialisation of logic programs. In: Proc. PEPM 1993, pp. 88–98. ACM, New York (1993)

    Google Scholar 

  18. Goguen, J., Winkler, T., Meseguer, J., Futatsugi, K., Jouannaud, J.-P.: Introducing OBJ. In: Software Engineering with OBJ: Algebraic Specification in Action, pp. 3–167. Kluwer, Dordrecht (2000)

    Chapter  Google Scholar 

  19. Huet, G.: Resolution d’Equations dans des Langages d’Order 1, 2,...,ω. PhD thesis, Univ. Paris VII (1976)

    Google Scholar 

  20. Kaufmann, M., Manolios, P., Moore, J.S.: Computer-Aided Reasoning: An Approach. Kluwer, Dordrecht (2000)

    Google Scholar 

  21. Lassez, J.-L., Maher, M.J., Marriott, K.: Unification Revisited. In: Minker, J. (ed.) Foundations of Deductive Databases and Logic Programming, pp. 587–625. Morgan Kaufmann, Los Altos (1988)

    Chapter  Google Scholar 

  22. Meseguer, J.: Conditioned rewriting logic as a united model of concurrency. Theor. Comput. Sci. 96(1), 73–155 (1992)

    Article  MATH  Google Scholar 

  23. Meseguer, J.: Membership algebra as a logical framework for equational specification. In: Parisi-Presicce, F. (ed.) WADT 1997. LNCS, vol. 1376, pp. 18–61. Springer, Heidelberg (1998)

    Chapter  Google Scholar 

  24. Mogensen, T.Æ.: Glossary for partial evaluation and related topics. Higher-Order and Symbolic Computation 13(4) (2000)

    Google Scholar 

  25. Muggleton, S.: Inductive Logic Programming: Issues, Results and the Challenge of Learning Language in Logic. Artif. Intell. 114(1-2), 283–296 (1999)

    Article  MATH  Google Scholar 

  26. Østvold, B.: A functional reconstruction of anti-unification. Technical Report DART/04/04, Norwegian Computing Center (2004), http://publications.nr.no/nr-notat-dart-04-04.pdf

  27. Pfenning, F.: Unification and anti-unification in the calculus of constructions. In: Proc. LICS 1991, pp. 74–85. IEEE Computer Society, Los Alamitos (1991)

    Google Scholar 

  28. Plotkin, G.D.: A note on inductive generalization. In: Machine Intelligence, vol. 5, pp. 153–163. Edinburgh University Press (1970)

    Google Scholar 

  29. Plotkin, G.D.: A structural approach to operational semantics. J. Log. Algebr. Program. 60-61, 17–139 (2004)

    Article  MathSciNet  MATH  Google Scholar 

  30. Popplestone, R.J.: An experiment in automatic induction. In: Machine Intelligence, vol.  5, pp. 203–215. Edinburgh University Press (1969)

    Google Scholar 

  31. Reynolds, J.: Transformational systems and the algebraic structure of atomic formulas. Machine Intelligence 5, 135–151 (1970)

    MathSciNet  MATH  Google Scholar 

  32. Siekmann, J.H.: Unification Theory. Journal of Symbolic Computation 7, 207–274 (1989)

    Article  MathSciNet  MATH  Google Scholar 

  33. TeReSe (ed.): Term Rewriting Systems. Cambridge University Press, Cambridge (2003)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Alpuente, M., Escobar, S., Meseguer, J., Ojeda, P. (2009). A Modular Equational Generalization Algorithm . In: Hanus, M. (eds) Logic-Based Program Synthesis and Transformation. LOPSTR 2008. Lecture Notes in Computer Science, vol 5438. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-00515-2_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-00515-2_3

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-00514-5

  • Online ISBN: 978-3-642-00515-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics