Manuscript Offprint
arXiv:2610.25085A sound pure type system with ranks as sorts and Type-in-Type
Pavel Sokolov ppsokolov@hse.ru
Alexander Kuklev a@kuklev.com
HSE University, Laboratory of Theoretical Computer Science
Radboud Univ. Nijmegen, Department of Software Science
ABSTRACT. We present a dependently typed pure type system that contains a circular axiom for a certain sort and is nonetheless strongly normalizing. Girard's paradox is avoided because our sorts are not closed under a -former: function types are placed in sorts according to their rank. Turns out that this system has a unique set of characteristics: it has similar normalization behaviour as STLC (so complexity of normalization is TOWER-complete) while at the same time allowing non-uniform representation of arbitrary elementary recursive functions; furthermore, it has a nontrivial set-theoretical model in ZF+GCH and allows to carry out nontrivial proof developments. Base normalization proof is surprisingly simple (modulo general metatheoretical properties of pure type systems) and has been fully formalized in vanilla Rocq (formerly Coq) without additional axioms.
1. Introduction
Pure type systems (PTS) are a family of minimalistic typed λ-calculi introduced independently by Berardi [Ber88] and Terlouw [Ter89]. Their abstract grammar includes only variables , abstraction , application , dependent function types (where might depend on ) and sorts that act as “types of types”.
Variable
Sort
Term variable
sort as type
type of dependent functions
anonymous function
function application
FIGURE 1. Grammar of pure type systems
Common syntax conventions to make it more lightweight are the following: application associates to the left, so is understood as ; in a sequence of abstractions, all symbols except the first can be omitted; is an alias for (where does not depend on ); is right-associative, so is understood as . In addition, even though abstractions are always annotated with a type of an argument, we are going to omit it on paper whenever they are clear from the context. Also note that there is no syntactical distinction between terms and types — they are defined by a single grammar; an expression can act both as a term and as a type depending on a side where it stands next to the colon in the typing judgement : __.
Date: October 16, 2026.
2020 Mathematics Subject Classification. 03B38, 03D15, 03B70, 03B40, 68N18.
A single PTS is determined by two relations:
-
axiom relation determines “to which sort(s) a given sort belongs as an element”; instead of it is customary to write simply .
-
rule relation Rule places types of functions into sorts accounting for the sorts where and are situated.
FIGURE 2. Typing rules of pure type systems
Systems from Barendregt's lambda cube [Bar91; Bar92] fit naturally into the framework: for example, simply typed lambda calculus (STLC) [Chu40] can be viewed as a pure type system with a single sort , no axioms and a single rule (,,). In general, however, pure type systems are dependently typed since allows the codomain type to depend on the value of an argument — Coquand's Calculus of Constructions (CoC) [CH88] sits comfortably at the top of lambda cube and is modelled as a pure type system with two sorts {},□}, a single axiom * : □ and four rules corresponding to simple functions (,,), polymorphic functions (□,,), type operators (□,□,□) and dependent types (*,□,□).
Both STLC and CoC are strongly normalizing and sound with respect to their set-theoretical semantics [Tai67; CG90; GN91], but it is not true for arbitrary PTS.
Theorem (Girard'72 [Gir72; Hur95]). The following PTS called System U is not normalizing:
Furthermore, the offending term has type .P.
This result is dubbed “Girard’s paradox” since it renders System U inconsistent with respect to its intended logical semantics: inhabitedness of .P would mean that every proposition is provable. Thus, any system where System U embeds is inconsistent, too; in particular, an original version [Mar71] of Martin-Löf’s Intuitionistic Type Theory [Mar84] embeds the following PTS known as “Type-in-Type” which is inconsistent due to Girard’s paradox:
For a pure type system with usual set-theoretical semantics, it is natural to expect that a sort of small types * is closed under , thus we cannot forbid the rule (,,*); then, a circular axiom * : * has to go. Long story short, it motivates an introduction of a universe hierarchy [Mar75; HP91] with axioms and rules for each ; when interpreted in sets, is taken to be the -th inaccessible cardinal [Wer97; Acz99].
Observing this, we took an interest in the following two questions:
-
If we were to drop the rule and keep the axiom instead, can we find a nontrivial consistent pure type system?
-
Is there a consistent pure type system with total relations Ax and Rule whose natural set-theoretical semantics do not involve the assumption of inaccessible cardinals?
Turns out that, for both questions, the answer is “yes”. Furthermore, both yes-s are witnessed by a single PTS, which we dub PTS-rk:
(Naming “rk” comes from rank, since rules compute precisely the rank of functions, which is the maximal nesting of in the domain type.)
Indeed, there is a circular axiom , and System U is not embeddable since is not closed under for any . Also, as we will see in Section 3, our PTS-rk is strongly normalizing despite an intuition that might “feel wrong”. Modulo general metatheory of pure type systems laid out in Section 2, a normalization proof turned out to be suspiciously simple, even more so in comparison with normalization proofs of other dependently typed systems [GN91; Bar99; AÖV18]. To dispel our own doubts, we formalized a proof of normalization in Rocq (formerly Coq) without using any additional axioms, yielding a fully constructive proof; our journey in formalization is summarized in Section 3.1 and the whole development is available at https://github.com/TurtlePU/pts-rk.
Having completed the proof, we noticed that it exposes a primitive recursive procedure to normalize terms of PTS-rk; we dug further and discovered that, actually, there is an intimate connection between a class of elementary recursive functions [Kal43; Ros84a] and our system, as seen in Sections 4-5. As a byproduct of our study on complexity, we built a sound set-theoretic model for PTS-rk (see Section 6) which assumes Generalized Continuum Hypothesis [Jec03; Hau08; Göd38; Göd40] which is an unusual pick for dependently typed systems where inaccessible cardinals are a more common assumption [Wer97; LW11]. Before concluding, we provide a sneak peek into what it is like to write proofs in PTS-rk and provide a full interpretation of Tarski–Mostowski–Robinson arithmetic R (Section 7).
1.1. Use of artificial intelligence. At various points in our research, we interacted with GPT-6 Astra [Ope26] to prove something for us. Sometimes it was a rehash of previously established results; sometimes it presented something new. In case we used the ideas hinted by LLM, we explicitly state so right next to the proof; even so, the text is completely human written since we wanted to make sure we completely understood the results (in addition, generated proofs always required additional explanations or a complete rewrite to make them understandable and simpler to read). We also used Claude Fable 5.1 [Ant26] to identify additional points of reference.
1.2. Formalization status. Every result up to the proof of strong normalization for PTS-rk was formally verified in Rocq using handwritten proofs. Such proofs are marked with a ☐; each icon is a hyperlink to the statement and proof in Rocq with the version pinned at the moment of submission.
Results after that were formalized in Rocq as well, albeit not by us but rather by GPT-6 Astra. Such results are marked with ✉; just as with handwritten results, each icon is a hyperlink to the statement and proof in Rocq with the version pinned at the moment of submission. Where only a component of a paper claim is checked, a note explaining what exactly is formalized accompanies the badge.
2.1. PTS as a rewriting system. In Fig. 2, a rule of conversion (CONV) mentions definitional equality of types . It is defined as a reflexive, symmetric, transitive closure of a one-step reduction.
Definition 1 (One-step reduction). Relation of a one-step reduction is the smallest relation satisfying the following rules:
In essence, actual reduction happens only in rule BETA; other rules simply state that we can freely reduce any subterm.
The following result will be greatly useful in our development. It was proven many times over for different similar systems [CR36; Bar92]; we briefly revisit the proof since previous presentations usually did not allow reductions in the type of argument T in .
Theorem 1 (Characterization of ). In an arbitrary PTS,
where is the reflexive transitive closure of .
PROOF. Note that it is enough to prove that has a diamond property — for each such that and there exists a such that and :
Then, any ‘mountains’ in the path can be switched into ‘valleys’.
Now, diamond property is proven by the standard technique of parallel reduction [Mar71] which is defined as the smallest relation satisfying:
Intuitively, while is a single -reduction somewhere in the term and is a sequence of reductions, is several simultaneous reductions immediately available in the term. Notice, then, that ; by monotonicity of reflexive transitive closure, , so . Thus, it is enough to prove the diamond property of . Diamond property is preserved under reflexive transitive closure, so it is enough to prove diamond property of , which holds by tedious case analysis.
Setting aside practical applications of this theorem (to algorithmically check equivalence of terms, we can now search for a common reduction result), it will prove useful already in our proof development. For example, the following “equality inversion” lemmas are direct corollaries:
Corollary 1 (Equality inversion). If then ; if then and .
They will become necessary in proving subject reduction, or type preservation. But first, we will show some structural properties of a typing judgement given in Fig. 2.
2.2. Properties of a typing judgement. These properties have certainly been proven before for PTS [Bar92; GN91], but our formulation of the typing rules slightly differs in important places, so it is better to recheck that these properties hold.
Lemma 1 (Weakening ). The following rule is admissible:
PROOF. By structural induction on the typing derivation.
Lemma 2 (Substitution ). The following rule is admissible:
PROOF. By structural induction on the typing derivation for . For variables in , it is necessary that both and get substitutions of for so VAR is still applicable; for places in where used to be, we need to apply a weakening lemma to the typing derivation for exactly times. In the case of CONV it is important that definitional equality of types is preserved by substitution (thanks to characterization of ).
In addition, there is a family of so-called inversion lemmas [Bar92; Ben93] stating that a type of well-typed term is largely determined by the shape of a term. They are also proven by straightforward induction on typing derivation (each one is proven separately, no mutual induction involved):
Lemma 3 (Inversion lemmas ).
(1)
To progress further, we need to make certain assumptions about the PTS in question.
Definition 2 (Functional PTS). A pure type system is called functional if and Rule are functional relations, that is,
Definition 3 (Total PTS). A pure type system is called total if and Rule are total relations, that is,
Theorem 2 (Uniqueness of typing ). In a functional PTS, the following rule is admissible:
PROOF. By structural induction on t and inversion of the given typing derivations.
• : by functionality of Ax.
- : inversion of typing gives a pair of (possibly different) sorts for and another pair for . By induction we get that ranks inside pairs are definitionally equal, which by equality inversion gives strictly equal sorts. Then what is needed holds by the functionality of Rule.
• The case for is trivial.
• : by induction hypotheses and by congruence of .
- : by typing inversion and by induction hypothesis for we get and . We need which we get from equality inversion and preservation of def.eq. under substitution.
In our proof of normalization, we are going to rely on yet another property: if there is a derivation for , then is itself typeable with some sort. However, it does not hold in our current formulation of typing rules: in , nothing prevents a context from containing an entry where is not typeable. Thus, we need an additional assumption.
Definition 4 (Context well-formedness). Context is well-formed (written ) if every type in it is typed by some sort. Formally, a set of well-formed contexts is the least set closed by the following rules:
(where · denotes an empty context).
Usually, when presenting a dependently typed system, context well-formedness is added as a premise to typing rules which would otherwise be premise-free (such as Ax and VAR in a PTS). Here we instead provide it as an additional assumption only when necessary; in addition to leading to simpler metatheory (we avoid an otherwise mutually inductive definition of (⊥_ ) and (⊥⊥ :_)), this is closer to how decision procedures for typing judgements are implemented.
Theorem 3 (Typing yields correct type ). In a total PTS, if and , then there exists such that .
PROOF. By structural induction on the typing derivation.
• Ax, RULE: by totality of Ax.
• VAR: follows from .
• ABS: by totality of Rule.
- APP: . From induction hypothesis for we know that for some , then by typing inversion for we get that is typable with some sort. Then what is needed follows from a substitution lemma.
• CONV: what is needed is present in the premise.
Totality is not a strictly necessary requirement — similar true propositions can be stated for non-total PTS, for example, in CoC typing yields type which is either itself typable or equal to □ [Bar92; Luo94]. But PTS-rk is indeed total so the theorem above is enough for our purposes.
Theorem 4 (Subject reduction ). In a total PTS, the following rule is admissible:
PROOF. By structural induction over derivation of . Inversion of a typing judgement yields all necessary info, albeit because of it types are now given only up to definitional equality, so we have to apply the conversion rule in each case. Crucially, it requires the type we convert into to be typable by a sort, so that is where we use Theorem 3.
The only tricky cases are reductions of a domain type in and . Let us consider the case of the following reduction:
To complete this case, we have to prove that given that . By appropriately strengthening the statement, we get that it is enough to prove admissibility of the following rule called context reduction:
The proof is, again, by induction on the typing derivation. The only non-trivial case is with VAR rule used on ; it is taken care of by the appropriate use of CONV rule to convert to . To use conversion, we have to prove that is well-typed; thankfully, it follows from .
Note that context reduction is admissible in arbitrary PTS! We do not need it anywhere else, though, so we did not state it as a separate lemma.
Characterization of definitional equality, uniqueness of typing and subject reduction together imply the following corollary we are going to use a few times in our normalization proof:
Corollary 2 (Type stability). In a total functional PTS, the following holds:
2.3. Properties of strongly normalizing terms. We are almost done with classical results! What is left now is to state which terms are strongly normalizing and collect properties of s.n. terms which allow our soundness proof to go through.
Informally, a term is strongly normalizing iff there are no infinite reduction chains starting from it. In constructive setting and in formalization, the following definition is a bit better [Alt93a; Raa+99]:
Definition 5 (Strongly normalizing term). Set of s.n. terms is the smallest set sn in which the following rule is valid:
In other words, a term is strongly normalizing iff all possible reductions from it are strongly normalizing.
Thus, terms which cannot be reduced further (also known as terms in normal form) are strongly normalizing; then, terms which directly reduce into normal forms are also strongly normalizing; and so on. Therefore, by this definition, strongly normalizing terms are those that every reduction chain starting from them is finite.
The following properties are then provable by definition of sn and by structural induction on available derivations of sn for terms in question:
Lemma 4 (Structural properties of sn 📐).
Application, of course, is the only nontrivial case. In the case of -reduction, strong normalization of both and does not imply anything about normalization behaviour of : consider a classical example from untyped lambda calculus [Bar84], and ; while not typable, is strongly normalizing, while decidedly is not.
The situation changes when the head of the application is not an abstraction at all. This leads us to the definition of an atomic term.
Definition 6 (Atomic term). The set of atomic terms is the smallest set that satisfies the following conditions:
-
, . and are atomic for all variables , sort and types ;
-
If t is atomic, then tu is also atomic.
Atomic terms are useful precisely because their strong normalization survives application:
Lemma 5. If and is atomic, then .
PROOF. By induction on derivations of sn for t and u. Consider possible redexes in tu: tu is not itself a redex since t is atomic and hence not a lambda; the only possible redexes are either inside t or inside u. Applying corresponding induction hypotheses, we reach the desired result. The only caveat is that, for induction to go through, we need to check that atomicity of t is preserved by reduction; this is indeed true by induction on derivation of atomicity for t.
A dual view on strong normalization of application is the following: if we already know that , then the most tricky case is already taken care of.
Lemma 6 (Weak head expansion [JM03a; RS95; Alt93b] 📐).
PROOF. By induction on n.
-
. We need to prove that if , then . Note that implies ; then, by structural induction on derivations of for we get what we want by considering all possible reductions.
-
. By the induction hypothesis, it is sufficient to show the following:
This is true by structural induction on available evidence.
□
3. Strong normalization of PTS-rk
Theorem 5 (Strong normalization of PTS-rk 📐).
PROOF. By induction on the typing derivation. Case CONV is trivial; due to Lemma 4, cases AX, RULE, VAR and ABS present no problem as well. The only problematic case is application:
Now, here is the part where stratification according to ranks comes in useful. As typing yields the correct type, there is some such that . Let us explicitly add this to the list of premises; we will call the following proposition Application Lemma:
What indexing by r bought us is that now we can try proving this lemma by induction on r. Again, as it always is with strong normalization of application, the problem is in case where the application head is a lambda and a -reduction takes place. This calls for another lemma, Substitution Lemma:
A proof of for all (which is what we are after) is achieved through complete mutual induction with . Thus, there are two main parts:
-
: by induction on derivations of . Consider possible reductions of : most of them happen either in or in , so that results of reductions from are strongly normalizing by inductive hypotheses. The only problematic case is when . and the reduction is -reduction. By inversion of typing for , it should be the case that ; and by inversion of typing for . , we get that and such that . Then, by type stability, , and furthermore, , so we can apply a substitution lemma.
-
. So we need to prove . We do it by simultaneous induction on derivation of and structural induction on . As substitution propagates through , most cases are satisfied by Lemma 4. A funny case is when : then, a premise that helps.
The only problematic case is application ; we consider three cases here:
is atomic — handled by Lemma 4.
-
is not atomic — by virtue of it being well-typed, it means that . All possible reductions from are then handled by induction hypotheses.
-
is atomic, but is not — by virtue of being well-typed, the only case when this is possible is when , thus . From induction hypotheses we know that all and are s.n.; is s.n. by premise and its rank is . Then is s.n. by application lemma for ; but note that rank of is not greater than so application lemma applies again. Thus, by induction on , the whole chain of applications is s.n.
This is a retelling of a proof that our friend Aleksandr Levin got after half-jokingly entering the following prompt into GPT-6 Pro:
Consider the following pure type system:
S = { rk_n | n natural }
Axiom = { (rk_n, rk_0) | n natural }
Rule = { (rk_m, rk_n, rk_max(m+1,n)) | m, n natural }
Is it strongly normalizing or not?
After approximately 20 minutes, LLM outputted the proof which we retold above. Looking at it in retrospect, it seems as if we stratified functions by ranks with intent for such a direct proof to go through; honestly, we did not think of that and were eagerly trying to adapt well-known approaches for proving normalization of pure type systems employing either saturated sets or candidates of reducibility [Tai67; Gir72; GLT89; GN91], which did not work because our “hierarchy” of ranks is not well-founded enough because of axioms . This proof, however, does not even bother with it, which means that we could pick any relation as Ax. Nevertheless, putting all sorts into seems the most sensible approach to us since, informally, sort is kind of a constant which can not be converted into a function.
3.1. Formalizing normalization of PTS-rk in Rocq. Given the high technicality of the proof for strong normalization which involves wrangling of unusual definition for strong normalization and complex induction patterns (and given that proof was supplied by the probabilistic machine), we decided to formalize it so that a sound simple algorithm would check it for us. One of the natural choices for formalization of programming languages is Rocq [The25; BC04], an interactive theorem prover based on Polymorphic, Cumulative Calculus of Inductive Constructions [ST14; TS18]. As is the case with similar typed calculi, it is both a programming language and a higher-order logic, and correctness of a proof is checked by the type checker; in addition to that, Rocq features powerful metaprogramming facilities which allow writing custom tactics — programs written in a meta-language which generate terms of the target language, greatly simplifying the proofs. While set-theoretical semantics of Rocq assume the existence of countable hierarchy of inaccessible cardinals [Wer97; TS17], our formalization never delves into the hierarchy and can be formalized in a much more restricted theory.
To formalize our strong normalization proof, we first need to provide a general metatheory of PTS as laid out in Section 2. We could reuse existing projects on PTS formalizations such as [SH12; Ada06; BW97; Fel24] but we wanted to explore the topic ourselves, which led to a few minor differences discussed previously; thus we started from scratch.
When one formalizes syntax with binders in a proof assistant, one of the most important decisions is how to represent binders. Here we went with making our terms indexed by the number of free variables it uses, a standard technique originating from [BH94; BP99; AR99]:
Inductive Term (L: Type) (n: nat): Type := | sort: L -> Term L n | : Term L n -> Term L (S n) -> Term L n | var: Fin n -> Term L n | lam: Term L n -> Term L (S n) -> Term L n | app: Term L n -> Term L n -> Term L n.
(Inside our formalization project, this definition is located here: 📐)
Here, L is a type of sorts (L comes from level which is a name used for it in universe hierarchies), and n is a number of free variables. Entering a new scope (such as in and in ) adds one new free variable; variables, then, have to be numbers in range , which are usually represented by a Fin type.
What is convenient in this representation is that it makes it harder to make mistakes when wrangling with context, defining substitution etc. — all the technical details which make working with syntax with binders so hard (authors of the first implementation of such calculi, AUTOMATH [Bru72; Bru70], remarked it being notoriously hard to get right). Also, it has a certain category-theoretical feel to it: sufficiently generalized operations of renaming and substitution give the typical representation of syntax a structure of a relative monad [ACU15; AR99]. It is really hard to go wrong when implementing these operations (and the natural implementation turns variables into de Bruijn indices [Bru72]); on top of them, the usual substitution is easily definable.
Most of the proof development in Rocq mirrors what is written in Section 2; in fact, we first wrote a proof in Rocq and then retold it in written English here, omitting tedious technicalities. The only considerable difference is in the handling of the set of strongly normalizing terms since the proof of Substitution lemma given above does not follow the structure of inductive definition 5. Instead, we use a syntax-directed characterization of the set of strongly normalizing terms [JM03b]:
Definition 7 (Syntax-directed characterization of strong normalization ). Sets of terms SN (strongly normalizing), SNx (strongly normalizing neutral) and a relation WHR (weak head reduction) are the least sets where the following rules are valid:
In a sense, SNx is a description of atomic strongly normalizing terms; SN adds a case for lambdas and for weak head expansion, covering all possible cases. Existence of such sets is by virtue of them being subsets of the set of terms, so such mutual inductive definition is not problematic.
One can prove that set SN is equal to sn; we, however, need only the following:
Lemma 7 (Soundness of SN ☎). SN ⊆ sn.
PROOF. By mutual induction on the evidence SN t for arbitrary t. To do this, we also have to provide a term-indexed proposition we are proving for SNx and a relation on terms we are proving for WHR:
•
- (where the last relation is defined in the same way as WHR, but the head contains evidence of sn instead of SN.)
Proof is extremely simple: by Lemmas 4,5,6. We just have to notice that if the term is SNx, it is atomic, so lemma 5 applies in the relevant case.
Then, to prove strong normalization, it is enough to prove that if a term is typable, it is SN; we only have to state Application Lemma and Substitution Lemma in terms of SN, and the proof goes through.
Lemma 8. for all implies .
PROOF. We have to prove that SN t and SN u imply SN . We do so by mutual induction on evidence for t with the following propositions proven for SNx and WHR:
•
• .
The proof then follows the non-formal treatment given above.
4. Computational complexity of PTS-rk
In this section, we prove that the convertibility and the type checking of closed, well-typed PTS-rk terms is TOWER-complete.
(Proofs in this and following sections were not verified in Rocq by any of the authors, but there is a formalization of some results by GPT-6 Astra. Informal proofs, however, are relatively simple, non-technical, and their formalization requires many times more preliminary work than seems reasonable.)
As requested further, LLM confessed that it was largely inspired by studies on the complexity of normalization for STLC [Sta79; Sch91; Bec01; Ngu24]. And indeed, upon taking a closer look at the proof of Theorem 5, one cannot help but notice it actually being a primitive recursive algorithm [Sko67; Kle52; Pét51] for term normalization in disguise. Or something a tad faster:
Definition 8 (d-bounded terms). A PTS-rk term is d-bounded if it is well-typed in some well-formed context, and the heads of all redexes in it have rank equal to or below d.
Theorem 6 (Elementary recursive normalization of bounded PTS-rk ). For each d, there is an elementary recursive algorithm [Ros84a] for finding a normal form of d-bounded terms.
PROOF. Consider the following relation of “greedy parallel reduction”:
It differs from the usual parallel reduction since it greedily applies every “many-argument” redex available in a term. For example, abc gets reduced to in a single step. This relation has the following properties:
• , so it is several usual reductions baked into one.
• This relation is total and functional.
- This relation can be realized with an elementary recursive algorithm A: traverse the term bottom-up, immediately applying every -redex which is formed when the result of a recursive run of the algorithm on the application head is a lambda.
• If , then .
- If redex heads in t have ranks less than or equal to d and , redex heads in have ranks less than d: new redexes appear only after substitution of abstractions into application heads, and ranks of these abstractions are strictly less than the rank of redex heads in which these substitutions happened.
Because of the last property, it is enough to run A for d times in total to normalize a d-bounded term; since input size on k-th run is bounded by k-th tower of exponents, the whole algorithm is elementary recursive.
To make sure that the corresponding function is total, output 0 if the result of an algorithm contains a -redex.
Similar result was already proven for STLC [Sch91; Bec01] since simple types can be classified by ranks as well. And since rank is easily computable for simple types, normalization of arbitrary STLC terms is in TOWER. A little weaker result holds for our dependently typed PTS:
Theorem 7. Convertibility of closed well-typed PTS-rk terms is in TOWER.
PROOF. By Theorem 6, it is enough to compute some upper bound B on the rank of types appearing in abstractions of a term, then run a normalizer for -bounded terms and compare the results; B has to be bound by an elementary recursive function on the size of input. We present such a function in Figure 3: estimateRank t provides a bound on ranks of redex arguments in t.
The function maxRankLiteral t computes maximal rank which is contained as a subterm in the term t. The workhorse of this algorithm, traversal , accepts the list of ranks in context of a term t and a “default rank” d, and outputs the triple , where v is value of t as a rank (if supplied with enough arguments), r is its rank if t is a type (if supplied with enough arguments) and a is an upper bound on rank of types appearing in abstractions which we are trying to compute. The only suspicious case is traversal where we output d (the “default” rank) maxRankLiteral rk_r = r maxRankLiteral .U = maxRankLiteral T maxRankLiteral U maxRankLiteral x = 0 maxRankLiteral .t = maxRankLiteral T maxRankLiteral t maxRankLiteral (t u) = maxRankLiteral t maxRankLiteral u
traversal _ rk_r = (r, 0, 0) traversal .U d = let (v^T, r^T, a^T) = traversal T d (v^U, r^U, a^U) = traversal (x := v^T, ) U d in (v^U, suc r^T r^U, a^T a^U) traversal x d = (d, , 0) traversal .t d = let (v^T, r^T, a^T) = traversal T d (v^t, r^t, a^t) = traversal (x := v^T, ) t d in (v^t, r^t, r^T a^T a^t) traversal (t u) d = let (v^t, r^t, a^t) = traversal t d (-, -, a^u) = traversal u d in (v^t, r^t, a^t a^u)
estimateRank t = let (v^t, r^t, a^t) = traversal [] t (maxRankLiteral t) in a^t
FIGURE 3. Computing a bound on ranks of redex arguments
as a value of : could we compute the value of instead, if present? Regrettably, this would require normalization of a term corresponding to , which is too long; instead we notice that can be reduced only from terms which already contain it as a subterm, so the value of as a rank can only be which is already present somewhere in the original term. And our result is monotone with respect to the value we output here, so it is enough to provide some upper bound on it; thus it is enough to output a maximal rank which occurs in the original term as a subterm.
Closedness is essential: without the context, we cannot determine the ranks of free type variables and hence cannot bound redex ranks.
Theorem 8. Convertibility of closed well-typed PTS-rk terms is TOWER-hard (hence TOWER-complete).
PROOF. By reduction from convertibility of Curry-style STLC terms, since that problem is TOWER-hard [Ngu24].
Just in case, we start from Curry-style STLC terms. We then reduce this task to convertibility of closed Curry-style STLC terms by adding -abstractions to
The badge certifies the annotation-preserving reduction from closed Church-style STLC, including typing, preservation and reflection of conversion, and the exact additive encoding-size bound.
close over free variables; finally, we infer types of variables in an STLC term by a linear unification algorithm referenced in [Ngu24] and settle on closed well-typed Church-style STLC terms. The following translation then yields open well-typed PTS-rk terms:
The problem is that types might contain type variables which are not bound. However, it is easily fixable by introducing missing types via abstractions:
Assigning all type variables rank preserves well-typedness since values of such types were never treated as functions in the original term.
Corollary 3. Type checking for closed PTS-rk terms is TOWER-complete.
PROOF. The following term demonstrates that convertibility of closed well-typed terms reduces to type checking:
This term is well-typed iff which holds iff .
Therefore, we only need to prove that type checking for PTS-rk is in TOWER. Consider the following syntax-directed type synthesis rules:
This relation is functional (in the sense that if and , then as words), and the corresponding partial function is realized by an algorithm in TOWER: this algorithm recurses on the term , matches on the inferred types as needed and collects equalities on types it has to check. Then, it can naïvely check all equalities in bulk: there are at most such equalities on terms of size , so this runs in TOWER by Theorem 7. To finish the proof, it is enough to notice that
So the main algorithm infers the type of , checks that it is for some , infers the type of and compares it with .
5. PTS-rk as a computational model
In this section we prove that functions representable in PTS-rk are, under minor assumptions, precisely elementary recursive functions, and provide a bunch of other, more specialized, results.
Another consequence of Theorem 6 is a natural upper bound for functions uniformly representable in PTS-rk (this result is also similar to the one for STLC [Sch76; Sta79; FLO83]).
Definition 9. A family of functions on natural numbers is uniformly representable in PTS-rk if there is an input natural number type and an output natural number type together with encodings and such that all of them are in normal form and for each there is a representation which is also in normal form and such that
Remark. Note that the requirement for terms to be in normal form is not restrictive: we can always normalize a non-normal term.
Theorem 9. A family of elementary recursive functions is not uniformly representable in PTS-rk.
PROOF. By a direct diagonalization argument. Suppose we could encode all elementary recursive functions with and .
By Theorem 6, the normalization of -bounded terms is elementary recursive. Therefore, the following function is also elementary recursive:
(Where is code of a term used in the definition of .)
By assumption, it is encodable by . Observe the value of :
The first equivalence is by definition of ; the second is by virtue of expression under being -bounded; the last is by definition of being encoded by .
The next logical question is: which functions are computable? Elementary recursive! Though, of course, not in the same sense as before.
Definition 10 (Polymorphic numeral family). For each fixed , there is a type of polymorphic Church numerals of rank :
and for each fixed n, there is a corresponding Church literal of type :
Theorem 10 (Non-uniform elementary representability). For each elementary recursive function , there is a cost such that for each base rank , there is a representation such that
PROOF. As is well-known, simply typed Church numerals admit addition and multiplication [Chu41; Bar84]. It is still true for our rank-refined version:
By substitution-basis theorem [PSS26], it is enough to additionally provide modulus (where ) and binary exponentiation since substitution, constants and projections are “free” in our calculus.
By Theorem 9, we cannot hope to have both remaining operations represented uniformly. Indeed, naïve import of traditional exponentiation term for untyped Church numerals [Chu41; Ros84b] raises the rank of an exponent:
And that is exactly the reason we allowed input and output ranks of Church numerals to differ.
There still remains a problem, however: by allowing ranks to differ, we lost uniformity of substitution. In particular, consider an elementary function . To represent such computation using combinators we defined, has to have both type (as left addend) and (as exponentiation power). Instead of introducing subtyping in the system, we make use of the following family of numeral-preserving lowerings:
As the name implies, the goal of such combinators is to lower the rank of a numeral, but preserve its “value”. It is achieved in the following way: given an f and x for lower-ranked type, an original combinator for n is used to build an n-fold composition of f with itself, which is then applied to x.
Thus, we can lower ranks arbitrarily: . This restores substitution and allows gluing representation of elementary recursive functions together; cost of a function can be computed from any expression that represents it — addition and multiplication cost 0, exponentiation costs 1, operands are merged by taking the maximum of their costs. (Of course, cost is not unique and depends on the way the function is represented with an expression.)
All that is left, then, is to represent modulus. The general idea is as follows: first, suppose that we are dealing with a simpler problem of taking modulus by a constant modulo, e.g. mod 5. Notice that there are only 5 possible answers: 0,1,2,3,4. As such, they can be represented by the type which contains exactly 5 elements; Church encoding [BB85] yields a type of selectors:
Its 5 different canonical values simply pick one of 5 inputs, to each their own.
There is an operation of cyclic shift on selectors:
Iterating it n times on some pinned “zeroth” selector, we actually get the -th selector. All that is left is to read the numeral back:
Now, to model in this vein, we need to generate dynamically. Lucky for us, PTS-rk is dependently typed so there is hope.
Indeed, the following construction was produced in a discussion with GPT-6 Astra.
We are going to produce a combinator Mod : . Fix parameter and consider the following signature for abstract :
Intention is that is simply-typed for , is its “zero”, is a “zero” for , is a cyclic shift for , is a cyclic shift for , converts a selector into a numeral, and is the result of modulus computed using structure from the previous step (this is similar to the trick used to define a predecessor function).
A callback accepting such a structure and returning X has the following type:
A type of “records” is thus , with a constructor
As an initial , we build a structure for and an which behaves like :
Pack them into .
Then, given a structure for q, the structure for is as follows:
A transition term can be written like this:
Therefore, the following term computes the modulus with the expected behaviour.
Remark. Note that the only difference between uniform and non-uniform representations is that, in non-uniform representations, we are allowed to pick different and for each function.
Corollary 4. Unary functions in are uniformly representable in PTS-rk.
PROOF. There is a binary function in which is universal for unary functions in [Sko08, Section 5, p. 873, footnote 5]. In other words, for each in , there is a code such that
And is precisely elementary recursive functions, so by Theorem 10 there is a cost and a term such that
Therefore, there exist and such that, for each unary , there is a term such that
Remark. While our system appears to be restricted to elementary recursive functions, it turns out that there is another dependently typed system in which functions on natural numbers are primitive recursive [BS24]. Interestingly enough, part of their solution is in forbidding function types from appearing in the lowest universe, just like in PTS-rk.
There is also a boundary result stemming from information-theoretical considerations.
Theorem 11. If a function is representable in PTS-rk, it is asymptotically bounded above by an elementary recursive function of the size of the input encoding.
PROOF. Since it is representable, there are , and such that represents . Therefore,
Since terms are definitionally equal, they must have the same normal form which is then equal to as a word. Looking at the proof of Theorem 6, its length is then bounded above by where is the length of as a word. The height of the tower of exponents depends not on the -s, but on the -bound which is equal to so this bound is ELEMENTARY.
By combinatorial considerations, length of is so
thus bounded by an elementary recursive function of the size of input encoding. ☐
In a particular case where elementary recursive encoding is used, function representable in PTS-rk is bounded by elementary recursive function.
Corollary 5. Functions representable in PTS-rk with elementary recursive bound on input encoding size are precisely elementary recursive functions.
PROOF. Since functions computable under elementary recursive time bound are elementary recursive [CK17], this follows from Theorems 10, 11.
Two questions remain open: a) whether there are non-elementary functions which are non-uniformly computable in PTS-rk because of non-elementary input encoding and b) whether there are any functions which are not in and are uniformly computable in PTS-rk.
6. Set-theoretical model of PTS-rk
Now, studying computational properties of a calculus is great, but logic is only useful when it can tell right from wrong. In this section, we are going to provide nontrivial set-theoretical semantics for PTS-rk with respect to which it is sound, and where is going to be an empty set, as expected.
However, we are going to need an unusual assumption:
Theorem 12. PTS-rk has a sound model in ZF+GCH.
PROOF. Produced in discussion with GPT-6 Astra.
Take distinct codes for every cardinal below and distinct additional codes for . Define
That is,
(Note that since all are countable.)
Interpretation then goes as follows:
• Interpret as . The sort axiom holds because .
- If and for every , the ordinary dependent function set has cardinality at most
(The last inequality follows from GCH since alephs have finite indices.)
Thus, for all such we can choose a cardinal (whose code lies in ) along with a bijection
The eligible pairs form a set, so ordinary choice (which holds in ZF+GCH [Sie47; Spe54]) suffices. Make each choice once for each , independently of a typing derivation or rank bound.
• Abstraction and application are modelled by and respectively, as defined above.
• Contexts are interpreted by valuations.
It is easy to check that the typing rules are respected by this interpretation, making it a sound model.
A few corollaries:
-
Indeed, the product interpreting . Z ranges over , which contains , whose decoding is . That product is therefore empty.
-
A system with rank cumulativity is sound with respect to this model; normalization of bounded terms remains elementary as in Theorem 6.
Note that usage of GCH is unavoidable in this model to validate the rules. We could try building a model in ZFC using -s instead of -s, but that would break an assumption that are countable, which would falsify axioms . That is not a huge problem, however, since ZF+GCH is interpretable in ZF [Göd38; Göd40] (in contrast to ZF + inaccessible cardinals which is not [Kan03; Kun80; Göd31]).
7. PTS-rk as a proof system
To demonstrate the ability of PTS-rk to embed nontrivial logical theories, we construct a fixed interpretation of Tarski–Mostowski–Robinson arithmetic R in PTS-rk: Church numerals and certified finite observations first interpret its relational form ; definable graphs yield R. We do so because interpretation of is much simpler than direct interpretation of R and already exposes all the main ideas. Direct translation is available in supplementary formalized materials .
The following proof was obtained in a discussion with GPT-6 Astra.
7.1. Classical arithmetic and the target calculus. Let be the relational presentation of Tarski–Mostowski–Robinson arithmetic in the first-order language with equality , with ternary predicates and numerals . Its axioms are the universal closures of the following schemes, indexed by external :
Here and are calculated externally: the language has no binary arithmetic function symbols. Section 7.7 relates this theory to the original, functional arithmetic R [TMR53].
We now begin constructing the model inside PTS-rk and proving that the axioms hold in our model. First, here are some preliminaries on the interpretation of first-order logic formulas:
Use the fixed-answer proof types
A type is stable when is inhabited. Negative types, dependent functions with stable codomain, and these encoded conjunctions and disjunctions are stable. They support the classical logical rules on stable proof types; case elimination is into stable targets. In particular, has the proof . . We never eliminate into an arbitrary positive type.
For a carrier D, a domain predicate Good, and fixed stable atomic interpretations, translate quantifiers by
All translated formulas are stable. Once domain closure and atomic congruence are proved, the logical rules and equality substitution extend structurally to formulas on admitted arguments. All interpretations below use this one logical encoding.
To lift propositions to arbitrary higher ranks , let
Abstraction gives a map from to ; application on the term gives a map in the opposite direction.
7.2. Unary domain and equality. Use Church numerals with addition and multiplication as a carrier: . As a reminder, here are two only constructors of Church numerals, z and s:
Even if the theory we interpret and the host type system are not strong enough to support induction on Church numerals, we still need to prove some properties by induction. For this, we introduce a special helper proposition as a domain predicate Good. It would state for a given that each inductive property is satisfied for :
: rk12.
Zero and successor preserve it by abstraction. For example,
Define equality by negative tests:
It is reflexive, symmetric and transitive; every respects it. Equality substitution for E itself follows from symmetry and transitivity. Define the arithmetic atoms by
They respect E in all arguments; axioms and hold definitionally.
7.3. Order from successor-closed unary tests.
Definition 11. A certified unary algebra is the fixed telescope
Basically, this telescope contains all the necessary information to “reinterpret” Church numerals into new carrier X with a domain predicate .
Writing abbreviates the successive dependent arrows for these binders; it does not introduce a record type. Put and . For , write
This proposition asserts that a negation of P is upwards closed for ‘good’ values in the new domain X. Define
With this definition, preorder laws and equality compatibility can be derived.
Lemma 9 ( ). The following holds:
• and are inhabited.
• O is reflexive and transitive.
• and are inhabited.
• Arguments of O respect E.
PROOF. Proof terms for most propositions are constructed in an obvious way. The last proposition holds because O is transitive and E is symmetric.
Consequently, for each external , there is a closed proof of , built by a finite succession of steps.
7.4. Finite separation. In this section, we prove that also holds in our interpretation of .
Lemma 10 ( ). For each , there is a proof of .
PROOF. By contradiction. Suppose ; put , , and remember already familiar type of selectors
We are going to use them as a “model” to interpret an assumed O and get a contradiction: set , , and use “saturated addition” as a successor:
Thus, . Define the domain predicate as
Selector projection gives . To construct , open the output at and its branch proofs, and specialize the input certificate to . Its branches are the supplied proofs for the appropriate successor selectors.
Use the unary test
To prove , eliminate into the rank-three motive . At both tests are and the implication is identity. At with , there is a premise .
Specializing with these data yields .
Lemma 11 ( ). For each , there is a proof of .
PROOF. Suppose is inhabited; since , is also inhabited. By transitivity of O it means that which we know is absurd. □
Thus, also holds: if , then either or (these are external natural numbers). Assuming , we obtain a paradoxical O and derive a contradiction by Lemma 11.
7.5. Bounded cases. Here, we prove a crucial lemma from which remaining axioms follow. Set
Lemma 12 ( ). . Good(d) Case is inhabited for external n.
PROOF. We are going to use the following positive invariant for Q:
At zero, supply and the branch. At successor, open the target continuation and eliminate the child invariant at that same Z, obtaining and . Obtain independently. To construct the new negative case proof, all branch continuations return . An branch becomes by successor congruence. The branch gives , hence . The large branch is composed with . This proves successor closure.
Instantiate Good(d) with . Project its case component by choosing and continuation . No negative disjunction is eliminated into positive G-evidence.
7.6. The relational interpretation
Theorem 13 ( ). The carrier , admitted domain Good, closed operations , and relations interpret the classical relational theory in PTS-rk. Every translated axiom has an effectively constructible closed proof term. The interpretation is closed under classical first-order derivations: every -derivation of a sentence effectively yields a closed PTS-rk proof term of its translation. True ground arithmetic atoms have proofs, and false ground atoms have internal refutations.
PROOF. Domain closure, atomic stability, and congruence have been established; hence source deductions translate to PTS proofs. We know that hold; let us check the remaining axioms.
For bounded order , apply Lemma 12. Under , a case involving contradicts by transitivity. Conversely, a branch with yields via and ground comparison.
For comparability ( ), the finite branches of Lemma 12 give and the large branch gives .
The ground proof/refutation claims follow from the arithmetic beta equations, reflexivity, ground order, and Lemma 11.
Remark. Constructions from Sections 7.4 and 7.5 generalise to arbitrary Church-encoded inductive types providing constructor disjointness and injectivity, as well as finite case analysis for subtrees of fixed constructor trees. These results can be seen as internal inversion lemmas.
While this interpretation is full, it, however, is not faithful on arbitrary first-order sentences.
The linked theorem gives original-PTS inhabitants for all axiom instances and all source derivations. The generic constructive witness search turns each such existence proof into a proof term together with its typing derivation.
Remark (Failure of faithfulness ). The interpretation of is not faithful.
PROOF. The translation of is provable in PTS-rk, but .
We already know that O is reflexive (Lemma 9). But why is reflexivity not derivable in ? It follows from model-theoretic considerations: there is a set-theoretic countermodel.
Take , where is one new element. Interpret 0 and successor as usual on , put , and use actual equality. For , let hold exactly when , and let hold exactly when . When at least one of is , let each predicate hold exactly when . Define
The ground graph schemes hold for every third argument, and distinct numerals are unequal. For every standard , the downset of is exactly , proving both directions of . Every standard number is comparable with , and , proving . Hence, this is a model of .
However, , so is false.
☐
Actually, it is possible to prove inside PTS-rk that Good Church numerals form a strictly ordered commutative unital semiring. A generated proof is available in supplementary materials.
7.7. Relation to the original presentation of R. The original Tarski–Mostowski–Robinson arithmetic R [TMR53] uses and the following schemes, again with universal closure:
(R1)
Requiring A, M in to be total, single-valued graphs makes them interchangeable with the function symbols +, . This functional strengthening is definitionally equivalent to R; even without that strengthening, the two theories have the same interpretability degree.
Proposition 13. The classical theories and R are mutually interpretable .
PROOF. In R, interpret by and by . The ground arithmetic equations give the two graph schemes. For , an assumption contradicts (R4) and numeral separation; (R5) therefore yields . The case follows from (R5) directly. Thus, R proves all true ground comparisons, and equality substitution supplies the reverse implication in ( ). The remaining relational schemes are immediate.
Mutual interpretability does not imply bi-interpretability. In particular, the totalized graphs need not coincide with the original relations A, M on arbitrary arguments.
For the other direction define, in ,
For fixed , either a unique -output exists or it does not. In the first case selects that output; in the second it selects zero. Hence, is provably total and single-valued. At standard inputs, forces its value to be . Define identically with in place of ; its standard value is . These graphs interpret ; keep unchanged. All five schemes of follow.
Composing this graph interpretation with Theorem 13 gives the claimed interpretation in PTS-rk. The composition uses the encoded classical quantifiers to express values and uniqueness; it does not assert Good-closure of the raw Church operators Add, Mul.
Corollary 6. PTS-rk interprets R by definable arithmetic graphs.
8. Conclusion
To sum it all up, what started as a funny idea (what if there actually was a sound pure type system with type : type) led us to stumble on a truly unique dependently typed pure type system, PTS-rk.
First of all, its normalization proof is suspiciously simple and reminds of classic proofs of normalization for STLC where, instead of an established technique by reducibility candidates, one patiently tracks complexities of arrow types and makes sure that they become simpler after sequences of reductions (Section 3). To make sure that this approach works for our system, we formalized our proof in Rocq proof assistant (Section 3.1) and in doing so prepared the groundwork for future verified interactions with PTS-rk.
After noticing that normalization proof yields a primitive recursive normalization procedure, we found tighter bounds and found out that it has the same complexity as normalization of STLC, which was previously unheard of for a dependently typed system (Section 4). In contrast with existing pure type systems, our system is able to represent elementary recursive functions (both in the sense that it is stronger than STLC and weaker than more classical dependently typed systems) and seems intimately connected to it (Section 5). To check if constructions inside PTS-rk even make sense, we constructed a set-theoretical model for it which assumes a Generalized Continuum Hypothesis to strictlyify the hierarchy of N-s which act as interpretations of our function types (Section 6). Finally, we provide a lower bound on proof-theoretical strength of PTS-rk by providing a full interpretation of a relational version of Tarski–Mostowski–Robinson arithmetic R inside it (Section 7); we did it partly because we suspect our system to be able to prove its own consistency in the sense Pakhomov finitistic set theory does [Pak19], therefore, interpretation of R is the natural first step.
References
[ACU15] Thorsten Altenkirch, James Chapman, and Tarmo Uustalu. "Monads Need Not Be Endofunctors". In: Logical Methods in Computer Science 11.1 (2015). DOI: 10.2168/LMCS-11(1:3)2015.
[Acz99] Peter Aczel. "On Relating Type Theories and Set Theories". In: Types for Proofs and Programs (TYPES 1998). Vol. 1657. Lecture Notes in Computer Science. Springer, 1999, pp. 1–18. DOI: 10.1007/3-540-48167-2_1.
[Ada06] Robin Adams. "Pure Type Systems with Judgemental Equality". In: Journal of Functional Programming 16.2 (2006), pp. 219–246. DOI: 10.1017/S0956796805005770.
[Alt93a] Thorsten Altenkirch. "A Formalization of the Strong Normalization Proof for System F in LEGO". In: Typed Lambda Calculi and Applications (TLCA 1993). Vol. 664. Lecture Notes in Computer Science. Springer, 1993, pp. 13–28. DOI: 10.1007/BFb0037095.
[Alt93b] Thorsten Altenkirch. "Constructions, Inductive Types and Strong Normalization". PhD thesis. University of Edinburgh, Nov. 1993.
[Ant26] Anthropic. Claude Fable 5. Large language model. Version Mythos-class. 2026. URL: https://claude.ai/ (visited on 10/13/2026).
[AÖV18] Andreas Abel, Joakim Öhman, and Andrea Vezzosi. "Decidability of Conversion for Type Theory in Type Theory". In: Proceedings of the ACM on Programming Languages 2.POPL (2018), 23:1–23:29. DOI: 10.1145/3158111.
[AR99] Thorsten Altenkirch and Bernhard Reus. "Monadic Presentations of Lambda Terms Using Generalized Inductive Types". In: Computer Science Logic (CSL 1999). Vol. 1683. Lecture Notes in Computer Science. Springer, 1999, pp. 453–468. DOI: 10.1007/3-540-48168-0_32.
[Bar84] Henk P. Barendregt. The Lambda Calculus: Its Syntax and Semantics. Revised. Vol. 103. Studies in Logic and the Foundations of Mathematics. North-Holland, 1984.
[Bar91] Henk P. Barendregt. "Introduction to Generalized Type Systems". In: Journal of Functional Programming. Vol. 1. 2. Cambridge University Press, 1991, pp. 125–154. DOI: 10.1017/S0956796800020025.
[Bar92] Henk P. Barendregt. "Lambda Calculi with Types". In: Handbook of Logic in Computer Science. Ed. by Samson Abramsky, Dov M. Gabbay, and Thomas S. E. Maibaum. Vol. 2. Oxford University Press, 1992, pp. 117–309.
[Bar99] Bruno Barras. “Auto-validation d’un système de preuves avec familles inductives”. PhD thesis. Université Paris 7, 1999.
[BB85] Corrado Böhm and Alessandro Berarducci. “Automatic Synthesis of Typed -Programs on Term Algebras”. In: Theoretical Computer Science 39 (1985), pp. 135–154. DOI: 10.1016/0304-3975(85)90135-5.
[BC04] Yves Bertot and Pierre Castéran. Interactive Theorem Proving and Program Development: Coq'Art: The Calculus of Inductive Constructions. Texts in Theoretical Computer Science. Springer, 2004. DOI: 10.1007/978-3-662-07964-5.
[Bec01] Arnold Beckmann. “Exact Bounds for Lengths of Reductions in Typed -Calculus”. In: Journal of Symbolic Logic 66.3 (2001), pp. 1277–1285. DOI: 10.2307/2695106.
[Ben93] L. S. van Benthem Jutting. "Typing in Pure Type Systems". In: Information and Computation 105.1 (1993), pp. 30–41. DOI: 10.1006/inco.1993.1038.
[Ber88] Stefano Berardi. Towards a Mathematical Analysis of the Coquand–Huet Calculus of Constructions and the Other Systems in Barendregt’s Cube. Technical report. Department of Computer Science, Carnegie Mellon University, and Dipartimento di Matematica, Università di Torino, 1988.
[BH94] Françoise Bellegarde and James Hook. "Substitution: A Formal Methods Case Study Using Monads and Transformations". In: Science of Computer Programming 23.2–3 (1994), pp. 287–311. DOI: 10.1016/0167-6423(94)00022-0.
[BP99] Richard S. Bird and Ross Paterson. "De Bruijn Notation as a Nested Datatype". In: Journal of Functional Programming 9.1 (1999), pp. 77–91. DOI: 10.1017/S0956796899003366.
[Bru70] Nicolaas G. de Bruijn. "The Mathematical Language AUTOMATH, Its Usage, and Some of Its Extensions". In: Symposium on Automatic Demonstration. Vol. 125. Lecture Notes in Mathematics. Springer, 1970, pp. 29–61. DOI: 10.1007/BFb0060623.
[Bru72] Nicolaas G. de Bruijn. “Lambda Calculus Notation with Nameless Dummies, a Tool for Automatic Formula Manipulation, with Application to the Church–Rosser Theorem”. In: Indagationes Mathematicae 34.5 (1972), pp. 381–392. DOI: 10.1016/1385-7258(72)90034-0.
[BS24] Ulrik Torben Buchholtz and Johannes Schipp von Branitz. “Primitive Recursive Dependent Type Theory”. In: Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science. LICS '24. Tallinn, Estonia: Association for Computing Machinery, 2024. ISBN: 9798400706608. DOI: 10.1145/3661814.3662136.
[BW97] Bruno Barras and Benjamin Werner. Coq in Coq. Manuscript. INRIA Rocquencourt, 1997.
[CG90] Thierry Coquand and Jean Gallier. "A Proof of Strong Normalization for the Theory of Constructions Using a Kripke-like Interpretation". In: Proceedings of the First Workshop on Logical Frameworks (Antibes). Ed. by Gérard Huet and Gordon Plotkin. 1990, pp. 479–497.
[CH88] Thierry Coquand and Gérard Huet. "The Calculus of Constructions". In: Information and Computation 76.2–3 (1988), pp. 95–120. DOI: 10.1016/0890-5401(88)90005-3.
[Chu40] Alonzo Church. "A Formulation of the Simple Theory of Types". In: Journal of Symbolic Logic 5.2 (1940), pp. 56–68. DOI: 10.2307/2266170.
[Chu41] Alonzo Church. The Calculi of Lambda-Conversion. Vol. 6. Annals of Mathematics Studies. Princeton University Press, 1941.
[CK17] Stephen A. Cook and Bruce Kapron. A Survey of Classes of Primitive Recursive Functions. ECCC Report TR17-001. Transcribed by Bruce Kapron from Stephen A. Cook's mimeographed course notes for Math 290, Section 14, University of California, Berkeley, January 1967. Electronic Colloquium on Computational Complexity, Jan. 2017. URL: https://eccc.weizmann.ac.il/report/2017/001/.
[CR36] Alonzo Church and J. Barkley Rosser. "Some Properties of Conversion". In: Transactions of the American Mathematical Society 39.3 (1936), pp. 472–482. DOI: 10.2307/1989762.
[Fel24] Thiago Felicissimo. “Generic Bidirectional Typing for Dependent Type Theories”. In: International Conference on Tools and Algorithms for the Construction and Analysis of Systems (TACAS). Springer, 2024, pp. 89–107. DOI: 10.1007/978-3-031-57262-3_6.
[FLO83] Steven Fortune, Daniel Leivant, and Michael O'Donnell. "The Expressiveness of Simple and Second-Order Type Structures". In: Journal of the ACM 30.1 (1983), pp. 151–185. DOI: 10.1145/322358.322370.
[Gir72] Jean-Yves Girard. “Interprétation fonctionnelle et élimination des coupures de l’arithmétique d’ordre supérieur”. Thèse d’État. Université Paris VII, 1972.
[GLT89] Jean-Yves Girard, Yves Lafont, and Paul Taylor. Proofs and Types. Vol. 7. Cambridge Tracts in Theoretical Computer Science. Cambridge University Press, 1989.
[GN91] Herman Geuvers and Mark-Jan Nederhof. "A Modular Proof of Strong Normalization for the Calculus of Constructions". In: Journal of Functional Programming 1.2 (1991), pp. 155–189. DOI: 10.1017/S0956796800020037.
[Göd31] Kurt Gödel. “Über formal unentscheidbare Sätze der Principia Mathematica und verwandter Systeme I”. In: Monatshefte für Mathematik und Physik 38 (1931), pp. 173–198. DOI: 10.1007/BF01700692.
[Göd38] Kurt Gödel. “The Consistency of the Axiom of Choice and of the Generalized Continuum-Hypothesis”. In: Proceedings of the National Academy of Sciences of the United States of America 24.12 (1938), pp. 556–557. DOI: 10.1073/pnas.24.12.556.
[Göd40] Kurt Gödel. The Consistency of the Axiom of Choice and of the Generalized Continuum-Hypothesis with the Axioms of Set Theory. Vol. 3. Annals of Mathematics Studies. Princeton University Press, 1940.
[Hau08] Felix Hausdorff. “Grundzüge einer Theorie der geordneten Mengen”. In: Mathematische Annalen 65 (1908), pp. 435–505. DOI: 10.1007/BF01451165.
[HP91] Robert Harper and Robert Pollack. "Type Checking with Universes". In: Theoretical Computer Science 89.1 (1991), pp. 107–136. DOI: 10.1016/0304-3975(90)90108-T.
[Hur95] Antonius J. C. Hurkens. "A Simplification of Girard's Paradox". In: Typed Lambda Calculi and Applications (TLCA 1995). Vol. 902. Lecture Notes in Computer Science. Springer, 1995, pp. 266–278. DOI: 10.1007/BFb0014058.
[Jec03] Thomas Jech. Set Theory. Third Millennium. Springer Monographs in Mathematics. Springer, 2003. DOI: 10.1007/3-540-44761-X.
[JM03a] Felix Joachimski and Ralph Matthes. “Short Proofs of Normalization for the Simply-Typed λ-Calculus, Permutative Conversions and Gödel’s T”. In: Archive for Mathematical Logic 42.1 (2003), pp. 59–87. DOI: 10.1007/s00153-002-0156-9.
[JM03b] Felix Joachimski and Ralph Matthes. “Short proofs of normalization for the simply-typed λ-calculus, permutative conversions and Gödel’s T”. In: Archive for Mathematical Logic 42.1 (2003), pp. 59–87. DOI: 10.1007/s00153-002-0156-9. URL: https://doi.org/10.1007/s00153-002-0156-9.
[Kal43] László Kalmár. “Egyszerű példa eldönthetetlen aritmetikai problémára”. In: Matematikai és Fizikai Lapok 50 (1943). In Hungarian; introduces the elementary functions, pp. 1–23.
[Kan03] Akihiro Kanamori. The Higher Infinite: Large Cardinals in Set Theory from Their Beginnings. Second. Springer Monographs in Mathematics. Springer, 2003. DOI: 10.1007/978-3-540-88867-3.
[Kle52] Stephen C. Kleene. Introduction to Metamathematics. Amsterdam: North-Holland, 1952.
[Kun80] Kenneth Kunen. Set Theory: An Introduction to Independence Proofs. Vol. 102. Studies in Logic and the Foundations of Mathematics. North-Holland, 1980.
[Luo94] Zhaohui Luo. Computation and Reasoning: A Type Theory for Computer Science. Vol. 11. International Series of Monographs on Computer Science. Oxford University Press, 1994.
[LW11] Gyesik Lee and Benjamin Werner. "Proof-Irrelevant Model of CC with Predicative Induction and Judgmental Equality". In: Logical Methods in Computer Science 7.4 (2011). DOI: 10.2168/LMCS-7(4:5)2011.
[Mar71] Per Martin-Löf. "A Theory of Types". Preprint 71-3, Department of Mathematics, University of Stockholm. 1971.
[Mar75] Per Martin-Löf. "An Intuitionistic Theory of Types: Predicative Part". In: Logic Colloquium '73. Ed. by H. E. Rose and J. C. Shepherdson. Vol. 80. Studies in Logic and the Foundations of Mathematics. North-Holland, 1975, pp. 73–118. DOI: 10.1016/S0049-237X(08)71945-1.
[Mar84] Per Martin-Löf. Intuitionistic Type Theory. Studies in Proof Theory. Notes by Giovanni Sambin of a series of lectures given in Padua, June 1980. Naples: Bibliopolis, 1984.
[Ngu24] Lê Thành Dũng Nguyễn. “Simply typed convertibility is TOWER-complete even for safe λ-terms”. In: Logical Methods in Computer Science 20.3 (Sept. 5, 2024). DOI: 10.46298/lmcs-20(3:21)2024. arXiv:2305.12601. URL: https://lmcs.episciences.org/14215.
[Ope26] OpenAI. GPT-6 Astra. Version Astra. Large language and embodied AI model. 2026. URL: https://openai.com.
[Pak19] Fedor Pakhomov. "A weak set theory that proves its own consistency". In: arXiv preprint arXiv:1907.00877 (2019). arXiv: 1907.00877 [math.L0].
[Pét51] Rózsa Péter. Rekursive Funktionen. Budapest: Akadémiai Kiadó, 1951.
[PSS26] Mihai Prunescu, Lorenzo Sauras-Altuzarra, and Joseph M. Shunia. A Minimal Substitution Basis for the Kalmár Elementary Functions. 2026. arXiv: 2505.23787 [math.L0]. URL: https://arxiv.org/abs/2505.23787.
[Raa+99] Femke van Raamsdonk et al. “Perpetual Reductions in λ-Calculus”. In: Information and Computation 149.2 (1999), pp. 173–225. DOI: 10.1006/inco.1998.2750.
[Ros84a] H. E. Rose. Subrecursion: Functions and Hierarchies. Vol. 9. Oxford Logic Guides. Oxford: Clarendon Press, 1984.
[Ros84b] J. Barkley Rosser. "Highlights of the History of the Lambda-Calculus". In: Annals of the History of Computing 6.4 (1984), pp. 337–349. DOI: 10.1109/MAHC.1984.10040.
[RS95] Femke van Raamsdonk and Paula Severi. On Normalisation. Tech. rep. CS-R9545. Amsterdam: CWI, 1995.
[Sch76] Helmut Schwichtenberg. “Definierbare Funktionen im λ-Kalkül mit Typen”. In: Archiv für mathematische Logik und Grundlagenforschung 17.3–4 (1976), pp. 113–114. DOI: 10.1007/BF02276799.
[Sch91] Helmut Schwichtenberg. “An Upper Bound for Reduction Sequences in the Typed λ-Calculus”. In: Archive for Mathematical Logic 30.5–6 (1991), pp. 405–408. DOI: 10.1007/BF01621476.
[SH12] Vincent Siles and Hugo Herbelin. "Pure Type System Conversion is Always Typable". In: Journal of Functional Programming 22.2 (2012), pp. 153–180. DOI: 10.1017/S0956796812000044.
[Sie47] Wacław Sierpiński. “L’hypothèse généralisée du continu et l’axiome du choix”. In: Fundamenta Mathematicae 34 (1947), pp. 1–5. DOI: 10.4064/fm-34-1-1-5.
[Sko08] Dimitter Skordev. “On the Subrecursive Computability of Several Famous Constants”. In: Journal of Universal Computer Science 14.6 (2008), pp. 861–875. DOI: 10.3217/jucs-014-06-0861. URL: https://www.jucs.org/jucs_14_6/on_the_subrecursive_computability/jucs_14_06_0861_0875_skordev.pdf.
[Sko67] Thoralf Skolem. “The foundations of elementary arithmetic established by means of the recursive mode of thought, without the use of apparent variables ranging over infinite domains”. In: From Frege to Gödel: A Source Book in Mathematical Logic, 1879–1931. Ed. and trans. by Jean van Heijenoort. Original work published in German in 1923 as Begründung der elementaren Arithmetik durch die rekurrierende Denkweise ohne Anwendung scheinbarer Veränderlichen, die unendliche Bereiche durchlaufen. Cambridge, Massachusetts: Harvard University Press, 1967, pp. 302–333.
[Spe54] Ernst Specker. “Verallgemeinerte Kontinuumshypothese und Auswahlaxiom”. In: Archiv der Mathematik 5 (1954), pp. 332–337. DOI: 10.1007/BF01898380.
[ST14] Matthieu Sozeau and Nicolas Tabareau. “Universe Polymorphism in Coq”. In: Interactive Theorem Proving (ITP 2014). Vol. 8558. Lecture Notes in Computer Science. Springer, 2014, pp. 499–514. DOI: 10.1007/978-3-319-08970-6_32.
[Sta79] Richard Statman. “The Typed λ-Calculus is Not Elementary Recursive”. In: Theoretical Computer Science 9.1 (1979), pp. 73–81. DOI: 10.1016/0304-3975(79)90007-0.
[Tai67] William W. Tait. “Intensional Interpretations of Functionals of Finite Type I”. In: Journal of Symbolic Logic 32.2 (1967), pp. 198–212. DOI: 10.2307/2271658.
[Ter89] Jan Terlouw. “Een nadere bewijsttheoretische analyse van GSTT’s”. Manuscript, Faculty of Mathematics and Computer Science, University of Nijmegen. 1989.
[The25] The Rocq Development Team. The Rocq Prover Reference Manual. Version 9.0 (formerly the Coq Proof Assistant). https://rocq-prover.org/doc. Inria. 2025. DOI: 10.5281/zenodo.1003420.
[TMR53] Alfred Tarski, Andrzej Mostowski, and Raphael M. Robinson. Undecidable Theories. Studies in Logic and the Foundations of Mathematics. Amsterdam: North-Holland Publishing Company, 1953, pp. ix+98.
[TS17] Amin Timany and Matthieu Sozeau. Consistency of the Predicative Calculus of Cumulative Inductive Constructions (pCuIC). Research report RR-9105. KU Leuven and Inria, 2017.
[TS18] Amin Timany and Matthieu Sozeau. “Cumulative Inductive Types in Coq”. In: 3rd International Conference on Formal Structures for Computation and Deduction (FSCD 2018). Vol. 108. LIPIcs. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2018, 29:1–29:16. DOI: 10.4230/LIPIcs.FSCD.2018.29.
[Wer97] Benjamin Werner. “Sets in Types, Types in Sets”. In: Theoretical Aspects of Computer Software (TACS 1997). Vol. 1281. Lecture Notes in Computer Science. Springer, 1997, pp. 530–546. DOI: 10.1007/BFb0014566.