Deriving a Floyd-Hoare logic for non-local jumps from a formulae-as-types notion of control
We derive a Floyd-Hoare logic for non-local jumps and mutable higher-order procedural variables from a formula-as-types notion of control for classical logic. A key contribution of this work is the design of an imperative dependent type system for Hoare triples, which corresponds to classical logic, but where the famous consequence rule is admissible. Moreover, we prove that this system is complete for a reasonable notion of validity for Hoare judgments. (C) 2012 Elsevier Inc. All rights reserved.
floyd-hoare logic jump higher-order procedure callcc continuation monad