Affiliation:
1. Queen Mary & Westfield College, London, UK
Abstract
Reynolds has developed a logic for reasoning about mutable data structures in which the pre- and postconditions are written in an intuitionistic logic enriched with a spatial form of conjunction. We investigate the approach from the point of view of the logic BI of bunched implications of O'Hearnand Pym. We begin by giving a model in which the law of the excluded middleholds, thus showing that the approach is compatible with classical logic. The relationship between the intuitionistic and classical versions of the system is established by a translation, analogous to a translation from intuitionistic logic into the modal logic S4. We also consider the question of completeness of the axioms. BI's spatial implication is used to express weakest preconditions for object-component assignments, and an axiom for allocating a cons cell is shown to be complete under an interpretation of triplesthat allows a command to be applied to states with dangling pointers. We make this latter a feature, by incorporating an operation, and axiom, for disposing of memory. Finally, we describe a local character enjoyed by specifications in the logic, and show how this enables a class of frame axioms, which say what parts of the heap don't change, to be inferred automatically.
Publisher
Association for Computing Machinery (ACM)
Subject
Computer Graphics and Computer-Aided Design,Software
Reference39 articles.
1. Alur R. and Grosu R. Modular refinement of hierarchic reactive machines. In POPL {31}.]] 10.1145/325694.325746 Alur R. and Grosu R. Modular refinement of hierarchic reactive machines. In POPL {31}.]] 10.1145/325694.325746
2. On the frame problem in procedure specifications
3. Electronic Notes in Theoretical Computer Science;Brookes S.,1995
4. Some techniques for proving correctness of programs which alter data structures;Burstall R;Machine Intelligence,1972
Cited by
209 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献