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

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Formal Verification of COO to CSR Sparse Matrix Conversion (Invited Paper)

Andrew W. Appel
Electronic Proceedings in Theoretical Computer Science
Catalysis and Oxidation Reactions
article

Formal Verification of COO to CSR Sparse Matrix Conversion (Invited Paper)

Andrew W. Appel
article en

Abstract

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.

Electronic Proceedings in Theoretical Computer ScienceVol. 432
National Science Foundation
Openalex Percentile: Top 83%
Catalysis and Oxidation Reactions
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Formal Verification of COO to CSR Sparse Matrix Conversion (Invited Paper) — Andrew W. Appel · Electronic Proceedings in Theoretical Computer Science (2025) | TGRS Research Map | TGRS