TY - JOUR
T1 - ALIGNMENT COMPLETE RELATIONAL HOARE LOGICS FOR SOME AND ALL
AU - Nagasamudram, Ramana
AU - Banerjee, Anindya
AU - Naumann, David A.
N1 - Publisher Copyright:
© R. Nagasamudram, A. Banerjee, and D. Naumann.
PY - 2025
Y1 - 2025
N2 - 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 (sequential composition), atop a complete Hoare logic, comprises a RHL for ∀∀ properties that is complete in the sense of Cook. The notion of alignment completeness was previously proposed as an additional 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 sound and alignment complete for a new general class of automata. The ∀∀and ∀∃ automata are shown to be semantically complete. Thus both logics are complete in the sense of Cook. The paper includes discussion of why alignment is not the only important principle for relational reasoning and proposes entailment completeness as further means to evaluate RHLs.
AB - 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 (sequential composition), atop a complete Hoare logic, comprises a RHL for ∀∀ properties that is complete in the sense of Cook. The notion of alignment completeness was previously proposed as an additional 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 sound and alignment complete for a new general class of automata. The ∀∀and ∀∃ automata are shown to be semantically complete. Thus both logics are complete in the sense of Cook. The paper includes discussion of why alignment is not the only important principle for relational reasoning and proposes entailment completeness as further means to evaluate RHLs.
KW - inductive assertion method
KW - logics of programs
KW - relational Hoare logic
KW - relational properties
KW - relative completeness
KW - semantic completeness
UR - https://www.scopus.com/pages/publications/105023178780
UR - https://www.scopus.com/pages/publications/105023178780#tab=citedBy
U2 - 10.46298/lmcs-21(4:21)2025
DO - 10.46298/lmcs-21(4:21)2025
M3 - Article
AN - SCOPUS:105023178780
VL - 21
JO - Logical Methods in Computer Science
JF - Logical Methods in Computer Science
IS - 4
ER -