作者
Aleksandar Nanevski, Greg Morrisett, Lars Birkedal
发表日期
2008/9
期刊
Journal of Functional Programming
卷号
18
期号
5-6
页码范围
865-911
出版商
Cambridge University Press
简介
We consider the problem of reconciling a dependently typed functional language with imperative features such as mutable higher-order state, pointer aliasing, and nontermination. We propose Hoare type theory (HTT), which incorporates Hoare-style specifications into types, making it possible to statically track and enforce correct use of side effects.The main feature of HTT is the Hoare type {P}x:A{Q} specifying computations with precondition P and postcondition Q that return a result of type A. Hoare types can be nested, combined with other types, and abstracted, leading to a smooth integration with higher-order functions and type polymorphism.We further show that in the presence of type polymorphism, it becomes possible to interpret the Hoare types in the “small footprint” manner, as advocated by separation logic, whereby specifications tightly describe the state required by the computation.We establish that HTT …
引用总数
200720082009201020112012201320142015201620172018201920202021202220232024161091310151012916919129692
学术搜索中的文章
A Nanevski, G Morrisett, L Birkedal - Journal of Functional Programming, 2008