Back to Search Start Over

The impact of higher-order state and control effects on local relational reasoning

Authors :
Lars Birkedal
Georg Neis
Derek Dreyer
Source :
ICFP
Publication Year :
2012
Publisher :
Cambridge University Press (CUP), 2012.

Abstract

Reasoning about program equivalence is one of the oldest problems in semantics. In recent years, useful techniques have been developed, based on bisimulations and logical relations, for reasoning about equivalence in the setting of increasingly realistic languages—languages nearly as complex as ML or Haskell. Much of the recent work in this direction has considered the interesting representation independence principles enabled by the use of local state, but it is also important to understand the principles that powerful features like higher-order state and control effects disable. This latter topic has been broached extensively within the framework of game semantics, resulting in what Abramsky dubbed the “semantic cube”: fully abstract game-semantic characterizations of various axes in the design space of ML-like languages. But when it comes to reasoning about many actual examples, game semantics does not yet supply a useful technique for proving equivalences.In this paper, we marry the aspirations of the semantic cube to the powerful proof method of step-indexed Kripke logical relations. Building on recent work of Ahmed et al. (2009), we define the first fully abstract logical relation for an ML-like language with recursive types, abstract types, general references and call/cc. We then show how, under orthogonal restrictions to the expressive power of our language—namely, the restriction to first-order state and/or the removal of call/cc—we can enhance the proving power of our possible-worlds model in correspondingly orthogonal ways, and we demonstrate this proving power on a range of interesting examples. Central to our story is the use of state transition systems to model the way in which properties of local state evolve over time.

Details

ISSN :
14697653 and 09567968
Volume :
22
Database :
OpenAIRE
Journal :
Journal of Functional Programming
Accession number :
edsair.doi.dedup.....80de09d6780777e918893f79ebc7ad3e
Full Text :
https://doi.org/10.1017/s095679681200024x