Learning the Boundary of Inductive Invariants

08/22/2020
by   Yotam M. Y. Feldman, et al.
0

We study the complexity of invariant inference and its connections to exact concept learning. We define a condition on invariants and their geometry, called the fence condition, which permits applying theoretical results from exact concept learning to answer open problems in invariant inference theory. The condition requires the invariant's boundary—the states whose Hamming distance from the invariant is one—to be backwards reachable from the bad states in a small number of steps. Using this condition, we obtain the first polynomial complexity result for an interpolation-based invariant inference algorithm, efficiently inferring monotone DNF invariants with access to a SAT solver as an oracle. We further harness Bshouty's seminal result in concept learning to efficiently infer invariants of a larger syntactic class of invariants beyond monotone DNF. Lastly, we consider the robustness of inference under program transformations. We show that some simple transformations preserve the fence condition, and that it is sensitive to more complex transformations.

READ FULL TEXT
research
08/15/2022

Invariant Inference With Provable Complexity From the Monotone Theory

Invariant inference algorithms such as interpolation-based inference and...
research
10/27/2019

Complexity and Information in Invariant Inference

This paper addresses the complexity of SAT-based invariant inference, a ...
research
03/28/2019

SymInfer: Inferring Program Invariants using Symbolic States

We introduce a new technique for inferring program invariants that uses ...
research
10/30/2021

Property-Directed Reachability as Abstract Interpretation in the Monotone Theory

Inferring inductive invariants is one of the main challenges of formal v...
research
03/26/2000

Differential Invariants under Gamma Correction

This paper presents invariants under gamma correction and similarity tra...
research
12/11/2020

Probabilistic Conditional System Invariant Generation with Bayesian Inference

Invariants are a set of properties over program attributes that are expe...
research
11/12/2020

Invariants of Self-Intersected N-Periodics in the Elliptic Billiard

We study self-intersected N-periodics in the elliptic billiard, describi...

Please sign up or login with your details

Forgot password? Click here to reset