Physical systems are usually modeled by differential equations, but solving these differential equations analytically is often intractable. Instead, the differential equations can be solved numerically by discretization in a finite computational domain. The discretized equation is reduced to a large linear system, whose solution is typically found using an iterative solver. We start with an initial guess, $x_0$, and iterate the algorithm to obtain a sequence of solution vectors, x_m. The iterative algorithm is said to converge to the exact solution x of the linear system if and only if x_m converges to x. It is important that we formally guarantee the convergence of iterative algorithm, since these algorithms are used in simulations for design of safety critical systems such as airplanes, cars, or nuclear power plants. In this paper, we first formalize the necessary and sufficient conditions for iterative convergence in the Coq proof assistant. We then extend this result to two classical iterative methods: Gauss-Seidel iteration and Jacobi iteration. We formalize conditions for the convergence of the Gauss--Seidel classical iterative method, based on positive definiteness of the iterative matrix. We then use these conditions and the main proof of iterative convergence to prove convergence of the Gauss-Seidel method. We also apply the main theorem of iterative convergence on an example of the Jacobi classical iterative method to prove its convergence. We leverage recent developments of the Coq linear algebra, Coquelicot's real analysis library and the mathcomp library for our formalization.
翻译:物理系统通常以差异方程式为模型, 但分析解决这些差异方程式往往难以解决。 相反, 差异方程式可以通过在有限计算域中的离散化以数字方式解决。 离散方程式被降为大型线性系统, 其解决方案通常使用迭代求解器。 我们从最初的猜测开始, $_ 0 美元, 并循环算法以获得解析矢量序列, x_ m 。 迭代算法据说会趋同于线性系统的确切解决方案 x, 前提是 x_ m 和 x 。 重要的是, 我们正式保证迭代算法的趋同性, 因为这些算法用于模拟设计安全关键系统, 如飞机、汽车或核电厂等。 在本文中, 我们首先正式设定必要和足够的条件, 用于调合调调调调。 然后将这一结果推广到两种经典的迭代方法: 高音- Seidel Exliverationation 和 Jacoberationration 。 我们正式确定调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调,,, 的调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调调, 。