Cyclic proofs of program termination in separation logic

The work

AuthorsJames Brotherston; Richard Bornat; Cristiano Calcagno
Editors
Typearticle
Year2008
Citekeybrotherston2008cyclic

Where it appeared

Published inACM SIGPLAN Notices
Volume43
Issue1
Pages101--112

Abstract

We propose a novel approach to proving the termination of heap-manipulating programs, which combines separation logic with cyclic proof within a Hoare-style proof system. Judgements in this system express (guaranteed) termination of the program when started from a given line in the program and in a state satisfying a given precondition, which is expressed as a formula of separation logic. The proof rules of our system are of two types: logical rules that operate on preconditions; and symbolic execution rules that capture the effect of executing program commands. Our logical preconditions employ inductively defined predicates to describe heap properties, and proofs in our system are cyclic proofs: cyclic derivations in which some inductive predicate is unfolded infinitely often along every infinite path, thus allowing us to discard all infinite paths in the proof by an infinite descent argument. Moreover, the use of this soundness condition enables us to avoid the explicit construction and use of ranking functions for termination. We also give a completeness result for our system, which is relative in that it relies upon completeness of a proof system for logical implications in separation logic. We give examples illustrating our approach, including one example for which the corresponding ranking function is non-obvious: termination of the classical algorithm for in-place reversal of a (possibly cyclic) linked list.

A copy is held

pdf, 1.6 MB. Not published — it may be under copyright. The facts and links here are.

How it got here

How it got hereagent via bibtex
Added2026-08-05 00:00 UTC
Approved bya person 2026-08-14 11:33 UTC

Cite it as

@article{brotherston2008cyclic,
  title        = {Cyclic proofs of program termination in separation logic},
  author       = {James Brotherston and Richard Bornat and Cristiano Calcagno},
  year         = {2008},
  journal      = {ACM SIGPLAN Notices},
  volume       = {43},
  number       = {1},
  pages        = {101--112},
  doi          = {10.1145/1328897.1328453},
}

This record lives at https://refs.drheap.org/brotherston2008cyclic/ and will keep doing so.