Iris on Indirection Theory: Lightweight Higher-order Ghost State
Darius Foo, Viet-Anh Nguyen, Wei-Ngan Chin
Abstract
Today, semantic models of languages with concurrency and higher-order state are constructed using step-indexed predicates over resources and higher-order ghost state. There are two main lines of work for constructing such models. On the one hand, Iris provides these in full generality, at the cost of a large body of mechanised domain theory that is difficult to learn and port to new proof assistants. On the other hand, Indirection Theory is much simpler through the use of ordinary dependent types, but its foundation in separation algebra limits the expressiveness of its resource model compared to Iris-style higher-order ghost state. We resolve this conundrum by showing that Indirection Theory can be as expressive as Iris. To that end, we give a lightweight mechanisation of Indirection Theory in Lean, generalised so knots contain resources from an Iris-style resource algebra functor. We then reconstruct the Iris base logic on top of it. The advantage of this approach is in the elementary metatheory: a user can follow the whole construction without domain theory. We conduct two case studies to show that the base logic is expressive and faithful to Iris: a biorthogonal logical relation for higher-order state, and an Iris-style program logic with invariants and user-definable ghost state, complete enough to verify concurrent and higher-order programs.
Create a lesson
Related papers
Morph-Aware Computing: Compiler-Ordered Updates of Program State after Topology Changes
Shared title terminology · Yusuke Izawa, Junichiro Kadomoto
Validating Concurrent Correctness Witnesses with Ghosts by Thread-Modular Abstract Interpretation
Shared title terminology · Michael Schwarz, Zhendong Ang, Umang Mathur
On the Expressive Power of Hook-Indexed State: Comprehending State in the React UI Library (Extended Version)
Shared title terminology · Toby Ueno, Ezra Cooper, Simon Fowler et al.
Fixing the Fixpoint: A Formal Theory of Convergence Detection for Incremental Recursive Computation
Shared title terminology · Chengxi Yang, Tej Chajed, Thomas Reps
Session Type State Spaces Form Lattices
Shared title terminology · Alexandre Zua Caldeira
DueList: A Theory of Lists with Combinators for SMT Solvers
Shared title terminology · Pierre Goutagny, Aymeric Fromherz, Raphaël Monat