[Paper Review] Concurrent Separation Logic Meets Template Games
This paper establishes a deep categorical connection between concurrent separation logic (CSL) and template game semantics for differential linear logic (DiLL), revealing that CSL's core mechanisms—sequential composition, parallel product, errors, and locks—can be conceptually reinterpreted through the lens of cobordisms and spans in a double category of games. The key contribution is a unified, geometric, and categorical framework that explains the asynchronous soundness of CSL via template games.
An old dream of concurrency theory and programming language semantics has been to uncover the fundamental synchronization mechanisms which regulate situations as different as game semantics for higher-order programs, and Hoare logic for concurrent programs with shared memory and locks. In this paper, we establish a deep and unexpected connection between two recent lines of work on concurrent separation logic (CSL) and on template game semantics for differential linear logic (DiLL). Thanks to this connection, we reformulate in the purely conceptual style of template games for DiLL the asynchronous and interactive interpretation of CSL designed by Melli\`es and Stefanesco. We believe that the analysis reveals something important about the secret anatomy of CSL, and more specifically about the subtle interplay, of a categorical nature, between sequential composition, parallel product, errors and locks.
Motivation & Objective
- To uncover the fundamental categorical structures underlying concurrent separation logic (CSL).
- To establish a conceptual bridge between CSL and template game semantics for differential linear logic (DiLL).
- To reinterpret CSL's core constructs—sequential composition, parallel product, errors, and locks—using the geometric and categorical framework of cobordisms and spans.
- To provide a new, unified interpretation of CSL proofs and code via template games, enhancing understanding of its asynchronous soundness.
Proposed method
- Formalizing CSL as a cospan of transition systems in a category of labeled graphs.
- Introducing a double category of games and cobordisms to model the geometric evolution of program states.
- Defining stateful and stateless machine models as internal categories within a double category framework.
- Using span-monoidal structures to model the parallel product of programs via internal functors and acute spans.
- Applying lifting and tensor product constructions to model error handling and state separation.
- Reinterpreting locks and critical sections via hiding and relabeling maps in the categorical model.
Experimental results
Research questions
- RQ1How can the core constructs of concurrent separation logic—sequential composition, parallel product, errors, and locks—be understood through a unified categorical and geometric framework?
- RQ2What is the precise categorical relationship between template game semantics for DiLL and the asynchronous interpretation of CSL?
- RQ3How do cobordisms and spans in a double category model the flow of states in concurrent programs with shared memory?
- RQ4Can the asynchronous soundness theorem of CSL be derived from a categorical interpretation of template games?
- RQ5What role do relabeling maps and internal functors play in modeling synchronization and resource management in concurrent programs?
Key findings
- The paper establishes a formal duality between Hoare triples in CSL and cobordisms in topology, using cospans of transition systems to model program execution as geometric tubes.
- The asynchronous soundness theorem of CSL is reinterpreted as a structural property of a double category of games, with proofs and programs unified under a single categorical framework.
- The parallel product of programs is modeled as a span-monoidal structure on an internal category of separated states, revealing its categorical essence.
- Errors in programs are captured via a lifting construction on the error monad, which is shown to commute with the categorical operations of the model.
- Locks and critical sections are formalized through hiding and relabeling maps, demonstrating how synchronization mechanisms emerge categorically from the game semantics framework.
- The stateful and stateless interpretations of programs are shown to be isomorphic under the proposed categorical model, validating their semantic equivalence.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.