Reproduce “Formal Verification of COO to CSR Sparse Matrix Conversion (Invited Paper)” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Andrew W. Appel
Andrew W. Appel, from Princeton University, produced a machine-checked correctness proof for a C program that converts Coordinate-form (COO) sparse matrices to Compressed Sparse Row (CSR) matrices using the Coq proof assistant and Verifiable Software Toolchain (VST). This rigorous verification process uncovered and rectified five subtle bugs in the C implementation, providing high assurance for a fundamental numerical operation.
Key insights
- Demonstrates a methodology for verifying numerical algorithms by separating reasoning about complex C data structures from concerns regarding floating-point approximations.
- A systematic approach for deriving loop invariants from program behavior allows for tackling proofs in complex low-level code, bypassing intuitive guesswork.
- The `sum_any` inductive relation provides a flexible and sound way to specify floating-point sums of duplicate entries, accounting for non-associativity without imposing a specific order of operations.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.