Skip to main content
Log in

Equational formulas and pattern operations in initial order-sorted algebras

  • Original Article
  • Published:
Formal Aspects of Computing

Abstract

A pattern t, i.e., a term possibly with variables, denotes the set (language) \({\llbracket t \rrbracket}\) of all its ground instances. In an untyped setting, symbolic operations on finite sets of patterns can represent Boolean operations on languages. But for the more expressive patterns needed in declarative languages supporting rich type disciplines such as subtype polymorphism, untyped pattern operations and algorithms break down. We show how they can be properly defined by means of a signature transformation \({\Sigma \mapsto \Sigma^{\#}}\) that enriches the types of \({\Sigma}\). We also show that this transformation allows a systematic reduction of the first-order logic properties of an initial order-sorted algebra supporting subtype-polymorphic functions to equivalent properties of an initial many-sorted (i.e., simply typed) algebra. This yields a new, simple proof of the known decidability of the first-order theory of an initial order-sorted algebra.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Alpuente M, Escobar S, Espert J, Meseguer J (2014) A modular order-sorted equational generalization algorithm. Inf Comput 235: 98–136

    Article  MathSciNet  MATH  Google Scholar 

  2. Comon H, Delor C (1994) Equational formulae with membership constraints. Inf Comput, 112(2): 167–216

    Article  MathSciNet  MATH  Google Scholar 

  3. Clavel M, Durán F, Eker S, Meseguer J, Lincoln P, Martí-Oliet N, Talcott C (2007) All about Maude. In: LNCS, vol 4350. Springer, Berlin

  4. Comon H, Dauchet M, Gilleron R, Löding C, Jacquemard F, Lugiez D, Tison S, Tommasi M (2007) Tree automata techniques and applications. http://www.grappa.univ-lille3.fr/tata. Release 12 Oct 2007

  5. Comon H, Lescanne P (1989) Equational problems and disunification. J Symb Comput 7: 371–425

    Article  MathSciNet  MATH  Google Scholar 

  6. Comon H (1990) Equational formulas in order-sorted algebras. In: Proceedings of the ICALP’90. LNCS, vol 443. Springer, Berlin, pp 674–688

  7. Ehrig H, Mahr B (1985) Fundamentals of algebraic specification 1. Springer, Berlin

    Book  MATH  Google Scholar 

  8. Futatsugi K, Diaconescu R (1998) CafeOBJ Report. World Scientific, Singapore

    MATH  Google Scholar 

  9. Fernández M (1998) Negation elimination in empty or permutative theories. J Symb Comput 26(1): 97–133

    Article  MathSciNet  MATH  Google Scholar 

  10. Goguen J, Burstall R (1992) Institutions: abstract model theory for specification and programming. J. ACM 39(1): 95–146

    Article  MathSciNet  MATH  Google Scholar 

  11. Goguen J, Meseguer J (1992) Order-sorted algebra I: equational deduction for multiple inheritance, overloading, exceptions and partial operations. Theor Comput Sci 105: 217–273

    Article  MathSciNet  MATH  Google Scholar 

  12. Guttag J (1975) The specification and application to programming of abstract data types. Ph.D. thesis, University of Toronto. Computer Science Department, Report CSRG-59

  13. Goguen J, Winkler T, Meseguer J, Futatsugi K, Jouannaud JP (2000) Introducing OBJ. In: Software engineering with OBJ: algebraic specification in action. Kluwer, Dordrecht, pp 3–167

  14. Hudak P, Hughes J, Peyton Jones SL, Wadler P (2007) A history of haskell: being lazy with class. In: Proceedings of the third ACM SIGPLAN history of programming languages conference (HOPL-III). ACM, New york, pp 1–55

  15. Lassez JL, Maher M, Marriott K (1991) Elimination of negation in term algebras. In: Mathematical foundations of computer science. Springer, Berlin, pp 1–16

  16. Lassez JL, Marriott K (1987) Explicit representation of terms defined by counter examples. J Autom Reason 3(3): 301–317

    Article  MATH  Google Scholar 

  17. Maher MJ (1988) Complete axiomatizations of the algebras of finite, rational and infinite trees. In: Proceedings of the LICS’88. IEEE Computer Society, Silver Spring, pp 348–357

  18. Maher MJ (1988) Complete axiomatizations of the algebras of finite, rational and infinite trees. Technical report, IBM T. J. Watson Research Center

  19. Meseguer J (1992) Conditional rewriting logic as a unified model of concurrency. Theor Comput Sci 96(1): 73–155

    Article  MathSciNet  MATH  Google Scholar 

  20. Meseguer J (1998) Membership algebra as a logical framework for equational specification. In: Proceedings of the WADT’97. In: LNCS, vol 1376. Springer, Berlin, pp 18–61

  21. Meseguer J (2016) Variant-based satisfiability in initial algebras. In: Artho C, Ölveczky PC (eds), proc. FTSCS 2015. Springer CCIS 596, pp 1–32

  22. José Meseguer, Joseph Goguen, Gert Smolka (1989) Order-sorted unification. J Symb Comput 8: 383–413

    Article  MathSciNet  MATH  Google Scholar 

  23. Meseguer J, Palomino M, Martí-Oliet N (2008) Equational abstractions. Theor Comput Sci 403(2–3):239–264

  24. Meseguer J, Skeirik S (2015) Equational formulas and pattern operations in initial order-sorted algebras. In: Falaschi M (ed) Proceedings of the LOPSTR 2015. LNCS, vol 9527. Springer, Berlin, pp 36–53

  25. Pichler R (2003) Explicit versus implicit representations of subsets of the Herbrand universe. Theor Comput Sci 290(1): 1021–1056

    Article  MathSciNet  MATH  Google Scholar 

  26. Tajine M (1993) The negation elimination from syntactic equational formula is decidable. In: Proceedings of the RTA-93. LNCS, vol 690. Springer, Berlin, pp 316–327

  27. van Deursen A, Heering J, Klint P (1996) Language prototyping: an algebraic specification approach. World Scientific, Singapore

    Book  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to José Meseguer or Stephen Skeirik.

Additional information

Communicated by Augusto Sampaio and Moreno Falashi

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Meseguer, J., Skeirik, S. Equational formulas and pattern operations in initial order-sorted algebras. Form Asp Comp 29, 423–452 (2017). https://doi.org/10.1007/s00165-017-0415-5

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00165-017-0415-5

Keywords

Navigation