We demonstrate a semantic model of general references — that is, mutable memory cells that may contain values of any (statically-checked) closed type, including other references. Our model is in terms of execution sequences on a von Neumann machine; thus, it can be used in a Proof-Carrying Code system where the skeptical consumer checks even the proofs of the typing rules. The model allows us to prove a frame-axiom introduction rule that allows locality of specification and reasoning, even in the event of updates to aliased locations. Our proof is machine-checked in the Twelf metalogic.
Citation:
Amal J. Ahmed, Andrew W. Appel, Roberto Virga, "A Stratified Semantics of General References A Stratified Semantics of General References," lics, pp.75, 17th Annual IEEE Symposium on Logic in Computer Science (LICS'02), 2002