波动方程数值求解:一个C程序的全面机械化证明
Wave Equation Numerical Resolution: a Comprehensive Mechanized Proof of a C Program
AI总结:
通过Frama-C、SMT求解器、Gappa和Coq,对一维声波方程数值求解的C程序进行了形式化验证,首次完全机器检查了数值分析程序的正确性。
摘要:
我们形式化证明了一个C程序的正确性,该程序实现了一维声波方程数值求解的数值格式。这种实现会在多个层面引入误差:数值格式引入方法误差,浮点计算导致舍入误差。我们对该C程序进行注释,以指定方法误差和舍入误差。我们使用Frama-C生成保证代码正确性的定理。我们使用SMT求解器、Gappa和Coq来证明这些定理。这涉及一个大型的Coq开发,以证明C程序对数值格式的适配性并界定误差。据我们所知,这是首次对这样的数值分析程序进行完全机器检查。
英文摘要:
We formally prove correct a C program that implements a numerical scheme for the resolution of the one-dimensional acoustic wave equation. Such an implementation introduces errors at several levels: the numerical scheme introduces method errors, and floating-point computations lead to round-off errors. We annotate this C program to specify both method error and round-off error. We use Frama-C to generate theorems that guarantee the soundness of the code. We discharge these theorems using SMT solvers, Gappa, and Coq. This involves a large Coq development to prove the adequacy of the C program to the numerical scheme and to bound errors. To our knowledge, this is the first time such a numerical analysis program is fully machine-checked.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。