English

A Hoare Logic with Regular Behavioral Specifications

Logic in Computer Science 2022-05-16 v1 Formal Languages and Automata Theory

Abstract

We present a Hoare logic that extends program specifications with regular expressions that capture behaviors in terms of sequences of events that arise during the execution. The idea is similar to session types or process-like behavioral contracts, two currently popular research directions. The approach presented here strikes a particular balance between expressiveness and proof automation, notably, it can capture interesting sequential behavior across multiple iterations of loops. The approach is modular and integrates well with autoactive deductive verification tools. We describe and demonstrate our prototype implementation in SecC using two case studies: A matcher for E-Mail addresses and a specification of the game steps in the VerifyThis Casino challenge.

Keywords

Cite

@article{arxiv.2205.06584,
  title  = {A Hoare Logic with Regular Behavioral Specifications},
  author = {Gidon Ernst and Alexander Knapp and Toby Murray},
  journal= {arXiv preprint arXiv:2205.06584},
  year   = {2022}
}
R2 v1 2026-06-24T11:16:27.092Z