带干扰效应修正的时间验证
Temporal Verification with Answer-Effect Modification
摘要:
类型和效果系统是一种广泛使用的程序验证方法,使用类型验证计算结果,使用效果验证行为。本文扩展了一个效果系统,用于验证时间,值相关的属性产生的事件序列的程序分隔控制操作符shift 0/reset 0。虽然这些分隔的控制操作符使有用的和强大的编程技术,他们阻碍推理的行为程序,因为他们的能力,暂停,恢复,丢弃,和复制分隔的延续。这个问题在时间属性的有效系统中更为严重,因为这些系统必须能够识别捕获的延续产生的事件序列。我们的关键观察实现有效的推理中存在的分隔控制算子是,它们的使用修改的答案效果,这是时间的延续效果。基于这一观察,我们扩展了时间验证的效果系统,以适应答案效果修改。允许答案效果修改可以轻松地推理捕获的延续产生的痕迹。我们的效果系统的另一个新特性是支持依赖类型的延续,这使我们能够更精确地推理程序。我们证明了有限事件序列的效果系统的可靠性通过类型安全和无限事件序列使用的逻辑关系。
英文摘要:
Type-and-effect systems are a widely-used approach to program verification, verifying the result of a computation using types, and the behavior using effects. This paper extends an effect system for verifying temporal, value-dependent properties on event sequences yielded by programs to the delimited control operators shift0/reset0. While these delimited control operators enable useful and powerful programming techniques, they hinder reasoning about the behavior of programs because of their ability to suspend, resume, discard, and duplicate delimited continuations. This problem is more serious in effect systems for temporal properties because these systems must be capable of identifying what event sequences are yielded by captured continuations. Our key observation for achieving effective reasoning in the presence of the delimited control operators is that their use modifies answer effects, which are temporal effects of the continuations. Based on this observation, we extend an effect system for temporal verification to accommodate answer-effect modification. Allowing answer-effect modification enables easily reasoning about traces that captured continuations yield. Another novel feature of our effect system is the support for dependently-typed continuations, which allows us to reason about programs more precisely. We prove soundness of the effect system for finite event sequences via type safety and that for infinite event sequences using a logical relation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。