arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2503.13877cs.LOcs.NAmath.NAphysics.comp-ph
收藏

自信地处理激波:双曲型偏微分方程求解器的正确性形式化证明

Shock with Confidence: Formal Proofs of Correctness for Hyperbolic Partial Differential Equation Solvers

Jonathan Gorard, Ammar Hakim

AI总结:

本文提出基于 Racket 的形式化验证流水线,可生成双曲型 PDE 求解器及其可验证 C 代码,并证明 L^2 稳定性、通量守恒与物理有效性。

摘要:

一阶双曲型偏微分方程(PDE)系统在计算物理学中无处不在,通常用于流体湍流、激波、电磁相互作用乃至广义相对论现象的模拟。在非线性情形下,这类方程的数值求解往往颇具挑战,因为即使初始数据是光滑的,它们也倾向于形成间断,从而可能导致数值算法变得不稳定、违反守恒律,或收敛到物理上不正确的解。本文中,我们在 Racket 中引入了一种面向此类算法的新型形式化验证流水线。它允许用户为指定的方程系统构建定制的双曲型 PDE 求解器,生成可验证地实现该求解器的底层 C 代码,并随后为所得实现的各种数学与物理正确性性质产生形式化证明,包括 L^2 稳定性、通量守恒和物理有效性。我们概述了这些正确性证明如何利用一个定制构建的定理证明与自动微分框架来生成,该框架充分尊重浮点运算的代数结构;同时展示了所得 C 代码如何既可用于运行独立仿真,也可集成到诸如 Gkeyll 这样的更大型计算多物理场框架中。

英文摘要:

First-order systems of hyperbolic partial differential equations (PDEs) occur ubiquitously throughout computational physics, commonly used in simulations of fluid turbulence, shock waves, electromagnetic interactions, and even general relativistic phenomena. Such equations are often challenging to solve numerically in the non-linear case, due to their tendency to form discontinuities even for smooth initial data, which can cause numerical algorithms to become unstable, violate conservation laws, or converge to physically incorrect solutions. In this paper, we introduce a new formal verification pipeline for such algorithms in Racket, which allows a user to construct a bespoke hyperbolic PDE solver for a specified equation system, generate low-level C code which verifiably implements that solver, and then produce formal proofs of various mathematical and physical correctness properties of the resulting implementation, including L^2 stability, flux conservation, and physical validity. We outline how these correctness proofs are generated, using a custom-built theorem-proving and automatic differentiation framework that fully respects the algebraic structure of floating-point arithmetic, and show how the resulting C code may either be used to run standalone simulations, or integrated into a larger computational multiphysics framework such as Gkeyll.

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

↑