Skip to main content

Semantics and Types in Functional Logic Programming

  • Conference paper
Functional and Logic Programming (FLOPS 1999)

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

Included in the following conference series:

Abstract

The rewriting logic CRWL has been proposed as a semantic framework for higher-order functional logic programming, using applicative rewriting systems as programs and lazy narrowing as the goal solving procedure. We present an extension of CRWL with a polymorphic type system, and we investigate the consequences of type discipline both at the semantic level and at the operational level. Semantically, models must be extended to incorporate a type universe. Operationally, lazy narrowing must maintain suitable type information in goals, in order to guarantee well-typed computed answers.

This research has been partially supported by the Spanish National Project TIC98-0445-C03-02 ‘TREND” and the Esprit BRA Working Group EP-22457 “CCLII”.

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. Apt, K.R.: Logic Programming. In: van Leeuwen, J. (ed.) Ch. 10. Handbook of Theoretical Computer Science, vol. B, pp. 493–574. Elsevier and The MIT Press (1990)

    Google Scholar 

  2. Arenas-Sánchez, P., Rodríguez-Artalejo, M.: A Semantic Framework for Functional Logic Programming with Algebraic Polymorphic Types. In: Bidoit, M., Dauchet, M. (eds.) CAAP 1997, FASE 1997, and TAPSOFT 1997. LNCS, vol. 1214, pp. 453–464. Springer, Heidelberg (1997)

    Chapter  Google Scholar 

  3. Baader, F., Nipkow, T.: Term Rewriting and All That. Cambridge University Press, Cambridge (1998)

    Google Scholar 

  4. Caballero-Roldán, R., López-Fraguas, F.J., Sánchez-Hernández, J.: User’s Manual for TOY, Technical Report SIP 57/97, Dpto. de Sistemas Inform áticos y Programación, Univ. Complutense de Madrid. System, available at http://mozart.sip.ucm.es/incoming/toy.html

  5. Chen, W., Kifer, M., Warren, D.S.: HiLog: A Foundation for Higher-Order Logic Programming. Journal of Logic Programming 15, 187–230 (1993)

    Article  MATH  MathSciNet  Google Scholar 

  6. Goguen, J.A., Meseguer, J.: Models and Equality for Logical Programming. In: Ehrig, H., Levi, G., Montanari, U. (eds.) CAAP 1987 and TAPSOFT 1987, vol. 250, pp. 1–22. Springer, Heidelberg (1987)

    Google Scholar 

  7. Goldfarb, W.: The Undecidability of the Second-Order Unification Problem. Theoretical Computer Science 13, 225–230 (1981)

    Article  MATH  MathSciNet  Google Scholar 

  8. González-Moreno, J.C., Hortalá-González, M.T., Rodríguez-Artalejo, M.: A Higher Order Rewriting Logic for Functional Logic Programming. In: Proc. Int. Conf. on Logic Programming, Leuven, pp. 153–167. The MIT Press, Cambridge (1997)

    Google Scholar 

  9. González-Moreno, J.C., Hortalá-González, M.T., López-Fraguas, F.J., Rodríguez-Artalejo, M.: An Approach to Declarative Programming Based on a Rewriting Logic. Journal of Logic Programming 40(1), 47–87 (1999)

    Article  MATH  MathSciNet  Google Scholar 

  10. Hanus, M.: Polymorphic Higher-Order Programming in Prolog. In: Hanus, M. (ed.) Proc. Int. Conf. on Logic Programming (ICLP 1989), pp. 382–397. The MIT Press, Cambridge (1989)

    Google Scholar 

  11. Hanus, M.: A Functional and Logic Language with Polymorphic Types. In: Miola, A. (ed.) DISCO 1990. LNCS, vol. 429, pp. 215–224. Springer, Heidelberg (1990)

    Google Scholar 

  12. Hanus, M. (ed.): Curry: an Integrated Functional Logic Language (1998), available at http://www-i2.informatik.rwth-aachen.de/hanus/curry

  13. Jaffar, J., Lassez, J.L., Maher, M.J.: A Theory of Complete Logic Programs with Equality. Journal of Logic Programming 1, 211–223 (1984)

    Article  MATH  MathSciNet  Google Scholar 

  14. Milner, R.: A Theory of Type Polymorphism in Programming. Journal of Computer and Systems Sciences 17, 348–375 (1978)

    Article  MATH  MathSciNet  Google Scholar 

  15. Mycroft, A., O’Keefe, R.A.: A Polymorphic Type System for Prolog. Artificial Intelligence 23, 295–307 (1984)

    Article  MATH  MathSciNet  Google Scholar 

  16. Nadathur, G., Pfenning, P.: The Type System of a Higher-Order Logic Programming Language. In: Pfenning, F. (ed.) Types in Logic Programming, pp. 45–283. The MIT Press, Cambridge (1992)

    Google Scholar 

  17. Peterson, J., Hammond, K. (eds.): Report on the Programming Language Haskell, A Non-strict, Purely Functional Language, Version 1.4, April 7 (1997)

    Google Scholar 

  18. Pfenning, F. (ed.): Types in Logic Programming. The MIT Press, Cambridge (1992)

    Google Scholar 

  19. Prehofer, C.: Solving Higher Order Equations: From Logic to Programming. Birkhäuser, Basel (1998)

    MATH  Google Scholar 

  20. Scott, D.S.: Domains for Denotational Semantics. In: Nielsen, M., Schmidt, E.M. (eds.) ICALP 1982. LNCS, vol. 140, pp. 577–613. Springer, Heidelberg (1982)

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 1999 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

González-Moreno, J.C., Hortalá-González, M.T., Rodríguez-Artalejo, M. (1999). Semantics and Types in Functional Logic Programming. In: Middeldorp, A., Sato, T. (eds) Functional and Logic Programming. FLOPS 1999. Lecture Notes in Computer Science, vol 1722. Springer, Berlin, Heidelberg. https://doi.org/10.1007/10705424_1

Download citation

  • DOI: https://doi.org/10.1007/10705424_1

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-66677-6

  • Online ISBN: 978-3-540-47950-5

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics