Bibliography. TypeSynth project bibliography [00AH]
- October 12, 2023
- Jon Sterling
Accepted papers
- October 12, 2023
- Jon Sterling
Published papers
- October 12, 2023
- Jon Sterling
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. 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. 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. The essence of generalized algebraic data types [sieczkowski-stepanenko-sterling-birkedal-2024]
This paper considers direct encodings of generalized algebraic data types (GADTs) in a minimal suitable lambda-calculus. To this end, we develop an extension of System Fω with recursive types and internalized type equalities with injective constant type constructors. We show how GADTs and associated pattern-matching constructs can be directly expressed in the calculus, thus showing that it may be treated as a highly idealized modern functional programming language. We prove that the internalized type equalities in conjunction with injectivity rules increase the expressive power of the calculus by establishing a non-macro-expressibility result in Fω, and prove the system type-sound via a syntactic argument. Finally, we build two relational models of our calculus: a simple, unary model that illustrates a novel, two-stage interpretation technique, necessary to account for the equational constraints; and a more sophisticated, binary model that relaxes the construction to allow, for the first time, formal reasoning about data-abstraction in a calculus equipped with GADTs.
@article{sieczkowski-stepanenko-sterling-birkedal-2024,
author = {Sieczkowski, Filip and Stepanenko, Sergei and Sterling, Jonathan and Birkedal, Lars},
title = {The Essence of Generalized Algebraic Data Types},
year = {2024},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
volume = {8},
number = {POPL},
doi = {10.1145/3632866},
journal = {Proc. ACM Program. Lang.},
month = {jan},
articleno = {24},
numpages = {29},
}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},
}Reference. A denotationally-based program logic for higher-order store [aagaard-sterling-birkedal-2023]
- November 23, 2023
- Frederik Lerbjerg Aagaard, Jon Sterling, Lars Birkedal
- 39th International Conference on Mathematical Foundations of Programming Semantics
- 10.46298/entics.12232
Separation logic is used to reason locally about stateful programs. State of the art program logics for higher-order store are usually built on top of untyped operational semantics, in part because traditional denotational methods have struggled to simultaneously account for general references and parametric polymorphism. The recent discovery of simple denotational semantics for general references and polymorphism in synthetic guarded domain theory has enabled us to develop Tulip, a higher-order separation logic over the typed equational theory of higher-order store for a monadic version of System \textbf {F}^{\mu ,\textit {ref}}. The Tulip logic differs from operationally-based program logics in two ways: predicates range over the meanings of typed terms rather than over the raw code of untyped terms, and they are automatically invariant under the equational congruence of higher-order store, which applies even underneath a binder. As a result, “pure” proof steps that conventionally require focusing the Hoare triple on an operational redex are replaced by a simple equational rewrite in Tulip. We have evaluated Tulip against standard examples involving linked lists in the heap, comparing our abstract equational reasoning with more familiar operational-style reasoning. Our main result is the soundness of Tulip, which we establish by constructing a BI-hyperdoctrine over the denotational semantics of \textbf {F}^{\mu ,\textit {ref}} in an impredicative version of synthetic guarded domain theory.
Reference. What should a generic object be? [sterling-2023-generic]
Jacobs has proposed definitions for (weak, strong, split) generic objects for a fibered category; building on his definition of (split) generic objects, Jacobs develops a menagerie of important fibrational structures with applications to categorical logic and computer science, including higher order fibrations, polymorphic fibrations, 𝜆2-fibrations, triposes, and others. We observe that a split generic object need not in particular be a generic object under the given definitions, and that the definitions of polymorphic fibrations, triposes, etc. are strict enough to rule out some fundamental examples: for instance, the fibered preorder induced by a partial combinatory algebra in realizability is not a tripos in this sense. We propose a new alignment of terminology that emphasizes the forms of generic object appearing most commonly in nature, i.e. in the study of internal categories, triposes, and the denotational semantics of polymorphism. In addition, we propose a new class of acyclic generic objects inspired by recent developments in higher category theory and the semantics of homotopy type theory, generalizing the realignment property of universes to the setting of an arbitrary fibration.
@article{sterling-2023-generic,
author = {Sterling, Jonathan},
publisher = {Cambridge University Press},
date = {2023},
doi = {10.1017/S0960129523000117},
journaltitle = {Mathematical Structures in Computer Science},
pages = {1--22},
title = {What should a generic object be?},
}Manuscripts
- October 12, 2023
- Jon Sterling
Dissertations
- October 12, 2023
- Jon Sterling
Technical reports
- October 12, 2023
- Jon Sterling
Workshop talks
- October 12, 2023
- Jon Sterling
Reference. Naïve denotational semantics: synthetic domains in the 21st century [sterling-2023-catmi]
It is easy to teach a student how to give a naïve denotational semantics to a language like System T, and then use it to reason about the equational theory: a type might as well be a set, and a program might as well be a function, and equational adequacy at base type is established using a logical relation between the initial model and the category of sets. Adding any non-trivial feature to this language (e.g. general recursion, polymorphism, state, etc.) immediately increases the difficulty beyond the facility of a beginner: to add recursion, one must replace sets and functions with domains and continuous maps, and to accommodate polymorphism and state, one must pass to increasingly inaccessible variations on this basic picture.
The dream of the 1990s was to find a category that behaves like \mathbf {Set} in which even general recursive and effectful programming languages could be given naïve denotational semantics, where types are interpreted as “sets” and programs are interpreted as a “functions”, without needing to check any arduous technical conditions like continuity. The benefit of this synthetic domain theory is not only that it looks “easy” for beginners, as more expert-level constructions like powerdomains or even domain equations for recursively defined semantic worlds become simple and direct. Although there have been starts and stops, the dream of synthetic domain theory is alive and well in the 21st Century. Today’s synthetic domain theory is, however, both more modular and more powerful than ever before, and has yielded significant results in programming language semantics including simple denotational semantics for an state of the art programming language with higher-order polymorphism, dependent types, recursive types, general reference types, and first-class module packages that can be stored in the heap.
In this talk, I will explain some important classical results in synthetic domain theory as well as more recent results that illustrate the potential impact of “naïve denotational semantics” on the life of a workaday computer scientist.
Reference. Denotational semantics of general store and polymorphism [sterling-gratzer-birkedal-2023-fics]
- February 17, 2023
- Jon Sterling, Daniel Gratzer, Lars Birkedal
- Fixed Points in Computer Science 2023
- /bafkyrzaciawekaofpibsom4raqw2rswnhewhbewt55gecfwstje3jcymexcddd5h2ct6dteizghbuhgdocaxn4ka6ebjvzarchp3y6ps5hj2f4gs.pdf
- Slides
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. 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.
Reference. Controlling unfolding in type theory [sterling-2022-pujet-workshop]
- December 14, 2022
- Jon Sterling
- Workshop on Dependent Type Theory (to celebrate the Defense of Loïc Pujet)
- Slides
We present a novel mechanism for controlling the unfolding of definitions in dependent type theory. Traditionally, proof assistants let users specify whether each definition can or cannot 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 type theory with extension types, a connective first introduced in the context of homotopy type theory. We prove a normalization theorem for our core calculus and have implemented our system in the cooltt proof assistant, providing both theoretical and practical evidence for it.
Seminar talks
- October 12, 2023
- Jon Sterling
Reference. Denotational semantics in impredicative guarded dependent type theory [sterling-2023-logsem]
- April 17, 2023
- Jon Sterling
- Logic and Semantics Seminar, Aarhus University
- Slides
Impredicative guarded dependent type theory (iGDTT) is a new version of type theory that combines guarded recursion (the “later” modality) with impredicative polymorphism (universal and existential types). It turns out that these two features are sufficient to define a very simple denotational semantics for System F with recursive types and higher-order store. We believe that the expressivity of iGDTT brings us one step closer to a general metalanguage for realistic denotational semantics, and provides a compelling strategy to elude the burden of operational semantics. As a further benefit, we are now able to justify the extension of full dependent type theory with a Haskell-style IO-monad and IORef types.
Reference. Crossing boundaries in program semantics [sterling-2023-cambridge]
- February 9, 2023
- Jon Sterling
- Cambridge Computer Laboratory
- Slides
The great semanticist John Reynolds famously wrote in 1983 that “type structure is a syntactic discipline for enforcing levels of abstraction”. If the last twenty years of programming language semantics and verification have taught us anything, it is that we also need a syntactic discipline for breaking abstraction — in other words, a way to glue together programs and verifications that cut across abstraction barriers.
In programming language semantics and verification, the problem of combining multiple levels of abstraction arises when choosing a “level of detail” at which to view program execution: for instance, one could look at program execution as a detailed operational process of discrete steps evincing the cost or complexity of an algorithm, or one could think of it more abstractly as a black box that only sends inputs to outputs. The difficulty is that in practice, verifications tend to cut across this barrier between complexity and functional correctness: for instance, complexity bounds often depend on the functional correctness of subroutines, and the existence of such a bound implies termination (a correctness property).
For this reason, it is crucial to develop integrated logical foundations for soundly reasoning using multiple models of execution at the same time, even when they expose different facets of a program’s meaning. For the past three years, my research program has been to uncover and exploit the basic “laws of motion” governing all such abstraction barriers, which has led to the solution of a few significant open problems in homotopy type theory and modal type theory, as well as some preliminary applications to security and cost analysis.
Reference. New spaces for denotational semantics [sterling-2023-birmingham]
- February 2, 2023
- Jon Sterling
- University of Birmingham
- Slides
Reference. Denotational semantics in impredicative guarded dependent type theory [sterling-2022-itu]
- November 8, 2022
- Jon Sterling
- Programming, Logic and Semantics, ITU Copenhagen
- Slides
Impredicative guarded dependent type theory (iGDTT) is a new version of type theory that combines
guarded recursion (the “later” modality) with impredicative polymorphism (universal and existential types).
It turns out that these two features are sufficient to define a very simple denotational semantics for
System F with recursive types and higher-order store. We believe that the expressivity of iGDTT
brings us one step closer to a general metalanguage for realistic denotational semantics,
and provides a compelling strategy to elude the burden of operational semantics.
As a further benefit, we are now able to justify the extension of full dependent
type theory with a Haskell-style IO-monad and IORef types.
Roladex
- October 12, 2023
- Jon Sterling
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.