Generalized Homogeneous Polynomials for Efficient Template-Based Nonlinear Invariant Synthesis

04/25/2016
by   Kensuke Kojima, et al.
0

The template-based method is one of the most successful approaches to algebraic invariant synthesis. In this method, an algorithm designates a template polynomial p over program variables, generates constraints for p=0 to be an invariant, and solves the generated constraints. However, this approach often suffers from an increasing template size if the degree of a template polynomial is too high. We propose a technique to make template-based methods more efficient. Our technique is based on the following finding: If an algebraic invariant exists, then there is a specific algebraic invariant that we call a generalized homogeneous algebraic invariant that is often smaller. This finding justifies using only a smaller template that corresponds to a generalized homogeneous algebraic invariant. Concretely, we state our finding above formally based on the abstract semantics of an imperative program proposed by Cachera et al. Then, we modify their template-based invariant synthesis so that it generates only generalized homogeneous algebraic invariants. This modification is proved to be sound. Furthermore, we also empirically demonstrate the merit of the restriction to generalized homogeneous algebraic invariants. Our implementation outperforms that of Cachera et al. for programs that require a higher-degree template.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/30/2020

Templates and Recurrences: Better Together

This paper is the confluence of two streams of ideas in the literature o...
research
09/08/2022

Template-based Program Synthesis using Stellensätze

Template-based synthesis, also known as sketching, is a localized approa...
research
03/05/2021

Algebra-based Synthesis of Loops and their Invariants (Invited Paper)

Provably correct software is one of the key challenges in our softwaredr...
research
07/10/2020

Equivalence-Invariant Algebraic Provenance for Hyperplane Update Queries

The algebraic approach for provenance tracking, originating in the semir...
research
04/24/2020

Algebra-based Loop Synthesis

We present an algorithm for synthesizing program loops satisfying a give...
research
06/23/2022

Algebra-Based Reasoning for Loop Synthesis

Provably correct software is one of the key challenges of our software-d...
research
03/26/2019

Generalized Convolution and Efficient Language Recognition

Convolution is a broadly useful operation with applications including si...

Please sign up or login with your details

Forgot password? Click here to reset