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

语义类型引导的缺陷发现

Semantic-Type-Guided Bug Finding

Kelvin Qian, Scott Smith, Brandon Stride, Shiwei Weng, Ke Wu

AI总结:

本研究提出了一种证明函数式程序语义类型属性错误性的新方法,定义了语义类型反驳器并证明其可靠完备,通过符号评估实现高效发现类型错误。

摘要:

近年来,人们对确立程序属性的错误性而非正确性的工具越来越感兴趣。在本研究中,我们基于这一方法开发了一种新颖的方法论,用于证明函数式程序的语义类型属性的错误性,将错误性方法扩展到函数式程序类型化的模型理论中。我们定义了一个语义类型反驳器,用于反驳一种简单函数式语言的语义类型化。我们证明我们的反驳器是余递归可枚举的,并且相对于语义类型化概念是可靠且完备的。我们描述了一个初始实现,该实现使用符号评估来高效地发现具有丰富类型系统的函数式语言中的类型错误。

英文摘要:

In recent years, there has been an increased interest in tools that establish \emph{incorrectness} rather than correctness of program properties. In this work we build on this approach by developing a novel methodology to prove incorrectness of \emph{semantic typing} properties of functional programs, extending the incorrectness approach to the model theory of functional program typing. We define a semantic type refuter which refutes semantic typings for a simple functional language. We prove our refuter is co-recursively enumerable, and that it is sound and complete with respect to a semantic typing notion. An initial implementation is described which uses symbolic evaluation to efficiently find type errors over a functional language with a rich type system.

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

↑