arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2407.12726cs.PLcs.SE
收藏

类型级基于属性的测试

Type-level Property Based Testing

Thomas Ekström Hansen, Edwin Brady

AI总结:

提出一个自动化框架,在编译时通过基于属性的测试、索引状态单子和依赖类型,加强规范、依赖类型模型与实现的一致性,并测试模型与规范语义的匹配,向结合模型检查和类型检查迈出一步。

摘要:

我们提出了一个自动化框架,用于在编译时加强软件规范、其依赖类型模型与实现之间的内聚性。模型检查和类型检查目前是自动验证程序正确性的两种独立技术。利用基于属性的测试(PBT)、索引状态单子(ISMs)和依赖类型,我们能够对几个有趣的系统和网络协议进行建模,让类型检查器验证我们的实现行为符合规范,并测试我们的模型是否匹配规范的语义;这是迈向结合模型检查和类型检查的一步。

英文摘要:

We present an automated framework for solidifying the cohesion between software specifications, their dependently typed models, and implementation at compile time. Model Checking and type checking are currently separate techniques for automatically verifying the correctness of programs. Using Property Based Testing (PBT), Indexed State Monads (ISMs), and dependent types, we are able to model several interesting systems and network protocols, have the type checker verify that our implementation behaves as specified, and test that our model matches the specification's semantics; a step towards combining model and type checking.

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

↑