咨询与建议

看过本文的还看了

相关文献

该作者的其他文献

文献详情 >A Verified Foreign Function In... 收藏

A Verified Foreign Function Interface between Coq and C

作     者:Korkut, Joomy Stark, Kathrin Appel, Andrew W. 

作者机构:Princeton Univ Princeton NJ 08544 USA Bloomberg LP New York NY 10017 USA Heriot Watt Univ Edinburgh Scotland 

出 版 物:《PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL》 (Proc. ACM Program. Lang.)

年 卷 期:2025年第9卷第POPL期

页      面:687-717页

核心收录:

基  金:NSF [CCF-2005545] Princeton University Presidential Postdoctoral Fellowship 

主  题:foreign function interface Coq C 

摘      要:One can write dependently typed functional programs in Coq, and prove them correct in Coq;one can write low-level programs in C, and prove them correct with a C verification tool. We demonstrate how to write programs partly in Coq and partly in C, and interface the proofs together. The Verified Foreign Function Interface (VeriFFI) guarantees type safety and correctness of the combined program. It works by translating Coq function types (and constructor types) along with Coq functional models into VST function-specifications;if the user can prove in VST that the C functions satisfy those specs, then the C functions behave according to the user-specified functional models (even though the C implementation might be very different) and the proofs of Coq functions that call the C code can rely on that behavior. To achieve this translation, we employ a novel, hybrid deep/shallow description of Coq dependent types.

读者评论 与其他读者分享你的观点

用户名:未登录
我的评分