[Paper Review] Denotational semantics of general store and polymorphism
This paper presents the first denotational semantics for polymorphic dependent type theory extended with general reference types and recursive types, using guarded recursion and synthetic guarded domain theory to model semantic Kripke worlds that are not syntactically definable. The key contribution is a relational model compatible with parametric reasoning and proof-relevant logical relations, enabling synthetic verification of imperative abstract datatypes.
We contribute the first denotational semantics of polymorphic dependent type theory extended by an equational theory for general (higher-order) reference types and recursive types, based on a combination of guarded recursion and impredicative polymorphism; because our model is based on recursively defined semantic worlds, it is compatible with polymorphism and relational reasoning about stateful abstract datatypes. We then extend our language with modal constructs for proof-relevant relational reasoning based on the "logical relations as types" principle, in which equivalences between imperative abstract datatypes can be established synthetically. What is new in relation to prior typed denotational models of higher-order store is that our Kripke worlds need not be syntactically definable, and are thus compatible with relational reasoning in the heap. Our work combines recent advances in the operational semantics of state with the purely denotational viewpoint of synthetic guarded domain theory.
Motivation & Objective
- To provide a denotational semantics for polymorphic dependent type theory with general reference types and recursive types.
- To resolve the longstanding challenge of combining parametric polymorphism with higher-order state in a way that supports relational reasoning.
- To model Kripke worlds that are not syntactically definable, enabling compatibility with heap-based relational reasoning.
- To extend the model with modal constructs for proof-relevant relational reasoning via the logical relations as types principle.
- To lay the foundation for higher-order separation logic in dependent type theory with state.
Proposed method
- Uses synthetic guarded domain theory (SGDT) with the later modality □ to stratify recursive definitions and model time in a denotational framework.
- Defines semantic worlds as a preorder W, where each world assigns semantic types to heap locations, enabling semantic-level reasoning about state.
- Models semantic types as functors from W to predomains, allowing recursive type definitions via domain equations.
- Introduces a Kripke logical relation model where worlds are not required to be syntactically definable, supporting relational reasoning across different heap states.
- Employs the logical relations as types principle to internalize proof-relevant equivalences between imperative abstract datatypes.
- Combines guarded recursion with impredicative polymorphism to support both polymorphism and state in a unified denotational model.
Experimental results
Research questions
- RQ1How can parametric polymorphism and general reference types be coherently combined in a denotational semantics?
- RQ2Can Kripke worlds be defined semantically rather than syntactically to support relational reasoning about heap-allocated state?
- RQ3How can proof-relevant relational reasoning be internalized in a type-theoretic model of higher-order state?
- RQ4What is the role of guarded recursion in resolving domain equations involving semantic types and heap locations?
- RQ5Can a denotational model of dependent type theory with references support modular reasoning via higher-order separation logic?
Key findings
- The paper constructs a fully denotational model of polymorphic dependent type theory with general reference types and recursive types using synthetic guarded domain theory.
- The model supports relational reasoning about stateful abstract datatypes by allowing Kripke worlds to be semantic entities rather than syntactic ones.
- The semantic worlds are defined via a domain equation involving functors from worlds to predomains, resolving prior issues with type connectives in semantic type systems.
- The model enables synthetic proof-relevant relational reasoning through the logical relations as types principle, allowing equivalences between imperative data structures to be established internally.
- The framework is extensible to higher-order separation logic, as demonstrated by a subsequent construction of an Iris-style BI-hyperdoctrine over the model.
- The approach avoids the limitations of prior models that fail with recursive types when using semantic worlds, as shown by a counterexample from Birkedal et al. (2010).
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.