Curriculum vitæ [008L]
- September 8, 2023
- Jon Sterling
Research themes [008N]
- September 8, 2023
- Jon Sterling
Central to both the design of programming languages and the practice of software engineering is the tension between abstraction and composition. I employ semantic methods from category theory and type theory to design, verify, and implement languages that enable both programmers and mathematicians to negotiate the different levels of abstraction that arise in their work. I apply my research to global safety and security properties of programming languages as well as the design and implementation of interactive theorem provers for higher-dimensional mathematics. I develop foundational and practical mathematical tools to deftly weave together verifications that cut across multiple levels of abstraction.
Professional history [008M]
- September 8, 2023
- Jon Sterling
From September 2023, I have been an Associate Professor at University of Cambridge. From October 2024, I have also been a Fellow of Clare College, where I am Director of Studies in Computer Science and serve as a Tutor.
From 2022, I was a Marie Skłodowska-Curie Postdoctoral Fellow hosted at Aarhus University working with Professor Lars Birkedal.
From 2016 to 2021, I was a PhD student of Professor Robert Harper at Carnegie Mellon University, where I wrote my doctoral thesis on synthetic Tait computability and its application to normalization for cubical type theory.
Refereed papers
- September 8, 2023
- Jon Sterling
Reference. Reflexive graph lenses in univalent foundations [sterling-2024-lenses]
- March 30, 2024
- January 19, 2026
- June 25, 2026
- Jon Sterling
- Mathematical Structures in Computer Science, Volume 36.
- 10.1017/S0960129526100565
Martin-Löf’s identity types provide a generic (albeit opaque) notion of identification or “equality” between any two elements of the same type, embodied in a canonical reflexive graph structure (=_A, \mathbf {refl}) on any type A. The miracle of Voevodsky’s univalence principle is that it ensures, for essentially any naturally occuring structure in mathematics, that this the resultant notion of identification is equivalent to the type of isomorphisms in the category of such structures. Characterisations of this kind are not automatic and must be established one-by-one; to this end, several authors have employed reflexive graphs and displayed reflexive graphs to organise the characterisation of identity types. We contribute reflexive graph lenses, a new family of intermediate abstractions lying between families of reflexive graphs and displayed reflexive graphs that simplifies the characterisation of identity types for complex structures. Every reflexive graph lens gives rise to a (more complicated) displayed reflexive graph, and our experience suggests that many naturally occuring displayed reflexive graphs arise in this way. Evidence for the utility of reflexive graph lenses is given by means of several case studies, including the theory of reflexive graphs itself as well as that of polynomial type operators. Finally, we exhibit an equivalance between the type of reflexive graph fibrations and the type of univalent reflexive graph lenses.
Reference. Hofmann–Streicher lifting of fibred categories (extended version) [slattery-sterling-2026]
- June 17, 2026
- Andrew Slattery, Jon Sterling
- Logical Methods in Computer Science, Volume 22, Issue 2
- 10.46298/lmcs-22(2:30)2026
In 1997, Hofmann and Streicher introduced an explicit construction to lift a Grothendieck universe from the category of sets into the category of set-valued presheaves on a small category. More recently, Awodey presented an elegant functorial analysis of this construction in terms of the categorical nerve, the right adjoint to the functor that takes a presheaf to its category of elements; in particular, the categorical nerve’s functorial action on the universal small discrete fibration gives the generic family of the universe’s Hofmann-Streicher lifting. Inspired by Awodey’s analysis, we define a relative version of Hofmann-Streicher lifting in terms of the right pseudo-adjoint to the 2-functor given by postcomposition with a fibration. Finally, we construct a new 2-bifibration of fibrations in which the opcartesian and cartesian lifts arise from these pseudo-adjunctions.
This is an extended version of Hofmann–Streicher lifting of fibred categories, published in LICS ’25: 40th Annual ACM/IEEE Symposium on Logic in Computer Science. The highlighted portion is exclusive to the extended version.
Reference. Strict universes for Grothendieck topoi [gratzer-shulman-sterling-2026-universes]
- February 24, 2022
- May 16, 2024
- May 20, 2026
- Daniel Gratzer, Mike Shulman, Jon Sterling
- Theory and Applications of Categories, Vol. 45, 2026, No. 30, pp 1227-1279
- 10.48550/arXiv.2202.12012
- http://www.tac.mta.ca/tac/volumes/45/30/45-30abs.html
Hofmann and Streicher famously showed how to lift Grothendieck universes into presheaf topoi, and Streicher has extended their result to the case of sheaf topoi by sheafification. In parallel, van den Berg and Moerdijk have shown in the context of algebraic set theory that similar constructions continue to apply even in weaker metatheories. Unfortunately, sheafification seems not to preserve an important realignment property enjoyed by presheaf universes that plays a critical role in models of univalent type theory as well as synthetic Tait computability. When multiple universes are present, realignment also implies a coherent interpretation of connectives across all universes that justifies the cumulativity laws present in popular formulations of Martin-Löf type theory.
We observe that a slight adjustment to an argument of Shulman constructs a cumulative universe hierarchy satisfying the realignment property at every level in any Grothendieck topos. Hence one has direct-style interpretations of Martin-Löf type theory with cumulative universes into all Grothendieck topoi. A further implication is to extend the reach of recent synthetic methods in the semantics of cubical type theory and the syntactic metatheory of type theory and programming languages to all Grothendieck topoi.
@unpublished{gratzer-shulman-sterling-2026-universes,
author = {Gratzer, Daniel and Shulman, Michael and Sterling, Jonathan},
year = {2024},
month = may,
doi = {10.48550/arXiv.2202.12012},
eprint = {2202.12012},
eprintclass = {math.CT},
eprinttype = {arXiv},
note = {Unpublished manuscript},
title = {Strict universes for Grothendieck topoi},
}Reference. Controlling unfolding in type theory [gratzer-sterling-angiuli-coquand-birkedal-2025]
- October 10, 2022
- December 9, 2025
- Daniel Gratzer, Jon Sterling, Carlo Angiuli, Thierry Coquand, Lars Birkedal
- Mathematical Structures in Computer Science
- 10.1017/S0960129525100327
We present a new way to control the unfolding of definitions in dependent type theory. Traditionally, proof assistants require users to fix whether each definition will or will not be unfolded in the remainder of a development; unfolding definitions is often necessary in order to reason about them, but an excess of unfolding can result in brittle proofs and intractably large proof goals. In our system, definitions are by default not unfolded, but users can selectively unfold them in a local manner. We justify our mechanism by means of elaboration to a core theory with extension types—a connective first introduced in the context of homotopy type theory—and by establishing a normalization theorem for our core calculus. We have implemented controlled unfolding in the cooltt proof assistant, inspiring an independent implementation in Agda.
@article{gratzer-sterling-angiuli-coquand-birkedal-2025,
title={Controlling unfolding in type theory},
volume={35},
DOI={10.1017/S0960129525100327},
journal={Mathematical Structures in Computer Science},
author={Gratzer, Daniel and Sterling, Jonathan and Angiuli, Carlo and Coquand, Thierry and Birkedal, Lars},
year={2025},
pages={e38}
}Reference. Hofmann–Streicher lifting of fibred categories [slattery-sterling-2025]
- March 17, 2025
- May 8, 2025
- Andrew Slattery, Jon Sterling
- Distinguished Paper, LICS ’25: 40th Annual ACM/IEEE Symposium on Logic in Computer Science
- 10.1109/LICS65433.2025.00018
In 1997, Hofmann and Streicher introduced an explicit construction to lift a Grothendieck universe
Reference. When is the partial map classifier a Sierpiński cone? [pugh-sterling-2025]
- January 31, 2025
- April 9, 2025
- May 6, 2025
- Leoni Pugh, Jon Sterling
- LICS ’25: 40th Annual ACM/IEEE Symposium on Logic in Computer Science
- 10.1109/LICS65433.2025.00060
- Slides
We study the relationship between partial map classifiers, Sierpiński cones, and axioms for synthetic higher categories and domains within univalent foundations. In particular, we show that synthetic ∞-categories are closed under partial map classifiers assuming Phoa’s principle, and we isolate a new reflective subuniverse of types within which the Sierpiński cone (a lax colimit) can be computed as a partial map classifier by strengthening the Segal condition.
Reference. Toward a geometry for syntax [sterling-2025-grothendieck]
- August 13, 2024
- Jon Sterling
- Chapter contributed to The Mathematical and Philosophical Legacy of Alexander Grothendieck, postproceedings of the Chapman Grothendieck Conference.
- 10.1007/978-3-031-68934-5_15
It often happens that free algebras for a given theory satisfy useful reasoning principles that are not preserved under homomorphisms of algebras, and hence need not hold in an arbitrary algebra. For instance, if M is the free monoid on a set A, then the scalar multiplication function A\times M\to M is injective. Therefore, when reasoning in the formal theory of monoids under A, it is possible to use this injectivity law to make sound deductions even about monoids under A for which scalar multiplication is not injective — a principle known in algebra as the permanence of identity. Properties of this kind are of fundamental practical importance to the logicians and computer scientists who design and implement computerized proof assistants like Lean and Coq, as they enable the formal reductions of equational problems that make type checking tractable.
As type theories have become increasingly more sophisticated, it has become more and more difficult to establish the useful properties of their free models that facilitate effective implementation. These obstructions have facilitated a fruitful return to foundational work in type theory, which has taken on a more geometrical flavor than ever before. Here we expose a modern way to prove a highly non-trivial injectivity law for free models of Martin-Löf type theory, paying special attention to the ways that contemporary methods in type theory have been influenced by three important ideas of the Grothendieck school: the relative point of view, the language of universes, and the recollement of generalized spaces.
@inbook{sterling:2025:grothendieck,
author = {Sterling, Jonathan},
editor = {Panza, Marco and Struppa, Daniele C. and Szczeciniarz, Jean-Jacques},
location = {Cham},
publisher = {Springer Nature Switzerland},
booktitle = {The Mathematical and Philosophical Legacy of Alexander Grothendieck},
year = {2025},
doi = {10.1007/978-3-031-68934-5_15},
eprint = {2307.09497},
eprinttype = {arXiv},
isbn = {978-3-031-68934-5},
pages = {391--432},
title = {Toward a Geometry for Syntax},
}Reference. Cost-sensitive computational adequacy of higher-order recursion in synthetic domain theory [niu-sterling-harper-2024]
We study a cost-aware programming language for higher-order recursion dubbed PCFcost in the setting of synthetic domain theory (SDT). Our main contribution relates the denotational cost semantics of PCFcost to its computational cost semantics, a new kind of dynamic semantics for program execution that serves as a mathematically natural alternative to operational semantics in SDT. In particular we prove an internal, cost-sensitive version of Plotkin’s computational adequacy theorem, giving a precise correspondence between the denotational and computational semantics for complete programs at base type. The constructions and proofs of this paper take place in the internal dependent type theory of an SDT topos extended by a phase distinction in the sense of Sterling and Harper. By controlling the interpretation of cost structure via the phase distinction in the denotational semantics, we show that PCFcost programs also evince a noninterference property of cost and behavior. We verify the axioms of the type theory by means of a model construction based on relative sheaf models of SDT.
Reference. Towards univalent reference types [sterling-gratzer-birkedal-2024-univalent]
We develop a denotational semantics for general reference types in an impredicative version of guarded homotopy type theory, an adaptation of synthetic guarded domain theory to Voevodsky’s univalent foundations. We observe for the first time the profound impact of univalence on the denotational semantics of mutable state. Univalence automatically ensures that all computations are invariant under symmetries of the heap—a bountiful source of program equivalences. In particular, even the most simplistic univalent model enjoys many new program equivalences that do not hold when the same constructions are carried out in the universes of traditional set-level (extensional) type theory.
@inproceedings{sterling-gratzer-birkedal-2024-univalent,
author = {Sterling, Jonathan and Gratzer, Daniel and Birkedal, Lars},
title = {{Towards Univalent Reference Types: The Impact of Univalence on Denotational Semantics}},
booktitle = {32nd EACSL Annual Conference on Computer Science Logic (CSL 2024)},
pages = {47:1--47:21},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-310-2},
ISSN = {1868-8969},
year = {2024},
volume = {288},
editor = {Murano, Aniello and Silva, Alexandra},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
doi = {10.4230/LIPIcs.CSL.2024.47},
}Reference. 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},
}Service [008O]
- September 8, 2023
- Jon Sterling
Conference programme committees [00AF]
- October 12, 2023
- Jon Sterling
Workshop programme committees [00AG]
- October 12, 2023
- Jon Sterling
- MFPS ’27: Mathematical Foundations of Programming Semantics
- HoTT-UF ’24: Workshop on Homotopy Type Theory/ Univalent Foundations
- WITS ’23: Workshop on the Implementation of Type Systems
- HoTT-UF ’23: Workshop on Homotopy Type Theory/ Univalent Foundations
- TyDe ’22: Workshop on Type-driven Development
Departmental service [01L9]
- June 5, 2026
- Jon Sterling
- 2025–2026: Chair of Examiners (Part IA); Tripos Management Committee Member; Dissertation Assessor (Part II)
- 2024–2025: Examiner (Part IA); Dissertation Assessor (Part II)
- 2023–2024: Dissertation Assessor (Part II)
College service [01LA]
- June 5, 2026
- Jon Sterling
I have been Director of Studies in Computer Science since 2024, and a Tutor since 2025. I also serve in other College roles, including the Gardens Committee and the Wine Committee. Since 2024 I have been Junior Inspector of Plate.
Funding and grants [006B]
Teaching [007Z]
I teach the following courses and modules at Cambridge:
Awards [009I]
- September 23, 2023
- Jon Sterling
- Distinguished Paper, LICS ’25: Hofmann–Streicher lifting of fibred categories
- 2022 Edmund M. Clarke Dissertation Award: First steps in synthetic Tait computability: the objective metatheory of cubical type theory
- Distinguished Paper, ICFP ’19: Implementing a modal dependent type theory
- Best Paper Award for Junior Researchers, FSCD ’19: Cubical syntax for reflection-free extensional equality
- 2011 W. K. Pritchett Prize in Elementary Greek