Skip to main content

Algebraic semantics for functional logic programming with polymorphic order-sorted types

  • Types
  • Conference paper
  • First Online:
Algebraic and Logic Programming (ALP 1996)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1139))

Included in the following conference series:

Abstract

In this paper we present the semantics of a functional logic language with parametric and order-sorted polymorphism. Typed programs consist of a polymorphic signature and a set of constructor-based conditional rewriting rules for which we define a semantic calculus. The denotational semantics of the language is based on Scott domains interpreting constructors and functions by monotonic and continuous mappings, respectively, in every instance of the declared type. We prove initiality results for the free ground term algebra. We also prove that the free term algebra with variables is freely generated in the category of models. The semantic calculus is proved to be sound and complete w.r.t. the denotational semantics. As in logic programming, we define the immediate consequence operator, proving that the Hebrand model is the least model of a program.

This work has been supported by the Spanish CICYT (project TIC 95-0433-C03-01 “CPD”).

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

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. J.M. Almendros-Jiménez. Type Inference and Checking for Polymorphic Order-Sorted Typed Functional Logic Programs. Procs. APPIA-GULP-PRODE'96. 1996.

    Google Scholar 

  2. J.M. Almendros-Jiménez, A. Gil-Luezas. Lazy Narrowing with Polymorphic Order-Sorted Types. Technical Report DIA 30/96. UCM. 1996.

    Google Scholar 

  3. J.A. Goguen, J.W. Thatcher, E.G.Wagner, J.B.Wright. On Initial Algebra Semantic and Continuous Algebras, Journal ACM 24, 1, 68–95, 1977.

    Google Scholar 

  4. K.R. Apt. Logic Programming, In J.van Leeuwen (ed.), Handbook of Theoretical Computer Science, vol. B, 493–574, Elsevier Science Publishers, 1990.

    Google Scholar 

  5. P. Arenas-Sánchez, A. Gil-Luezas, F. López-Fraguas. Combining Lazy Narrowing with Disequality Constraints, Proc. PLILP'94, LNCS 844, 385–399, 1994.

    Google Scholar 

  6. L. Damas, R. Milner. Principal Type-Schemes for Functional Programs, Procs. 9th. Annual Symposium on Principles of Programming Languages, 207–212, 1982.

    Google Scholar 

  7. J.A. Goguen, J. Meseguer. Order Sorted Algebra I: Equational Deduction for Multiple Inheritance, Overloading, Exceptions and Partial Operations, TCS 105, 217–273, 1992.

    Google Scholar 

  8. J.C. González-Moreno, T. Hortalá-González, M. Rodriguez Ar-Talejo. Denotational Versus Declarative Semantics for Functional Programming, Procs. CSL'91, LNCS 626, 134–148, 1991.

    Google Scholar 

  9. J.C. González-Moreno, T. Hortalá-González, F. López-Fraguas, M. Rodríguez-Artalejo. A Rewriting Logic for Declarative Programming, Procs. ESOP'96, LNCS 1058, 156–172, 1996.

    Google Scholar 

  10. C.A. Gunter. Semantics of Programming Languages: Structures and Techniques, The MIT Press, 1992.

    Google Scholar 

  11. M. Hanus. Horn Clauses with Polymorphic Types: Semantics and Resolution, Procs. TAPSOFT'89, LNCS 352, Vol 2. 225–240, 1989.

    Google Scholar 

  12. M. Hanus. A Functional and Logic Language with Polymorphic Types, Procs. Int. Symp. Design and Implementation of Symbolic Computation Systems, LNCS 429, 215–224, 1990.

    Google Scholar 

  13. M. Hanus. Parametric Order-Sorted Types in Logic Programming, Procs. TAP-SOFT'91, LNCS 494, 181–200, 1991.

    Google Scholar 

  14. M. Hanus. The Integration of Functions into Logic Programming: A Survey, J. of Logic Programming 19/20, 583–628, 1994.

    Google Scholar 

  15. P.M. Hill, R.W. Topor. A Semantics for Typed Logic Programming, Chap. 1, Types in Logic Programming, The MIT Press, 1–58, 1992.

    Google Scholar 

  16. C. Kirchner, H. Kirchner, J. Meseguer. Operational Semantics of OBJ-3, Procs. ICALP'88, LNCS 317, 287–301, 1988.

    Google Scholar 

  17. B. Möller. On the Algebraic Specification of Infinite Objects-Ordered and Continuous Models of Algebraic Types, Acta Informatica 22, 537–578, 1985.

    Google Scholar 

  18. J.J. Moreno-Navarro, M. Rodríguez-Artalejo. Logic Programming with Functions and Predicates: The Language BABEL, J. Logic Programming 12, 191–223, 1992.

    Google Scholar 

  19. A. Mycroft, R.A. O'Keefe. A Polymorphic Type System for Prolog, Artificial Intelligence 23, 295–307, 1984.

    Google Scholar 

  20. D.S. Scott. Domains for denotational semantics, Procs. ICALP'82, LNCS 140, 577–613, 1982.

    Google Scholar 

  21. G. Smolka, W. Nutt, J.A. Goguen, J. Meseguer. Order-Sorted Equational Computation, Resolution of Equations in Algebraic Structures, Vol. 2, Rewriting Techniques, Chap. 10, Academic Press, 297–367, 1989.

    Google Scholar 

  22. G. Smolka. TEL v. 0.9, Report Manual and User Manual, SEKI Rep. SR-87-11.

    Google Scholar 

  23. G. Smolka. Logic Programming over Polymorphically Order-Sorted Types, PhD thesis, Universität Kaiserslautern, Germany, 1989.

    Google Scholar 

  24. U. Waldmann. Semantics of Order-Sorted Specifications, TCS 94, 1–35. 1992.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Michael Hanus Mario Rodríguez-Artalejo

Rights and permissions

Reprints and permissions

Copyright information

© 1996 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Almendros-Jiménez, J.M., Gavilanes-Franco, A., Gil-Luezas, A. (1996). Algebraic semantics for functional logic programming with polymorphic order-sorted types. In: Hanus, M., Rodríguez-Artalejo, M. (eds) Algebraic and Logic Programming. ALP 1996. Lecture Notes in Computer Science, vol 1139. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-61735-3_20

Download citation

  • DOI: https://doi.org/10.1007/3-540-61735-3_20

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-61735-8

  • Online ISBN: 978-3-540-70672-4

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics