English

Correct Compilation of Semiring Contractions

Programming Languages 2022-07-28 v1

Abstract

We introduce a formal operational semantics that describes the fused execution of variable contraction problems, which compute indexed arithmetic over a semiring and generalize sparse and dense tensor algebra, relational algebra, and graph algorithms. We prove that the model is correct with respect to a functional semantics. We also develop a compiler for variable contraction expressions and show that its performance is equivalent to a state-of-the art sparse tensor algebra compiler, while providing greater generality and correctness guarantees.

Keywords

Cite

@article{arxiv.2207.13291,
  title  = {Correct Compilation of Semiring Contractions},
  author = {Scott Kovach and Fredrik Kjolstad},
  journal= {arXiv preprint arXiv:2207.13291},
  year   = {2022}
}
R2 v1 2026-06-25T01:15:46.575Z