Algebra-based Loop Synthesis

Andreas Humenberger, Laura Kovács
4/24/2020
cs.PL

Official code: ahumenberger/Absynth.jl (5 stars, Julia, MIT, last commit 2022-06-10).

Abstract

We present an algorithm for synthesizing program loops satisfying a given polynomial loop invariant. The class of loops we consider can be modeled by a system of algebraic recurrence equations with constant coefficients.

Show full abstract

We turn the task of loop synthesis into a polynomial constraint problem by precisely characterizing the set of all loops satisfying the given invariant. We prove soundness of our approach, as well as its completeness with respect to an a priori fixed upper bound on the number of program variables. Our work has applications towards program verification, as well as generating number sequences from algebraic relations. We implemented our work in the Absynth tool and report on our initial experiments with loop synthesis.

View on arXivView PDF

Code Implementations(1)

MIT

A Julia package for loop synthesis

51JuliaMar 2, 20194 years agoMIT

Similar Papers

Cite this paper

@article{humenberger2020algebrabased,
  title  = {Algebra-based Loop Synthesis},
  author = {Andreas Humenberger and Laura Kovács},
  year   = {2020},
  eprint = {2004.11787},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.11787}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2004.11787.svg)](https://codeofpaper.com/paper/2004.11787)

Discussion