Formal Verification of COO to CSR Sparse Matrix Conversion (Invited Paper)
We describe a machine-checked correctness proof of a C program that converts a coordinate-form (COO) sparse matrix to a compressed-sparse-row (CSR) matrix. The classic algorithm (sort the COO entries in lexicographic order by row,column; fill in the CSR arrays left to right) is concise but has rather intricate invariants. We illustrate a bottom-up methodology for deriving the invariants from the program.
Authors
- Andrew W. Appel (ORCID: https://orcid.org/0000-0001-6009-0325)
Publication Details
- Journal
- Electronic Proceedings in Theoretical Computer Science
- Published
- 2025-10-14
- DOI
- https://doi.org/10.4204/eptcs.432.3
- Primary Topic
- Catalysis and Oxidation Reactions
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Science Foundation