Alignment complete relational Hoare logics for some and all

07/19/2023
by   Ramana Nagasamudram, et al.
0

In relational verification, judicious alignment of computational steps facilitates proof of relations between programs using simple relational assertions. Relational Hoare logics (RHL) provide compositional rules that embody various alignments of executions. Seemingly more flexible alignments can be expressed in terms of product automata based on program transition relations. A single degenerate alignment rule (self-composition), atop a complete Hoare logic, comprises a RHL for ∀∀ properties that is complete in the ordinary logical sense. The notion of alignment completeness was previously proposed as a more satisfactory measure, and some rules were shown to be alignment complete with respect to a few ad hoc forms of alignment automata. This paper proves alignment completeness with respect to a general class of ∀∀ alignment automata, for a RHL comprised of standard rules together with a rule of semantics-preserving rewrites based on Kleene algebra with tests. A new logic for ∀∃ properties is introduced and shown to be alignment complete. The ∀∀ and ∀∃ automata are shown to be semantically complete. Thus the logics are both complete in the ordinary sense.

READ FULL TEXT
research
12/20/2022

Making Relational Hoare Logic Alignment Complete

In relational verification, judicious alignment of computational steps f...
research
01/27/2021

Alignment Completeness for Relational Hoare Logics

Relational Hoare logics (RHL) provide rules for reasoning about relation...
research
07/13/2020

Thirty-seven years of relational Hoare logic: remarks on its principles and history

Relational Hoare logics extend the applicability of modular, deductive v...
research
02/09/2022

An algebra of alignment for relational verification

Relational verification encompasses information flow security, regressio...
research
06/09/2020

Hypersequent calculi for non-normal modal and deontic logics: Countermodels and optimal complexity

We present some hypersequent calculi for all systems of the classical cu...
research
05/23/2018

Relational Hypersequents for Modal Logics

We investigate a new approach to modal hypersequents, called relational ...
research
05/02/2023

Probabilistic Guarded KAT Modulo Bisimilarity: Completeness and Complexity

We introduce Probabilistic Guarded Kleene Algebra with Tests (ProbGKAT),...

Please sign up or login with your details

Forgot password? Click here to reset