One successful approach to verifying programs is refinement, where one establishes that the implementation (\eg in C) behaves as specified in its mathematical specification. In this approach, the end result (a whole implementation refines a whole specification) is often established via \emph{composing} multiple “small” refinements.
In this paper, we focus on the task of composing refinements. Our key observation is a novel correspondence between the task of composing refinements and the task of proving entailments in modern separation logic. This correspondence is useful. First, it unlocks tools and abstract constructs developed for separation logic, greatly streamlining the composition proof. Second, it uncovers a fundamentally new verification strategy. We address the key challenge in establishing the correspondence with a novel use of \emph{angelic non-determinism}.
Guided by the correspondence, we develop \textbf{Refinement Composition Logic (RCL)}, a logic dedicated to composing refinements. All our results are formalized in Coq.