用于指定单子程序的谓词变换单子分类学
A Taxonomy of Predicate Transformer Monads for Specifying Monadic Programs
AI总结:
该研究针对单子程序验证,提出覆盖各类非确定性与非终止性组合的最强后置条件单子,将其泛化为箭头并结合箭头变换扩展副作用,建立相关分类学并关联两种规范风格。
摘要:
最弱前置条件谓词变换的单子是多种单子程序验证框架的基础。为了指定包含非确定性和非终止性的单子计算,除了最弱前置条件,我们引入了首个最强后置条件单子,其覆盖天使非确定性或恶魔非确定性、非终止性的部分解释或完全解释的所有组合。为了给这些基础最强后置条件单子扩展可变状态等副作用,单子变换无法产生预期的单子,因此我们将基础单子泛化为箭头并使用箭头变换。我们给出了最弱前置条件和最强后置条件单子的分类学,涵盖基础单子及其带状态的版本,证明了基于谓词变换的下近似和上近似三元组之间的已知关系在谓词变换层面已成立。我们用这些谓词变换单子定义下近似和上近似三元组,并在可行处定义Dijkstra单子,最后关联这两种规范风格。
英文摘要:
Monads of weakest precondition predicate transformers are the foundation of several verification frameworks for monadic programs. For specifying monadic computations with nondeterminism and nontermination, in addition to weakest preconditions, we introduce the first strongest postcondition monads covering all combinations of angelic or demonic nondeterminism and partial or total interpretations of nontermination. For extending these base strongest postcondition monads with side effects such as mutable state, monad transformers do not yield the expected monads, so we instead generalize the base monads to arrows and use arrow transformers. We give a taxonomy of weakest precondition and strongest postcondition monads, for the base monads and for their versions with state, and show that the known relationships between under- and over-approximate triples based on predicate transformers already hold at the level of the predicate transformers themselves. We use the predicate transformer monads to define under- and over-approximate triples and, where possible, Dijkstra monads. Finally, we relate these two specification styles.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。