Search arXiv⌕ Search

arXiv subjects

Vaibhav Mehta

Publications and source records attributed to Vaibhav Mehta.

3 recordsLinked to original sources

A SymPL Program Logic for Geometric Numerical Integrators

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.

cs.PL↗

A Hoare Logic for Symmetry Properties

Many natural program correctness properties can be stated in terms of symmetries, but existing formal methods have little support for reasoning about such properties. We consider how to formally verify a broad class of symmetry properties expressed in terms of group actions. To specify these properties, we design a syntax for group actions, supporting standard constructions and a natural notion of entailment. Then, we develop a Hoare-style logic for verifying symmetry properties of imperative programs, where group actions take the place of the typical pre- and post-condition assertions. Finally, we develop a prototype tool SymVerif, and use it to verify symmetry properties on a series of handcrafted benchmarks. Our tool uncovered an error in a model of a dynamical system described by \citet{McLachlan_Quispel_2002}.

cs.PL↗

A Generic Methodology for the Modular Verification of Security Protocol Implementations (extended version)

Security protocols are essential building blocks of modern IT systems. Subtle flaws in their design or implementation may compromise the security of entire systems. It is, thus, important to prove the absence of such flaws through formal verification. Much existing work focuses on the verification of protocol *models*, which is not sufficient to show that their *implementations* are actually secure. Verification techniques for protocol implementations (e.g., via code generation or model extraction) typically impose severe restrictions on the used programming language and code design, which may lead to sub-optimal implementations. In this paper, we present a methodology for the modular verification of strong security properties directly on the level of the protocol implementations. Our methodology leverages state-of-the-art verification logics and tools to support a wide range of implementations and programming languages. We demonstrate its effectiveness by verifying memory safety and security of Go implementations of the Needham-Schroeder-Lowe, Diffie-Hellman key exchange, and WireGuard protocols, including forward secrecy and injective agreement for WireGuard. We also show that our methodology is agnostic to a particular language or program verifier with a prototype implementation for C.

cs.CR↗