A Sorted Datalog Hammer for Supervisor Verification Conditions Modulo Simple Linear Arithmetic

01/24/2022
by   Martin Bromberger, et al.
0

In a previous paper, we have shown that clause sets belonging to the Horn Bernays-Schönfinkel fragment over simple linear real arithmetic (HBS(SLR)) can be translated into HBS clause sets over a finite set of first-order constants. The translation preserves validity and satisfiability and it is still applicable if we extend our input with positive universally or existentially quantified verification conditions (conjectures). We call this translation a Datalog hammer. The combination of its implementation in SPASS-SPL with the Datalog reasoner VLog establishes an effective way of deciding verification conditions in the Horn fragment. We verify supervisor code for two examples: a lane change assistant in a car and an electronic control unit of a supercharged combustion engine. In this paper, we improve our Datalog hammer in several ways: we generalize it to mixed real-integer arithmetic and finite first-order sorts; we extend the class of acceptable inequalities beyond variable bounds and positively grounded inequalities; and we significantly reduce the size of the hammer output by a soft typing discipline. We call the result the sorted Datalog hammer. It not only allows us to handle more complex supervisor code and to model already considered supervisor code more concisely, but it also improves our performance on real world benchmark examples. Finally, we replace the before file-based interface between SPASS-SPL and VLog by a close coupling resulting in a single executable binary.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/07/2021

A Datalog Hammer for Supervisor Verification Conditions Modulo Simple Linear Arithmetic

The Bernays-Schönfinkel first-order logic fragment over simple linear re...
research
03/29/2023

Satisfiability of Non-Linear Transcendental Arithmetic as a Certificate Search Problem

For typical first-order logical theories, satisfying assignments have a ...
research
08/28/2017

Short Presburger arithmetic is hard

We study the computational complexity of short sentences in Presburger a...
research
01/06/2021

On long arithmetic progressions in binary Morse-like words

We present results on the existence of long arithmetic progressions in t...
research
12/11/2021

Overcoming Restraint: Composing Verification of Foreign Functions with Cogent

Cogent is a restricted functional language designed to reduce the cost o...
research
04/20/2018

A Reduction from Unbounded Linear Mixed Arithmetic Problems into Bounded Problems

We present a combination of the Mixed-Echelon-Hermite transformation and...
research
03/28/2022

Soundness of Data-Aware Processes with Arithmetic Conditions

Data-aware processes represent and integrate structural and behavioural ...

Please sign up or login with your details

Forgot password? Click here to reset