arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.20550cs.LO
收藏

用Isabelle/HOL验证数值方法

Verifying Numerical Methods with Isabelle/HOL

University of Aalborg(奥尔堡大学);University of York(约克大学)

Dustin Bryant, Jonathan Julian Huerta y Munive, Simon Foster

AI总结:

本文提出基于ITrees的Isabelle/HOL框架,用于验证数值方法,通过形式化规范和自动证明方法,实现从形式化到可执行代码的端到端验证流程。

摘要:

现代机器学习流水线建立在数值算法之上。因此,可靠的数值方法是可信机器学习和车机系统的基础。因此,我们贡献了一个基于ITrees的Isabelle/HOL中验证数值方法的框架。我们的用户友好的规范语言使可以直接声明数值程序,并可以注释变体和不变式以进行正确性规范的推理。生成的验证条件可通过自动证明方法和HOL-分析库中的引理来消除。ITrees基础与Isabelle的代码生成器互动,以导出源代码。这为从形式规范到可执行源代码提供了端到端的路径。我们展示了建模数值方法的过程,并通过聚焦于两个著名方法——二分法和固定点迭代法——来演示验证的有效性。我们还贡献了对于此目标所需的正式数学库的重要扩展:高阶导数和皮亚诺形式的泰勒定理。最后,我们对使用该框架验证数值方法进行了定性评估。

英文摘要:

Modern machine learning pipelines and ODE solvers are built on numerical algorithms. Reliable numerical methods are thus a prerequisite for trustworthy machine learning and cyber-physical systems. We evaluate a framework designed for verifying imperative programs and the Isabelle proof assistant as tools for proving the total correctness of four numerical algorithms: the bisection method, the fixed-point method, the perceptron, and the gradient descent algorithm. Our verifications required subtle extensions and generalisations to Isabelle's version of Taylor's theorem and higher-order derivatives. Finally, we reflect on the framework's automation, friendly syntax, and on further requirements to turn it into a verification tool for numerical methods.

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

↑