Skip to main content

1997 | OriginalPaper | Buchkapitel

Relational Semantics of Functional Programs

verfasst von : Rudolf Berghammer, Burghard von Karger

Erschienen in: Relational Methods in Computer Science

Verlag: Springer Vienna

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

The natural meaning of a program written in a functional language like Lisp or ML is a (possibly partial) function. Functions are relations, and this chapter is a gentle introduction to the idea of regarding functional programs as elements of a relational algebra. Using relations rather than functions we avoid the complexity introduced by artificial bottom elements denoting undefinedness. Relations are also natural candidates for modelling non-determinate or set-valued functions. However, the main reason for using relations is that they can be calculated with so well. Using equational reasoning for functional programs, we can construct proofs that are intuitive, memorable and machine-checkable. One basic ingredient of functional programs — composition of functions — is a built-in operator of the relational calculus. Other control constructs as well as concrete data must be translated into the language of relations. We shall attempt to do this in a modular fashion, treating one construct at a time.

Metadaten
Titel
Relational Semantics of Functional Programs
verfasst von
Rudolf Berghammer
Burghard von Karger
Copyright-Jahr
1997
Verlag
Springer Vienna
DOI
https://doi.org/10.1007/978-3-7091-6510-2_8

Premium Partner