共 50 条
An observationally complete program logic for imperative higher-order functions
被引:0
|作者:
Honda, K
[1
]
Yoshida, N
[1
]
Berger, M
[1
]
机构:
[1] Univ London, London WC1E 7HU, England
关键词:
D O I:
暂无
中图分类号:
TP301 [理论、方法];
学科分类号:
081202 ;
摘要:
We propose a simple compositional program logic for an imperative extension of call-by-value PCF, built on Hoare logic and our preceding work on program logics for pure higher-order functions. A systematic use of names and operations on them allows precise and general description of complex higher-order imperative behaviour. The logic offers a foundation for general treatment of aliasing and local state on its basis, with minimal extensions. After establishing soundness, we prove that valid assertions for programs completely characterise their behaviour up to observational congruence, which is proved using a variant of finite canonical forms. The use of the logic is illustrated through reasoning examples which are hard to assert and infer using existing program logics.
引用
收藏
页码:270 / 279
页数:10
相关论文