Cyclic Proofs in Hoare Logic and its Reverse

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Brotherston, James, Le, Quang Loc, Desai, Gauri, Oda, Yukihiro
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912931098132480
author Brotherston, James
Le, Quang Loc
Desai, Gauri
Oda, Yukihiro
author_facet Brotherston, James
Le, Quang Loc
Desai, Gauri
Oda, Yukihiro
contents We examine the relationships between axiomatic and cyclic proof systems for the partial and total versions of Hoare logic and those of its dual, known as reverse Hoare logic (or sometimes incorrectness logic). In the axiomatic proof systems for these logics, the proof rules for looping constructs involve an explicit loop invariant, which in the case of the total versions additionally require a well-founded termination measure. In the cyclic systems, these are replaced by rules that simply unroll the loops, together with a principle allowing the formation of cycles in the proof, subject to a global soundness condition that ensures the well-foundedness of the circular reasoning. Interestingly, the cyclic soundness conditions for partial Hoare logic and its reverse are similar and essentially coinductive in character, while those for the total versions are also similar and essentially inductive. We show that these cyclic systems are sound, by direct argument, and relatively complete, by translation from axiomatic to cyclic proofs.
format Preprint
id arxiv_https___arxiv_org_abs_2504_14283
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Cyclic Proofs in Hoare Logic and its Reverse
Brotherston, James
Le, Quang Loc
Desai, Gauri
Oda, Yukihiro
Logic in Computer Science
Programming Languages
We examine the relationships between axiomatic and cyclic proof systems for the partial and total versions of Hoare logic and those of its dual, known as reverse Hoare logic (or sometimes incorrectness logic). In the axiomatic proof systems for these logics, the proof rules for looping constructs involve an explicit loop invariant, which in the case of the total versions additionally require a well-founded termination measure. In the cyclic systems, these are replaced by rules that simply unroll the loops, together with a principle allowing the formation of cycles in the proof, subject to a global soundness condition that ensures the well-foundedness of the circular reasoning. Interestingly, the cyclic soundness conditions for partial Hoare logic and its reverse are similar and essentially coinductive in character, while those for the total versions are also similar and essentially inductive. We show that these cyclic systems are sound, by direct argument, and relatively complete, by translation from axiomatic to cyclic proofs.
title Cyclic Proofs in Hoare Logic and its Reverse
topic Logic in Computer Science
Programming Languages
url https://arxiv.org/abs/2504.14283