Generically Automating Separation Logic by Functors, Homomorphisms, and Modules

Loading...
Thumbnail Image
File version

Version of Record (VoR)

Author(s)
Xu, Qiyuan
Sanan, David
Hou, Zhe
Luan, Xiaokun
Watt, Conrad
Liu, Yang
Griffith University Author(s)
Primary Supervisor
Other Supervisors
Editor(s)
Date
2025
Size
File type(s)
Location
Abstract

Foundational verification considers the functional correctness of programming languages with formalized semantics and uses proof assistants (e.g., Coq, Isabelle) to certify proofs. The need for verifying complex programs compels it to involve expressive Separation Logics (SLs) that exceed the scopes of well-studied automated proof theories, e.g., symbolic heap. Consequently, automation of SL in foundational verification relies heavily on ad-hoc heuristics that lack a systematic meta-theory and face scalability issues. To mitigate the gap, we propose a theory to specify SL predicates using abstract algebras including functors, homomorphisms, and modules over rings. Based on this theory, we develop a generic SL automation algorithm to reason about any data structures that can be characterized by these algebras. In addition, we also present algorithms for automatically instantiating the algebraic models to real data structures. The instantiation works compositionally, reusing the algebraic models of component structures and preserving their data abstractions. Case studies on formalized imperative semantics show our algorithm can instantiate the algebraic models automatically for a variety of complex data structures. Experimental results indicate the automatically instantiated reasoners from our generic theory show similar results to the state-of-the-art systems made of specifically crafted reasoning rules. The presented theories, proofs, and the verification framework are formalized in Isabelle/HOL.

Journal Title

Proceedings of the ACM on Programming Languages

Conference Title
Book Title
Edition
Volume

9

Issue

POPL

Thesis Type
Degree Program
School
Publisher link
Patent number
Funder(s)
Grant identifier(s)
Rights Statement
Rights Statement

© 2025 Owner/Author. This work is licensed under a Creative Commons Attribution International 4.0 License.

Item Access Status
Note
Access the data
Related item(s)
Subject

Software engineering

Theory of computation

Numerical and computational mathematics

Persistent link to this record
Citation

Xu, Q; Sanan, D; Hou, Z; Luan, X; Watt, C; Liu, Y, Generically Automating Separation Logic by Functors, Homomorphisms, and Modules, Proceedings of the ACM on Programming Languages, 2025, 9 (POPL), pp. 67

Collections