Skip to content

A SymPL Program Logic for Geometric Numerical Integrators

Vaibhav Mehta, Idhant Gode, Justin Hsu

cs.PL

Abstract

Geometric numerical integrators are key algorithms for simulating differential equations and are used routinely across science and engineering. They approximate the evolution of a dynamical system while preserving geometric structure, i.e., differential forms, ensuring simulations remain physically faithful over long time horizons. Yet, establishing that a given integrator actually preserves a geometric invariant is subtle and error-prone. Today, these proofs are largely conducted manually by experts, a task that involves reasoning about the complex interactions between program semantics and differential forms. We present SymPL, a Hoare-style program logic for verifying geometric invariants of numerical integrators. In SymPL, assertions are differential forms, and proof rules describe how programs transform them. SymPL formalizes the semantics of calls to implicit equation solvers, which are common in geometric integrators. Next, we develop SymplErr, a quantitative extension of SymPL that bounds how far a program drifts from preserving a differential form when an implicit solver can only compute an approximate solution. Finally, we implement SymplEst, an automated verifier for SymPL, and use it to verify geometric properties of a suite of integrators.

Create a lesson

Metadata

Categories
cs.PL, cs.LO
Comments
55 Pages, accepted to POPL '27