Sound Automation of Magic Wands (extended version)
Thibault Dardinier, Gaurav Parthasarathy, No\'e Weeks, Alexanders J., Summers, Peter M\"uller

TL;DR
This paper introduces a formal, sound, and complete framework for automating the proof of magic wands in separation logic, reducing annotation overhead and enabling fractional wand composition.
Contribution
It presents a novel formal framework and package algorithm for magic wand proofs, along with a restricted wand definition allowing fractional composition, implemented in Viper.
Findings
The framework is sound and complete, verified in Isabelle/HOL.
The new package algorithm offers competitive automation with reduced overhead.
Fractional wand composition is soundly achievable under the new restricted definition.
Abstract
The magic wand (also called separating implication) is a separation logic connective commonly used to specify properties of partial data structures, for instance during iterative traversals. A footprint of a magic wand formula is a state that, combined with any state in which holds, yields a state in which holds. The key challenge of proving a magic wand (also called packaging a wand) is to find such a footprint. Existing package algorithms either have a high annotation overhead or, as we show in this paper, are unsound. We present a formal framework that precisely characterises a wide design space of possible package algorithms applicable to a large class of separation logics. We prove in Isabelle/HOL that our formal framework is sound and complete, and use it to develop a novel package algorithm that offers competitive automation and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLogic, programming, and type systems · Formal Methods in Verification · Advanced Database Systems and Queries
