Bibliography. New Spaces for Denotational Semantics › Project bibliography [00AI]
- October 12, 2023
- Jon Sterling
Accepted papers
- October 12, 2023
- Jon Sterling
Reference. Fuss-free cumulative universes: theory and practice [sterbac-sterling-2026]
Universes are central to dependent type theory, and they are notoriously difficult to handle in a way that is both correct and usable. We propose a new “fuss-free” generalised algebraic presentation for polymorphic cumulative universes that dispenses with the intricate theory of coherent universe coercions in favour of a simpler formulation, which we prove equivalent by means of a normalisation theorem for the former. We study the fuss-free formulation by means of (1) an abstract specification of its bidirectional elaboration algorithm, and (2) a concrete implementation in Haskell. We also describe and implement an extension of the fuss-free universe hierarchy with a judgemental notion of datatype description from which prior notions of cumulative inductive type may be derived.
Reference. Tensorial structure of the lifting doctrine in constructive domain theory [sterling-2024-lifting]
- December 27, 2023
- April 16, 2024
- April 26, 2024
- Jon Sterling
- Proceedings of Category Theory at Work in Computational Mathematics and Theoretical Informatics
- 10.48550/arXiv.2312.17023
We present a survey of the two-dimensional and tensorial structure of the lifting doctrine in constructive domain theory, i.e. in the theory of directed-complete partial orders (dcpos) over an arbitrary elementary topos. We establish the universal property of lifting of dcpos as the Sierpiński cone, from which we deduce (1) that lifting forms a Kock–Zöberlein doctrine, (2) that lifting algebras, pointed dcpos, and inductive partial orders form canonically equivalent locally posetal 2-categories, and (3) that the category of lifting algebras is cocomplete, with connected colimits created by the forgetful functor to dcpos. Finally we deduce the symmetric monoidal closure of the Eilenberg–Moore resolution of the lifting 2-monad by means of smash products; these are shown to classify both bilinear maps and strict maps, which we prove to coincide in the constructive setting. We provide several concrete computations of the smash product as dcpo coequalisers and lifting algebra coequalisers, and compare these with the more abstract results of Seal. Although all these results are well-known classically, the existing proofs do not apply in a constructive setting; indeed, the classical analysis of the Eilenberg–Moore category of the lifting monad relies on the fact that all lifting algebras are free, a condition that is not known to hold constructively.
Published papers
- October 12, 2023
- Jon Sterling
Reference. Reflexive graph lenses in univalent foundations [sterling-2024-lenses]
- March 30, 2024
- January 19, 2026
- June 25, 2026
- Jon Sterling
- Mathematical Structures in Computer Science, Volume 36.
- 10.1017/S0960129526100565
Martin-Löf’s identity types provide a generic (albeit opaque) notion of identification or “equality” between any two elements of the same type, embodied in a canonical reflexive graph structure (=_A, \mathbf {refl}) on any type A. The miracle of Voevodsky’s univalence principle is that it ensures, for essentially any naturally occuring structure in mathematics, that this the resultant notion of identification is equivalent to the type of isomorphisms in the category of such structures. Characterisations of this kind are not automatic and must be established one-by-one; to this end, several authors have employed reflexive graphs and displayed reflexive graphs to organise the characterisation of identity types. We contribute reflexive graph lenses, a new family of intermediate abstractions lying between families of reflexive graphs and displayed reflexive graphs that simplifies the characterisation of identity types for complex structures. Every reflexive graph lens gives rise to a (more complicated) displayed reflexive graph, and our experience suggests that many naturally occuring displayed reflexive graphs arise in this way. Evidence for the utility of reflexive graph lenses is given by means of several case studies, including the theory of reflexive graphs itself as well as that of polynomial type operators. Finally, we exhibit an equivalance between the type of reflexive graph fibrations and the type of univalent reflexive graph lenses.
Reference. Hofmann–Streicher lifting of fibred categories (extended version) [slattery-sterling-2026]
- June 17, 2026
- Andrew Slattery, Jon Sterling
- Logical Methods in Computer Science, Volume 22, Issue 2
- 10.46298/lmcs-22(2:30)2026
In 1997, Hofmann and Streicher introduced an explicit construction to lift a Grothendieck universe from the category of sets into the category of set-valued presheaves on a small category. More recently, Awodey presented an elegant functorial analysis of this construction in terms of the categorical nerve, the right adjoint to the functor that takes a presheaf to its category of elements; in particular, the categorical nerve’s functorial action on the universal small discrete fibration gives the generic family of the universe’s Hofmann-Streicher lifting. Inspired by Awodey’s analysis, we define a relative version of Hofmann-Streicher lifting in terms of the right pseudo-adjoint to the 2-functor given by postcomposition with a fibration. Finally, we construct a new 2-bifibration of fibrations in which the opcartesian and cartesian lifts arise from these pseudo-adjunctions.
This is an extended version of Hofmann–Streicher lifting of fibred categories, published in LICS ’25: 40th Annual ACM/IEEE Symposium on Logic in Computer Science. The highlighted portion is exclusive to the extended version.
Reference. Strict universes for Grothendieck topoi [gratzer-shulman-sterling-2026-universes]
- February 24, 2022
- May 16, 2024
- May 20, 2026
- Daniel Gratzer, Mike Shulman, Jon Sterling
- Theory and Applications of Categories, Vol. 45, 2026, No. 30, pp 1227-1279
- 10.48550/arXiv.2202.12012
- http://www.tac.mta.ca/tac/volumes/45/30/45-30abs.html
Hofmann and Streicher famously showed how to lift Grothendieck universes into presheaf topoi, and Streicher has extended their result to the case of sheaf topoi by sheafification. In parallel, van den Berg and Moerdijk have shown in the context of algebraic set theory that similar constructions continue to apply even in weaker metatheories. Unfortunately, sheafification seems not to preserve an important realignment property enjoyed by presheaf universes that plays a critical role in models of univalent type theory as well as synthetic Tait computability. When multiple universes are present, realignment also implies a coherent interpretation of connectives across all universes that justifies the cumulativity laws present in popular formulations of Martin-Löf type theory.
We observe that a slight adjustment to an argument of Shulman constructs a cumulative universe hierarchy satisfying the realignment property at every level in any Grothendieck topos. Hence one has direct-style interpretations of Martin-Löf type theory with cumulative universes into all Grothendieck topoi. A further implication is to extend the reach of recent synthetic methods in the semantics of cubical type theory and the syntactic metatheory of type theory and programming languages to all Grothendieck topoi.
@unpublished{gratzer-shulman-sterling-2026-universes,
author = {Gratzer, Daniel and Shulman, Michael and Sterling, Jonathan},
year = {2024},
month = may,
doi = {10.48550/arXiv.2202.12012},
eprint = {2202.12012},
eprintclass = {math.CT},
eprinttype = {arXiv},
note = {Unpublished manuscript},
title = {Strict universes for Grothendieck topoi},
}Reference. Controlling unfolding in type theory [gratzer-sterling-angiuli-coquand-birkedal-2025]
- October 10, 2022
- December 9, 2025
- Daniel Gratzer, Jon Sterling, Carlo Angiuli, Thierry Coquand, Lars Birkedal
- Mathematical Structures in Computer Science
- 10.1017/S0960129525100327
We present a new way to control the unfolding of definitions in dependent type theory. Traditionally, proof assistants require users to fix whether each definition will or will not be unfolded in the remainder of a development; unfolding definitions is often necessary in order to reason about them, but an excess of unfolding can result in brittle proofs and intractably large proof goals. In our system, definitions are by default not unfolded, but users can selectively unfold them in a local manner. We justify our mechanism by means of elaboration to a core theory with extension types—a connective first introduced in the context of homotopy type theory—and by establishing a normalization theorem for our core calculus. We have implemented controlled unfolding in the cooltt proof assistant, inspiring an independent implementation in Agda.
@article{gratzer-sterling-angiuli-coquand-birkedal-2025,
title={Controlling unfolding in type theory},
volume={35},
DOI={10.1017/S0960129525100327},
journal={Mathematical Structures in Computer Science},
author={Gratzer, Daniel and Sterling, Jonathan and Angiuli, Carlo and Coquand, Thierry and Birkedal, Lars},
year={2025},
pages={e38}
}Reference. Hofmann–Streicher lifting of fibred categories [slattery-sterling-2025]
- March 17, 2025
- May 8, 2025
- Andrew Slattery, Jon Sterling
- Distinguished Paper, LICS ’25: 40th Annual ACM/IEEE Symposium on Logic in Computer Science
- 10.1109/LICS65433.2025.00018
In 1997, Hofmann and Streicher introduced an explicit construction to lift a Grothendieck universe
Reference. When is the partial map classifier a Sierpiński cone? [pugh-sterling-2025]
- January 31, 2025
- April 9, 2025
- May 6, 2025
- Leoni Pugh, Jon Sterling
- LICS ’25: 40th Annual ACM/IEEE Symposium on Logic in Computer Science
- 10.1109/LICS65433.2025.00060
- Slides
We study the relationship between partial map classifiers, Sierpiński cones, and axioms for synthetic higher categories and domains within univalent foundations. In particular, we show that synthetic ∞-categories are closed under partial map classifiers assuming Phoa’s principle, and we isolate a new reflective subuniverse of types within which the Sierpiński cone (a lax colimit) can be computed as a partial map classifier by strengthening the Segal condition.
Reference. Toward a geometry for syntax [sterling-2025-grothendieck]
- August 13, 2024
- Jon Sterling
- Chapter contributed to The Mathematical and Philosophical Legacy of Alexander Grothendieck, postproceedings of the Chapman Grothendieck Conference.
- 10.1007/978-3-031-68934-5_15
It often happens that free algebras for a given theory satisfy useful reasoning principles that are not preserved under homomorphisms of algebras, and hence need not hold in an arbitrary algebra. For instance, if M is the free monoid on a set A, then the scalar multiplication function A\times M\to M is injective. Therefore, when reasoning in the formal theory of monoids under A, it is possible to use this injectivity law to make sound deductions even about monoids under A for which scalar multiplication is not injective — a principle known in algebra as the permanence of identity. Properties of this kind are of fundamental practical importance to the logicians and computer scientists who design and implement computerized proof assistants like Lean and Coq, as they enable the formal reductions of equational problems that make type checking tractable.
As type theories have become increasingly more sophisticated, it has become more and more difficult to establish the useful properties of their free models that facilitate effective implementation. These obstructions have facilitated a fruitful return to foundational work in type theory, which has taken on a more geometrical flavor than ever before. Here we expose a modern way to prove a highly non-trivial injectivity law for free models of Martin-Löf type theory, paying special attention to the ways that contemporary methods in type theory have been influenced by three important ideas of the Grothendieck school: the relative point of view, the language of universes, and the recollement of generalized spaces.
@inbook{sterling:2025:grothendieck,
author = {Sterling, Jonathan},
editor = {Panza, Marco and Struppa, Daniele C. and Szczeciniarz, Jean-Jacques},
location = {Cham},
publisher = {Springer Nature Switzerland},
booktitle = {The Mathematical and Philosophical Legacy of Alexander Grothendieck},
year = {2025},
doi = {10.1007/978-3-031-68934-5_15},
eprint = {2307.09497},
eprinttype = {arXiv},
isbn = {978-3-031-68934-5},
pages = {391--432},
title = {Toward a Geometry for Syntax},
}Reference. Cost-sensitive computational adequacy of higher-order recursion in synthetic domain theory [niu-sterling-harper-2024]
We study a cost-aware programming language for higher-order recursion dubbed PCFcost in the setting of synthetic domain theory (SDT). Our main contribution relates the denotational cost semantics of PCFcost to its computational cost semantics, a new kind of dynamic semantics for program execution that serves as a mathematically natural alternative to operational semantics in SDT. In particular we prove an internal, cost-sensitive version of Plotkin’s computational adequacy theorem, giving a precise correspondence between the denotational and computational semantics for complete programs at base type. The constructions and proofs of this paper take place in the internal dependent type theory of an SDT topos extended by a phase distinction in the sense of Sterling and Harper. By controlling the interpretation of cost structure via the phase distinction in the denotational semantics, we show that PCFcost programs also evince a noninterference property of cost and behavior. We verify the axioms of the type theory by means of a model construction based on relative sheaf models of SDT.
Reference. Towards univalent reference types [sterling-gratzer-birkedal-2024-univalent]
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 program equivalences that do not hold when the same constructions are carried out in the universes of traditional set-level (extensional) type theory.
@inproceedings{sterling-gratzer-birkedal-2024-univalent,
author = {Sterling, Jonathan and Gratzer, Daniel and Birkedal, Lars},
title = {{Towards Univalent Reference Types: The Impact of Univalence on Denotational Semantics}},
booktitle = {32nd EACSL Annual Conference on Computer Science Logic (CSL 2024)},
pages = {47:1--47:21},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-310-2},
ISSN = {1868-8969},
year = {2024},
volume = {288},
editor = {Murano, Aniello and Silva, Alexandra},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
doi = {10.4230/LIPIcs.CSL.2024.47},
}Reference. decalf: a directed, effectful cost-aware logical framework [grodin-niu-sterling-harper-2024]
We present decalf, a directed, effectful cost-aware logical framework for studying quantitative aspects of functional programs with effects. Like calf, the language is based on a formal phase distinction between the extension and the intension of a program, its pure behavior as distinct from its cost measured by an effectful step-counting primitive. The type theory ensures that the behavior is unaffected by the cost accounting. Unlike calf, the present language takes account of effects, such as probabilistic choice and mutable state; this extension requires a reformulation of calf’s approach to cost accounting: rather than rely on a “separable” notion of cost, here a cost bound is simply another program. To make this formal, we equip every type with an intrinsic preorder, relaxing the precise cost accounting intrinsic to a program to a looser but nevertheless informative estimate. For example, the cost bound of a probabilistic program is itself a probabilistic program that specifies the distribution of costs. This approach serves as a streamlined alternative to the standard method of isolating a recurrence that bounds the cost in a manner that readily extends to higher-order, effectful programs.
The development proceeds by first introducing the decalf type system, which is based on an intrinsic ordering among terms that restricts in the extensional phase to extensional equality, but in the intensional phase reflects an approximation of the cost of a program of interest. This formulation is then applied to a number of illustrative examples, including pure and effectful sorting algorithms, simple probabilistic programs, and higher-order functions. Finally, we justify decalf via a model in the topos of augmented simplicial sets.
Erratum. Missing assumptions on effect monad in Decalf model [01L4]
- May 19, 2026
At the start of Section 4.5.2 of the version of record published in Proc.ACM, we said:
Let M be a (strong) monad on \mathcal {U}. The monad M may not preserve the property of being a synthetic preorder, but we may adapt it to a monad M_{\mathsf {P}} on \mathcal {U}_{\mathsf {P}} by postprocessing with the synthetic preorder reflection, sending A:\mathcal {U}_{\mathsf {P}} to \mathsf {P}(MA).
Obviously the above does not work unless we have an appropriate distributive law between the monad and the synthetic preorder reflection. We should have instead asked directly for a monad on the reflective subuniverse; the free convex space monad, which is our most sophisticated example, would be phrased as a quotient inductive type internal to the reflective subuniverse—which amounts to adding additional point constructors and equations corresponding to the localisation.
Erratum. Missing assumptions about the interval in Decalf [012Q]
- October 3, 2024
- Jon Sterling
In section 4.2, we assumed only a (non-strict) interval object \mathbb {I}, and then asserted in Definition 4.5 the map (-=1)\colon \mathbb {I}\to \Omega was a monomorphism. Obviously, this need not be the case, so it needs to be turned into an assumption about (\mathcal {E},\mathbb {I}). This assumption will, however, hold of the interval in simplicial sets for the following reason: the interval in simplicial sets is the nerve of the actual poset \{0<1\}, and the statement in question holds for this poset and is preserved by the nerve functor.
@article{grodin-niu-sterling-harper-2024,
author = {Grodin, Harrison and Niu, Yue and Sterling, Jonathan and Harper, Robert},
title = {Decalf: A Directed, Effectful Cost-Aware Logical Framework},
year = {2024},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
volume = {8},
number = {POPL},
doi = {10.1145/3632852},
journal = {Proc. ACM Program. Lang.},
month = {jan},
articleno = {10},
numpages = {29},
}Manuscripts
- October 12, 2023
- Jon Sterling
Reference. Bidirectional Elaborators à la Carte [slattery-sterling-2026-elaborators]
- July 10, 2026
- October 10, 2026
- Andrew Slattery, Jon Sterling
- 10.48550/arXiv.2607.09564
Surface syntax in proof assistants like Rocq, Lean, Agda, and Idris is highly implicit, lacking many details that are needed for user-written code to denote precisely defined mathematical objects. Elaboration is an algorithm that accounts for these details by translating surface syntax to an explicit enough core syntax. The reliability and predictability of elaboration relies on several critical properties of the core type system, including decidability of judgemental equality and the injectivity of type constructors; these dependencies are witnessed in a concrete system by explicit calls to conversion checking and weak-head reduction subroutines.
We introduce a dependently typed monadic domain specific language for the executable specification of correct-by-construction elaboration algorithms that is abstracted from any particular representation of normal forms or algorithm for conversion checking. In particular, we represent a bidirectionally typed surface language for Martin-Löf type theory by shallow embedding in this DSL so that the translation of surface terms into core terms amounts to elementary equational calculation. This translation is correct by construction in the sense that it cannot produce ill-typed terms, and is automatically stable under judgemental equality of core terms and even under substitution; from the latter property, we obtain a new denotational interpretation of the suspension of elaboration problems. Finally, a concrete elaboration algorithm is extracted by algebraic means from a presheaf model of the DSL built out of the bi-initial natural model of Martin-Löf type theory.
Reference. The Synthetic Sierpiński Cone [bakke-sterling-williams-ye-2026]
In domains, categories, and toposes, the Sierpiński cone construction glues onto a space a universal closed point lying below all the other points. Although this is a lax colimit, it also enjoys a well-known right-handed universal property: the Sierpiński cone classifies partial maps defined on an open subspace. The situation proves more subtle in synthetic models of space based on extending homotopy type theory with an interval, as in several recent approaches to synthetic higher categories and domains: although globally it may well be the case that the Sierpiński cone classifies partial maps, this property cannot hold of all parameterised types without degenerating the theory. On the other hand, there are reflective subuniverses within which the classifying property nonetheless holds.
We show that the largest subuniverse in which the Sierpiński cone classifies partial maps is the accessible localisation at a family of embeddings parameterised in the interval, and this subuniverse is contained within the Segal types; this containment is moreover strict in the sense that when the interval is non-trivial, it is not possible for all Segal types to lie in the subuniverse. We finally extend these results from Sierpiński cones to mapping cylinders, providing a new right-handed universal property for the latter.
Reference. Domains and Classifying Topoi [sterling-ye-2025]
- May 19, 2025
- Jon Sterling, Lingyuan Ye
- 10.48550/arXiv.2505.13096
We explore a new connection between synthetic domain theory and Grothendieck topoi related to the distributive lattice classifier. In particular, all the axioms of synthetic domain theory (including the inductive fixed point object and the chain completeness of the dominance) emanate from a countable version of the synthetic quasi-coherence principle that has emerged as a central feature in the unification of synthetic algebraic geometry, synthetic Stone duality, and synthetic category theory. The duality between spatial algebras and sober spaces in a topos with a distributive lattice object provides a new set of techniques for reasoning synthetically about domain-like structures, and reveals a broad class of (higher) sheaf models for synthetic domain theory.
Dissertations
- October 12, 2023
- Jon Sterling
Technical reports
- October 12, 2023
- Jon Sterling
Workshop talks
- October 12, 2023
- Jon Sterling
Seminar talks
- October 12, 2023
- Jon Sterling
Roladex
- October 12, 2023
- Jon Sterling
Person. Andrew Slattery [andrewslattery]
- Research Associate
- Cambridge Computer Laboratory
- Funded under New Spaces for Denotational Semantics
- https://andrewslattery.github.io
Person. Jon Sterling [jonmsterling]
Associate Professor in Logical Foundations and Formal Methods at University of Cambridge. Formerly a Marie Skłodowska-Curie Postdoctoral Fellow hosted at Aarhus University by Lars Birkedal, and before this a PhD student of Robert Harper.
I am a Bye-Fellow of Clare College from February 2024, and have been elected a Fellow for the coming year.