信任计算:从偏微分方程到实际程序的机械化证明
Trusting Computations: a Mechanized Proof from Partial Differential Equations to Actual Program
AI总结:
通过扩展现有方法和工具,机械化验证了一个求解一维波动方程的二阶中心有限差分显式格式的C程序,首次实现了从偏微分方程到实际数值结果的完整形式化证明。
摘要:
计算机程序可能因异常行为、数组越界访问或简单的编码错误而出错。因此,它们不能被盲目信任。科学计算程序在这方面也不例外,甚至由于大量使用浮点运算而带来特定的精度问题。然而,保证其正确性并不常见。事实上,我们必须扩展现有的方法和工具,以证明程序的正确行为,从而验证一个现有的数值分析程序。这个C程序实现了求解一维波动方程的二阶中心有限差分显式格式。实际上,我们走得更远,因为我们机械验证了数值格式的收敛性,以获得一个完整的正式证明,涵盖从偏微分方程到实际数值结果的所有方面。据我们所知,这是首次实现如此全面的证明。
英文摘要:
Computer programs may go wrong due to exceptional behaviors, out-of-bound array accesses, or simply coding errors. Thus, they cannot be blindly trusted. Scientific computing programs make no exception in that respect, and even bring specific accuracy issues due to their massive use of floating-point computations. Yet, it is uncommon to guarantee their correctness. Indeed, we had to extend existing methods and tools for proving the correct behavior of programs to verify an existing numerical analysis program. This C program implements the second-order centered finite difference explicit scheme for solving the 1D wave equation. In fact, we have gone much further as we have mechanically verified the convergence of the numerical scheme in order to get a complete formal proof covering all aspects from partial differential equations to actual numerical results. To the best of our knowledge, this is the first time such a comprehensive proof is achieved.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。