arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2002.08334cs.PL
收藏

鲁棒程序的整体规格说明

Holistic Specifications for Robust Programs

Sophia Drossopoulou, James Noble, Julian Mackay, Susan Eisenbach

摘要:

功能规范描述了程序组件做什么:调用组件操作的充分条件。它们允许我们推理在封闭世界设置中使用组件,其中组件与已知的客户端代码交互,并且客户端代码必须在调用组件之前建立适当的先决条件。充分条件不足以推理在开放世界环境中使用组件,其中组件与外部代码交互,可能是未知的起源,并且组件本身可能会随着时间的推移而演变。在这个开放的世界环境中,我们还必须考虑必要的条件,也就是说,没有什么条件,效应就不会发生。在本文中,我们提出了语言Chainmail编写整体规范,专注于必要条件(以及充分条件)。给出了\Chainmail的形式化语义。Chainmail的核心已经在Coq证明助手中机械化。

英文摘要:

Functional specifications describe what program components do: the sufficient conditions to invoke a component's operations. They allow us to reason about the use of components in the closed world setting, where the component interacts with known client code, and where the client code must establish the appropriate pre-conditions before calling into the component. Sufficient conditions are not enough to reason about the use of components in the open world setting, where the component interacts with external code, possibly of unknown provenance, and where the component itself may evolve over time. In this open world setting, we must also consider the necessary} conditions, i.e, what are the conditions without which an effect will not happen. In this paper we propose the language Chainmail for writing holistic specifications that focus on necessary conditions (as well as sufficient conditions). We give a formal semantics for \Chainmail. The core of Chainmail has been mechanised in the Coq proof assistant.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑