Relational semantics for effect-based program transformations: higher-order store

  • Authors:
  • Nick Benton;Andrew Kennedy;Lennart Beringer;Martin Hofmann

  • Affiliations:
  • MS Research, Cambridge, United Kingdom;MSR Cambridge, Cambridge, United Kingdom;LMU Munich, Munich, Germany;LMU Munich, Munich, Germany

  • Venue:
  • PPDP '09 Proceedings of the 11th ACM SIGPLAN conference on Principles and practice of declarative programming
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

We give a denotational semantics to a type and effect system tracking reading and writing to global variables holding values that may include higher-order effectful functions. Refined types are modelled as partial equivalence relations over a recursively-defined domain interpreting the untyped language, with effect information interpreted in terms of the preservation of certain sets of binary relations on the store. The semantics validates a number of effect-dependent program equivalences and can thus serve as a foundation for effect-based compiler transformations. The definition of the semantics requires the solution of a mixed-variance equation which is not accessible to the hitherto known methods. We illustrate the difficulties with a number of small example equations one of which is still not known to have a solution.