[Paper Review] Towards Univalent Reference Types: The Impact of Univalence on Denotational Semantics
This paper introduces a denotational semantics for higher-order reference types in an impredicative guarded homotopy type theory extended with univalence, showing that univalence enforces invariance under heap symmetries and enables new program equivalences—such as permutation and representation independence—without explicit equational axioms. The key contribution is that univalence automatically validates equations that are not provable in standard set-level type theory.
We develop a denotational semantics for general reference types in an impredicative version of guarded homotopy type theory, an adaptation of synthetic guarded domain theory to Voevodsky's univalent foundations. We observe for the first time the profound impact of univalence on the denotational semantics of mutable state. Univalence automatically ensures that all computations are invariant under symmetries of the heap -- a bountiful source of program equivalences. In particular, even the most simplistic univalent model enjoys many new equations that do not hold when the same constructions are carried out in the universes of traditional set-level (extensional) type theory.
Motivation & Objective
- To develop a denotational semantics for general reference types in a univalent, impredicative guarded homotopy type theory.
- To investigate how univalence affects the semantics of mutable state and heap-based computations.
- To demonstrate that univalence automatically validates program equivalences such as invariance under heap permutations and representation independence.
- To extend prior models of guarded recursion and reference types by incorporating univalent foundations.
- To lay the groundwork for more abstract, equationally richer models of imperative and object-oriented computation.
Proposed method
- Uses impredicative guarded homotopy type theory (gHoTT) with univalent foundations as the metalanguage.
- Applies synthetic guarded domain theory to model recursive and higher-order reference types.
- Employs univalent reference types with two key laws: the allocation permutation law and the representation independence law.
- Constructs a model where univalence identifies heaps differing only by permutation of memory cells.
- Leverages the fact that univalent types are invariant under symmetries, so isomorphic heaps are propositionally equal.
- Relies on a conjectured model of guarded cubical assemblies with a small, set-reflective, guarded subuniverse containing Inj.
Experimental results
Research questions
- RQ1How does univalence affect the denotational semantics of mutable reference types?
- RQ2What new program equivalences emerge in univalent models of higher-order store compared to classical models?
- RQ3Can univalence enforce invariance under heap permutations and representation isomorphisms without explicit equational axioms?
- RQ4What conditions are required for a model of impredicative guarded HoTT to support univalent reference types?
- RQ5How can univalent semantics support more abstract models of mutable state, such as local store?
Key findings
- Univalence automatically ensures invariance of computations under symmetries of the heap, leading to new program equivalences not derivable in extensional type theory.
- The allocation permutation law holds because univalence identifies heaps created by different allocation orders.
- Representation independence is validated by transport along equivalences between heaps, making isomorphic representations interchangeable.
- The model validates equations such as (ℓ←alloc "hello"; ret 10) = ret 10, reflecting local store behavior.
- The semantics achieve stronger equations than global store models, approaching local store abstraction.
- The framework enables on-the-nose equalities in data abstraction theorems, going beyond observational 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.