Show Me The Money: An Exercise in Proof-Driven Software Understanding
Joseph Tafese, Karthik Nukala, Hassen Saïdi, Natarajan Shankar, Arie Gurfinkel, Giuliano Losa
Abstract
We present a case study on proof-driven software understanding of mature, security-critical infrastructure. While formal methods are traditionally applied during the design phase, we present our experience applying formal reasoning onto a mature industrial C++ codebase. We focus on a formal analysis of the core algorithm that implements the Stellar blockchain's SDEX order book. By combining large language models (LLMs), Prototype Verification System (PVS), and SeaHorn, we are able to prove core properties of the production codebase. Our approach also identified an inconsistency in documentation related to the reachability of an exception location. Most importantly, however, we produce artifacts that make it easy for code changes to be checked against established invariants. This work demonstrates how the strategic combination of theorem proving and model checking provides a path for delivering robust assurance to legacy systems.
Create a lesson
Metadata
- Categories
- cs.LO, cs.SE
- Comments
- CAV 2026
Related papers
Towards Understanding the Complexity of CAQE: A Proof-Theoretic Analysis of its Core Procedure
Shared title terminologycs.LOBenjamin Böhm, Olaf Beyersdorff
Proof Checking Continuous Reachability
Shared title terminologycs.LOLong Qian, André Platzer
Proof-Relevant Interpolation for Circular Proofs in Linear Logic
Shared title terminologycs.LODaniel Osorio-Valencia, Alexis Saurin
Canonical Proof Nets for Intuitionistic Multiplicative Linear Logic
Shared title terminologycs.LOMatteo Acclavio, Willem Heijltjes, Dominic J. D. Hughes
Matching-Logic-Based Understanding of Polynomial Functors and their Initial/Final Models Revisited
Shared title terminologycs.LODorel Lucanu
Typed Knowledge over Constructive Institutions: A Proof-Relevant Type Theory for Verified Science
Shared title terminologycs.LOHans-Martin Will