arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1304.4557cs.LO
收藏

从Coq中提取Herbrand树

Extracting Herbrand trees from Coq

Lionel Rieg

摘要:

软件认证旨在证明程序的正确性,但在许多情况下,使用外部库只允许有条件的证明:它取决于库满足其规范的假设。特别是,这些库中的错误仍然可能影响认证程序。在这种情况下,出现的困难是隔离有缺陷的库函数并提供反例。在本文中,我们表明,这个问题可以在逻辑上形式化为一个矛盾的普遍理论的Herbrand树的建设和地址it.The解决方案,我们提出的是基于证明Herbrand定理的证明助手Coq。经典的程序提取使用Krivine的经典的可实现性,然后将此证明转换为认证的程序,计算Herbrand树。使用这个树和对库函数的调用,我们能够确定哪个函数是有缺陷的,并显式地产生一个反例来说明它。

英文摘要:

Software certification aims at proving the correctness of programs but in many cases, the use of external libraries allows only a conditional proof: it depends on the assumption that the libraries meet their specifications. In particular, a bug in these libraries might still impact the certified program. In this case, the difficulty that arises is to isolate the defective library function and provide a counter-example. In this paper, we show that this problem can be logically formalized as the construction of a Herbrand tree for a contradictory universal theory and address it. The solution we propose is based on a proof of Herbrand's theorem in the proof assistant Coq. Classical program extraction using Krivine's classical realizability then translates this proof into a certified program that computes Herbrand trees. Using this tree and calls to the library functions, we are able to determine which function is defective and explicitly produce a counter-example to its specification.

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

↑