On the Almighty Wand

  • Authors:
  • Rémi Brochenin;Stéphane Demri;Etienne Lozes

  • Affiliations:
  • LSV, ENS Cachan, CNRS, INRIA Saclay, France;LSV, ENS Cachan, CNRS, INRIA Saclay, France;LSV, ENS Cachan, CNRS, INRIA Saclay, France

  • Venue:
  • CSL '08 Proceedings of the 22nd international workshop on Computer Science Logic
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

We investigate decidability, complexity and expressive power issues for (first-order) separation logic with one record field (herein called SL) and its fragments. SLcan specify properties about the memory heap of programs with singly-linked lists. Separation logic with two record fields is known to be undecidable by reduction of finite satisfiability for classical predicate logic with one binary relation. Surprisingly, we show that second-order logic is as expressive as SLand as a by-product we get undecidability of SL. This is refined by showing that SLwithout the separating conjunction is as expressive as SL, whence undecidable too. As a consequence of this deep result, in SLthe magic wand can simulate the separating conjunction. By contrast, we establish that SLwithout the magic wand is decidable with non-elementary complexity by reduction from satisfiability for the first-order theory over finite words. Equivalence between second-order logic and separation logic extends to the case with more than one selector.