Bibliography. Works of Jon Sterling [0064]
Manuscripts
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.
Accepted papers
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
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. 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?},
}Reference. Classifying topoi in synthetic guarded domain theory: the universal property of multi-clock guarded recursion [palombi-sterling-2023]
- February 22, 2023
- Daniele Palombi, Jon Sterling
- 38th International Conference on Mathematical Foundations of Programming Semantics
- 10.46298/entics.10323
- Slides
Several different topoi have played an important role in the development and applications of synthetic guarded domain theory (SGDT), a new kind of synthetic domain theory that abstracts the concept of guarded recursion frequently employed in the semantics of programming languages. In order to unify the accounts of guarded recursion and coinduction, several authors have enriched SGDT with multiple “clocks” parameterizing different time-streams, leading to more complex and difficult to understand topos models. Until now these topoi have been understood very concretely qua categories of presheaves, and the logico-geometrical question of what theories these topoi classify has remained open. We show that several important topos models of SGDT classify very simple geometric theories, and that the passage to various forms of multi-clock guarded recursion can be rephrased more compositionally in terms of the lower bagtopos construction of Vickers and variations thereon due to Johnstone. We contribute to the consolidation of SGDT by isolating the universal property of multi-clock guarded recursion as a modular construction that applies to any topos model of single-clock guarded recursion.
@inproceedings{palombi-sterling-2023,
author = {Palombi, Daniele and Sterling, Jonathan},
booktitle = {Proceedings 38th Conference on Mathematical Foundations of Programming Semantics, {MFPS} 2022},
year = {2023},
month = feb,
title = {Classifying topoi in synthetic guarded domain theory},
doi = {10.46298/entics.10323},
}Reference. A cubical language for Bishop sets [sterling-angiuli-gratzer-2022]
We present XTT, a version of Cartesian cubical type theory specialized for Bishop sets à la Coquand, in which every type enjoys a definitional version of the uniqueness of identity proofs. Using cubical notions, XTT reconstructs many of the ideas underlying Observational Type Theory, a version of intensional type theory that supports function extensionality. We prove the canonicity property of XTT (that every closed boolean is definitionally equal to a constant) by Artin gluing.
@article{sterling-angiuli-gratzer-2022,
author = {Sterling, Jonathan and Angiuli, Carlo and Gratzer, Daniel},
year = {2022},
month = mar,
doi = {10.46298/lmcs-18(1:43)2022},
eprint = {2003.01491},
eprintclass = {cs.LO},
eprinttype = {arXiv},
issue = {1},
journal = {Logical Methods in Computer Science},
title = {{A Cubical Language for Bishop Sets}},
volume = {18},
}Reference. A cost-aware logical framework [niu-sterling-grodin-harper-2022]
- January 1, 2022
- Yue Niu, Jon Sterling, Harrison Grodin, Robert Harper
- Proceedings of the ACM on Programming Languages, Volume 6, Issue POPL
- 10.1145/3498670
We present calf, a cost-aware logical framework for studying quantitative aspects of functional programs. Taking inspiration from recent work that reconstructs traditional aspects of programming languages in terms of a modal account of phase distinctions, we argue that the cost structure of programs motivates a phase distinction between intension and extension. Armed with this technology, we contribute a synthetic account of cost structure as a computational effect in which cost-aware programs enjoy an internal noninterference property: input/output behavior cannot depend on cost. As a full-spectrum dependent type theory, calf presents a unified language for programming and specification of both cost and behavior that can be integrated smoothly with existing mathematical libraries available in type theoretic proof assistants.
We evaluate calf as a general framework for cost analysis by implementing two fundamental techniques for algorithm analysis: the method of recurrence relations and physicist’s method for amortized analysis. We deploy these techniques on a variety of case studies: we prove a tight, closed bound for Euclid’s algorithm, verify the amortized complexity of batched queues, and derive tight, closed bounds for the sequential and parallel complexity of merge sort, all fully mechanized in the Agda proof assistant. Lastly we substantiate the soundness of quantitative reasoning in calf by means of a model construction.
Reference. Sheaf semantics of termination-insensitive noninterference [sterling-harper-2022]
- 2022
- Jon Sterling, Robert Harper
- 7th International Conference on Formal Structures for Computation and Deduction (FSCD 2022)
- 10.4230/LIPIcs.FSCD.2022.5
- https://arxiv.org/abs/2204.09421
- Slides
We propose a new sheaf semantics for secure information flow over a space of abstract behaviors, based on synthetic domain theory: security classes are open/closed partitions, types are sheaves, and redaction of sensitive information corresponds to restricting a sheaf to a closed subspace. Our security-aware computational model satisfies termination-insensitive noninterference automatically, and therefore constitutes an intrinsic alternative to state of the art extrinsic/relational models of noninterference. Our semantics is the latest application of Sterling and Harper’s recent re-interpretation of phase distinctions and noninterference in programming languages in terms of Artin gluing and topos-theoretic open/closed modalities. Prior applications include parametricity for ML modules, the proof of normalization for cubical type theory by Sterling and Angiuli, and the cost-aware logical framework of Niu et al. In this paper we employ the phase distinction perspective twice: first to reconstruct the syntax and semantics of secure information flow as a lattice of phase distinctions between “higher” and “lower” security, and second to verify the computational adequacy of our sheaf semantics with respect to a version of Abadi et al.’s dependency core calculus to which we have added a construct for declassifying termination channels.
Erratum. Minor mistakes in sheaf semantics of noninterference [005Y]
- 2023
- Jon Sterling
In the published version of this paper, there were a few mistakes that have been corrected in the local copy hosted here.
- In the Critique of relational semantics for information flow, our discussion of the Failure of monotonicity stated incorrectly that algebras for the sealing monad at a higher security level could not be transformed into algebras for the sealing monad at a lower security level in the semantics of Abadi et al. This is not true, as pointed out to us privately by Carlos Tomé Cortiñas. What we meant to say was that it is not the case that a type whose component at a high security level is trivial shall always remain trivial at a lower security level.
- The original version of the extended edition of this paper, we claimed that the constructive existence of tensor products on pointed dcpos was obvious; in fact, tensor products do exist, but their construction involves a reflexive coequalizer of pointed dcpos.
Erratum. Adequacy of sheaf semantics of noninterference [005Z]
- July 17, 2023
- Jon Sterling
A serious (and as-yet unfixed) problem was discovered in July of 2023 by Yue Niu, which undermines the proof of adequacy given; in particular, the proof that the logical relation on free algebras is admissible is not correct. I believe there is a different proof of adequacy for the calculus described, but it will have a different structure from what currently appears in the paper. We thank Yue Niu for his attention to detail and careful reading of this paper.
Reference. Logical relations as types: proof-relevant parametricity for program modules [sterling-harper-2021]
- December 1, 2021
- Jon Sterling, Robert Harper
- Journal of the ACM, Volume 68, Issue 6
- 10.1145/3474834
The theory of program modules is of interest to language designers not only for its practical importance to programming, but also because it lies at the nexus of three fundamental concerns in language design: the phase distinction, computational effects, and type abstraction. We contribute a fresh “synthetic” take on program modules that treats modules as the fundamental constructs, in which the usual suspects of prior module calculi (kinds, constructors, dynamic programs) are rendered as derived notions in terms of a modal type-theoretic account of the phase distinction. We simplify the account of type abstraction (embodied in the generativity of module functors) through a lax modality that encapsulates computational effects, placing projectibility of module expressions on a type-theoretic basis.
Our main result is a (significant) proof-relevant and phase-sensitive generalization of the Reynolds abstraction theorem for a calculus of program modules, based on a new kind of logical relation called a parametricity structure. Parametricity structures generalize the proof-irrelevant relations of classical parametricity to proof-relevant families, where there may be non-trivial evidence witnessing the relatedness of two programs—simplifying the metatheory of strong sums over the collection of types, for although there can be no “relation classifying relations,” one easily accommodates a “family classifying small families.”
Using the insight that logical relations/parametricity is itself a form of phase distinction between the syntactic and the semantic, we contribute a new synthetic approach to phase separated parametricity based on the slogan logical relations as types, by iterating our modal account of the phase distinction. We axiomatize a dependent type theory of parametricity structures using two pairs of complementary modalities (syntactic, semantic) and (static, dynamic), substantiated using the topos theoretic Artin gluing construction. Then, to construct a simulation between two implementations of an abstract type, one simply programs a third implementation whose type component carries the representation invariant.
Erratum. Minor mistakes in logical relations as types [0060]
- 2021
- Jon Sterling
After going to press, we have fixed the following mistakes:
- In the definition of a logos, we mistakenly said that “colimits commute with finite limits” but we meant to say that they are preserved by pullback. We thank Sarah Z. Rovner-Frydman for noticing this mistake.
- In Remark 5.15, we used the notation for the closed immersion prior to introducing it.
- We have fixed a few broken links in the bibliography.
The local copy hosted here has the corrections implemented
Reference. Normalization for cubical type theory [sterling-angiuli-2021]
- July 7, 2021
- Jon Sterling, Carlo Angiuli
- 2021 36th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS)
- 10.1109/LICS52264.2021.9470719
- https://arxiv.org/abs/2101.11479
- Slides
We prove normalization for (univalent, Cartesian) cubical type theory, closing the last major open problem in the syntactic metatheory of cubical type theory. Our normalization result is reduction-free, in the sense of yielding a bijection between equivalence classes of terms in context and a tractable language of \beta /\eta -normal forms. As corollaries we obtain both decidability of judgmental equality and the injectivity of type constructors.
Reference. Higher order functions and Brouwer’s Thesis [sterling-2021-bhfs]
- May 19, 2021
- Jon Sterling
- Journal of Functional Programming, Bob Harper Festschrift Collection
- 10.1017/S0956796821000095
Extending Martín Escardó’s effectful forcing technique, we give a new proof of a well-known result: Brouwer’s monotone bar theorem holds for any bar that can be realized by a functional of type {\mathopen {}\left (\mathbb {N}\to \mathbb {N}\right )\mathclose {}}\to \mathbb {N} in Gödel’s System T. Effectful forcing is an elementary alternative to standard sheaf-theoretic forcing arguments, using ideas from programming languages, including computational effects, monads, the algebra interpretation of call-by-name λ-calculus, and logical relations. Our argument proceeds by interpreting System T programs as well-founded dialogue trees whose nodes branch on a query to an oracle of type \mathbb {N}\to \mathbb {N}, lifted to higher type along a call-by-name translation. To connect this interpretation to the bar theorem, we then show that Brouwer’s famous “mental constructions” of barhood constitute an invariant form of these dialogue trees in which queries to the oracle are made maximally and in order.
@article{sterling-2021-bhfs,
author = {Sterling, Jonathan},
publisher = {Cambridge University Press},
date = {2021},
doi = {10.1017/S0956796821000095},
eprint = {1608.03814},
eprintclass = {math.LO},
eprinttype = {arXiv},
journaltitle = {Journal of Functional Programming},
note = {\emph{Bob Harper Festschrift Collection}},
pages = {e11},
title = {Higher order functions and Brouwer’s thesis},
volume = {31},
}Reference. Cubical syntax for reflection-free extensional equality [sterling-angiuli-gratzer-2019]
- 2019
- Jon Sterling, Carlo Angiuli, Daniel Gratzer
- FSCD ’19: International Conference on Formal Structures for Computation and Deduction; Best Paper Award for Junior Researchers
- 10.4230/LIPIcs.FSCD.2019.31
- Slides
We contribute XTT, a cubical reconstruction of Observational Type Theory [Altenkirch et al., 2007] which extends Martin-Löf’s intensional type theory with a dependent equality type that enjoys function extensionality and a judgmental version of the unicity of identity proofs principle (UIP): any two elements of the same equality type are judgmentally equal. Moreover, we conjecture that the typing relation can be decided in a practical way. In this paper, we establish an algebraic canonicity theorem using a novel extension of the logical families or categorical gluing argument inspired by Coquand and Shulman: every closed element of boolean type is derivably equal to either true or false.
@inproceedings{sterling-angiuli-gratzer-2019,
author = {Sterling, Jonathan and Angiuli, Carlo and Gratzer, Daniel},
editor = {Geuvers, Herman},
location = {Dagstuhl, Germany},
publisher = {Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik},
url = {http://drops.dagstuhl.de/opus/volltexte/2019/10538},
booktitle = {Proceedings of the 4th International Conference on Formal Structures for Computation and Deduction (FSCD 2019)},
date = {2019},
doi = {10.4230/LIPIcs.FSCD.2019.31},
eprint = {1904.08562},
eprinttype = {arXiv},
isbn = {978-3-95977-107-8},
issn = {1868-8969},
pages = {31:1--31:25},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
title = {Cubical Syntax for Reflection-Free Extensional Equality},
volume = {131},
}Reference. Implementing a modal dependent type theory [gratzer-sterling-birkedal-2019]
Modalities are everywhere in programming and mathematics! Despite this, however, there are still significant technical challenges in formulating a core dependent type theory with modalities. We present a dependent type theory MLTT🔒 supporting the connectives of standard Martin-Löf Type Theory as well as an S4-style necessity operator. MLTT🔒 supports a smooth interaction between modal and dependent types and provides a common basis for the use of modalities in programming and in synthetic mathematics. We design and prove the soundness and completeness of a type checking algorithm for MLTT🔒, using a novel extension of normalization by evaluation. We have also implemented our algorithm in a prototype proof assistant for MLTT🔒, demonstrating the ease of applying our techniques.
@article{gratzer-sterling-birkedal-2019,
author = {Gratzer, Daniel and Sterling, Jonathan and Birkedal, Lars},
location = {New York, NY, USA},
publisher = {ACM},
date = {2019-07},
doi = {10.1145/3341711},
issn = {2475-1421},
journaltitle = {Proceedings of the ACM on Programming Languages},
keywords = {Modal types,dependent types,normalization by evaluation,type-checking},
number = {ICFP},
pages = {107:1--107:29},
title = {Implementing a Modal Dependent Type Theory},
volume = {3},
}Reference. Guarded computational type theory [sterling-harper-2018]
Nakano’s later modality can be used to specify and define recursive functions which are causal or synchronous; in concert with a notion of clock variable, it is possible to also capture the broader class of productive (co)programs. Until now, it has been difficult to combine these constructs with dependent types in a way that preserves the operational meaning of type theory and admits a hierarchy of universes. We present an operational account of guarded dependent type theory with clocks called Guarded Computational Type Theory, featuring a novel clock intersection connective that enjoys the clock irrelevance principle, as well as a predicative hierarchy of universes which does not require any indexing in clock contexts. Guarded Computational Type Theory is simultaneously a programming language with a rich specification logic, as well as a computational metalanguage that can be used to develop semantics of other languages and logics.
@inproceedings{sterling-harper-2018,
author = {Sterling, Jonathan and Harper, Robert},
title = {Guarded Computational Type Theory},
booktitle = {Proceedings of the 33rd Annual ACM/IEEE Symposium on Logic in Computer Science},
series = {LICS '18},
year = {2018},
isbn = {978-1-4503-5583-4},
location = {Oxford, United Kingdom},
pages = {879--888},
numpages = {10},
url = {http://doi.acm.org/10.1145/3209108.3209153},
doi = {10.1145/3209108.3209153},
acmid = {3209153},
publisher = {ACM},
address = {New York, NY, USA},
keywords = {clocks, dependent types, guarded recursion, operational semantics, type theory},
}Reference. Dependent types for pragmatics [valentine-sterling-2016]
- 2016
- Rebecca Valentine, Jon Sterling
- In: Redmond J., Pombo Martins O., Nepomuceno Fernández Á. (eds) Epistemology, Knowledge and the Impact of Interaction. Logic, Epistemology, and the Unity of Science, vol 38. Springer, Cham.
- 10.1007/978-3-319-26506-3_4
In this paper, we present an extension to Martin-Löf’s Intuitionistic Type Theory which gives natural solutions to problems in pragmatics, such as pronominal reference and presupposition. Our approach also gives a simple account of donkey anaphora without resorting to exotic scope extension of the sort used in Discourse Representation Theory and Dynamic Semantics, thanks to the proof-relevant nature of type theory.
@inbook{valentine-sterling-2016,
author={Valentine, Rebecca and Sterling, Jonathan},
editor={Redmond, Juan and Pombo Martins, Olga and Nepomuceno Fern{\'a}ndez, {\'A}ngel},
title={Dependent Types for Pragmatics},
booktitle={Epistemology, Knowledge and the Impact of Interaction},
year={2016},
publisher={Springer International Publishing},
address={Cham},
pages={123--139},
isbn={978-3-319-26506-3},
doi={10.1007/978-3-319-26506-3_4},
}Dissertation
Reference. First steps in synthetic Tait computability: the objective metatheory of cubical type theory [sterling-2021-thesis]
- September 13, 2021
- Jon Sterling
- Doctoral dissertation, Carnegie Mellon University; 2022 Edmund M. Clarke Dissertation Award
- 10.5281/zenodo.5709837
- /bafkyrzacibpz5d5f4m4cct2pjqxrtghku7wut7bt6oskla4d7g3dbetfexvaoekr73346jjebrtslp2xm6xdxzmmca3yaotzfcwjt2ugew6q5msd.pdf
The implementation and semantics of dependent type theories can be studied in a syntax-independent way: the objective metatheory of dependent type theories exploits the universal properties of their syntactic categories to endow them with computational content, mathematical meaning, and practical implementation (normalization, type checking, elaboration). The semantic methods of the objective metatheory inform the design and implementation of correct-by-construction elaboration algorithms, promising a principled interface between real proof assistants and ideal mathematics.
In this dissertation, I add synthetic Tait computability to the arsenal of the objective metatheorist. Synthetic Tait computability is a mathematical machine to reduce difficult problems of type theory and programming languages to trivial theorems of topos theory. First employed by Sterling and Harper to reconstruct the theory of program modules and their phase separated parametricity, synthetic Tait computability is deployed here to resolve the last major open question in the syntactic metatheory of cubical type theory: normalization of open terms.
@phdthesis{sterling-2021-thesis,
author = {Sterling, Jonathan},
school = {Carnegie Mellon University},
year = {2021},
doi = {10.5281/zenodo.6990769},
note = {Version 1.1, revised May 2022},
number = {CMU-CS-21-142},
title = {First Steps in Synthetic {Tait} Computability: The Objective Metatheory of Cubical Type Theory},
}Presentations
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.
Reference. Sheaf semantics of termination-insensitive noninterference [sterling-2022-muri]
- June 30, 2022
- Jon Sterling, Robert Harper
- MURI Team Meeting 2022
- Slides
Erratum. Adequacy of sheaf semantics of noninterference [005Z]
- July 17, 2023
- Jon Sterling
A serious (and as-yet unfixed) problem was discovered in July of 2023 by Yue Niu, which undermines the proof of adequacy given; in particular, the proof that the logical relation on free algebras is admissible is not correct. I believe there is a different proof of adequacy for the calculus described, but it will have a different structure from what currently appears in the paper. We thank Yue Niu for his attention to detail and careful reading of this paper.
@misc{sterling-harper-2022-muri,
author = {Sterling, Jonathan and Harper, Robert},
url = {\route-asset{assets/slides/sterling:2022:muri.pdf}},
year = {2022},
month = jun,
note = {Talk given at the 2022 MURI Team Meeting},
title = {Sheaf semantics of termination-insensitive noninterference},
}Reference. Naïve logical relations in synthetic Tait computability [sterling-2022-wg6]
- May 20, 2022
- Jon Sterling
- WG6 kick-off meeting: Syntax and Semantics of Type Theories
Logical relations are the main tool for proving positive properties of logics, type theories, and programming languages: canonicity, normalization, decidability, conservativity, computational adequacy, and more. Logical relations combine pure syntax with non-syntactic objects that are parameterized in syntax in a somewhat complex way; the sophistication of possible parameterizations makes logical relations a tool that is primarily accessible to specialists. In the spirit of Halmos' book Naïve Set Theory, I advocate for a new viewpoint on logical relations based on synthetic Tait computability, the internal language of categories of logical relations. In synthetic Tait computability, logical relations are manipulated as if they were sets, making the essence of many complex logical relations arguments accessible to non-specialists.
@misc{sterling-2022-wg6,
author = {Sterling, Jonathan},
year = {2022},
month = may,
note = {WG6 kick-off meeting: Syntax and Semantics of Type Theories (Invited Talk)},
title = {Na\"{i}ve logical relations in synthetic {Tait} computability},
}Reference. Make three to throw away: frontiers in homotopical proof assistants [sterling-2022-wits]
- January 22, 2022
- Jon Sterling
- Workshop on the Implementation of Type Systems (keynote)
- Slides
- Video
For six years, I have served as the founder and technical leader of the RedPRL Development Team which has produced three interactive proof assistants for variants of cubical type theory: RedPRL, redtt, and cooltt. I will share several lessons that we have learned about the design and implementation of homotopical proof assistants along this journey. This talk discusses joint work with Carlo Angiuli, Evan Cavallo, Favonia, and Reed Mullanix.
Reference. Normalization for (Cartesian) cubical type theory [sterling-2021-muri]
- October 15, 2021
- Jon Sterling
- MURI Team Meeting 2021
- Slides
Reference. A metalanguage for multi-phase modularity [sterling-harper-2021-mlw]
Type abstraction, the phase distinction, and computational effects all play an important role in the design and implementation of ML-style module systems. We propose a simple type theoretic metalanguage φML for multi-phase modularity in which these concepts are treated individually, supporting the definition of high-level modular constructs such as generative and applicative functors, as well as all extant forms of structure sharing.
@unpublished{sterling-harper-2021-mlw,
author = {Sterling, Jonathan and Harper, Robert},
url = {https://icfp21.sigplan.org/details/mlfamilyworkshop-2021-papers/5/A-metalanguage-for-multi-phase-modularity},
year = {2021},
month = aug,
note = {ML 2021 abstract and talk},
title = {A metalanguage for multi-phase modularity},
}Reference. Normalization for cubical type theory [sterling-angiuli-2021-ct]
Reference. (cubical) computability structures [sterling-2020-muri]
- March 2020
- Jon Sterling
- MURI Team Meeting 2020
- Slides
Reference. Cubical exact equality and categorical gluing [sterling-angiuli-gratzer-2019-hott]
- 2019
- Jon Sterling, Carlo Angiuli, Daniel Gratzer
- International Conference on Homotopy Type Theory, 2019
- Slides
We contribute XTT, a cubical reconstruction of Observational Type Theory which extends intensional type theory with a dependent equality type that enjoys function extensionality and judgmental unicity of identity proofs. XTT employs a variant of the Cartesian cubical Kan operations satisfying regularity (i.e., transport in constant type families is judgmentally constant), allowing its equality type to model Martin-Lof’s identity type judgmentally. We prove canonicity for the initial model of XTT (i.e., any closed term of boolean type is equal to either true or false) using a novel cubical extension (independently proposed by Awodey) of the categorical gluing technique inspired by Coquand and Shulman, in which we glue the fundamental fibration of a category of augmented Cartesian cubical sets along a cubical nerve. We conjecture that our methods will extend to open terms, allowing us to establish normalization and decidability of the typing relation.
Reference. XTT: cubical syntax for extensional equality (without equality reflection) [sterling-angiuli-gratzer-2019-types]
- 2019
- Jon Sterling, Carlo Angiuli, Daniel Gratzer
- TYPES 2019
- Slides
Reference. redtt: implementing cartesian cubical type theory [redtt-2018-dagstuhl]
- August 2018
- Carlo Angiuli, Evan Cavallo, Kuen-Bang Hou (Favonia), Robert Harper, Anders Mörtberg, Jon Sterling
- Dagstuhl Seminar 18341: Formalization of Mathematics in Type Theory
- Slides
Reference. The RedPRL proof assistant [redprl-2018-lfmtp]
- 2018
- Carlo Angiuli, Evan Cavallo, Kuen-Bang Hou (Favonia), Robert Harper, Jon Sterling
- International Workshop on Logical Frameworks and Meta-Languages: Theory and Practice (LFMTP), 2018
- 10.4204/EPTCS.274.1
RedPRL is an experimental proof assistant based on Cartesian cubical computational type theory, a new type theory for higher-dimensional constructions inspired by homotopy type theory. In the style of Nuprl, RedPRL users employ tactics to establish behavioral properties of cubical functional programs embodying the constructive content of proofs. Notably, RedPRL implements a two-level type theory, allowing an extensional, proof-irrelevant notion of exact equality to coexist with a higher-dimensional proof-relevant notion of paths.
@inproceedings{redprl-2018-lfmtp,
author = {Angiuli, Carlo and Cavallo, Evan and {Hou (Favonia)}, Kuen-Bang and Harper, Robert and Sterling, Jonathan},
editor = {Blanqui, Fr\'{e}d\'{e}ric and Reis, Giselle},
publisher = {Open Publishing Association},
booktitle = {Proceedings of the 13th International Workshop on Logical Frameworks and Meta-Languages: Theory and Practice, LFMTP@FSCD 2018, Oxford, UK, 7th July 2018.},
date = {2018},
doi = {10.4204/EPTCS.274.1},
pages = {1--10},
title = {{The \textsf{\textcolor[rgb]{.91,.31,.27}{Red}PRL} Proof Assistant (Invited Paper)}},
}Seminar talks
Reference. Is it time for a new proof assistant? [sterling-2025-hottest]
- September 25, 2025
- Jon Sterling
- HoTTEST
- https://hottest-seminar.github.io/
- Slides
- Video
It could be time to build a non-experimental proof assistant for homotopy type theory and univalent foundations. I’ll give my thoughts on what that would entail, and where we are able to contribute in the era of Pax Leanica, focusing on algebraic hierarchies, carefully designed user experience, and a proposed return to foundational orthodoxy.
Correction
- September 25, 2025
- Jon Sterling
In this talk, I inadvertently referred to Conor Titania Mc Bride with the wrong pronouns. I’m deeply sorry to Conor for this mistake, and also to anyone else who felt alienated as a result. The uploaded slides have been corrected, but the mistake is present in the recording. Sincerely, Jon.
Reference. When is the partial map classifier a Sierpiński cone? [sterling-2025-yamcats-37]
- April 23, 2025
- Jon Sterling, with contributions from Leoni Pugh
- Yorkshire and Midlands Category Theory Seminar #37
The idea of synthetic domain theory is to work in the internal language of a topos containing an interval object that forms a dominance and satisfies a few other axioms, such as Phoa’s principle. Then, not all objects deserve to be called “predomains”, but the ones that do invariably arise within full internal reflective subcategories defined by simple orthogonality laws stated in terms of the interval’s geometry. It so happens that some of these orthogonality laws are also of use in defining synthetic ∞-categories à la Riehl and Shulman.
I will outline some recent results in synthetic (higher) domain theory obtained with my former Masters student Leoni Pugh concerning partial map classifiers, including (1) the closure of synthetic ∞-categories under partial map classifiers, and (2) the discovery of a strengthening of the Segal completeness law that, amongst synthetic partial orders, causes the partial map classifier to coincide with the Sierpiński cone.
(See our joint paper When is the partial map classifier a Sierpiński cone?, to appear in LICS ’25: 40th Annual ACM/IEEE Symposium on Logic in Computer Science.)
Reference. Hofmann–Streicher lifting of fibred categories [sterling-2024-cmu-hott]
- September 4, 2024
- Jon Sterling, with contributions from Daniel Gratzer, Andrew Slattery
- CMU HoTT Seminar
In 1997, Hofmann and Streicher introduced an explicit technique to lift a Grothendieck universe
Although Awodey has investigated Hofmann–Streicher lifting in terms of a 1-functor
In joint work with Daniel Gratzer and Andrew Slattery, we have constructed a relative version of the 2-functorial Hofmann–Streicher lifting: given a fibration
Reference. An invitation to univalent foundations of mathematics [00AQ]
Voevodsky’s univalent foundations and homotopy type theory comprise a new and radical approach to the foundations of mathematics in which the structural properties of equality are extended to every possible form of equivalence and symmetry, leading to an expanded universe of discourse in which ordinary sets and algebraic structures exist harmoniously alongside infinite-dimensional spaces. In this talk, I will expose the basic grammar and vocabulary of the new univalent foundations — and explain how they shed light on basic problems in theoretical computer science and the specification of computer programs.
Reference. Synthetic domains in the 21st century [sterling-2023-topos-colloquium]
- September 28, 2023
- Jon Sterling
- Topos Institute Colloquium
- https://topos.site/topos-colloquium/
It is easy to teach a student how to give a naïve denotational semantics to a typed lambda calculus without recursion, 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 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 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.
Reference. Naïve logical relations in synthetic Tait computability [sterling-2022-pps]
- June 9, 2022
- Jon Sterling
- Proofs, Programs and Systems seminar (IRIF PPS)
Logical relations are the main tool for proving positive properties of logics, type theories, and programming languages: canonicity, normalization, decidability, conservativity, computational adequacy, and more. Logical relations combine pure syntax with non-syntactic objects that are parameterized in syntax in a somewhat complex way; the sophistication of possible parameterizations makes logical relations a tool that is primarily accessible to specialists. In the spirit of Halmos' book Naïve Set Theory, I advocate for a new viewpoint on logical relations based on synthetic Tait computability, the internal language of categories of logical relations. In synthetic Tait computability, logical relations are manipulated as if they were sets, making the essence of many complex logical relations arguments accessible to non-specialists.
Reference. Intrinsic semantics of termination-insensitive noninterference [sterling-2022-bu-popv]
- April 26, 2022
- Jon Sterling
- Boston University POPV Seminar
- Slides
Security-typed programming languages aim to control the flow of high-security information to low security clients. Starting with Abadi et al.’s dependency core calculus, the denotational semantics of such languages has been dominated by an extrinsic approach in which an existing insecure model of computation (e.g. ordinary domains) is restricted by a logical relation of “indistinguishability” to prevent low-security outputs from depending on high-security inputs (noninterference). Thus in the extrinsic approach, security properties are bolted onto an insecure model by brute force, as it were. A more refined information flow policy called termination-insensitive noninterference allows high-security bits to be leaked through termination channels but not through return values; unfortunately, the adaptation of the extrinsic/relational semantics to this more relaxed policy is incompatible with the transitivity of the logical relation, contradicting the intuition of “indistinguishability”.
In contrast, an intrinsic semantics of security typing would involve a new computational model that evinces secure information flow and noninterference properties directly without any post hoc restriction by a logical relation. We contribute the first such intrinsic semantics of security typing in this sense by considering sheaves of dcpos on a space of abstract behaviors on which security classes arise as open/closed partitions; the security monads then arise as the closed modalities of topos theory that restrict a sheaf to its component over a closed subspace.
An advantage of our intrinsic semantics is that termination-insensitive noninterference arises automatically from our computational model, namely the fact that the Sierpiński domain is not a constant sheaf; a further advantage is that our semantics is an instance of standard domain theoretic denotational semantics, albeit over a richer category of domains.
(j.w.w. R. Harper)
Reference. Towards a geometry for syntax [sterling-2021-ccl]
- November 19, 2021
- Jon Sterling
- Cambridge Computer Laboratory
- Slides
The purpose of this talk is to pose the question, “What are the Euclid’s postulates for syntactic metatheory?”
In the fourth century B.C.E., the Greek mathematician Euclid set down his famous postulates for plane geometry, explaining geometric shapes in terms of rules that govern their construction and incidence. The dialectical relationship between theories (axioms) and their models (coordinate systems) has been the driving force in the last two millennia of geometrical investigation.
In logic and computer science, workers in the “syntactic metatheory” investigate questions that lie on the fringe between a theory and its models — definability, normalization, decidability, conservativity, computational adequacy, parametricity, type safety, etc. Dominant methods attack these questions by means of explicit computations (e.g. Kripke logical relations) which practitioners have found to be both reliable and somewhat opaque. In this talk, I introduce Synthetic Tait computability — a new system of axioms that transforms these explicit computations into synthetic manipulations; classical Kripke logical relations can be seen as models or “coordinate systems” for the new geometry of syntax that is beginning to unfold.
Synthetic Tait computability has already been employed to positively resolve the normalization and decidability conjectures for cubical type theory, as well as a number of other recent results.
Reference. Between abstraction and composition... [sterling-2021-logsem]
- November 1, 2021
- Jon Sterling
- Logic and Semantics Seminar, Aarhus University
- Slides
The fundamental contradiction of programming and program verification can be located in the tension between abstraction and composition. We make programs more abstract in order to prevent bad interactions between components; on the other side of the coin, we impede the composition of components when we abstract them. Modern programming practice evinces many distinct levels of abstraction that must be considered at the same time — for instance, compilers break module boundaries during linking, complexity analysis breaks the abstraction of extensional equivalence, and logical relations proofs break the abstraction of closure under substitution. What is needed to meet this challenge is linguistic tools that smoothly interpolate between these different levels of abstraction. Building on my doctoral dissertation and joint work with Bob Harper, I introduce a new plan for modal programming languages and logics that treat the transition between different abstraction levels as a first-class notion.
Reference. Abstraction, composition, and the phase distinction [sterling-2021-cmu-ss]
- August 24, 2021
- Jon Sterling
- CMU Speakers Club
- Slides
Programmers use abstraction to hide representation details from ourselves: either to avoid mistakes (e.g. confusing a list index with a length) or to exploit representation invariants (e.g. two implementations of the QUEUE interface are indistinguishable). These abstraction boundaries can unfortunately impede the linking of smaller program units into efficient composite programs, because compilers must exploit representation details in order to produce efficient code. Sometimes seen as the “waterloo of separate compilation”, the need to break abstraction is answered by whole-program analysis techniques that break all abstractions (as in the MLton compiler for Standard ML). Separate compilation, however, has a number of advantages including speed, parallelization, and elegance.
We present an alternative type theoretic account of abstraction-breaking during compilation based on the famous phase distinction of ML languages; rather than distinguishing between compiletime and runtime, we focus on separating “devtime” from compiletime. Our framework allows the programmer to selectively reveal representation details to the compiler without giving up the representation independence properties guaranteed by “devtime” type correctness. We also describe an application to the problem of printf-debugging, which is ordinarily obstructed by abstraction.
Reference. Normalization for cubical type theory [sterling-angiuli-2021-padova]
- May 2021
- Jon Sterling, Carlo Angiuli
- Padova Logic Seminar
We prove normalization for (univalent, Cartesian) cubical type theory, closing the last major open problem in the syntactic metatheory of cubical type theory. The main difficulty in comparison to conventional type theory is located in a new feature of cubical type theories, the absence of a stable notion of neutral term: for instance, the path application (p @ i) ceases to be neutral within its “locus of instability” ∂(i) and must compute to an endpoint. We introduce a new, geometrically-inspired generalization of the notion of neutral term, stabilizing neutrals by gluing them together with partial computability data along their loci of instability — when the locus of instability is nowhere, a stabilized neutral is a conventional neutral, and when the locus of instability is everywhere, a stabilized neutral is just computability data. Our normalization result is based on a reduction-free Artin gluing argument, and yields an injective function from equivalence classes of terms in context to a tractable language of beta/eta-normal forms. As corollaries we obtain both decidability of judgmental equality, as well as injectivity of type constructors in contexts formed by assuming variables x : A and dimensions i : 𝕀.
Reference. Logical relations as types [sterling-2021-au-ccs]
- April 2021
- Jon Sterling
- CCS Colloquium, Augusta University
- Slides
- Video
This is joint work with Robert Harper.
How do you prove that two implementations of an abstract type behave the same in all configurations? Reynolds famously employed logical relations to establish such results; roughly, a logical relation is a structure-respecting relation between two interpretations of a theory that evinces, in the base case, a desirable invariant.
We present a synthetic way to understand and interact with logical relations, related to classical logical relations in the same way that Euclidean geometry relates to point-sets. Previously a logical relation was defined in terms of the (complicated) details of how it is constructed as a certain kind of relation over syntax. We instead take the simpler view that everything in sight is a logical relation, and then use modalities to isolate those logical relations that are degenerate in either the syntactic or the semantic direction.
Our “logical relations as types” principle has led to a new account of modules and representation independence (S., Harper), as well as the first proofs of normalization for cubical type theory (S., Angiuli) and general multi-modal dependent type theory (Gratzer).
Reference. Normalization for cubical type theory [sterling-2021-cmu-hott]
- February 2021
- Jon Sterling, Carlo Angiuli
- Pittsburgh’s HoTT Seminar
We prove normalization for (univalent, Cartesian) cubical type theory, closing the last major open problem in the syntactic metatheory of cubical type theory. The main difficulty in comparison to conventional type theory is located in a new feature of cubical type theories, the absence of a stable notion of neutral term: for instance, the path application p(i) ceases to be neutral within its “locus of instability” ∂(i) and must compute to an endpoint. We introduce a new, geometrically-inspired generalization of the notion of neutral term, stabilizing neutrals by gluing them together with partial computability data along their loci of instability — when the locus of instability is nowhere, a stabilized neutral is a conventional neutral, and when the locus of instability is everywhere, a stabilized neutral is just computability data. Our normalization result is based on a reduction-free Artin gluing argument, and yields an injective function from equivalence classes of terms in context to a tractable language of beta/eta-normal forms. As corollaries we obtain both decidability of judgmental equality, as well as injectivity of type constructors in contexts formed by assuming variables x : A and dimensions i : 𝕀.
(j.w.w. Carlo Angiuli.)
Reference. redtt and the future of Cartesian cubical type theory [sterling-2020-epa]
- June 2020
- Jon Sterling
- Every Proof Assistant
- Video
redtt is an interactive proof assistant for Cartesian cubical type theory, a version of Martin-Löf type theory featuring computational versions of function extensionality, higher inductive types, and univalence. Building on ideas from Epigram, Agda, and Idris, redtt introduces a new cubical take on interactive proof development with holes. We will first introduce the basics of cubical type theory and then dive into an interactive demonstration of redtt’s features and its mathematical library.
After this we will catch a first public glimpse of the future of redtt, a new prototype that our team is building currently code-named “cooltt”: cooltt introduces syntax to split on disjunctions of cofibrations in arbitrary positions, implementing the full definitional eta law for disjunction. While cooltt is still in the early stages, it already has full support for univalence and cubical interactive proof development.
Reference. Objective metatheory of dependent type theories [sterling-2020-hottest]
- March 2020
- Jon Sterling
- HoTTEST
- Slides
- Video
What type theorists and other researchers in type theory have in common is that they study theorems that hold of the initial model of type theory; but type theorists especially emphasize the theorems whose statements are sufficiently non-type-theoretic that they need not be preserved by homomorphisms of models. These theorems, sometimes called “metatheorems” or “admissibilities”, are the means by which we conceive and justify computerized implementations of type theory, including canonicity, normalization, and decidability of type checking and judgmental equality.
The main tool for proving such theorems is Tait’s method of computability, which has in the past several years been subject to a rapid campaign of rectification using the categorical language of Artin gluing. I will give an overview of this brave new “objective computability”, emphasizing my recent joint work with Angiuli and Gratzer on a general gluing theorem for models of MLTT along flat functors into Grothendieck topoi, with an application to cubical type theory.
Reference. Gluing models of type theory along flat functors [sterling-angiuli-2020]
We extend the theory of Artin gluing to strict dependent type theory: given a flat functor F : C → E from the category of contexts a model of Martin-Löf type theory into a Grothendieck topos E, we may construct the F-computability families model of type theory. Our theorem extends to MLTT with a (strict, weak) universe à la Tarski if E may be equipped with a (strict, weak) universe à la Tarski.
We introduce a more tractable approach to gluing models of type theory, working primarily within a suitably enlarged category of computability families which are not all tracked by syntactical entities, but which is densely generated by the subcategory of such computability families.