Nested Hoare triples and frame rules for higher-order store

  • Authors:
  • Jan Schwinghammer;Lars Birkedal;Bernhard Reus;Hongseok Yang

  • Affiliations:
  • Saarland University, Saarbrücken;IT University of Copenhagen;University of Sussex, Brighton;Queen Mary, University of London

  • Venue:
  • CSL'09/EACSL'09 Proceedings of the 23rd CSL international conference and 18th EACSL Annual conference on Computer science logic
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Separation logic is a Hoare-style logic for reasoning about programs with heap-allocated mutable data structures. As a step toward extending separation logic to high-level languages with ML-style general (higher-order) storage, we investigate the compatibility of nested Hoare triples with several variations of higher-order frame rules. The interaction of nested triples and frame rules can be subtle, and the inclusion of certain frame rules is in fact unsound. A particular combination of rules can be shown consistent by means of a Kripke model where worlds live in a recursively defined ultrametric space. The resulting logic allows us to elegantly prove programs involving stored code. In particular, it leads to natural specifications and proofs of invariants required for dealing with recursion through the store.