首页> 外文会议>3rd ACM SIGPLAN workshop on programming languages meets program verification 2009 >Compositional and Decidable Checking for Dependent Contract Types
【24h】

Compositional and Decidable Checking for Dependent Contract Types

机译:相关合同类型的组成和确定检查

获取原文
获取原文并翻译 | 示例

摘要

Simple type systems perform compositional reasoning in that the type of a term depends only on the types of its subterms, and not on their semantics. Contracts offer more expressive abstractions, but static contract checking systems typically violate those abstractions and base their reasoning directly upon the semantics of terms. Pragmatically, this noncompositionality makes the decidability of static checking unpredictable.rnWe first show how compositional reasoning may be restored using standard type-theoretic techniques, namely existential types and subtyping. Despite its compositional nature, our type system is exact, in that the type of a term can completely capture its semantics, hence demonstrating that precision and compositionality are compatible. We then address predictability of static checking for contract types by giving a type-checking algorithm for an important class of programs with contract predicates drawn from a decidable theory. Our algorithm relies crucially on the fact that the type of a term depends only the types of its subterms (which fall into the decidable theory) and not their semantics (which will not, in general).
机译:简单类型系统执行组合推理,因为术语的类型仅取决于其子术语的类型,而不取决于其语义。合同提供了更具表现力的抽象,但是静态合同检查系统通常会违反这些抽象,并将其推理直接基于术语的语义。务实的是,这种非组合性使静态检查的可判定性变得不可预测。我们首先说明如何使用标准的类型理论技术(即存在性类型和子类型化)恢复组合推理。尽管它具有组成性质,但我们的类型系统是精确的,因为术语的类型可以完全捕获其语义,因此表明精度和组成性是兼容的。然后,我们通过为一类重要的程序提供类型检查算法来处理合同类型的静态检查的可预测性,该程序具有从可判定理论得出的合同谓词。我们的算法主要取决于以下事实:一个术语的类型仅取决于其子术语的类型(属于可判定的理论),而不取决于其语义(通常不会如此)。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号