Lectures onType Theory
Chapter 147
Chapter 147Optional

Generalized Algebraic Theories

Prerequisites. Direct starred prerequisites: none. No later core chapter depends on this route.

A many-sorted signature declares a set of sorts and, for each operation symbol, a list of argument sorts and a result sort. Try to declare a category. There are two sorts, Ob and Ar, and an operation comp:(Ar,Ar)Ar. This declaration is well formed and wrong: it composes any two arrows. The usual repair adds dom,cod:ArOb and the equations dom(comp(f,g))=dom(f) and so on, together with a side condition cod(f)=dom(g); but a side condition is not part of a many-sorted signature, and adding it as an equation is impossible because the equation would have to be a premise of the declaration rather than an axiom about it.

What the mathematics wants is one sort for each pair of objects, a,b:ObHom(a,b) sort,a,b,c:Ob, f:Hom(a,b), g:Hom(b,c)comp(f,g):Hom(a,c), so that the sort of the result depends on terms occurring in the sorts of the arguments. A signature that permits this is a generalized algebraic theory. The difficulty is not the notation, which is immediate, but the definition of what such a declaration is: the next section shows that sorts, operations and equations cannot be presented as three separate lists.

A signature that cannot be sorted into three lists

Example 147.1 — An equation must precede a sort

Declare, in this order, X sort,x0:X,x1:X,x0=x1:X,x:XY(x) sort,y:Y(x0),y:Y(x1)Z(y,y) sort,y:Y(x0),z:Z(y,y)W(y,z) sort. The last declaration is well formed only because of the equation x0=x1. The sort Z(y,y) requires its first argument in Y(x0) and its second in Y(x1); the expression Z(y,y) therefore type-checks only after Y(x0) and Y(x1) have been identified, which happens exactly when x0=x1 is available. The equation may be stated after the sorts Y and Z, but it must be stated before W.

An ordering of the three kinds of declaration therefore cannot be imposed in advance: a sort may depend on an operation, an operation on an equation, and an equation on a sort. A presentation must be a single sequence in which each entry is checked against everything before it. That is the shape of definition 147.4, and it is why the definition proceeds by induction on the length of the sequence rather than by describing three sets.

Two further decisions are forced. First, “everything before it” must be made precise without a syntax, since a syntax is what the theory is supposed to generate; the device is to interpret a partial presentation as a category of models and each declaration as an operation available uniformly in every model. Second, the ambient notion of model must already support contexts, dependent types, terms and substitution. That is exactly a category with families (definition 54.16), and the strict morphisms of definition 54.26 are what “uniformly” will mean.

Convention 147.2 — Ambient CwFs and size

Fix Grothendieck universes as in convention 116.37 and write CwF for the category of small CwFs and strict CwF-morphisms of definition 54.16, definition 54.26. “CwF” means small CwF throughout this chapter, and every morphism preserves the chosen terminal object, substitution, comprehension, p and q on the nose.

Uniform families and presentations

Definition 147.3 — Uniform family

Let K be a category equipped with a functor U:KCwF that is the identity on underlying data, so that an object C of K is a CwF with extra structure and a morphism of K is a strict CwF-morphism preserving that structure.

  1. A uniform family of contexts over K is a family Γ=(ΓC) with ΓC a context of C for each object C, such that F(ΓC)=ΓD for every FK(C,D).

  2. Given such a Γ, a uniform family of types over Γ is a family A=(AC) with ACTyC(ΓC) and F(AC)=AD for every F.

  3. Given Γ and A, a uniform family of terms is a family a=(aC) with aCTmC(ΓC,AC) and F(aC)=aD for every F.

Uniformity is a condition on the whole category of models at once. It replaces the syntactic notion “an expression in the vocabulary declared so far”: an expression would give such a family by interpretation, and the definition takes the families themselves as primitive so that no syntax has to exist yet.

Definition 147.4 — Presentation

A presentation Θ and its category CwFΘ of CwFs with Θ-structure are defined together, by induction on the length of Θ.

  • Empty. The unique presentation of length 0 is , and CwF:=CwF.

  • Sort. Let Γ be a uniform family of contexts over CwFΘ. Then Θ:=(Θ,(Γ,S)) is a presentation. An object of CwFΘ is a pair (C,SC) with C an object of CwFΘ and SCTyC(ΓC); a morphism (C,SC)(D,SD) is a morphism FCwFΘ(C,D) with F(SC)=SD.

  • Operator. Let Γ be a uniform family of contexts and A a uniform family of types over Γ. Then Θ:=(Θ,(Γ,A,f)) is a presentation. An object of CwFΘ is a pair (C,fC) with fCTmC(ΓC,AC); a morphism is an F with F(fC)=fD.

  • Equation. Let Γ,A be as above and let a,a be uniform families of terms in A. Then Θ:=(Θ,(Γ,A,a,a)) is a presentation, and CwFΘ is the full subcategory of CwFΘ on those C with aC=aC.

This is Definition 4 of Bezem, Coquand, Dybjer and Escardó, On generalized algebraic theories and categories with families, physical page 6 of the journal version. The definition is independent of any syntax: nothing in it mentions an expression.

Lemma 147.5 — Extensions carry uniform families forward

Let Θ extend Θ by one entry and let U:CwFΘCwFΘ be the forgetful functor. If Γ is a uniform family of contexts over CwFΘ, then ΓU, whose value at an object C of CwFΘ is ΓUC, is a uniform family of contexts over CwFΘ; and likewise for uniform families of types and of terms.

Proof of Lemma 147.5 — Extensions carry uniform families forward

Proof. Let FCwFΘ(C,D). In each of the three extension cases of definition 147.4, F is by construction a morphism F:=UF of CwFΘ, possibly subject to one extra equation. Uniformity of Γ over CwFΘ gives F(ΓUC)=ΓUD, which is the required equation for ΓU at F. The same argument applies verbatim to types and to terms, because in each case the required equation is F(AUC)=AUD and F acts as F on types and terms. ◻

Lemma 147.5 is what makes definition 147.4 well founded: the family used to justify entry n+1 must be uniform over CwFΘn, and every family available at stage n is still available at stage n+1. It is used without comment in every calculation below.

Example 147.6 — Monoids, step by step

The one-sorted theory of monoids is M sort,e:M,x,y:Mxy:M,y:Mey=y:M,x:Mxe=x:M,x,y,z:M(xy)z=x(yz):M. Its official presentation is built as follows. Every CwF has a chosen terminal object and every strict morphism preserves it, so 1=(1C) is a uniform family of contexts over CwF, and Θ1:=(,(1,M)) is a presentation whose objects are pairs (C,MC) with MCTyC(1). By lemma 147.5, 1 remains uniform over CwFΘ1, and M is a uniform family of types over it by the morphism condition, so Θ2:=(Θ1,(1,M,e)) adds the unit, with objects (C,MC,eC) and eCTmC(1,MC). Comprehension gives the uniform family of contexts 1.M.M[p] and the uniform family of types M[p][p] over it, so Θ3:=(Θ2,(1.M.M[p],M[p][p],)) adds the binary operation. For the left unit law, let τ:1.M1 be the unique substitution to the terminal object and put σ:=τ,e[τ],q:1.M1.M.M[p], which sends the first variable to e and the second to itself; its second component is well typed because p=τ on 1.M. The entry is Θ4:=(Θ3, (1.M, M[p], [σ], q)), in which the uniform family of contexts records that the equation has one variable, the uniform family of types records the type of both sides, and the two uniform families of terms are the two sides. The right unit law and associativity are added in the same way, and Θ:=Θ6 is the presentation of monoids. An object of CwFΘ is a CwF with an internal monoid; in the CwF Set of convention 116.37 it is a monoid in the usual sense.

Example 147.7 — Categories

The declaration that failed in the opening is now legitimate: Ob sort,a,b:ObHom(a,b) sort,a:Obid(a):Hom(a,a),a,b,c:Ob,f:Hom(a,b),g:Hom(b,c)gf:Hom(a,c), with the three equations of (141.2). Each entry is read as in example 147.6: the uniform family of contexts for Hom is 1.Ob.Ob[p], and the uniform family of contexts for composition is the sixfold comprehension naming a,b,c,f,g and nothing else. An object of CwFΘ is a CwF with an internal category.

Remark 147.8 — Why the presentation is large, and why that is harmless

A uniform family is indexed by the objects of CwFΘ, which form a proper class, so a presentation as defined is not a set. Corollary 147.10 replaces every uniform family by a context, type or term of one small object, after which the presentation becomes a small syntactic datum. Until that corollary is available the largeness is carried explicitly; it is the price of defining a signature without first having a syntax.

Exercise 147.1

★☆☆ Write the presentation of preorders — one sort P, one sort x,y:Pxy, and the two equations making reflexive and transitive — naming the uniform family of contexts used for each entry.

Exercise 147.2

★★☆ Definition 147.4 has no clause adding an equation between types. Show that the theory of categories can nevertheless be presented, by checking that every equation used in example 147.7 is an equation between terms. Then explain what would go wrong in example 147.1 if the equation x0=x1 were replaced by an equation Y(x0)=Y(x1) between sorts.

The initial model

Definition 147.4 specifies a category of models without producing one. The syntactic construction produces the initial one, and it must be carried out entry by entry: theorem 54.27 builds the initial bare CwF, and each added sort, operator or equation changes the raw grammar, the inference rules and the quotient, so nothing about the extended theory follows from the bare statement.

Theorem 147.9 — Initiality

For every presentation Θ the category CwFΘ has an initial object TΘ.

Proof of Theorem 147.9 — Initiality

Proof. Induction on the length of Θ. At each stage the construction produces four items: a grammar for raw contexts, substitutions, types and terms; a system of rules generating four partial equivalence relations Γ=Γ,ΓA=A,Γγ=γ:Δ,Γa=a:A, whose quotient is TΘ; a proof that TΘ is an object of CwFΘ; and, for each object C, an interpretation morphism [[]]C:TΘC shown to be the only one.

Base. For Θ= the four items are theorem 54.27: the raw syntax of definition 54.2, its equality rules, the quotient CwF, and the unique strict morphism into any CwF.

Adding a sort (Γ,S). Extend the grammar of raw types by one production A::=S and the rules by ΓTΘS where ΓTΘ is the value at TΘ of the uniform family Γ. Neither the raw contexts, substitutions nor terms change, and no rule for the other three relations mentions S, so the partial equivalence relations extend conservatively: two raw types are related in the extension exactly when they are related in TΘ or both are S in a context related to ΓTΘ. Put STΘ:=[S] and TΘ:=(TΘ,[S]), an object of CwFΘ. Given an object (C,SC), extend the interpretation by [[S]]:=SC. It is a morphism of CwFΘ because the added equation [[STΘ]]=SC holds by definition, and it is unique because any morphism must satisfy that equation and agrees with [[]] elsewhere by initiality of TΘ.

Adding an operator (Γ,A,f). Extend the grammar of raw terms by a::=f and the rules by ΓTΘf:ATΘ, put fTΘ:=[f] and TΘ:=(TΘ,[f]), and extend the interpretation by [[f]]:=fC. The three verifications are as in the previous case, with Tm in place of Ty.

Adding an equation (Γ,A,a,a). The grammar is unchanged. Add the rule ΓTΘaTΘ=aTΘ:ATΘ, which enlarges the partial equivalence relations; TΘ is the quotient of the same raw syntax by the enlarged relations. It is an object of CwFΘ because the added rule gives [aTΘ]=[aTΘ]. For the interpretation, define the same partial function on raw syntax as before and check that it respects the enlarged relations: the only new generator is the displayed rule, and [[aTΘ]]=aC=aC=[[aTΘ]] because C is an object of CwFΘ, so the two sides have equal interpretations. The induced map on the new equivalence classes is a morphism, and it is unique because it agrees with the unique morphism out of TΘ on every class.

At each stage the added item was checked against the four requirements, so the induction is complete. ◻

Uniqueness at each stage used only one fact about the added entry: that a morphism of CwFΘ is a morphism of CwFΘ satisfying one further equation, which is definition 147.4 read off directly. Nothing was inherited from theorem 54.27 except the base case.

Corollary 147.10 — Uniform families are contexts of the initial model

For each presentation Θ the assignments ΓΓTΘ,Γ([[Γ]]C)C are mutually inverse bijections between the uniform families of contexts over CwFΘ and the contexts of TΘ, and likewise for types and terms.

Proof of Corollary 147.10 — Uniform families are contexts of the initial model

Proof. A context Γ of TΘ gives a family whose value at C is [[Γ]]C; it is uniform because for F:CD the composite F[[]]C is a morphism TΘD, hence equals [[]]D by initiality, so F([[Γ]]C)=[[Γ]]D. Conversely a uniform family Γ gives the context ΓTΘ. One composite is the identity because [[ΓTΘ]]TΘ=ΓTΘ, since [[]]TΘ is the identity by initiality; the other is the identity because uniformity applied to the morphism [[]]C:TΘC gives [[ΓTΘ]]C=ΓC. The arguments for types and terms replace “context” by “type over the corresponding context” and “term of the corresponding type”. ◻

Corollary 147.10 removes the largeness recorded in remark 147.8: a presentation may be rewritten so that each entry names a context, type and terms of the initial model constructed so far, and it then becomes a small syntactic object.

Theorem 147.11 — Structural induction

Let Θ be a presentation and let P be a sub-CwF of TΘ: a subclass of the contexts, substitutions, types and terms of TΘ containing the terminal object, closed under composition, identities, substitution and comprehension, and containing p and q for every included type. Suppose P carries Θ-structure inherited from TΘ, that is, STΘP for each declared sort and fTΘP for each declared operator. Then P contains every context, substitution, type and term of TΘ.

Proof of Theorem 147.11 — Structural induction

Proof. The inclusion ι:PTΘ is a strict CwF-morphism, by the closure conditions, and it preserves the Θ-structure by hypothesis; so P is an object of CwFΘ and ι is a morphism of that category. The equations of Θ hold in P because they hold in TΘ and ι is injective. By theorem 147.9 there is a unique h:=[[]]P:TΘP, and ιh:TΘTΘ is a morphism of CwFΘ, hence equal to the identity by initiality. So ι is surjective on each of the four kinds of datum. ◻

The hypotheses of theorem 147.11 are exactly the clauses of definition 54.16, definition 147.4; there is one closure condition per constructor of the raw syntax and one per declared symbol, and no condition for the declared equations, which hold automatically in a subclass of a model.

Example 147.12 — A CwF with Π and as a presentation

Take the presentation whose sorts are ctx, then Γ,Δ:ctxsub(Δ,Γ), then Γ:ctxty(Γ), then Γ:ctx,A:ty(Γ)tm(Γ,A), whose operators are the composition, identity, terminal, substitution and comprehension operators of definition 54.16, and whose equations are the equations of that definition. An object of CwFΘ is a CwF with an internal CwF. Adding the operators and equations of definition 54.21 gives a presentation whose models are CwFs with an internal CwF supporting Π; adding a natural-numbers sort with zero, successor and its eliminator gives one supporting N. In each case the added entries are checked against definition 147.4 exactly as in example 147.6, and theorem 147.9 produces the initial such model.

Exercise 147.3

★★☆ Following the proof of theorem 147.9, write out the grammar and the added inference rules for the presentation of monoids of example 147.6, and identify the raw term whose class is TΘ. Then describe the underlying set of the internal monoid of TΘ over the empty context.

Exercise 147.4

★★☆ Instantiate theorem 147.11 at the monoid presentation built in example 147.6, and read off the induction principle it yields. State the principle as a claim about every term of type M over the context 1.M. Then pair each closure condition of theorem 147.11 with the clause of that claim it produces.

Exercise 147.5

★★★ In the equation step of theorem 147.9 the raw syntax does not change but the quotient does. Give a presentation Θ and an equation whose addition identifies two previously distinct contexts of TΘ, and one whose addition identifies two terms but no two types. Then prove that adding an equation never identifies two sorts declared before it unless the equation is used in a sort’s own well-formedness, as in example 147.1.

Cartmell’s first-order syntax

Cartmell’s original definition proceeds through a syntax: raw expressions, judgment forms ΓA type and Γa:A together with the two equality judgments, and a presentation is a set of derivable declarations closed under those rules. Models are then contextual categories. The relationship to definition 147.4 at the exact strength supported here is the following, and no more.

Proposition 147.13 — Interpretation into the first-order account

Let Θ be a presentation in the sense of definition 147.4. Rewriting each entry by corollary 147.10 as a context, type and terms of the initial model built from the preceding entries yields a finite sequence of declarations ΓS sort,Γf:A,Γa=a:A, in which every Γ, A, a, a is derivable from the preceding declarations. That sequence is a generalized algebraic theory in Cartmell’s sense containing no equation between type expressions.

Proof of Proposition 147.13 — Interpretation into the first-order account

Proof. Corollary 147.10 converts each uniform family into a datum of TΘn for the corresponding initial segment Θn, and by the construction in theorem 147.9 each such datum is the class of a raw expression derivable from the rules generated by Θn. The three shapes of entry in definition 147.4 produce the three displayed shapes of declaration, and none of them is an equation between types. ◻

Remark 147.14 — The boundary in both directions

Cartmell’s notion additionally permits declarations ΓA=A type. Definition 147.4 has no such clause, so proposition 147.13 runs in one direction only: every presentation in this chapter’s sense becomes a Cartmell theory, and a Cartmell theory with a type equation need not become a presentation. The source records that none of its examples needs the extra generality, because in its rendering of dependent type theory an equation between types is expressible as an equation between terms of the sort of types (example 147.12); that observation is about those examples and is not a theorem that type equations are always eliminable. Cartmell’s contextual categories correspond to a variant, contextual CwFs, in which contexts carry a length and the sorts are indexed by an external natural number; that variant needs countably many sort symbols and is outside definition 147.4 as stated.

Optional route.

Second-order signatures with binding

Every entry of definition 147.4 declares an operation whose arguments are terms. A binder is not of that shape. Writing the untyped lambda calculus as a signature, one wants Tm:sort,lam:(TmTm)Tm,:TmTmTm, with the equation lam(g)u=g(u). The declared type of lam mentions a function space TmTm of the metatheory, so it is not first order and not strictly positive. The immediate consequence is that there is no usable notion of homomorphism: a map α between two such models would have to satisfy α(lamM(g))=lamN(αg?), and nothing types the hole, because α runs in one direction only.

The repair is to add contexts and substitutions explicitly, index the sort of terms by contexts, and turn the metatheoretic function into a term in an extended context. Applied to the display above it produces a first-order presentation in the sense of definition 147.4.

Definition 147.15 — The frozen second-order signature language

A second-order generalized algebraic signature declares sorts, possibly indexed by earlier sorts, and operations whose argument types may be second order, that is, of the form B1BkA with each Bi a declared sort. The frozen reference for this language, its translation to first-order presentations through a parallel-substitution calculus, and the semantics of the result is Kaposi and Xie, Second-order generalised algebraic theories: signatures and first-order semantics, FSCD 2024. Its metatheory is extensional type theory with uniqueness of identity proofs (physical page 4), which is not the metatheory of the rest of this chapter.

Example 147.16 — One binder-rich signature and its translation

The second-order signature of the untyped lambda calculus is Definition 3 of the source, physical page 5: Tm:Set,lam:(TmTm)Tm,:TmTmTm,β:lamgu=gu. Its translation is Definition 4 of the source, physical page 6: a category with a terminal object given by sorts Con and Sub with composition, identity, the associativity and unit equations and the terminal η-law; a sort Tm:ConSet with an instantiation operation [] and its two functoriality equations; a context extension with p, q and the three equations making SubΔ(Γ) isomorphic to SubΔΓ×TmΔ; and finally lam:Tm(Γ)TmΓ,lam[]:(lamt)[γ]=lam(t[γp,q]), together with application, its substitution law, and β:lamtu=t[id,u]. Three features of the translation are visible in that display and are the content of the construction. The metatheoretic function argument of lam has become a term in a context extended by one variable. Each operation has acquired a substitution law, so that the translated theory respects substitution by construction rather than by a later theorem. The metatheoretic application gu on the right of β has become instantiation of the last variable along (id,u).

Remark 147.17 — What the extension supplies and what it does not

The translated theory of example 147.16 is a presentation in the sense of definition 147.4: every entry declares a sort, an operation between declared sorts, or an equation between terms, and the uniform families are read off exactly as in example 147.6. Consequently theorem 147.9 and theorem 147.11 apply to it, and that is the only way results of this chapter reach a language with binders.

Three limits are recorded. First, the source’s own translation is generic and does not produce the smallest first-order presentation of a given second-order signature; simpler equivalent presentations of the lambda calculus exist, and no minimality is claimed. Second, the accompanying implementation is a partial deep embedding in Agda that computes the translation on examples; it is evidence that the construction is correct on those examples, not a mechanization of the semantic theorems stated in prose. Third, the metatheory of definition 147.15 is extensional with uniqueness of identity proofs, whereas section 147.2, section 147.3 used only convention 116.17; no theorem proved there is strengthened by the extension.

Exercise 147.6

★★☆ Write out the failed homomorphism condition for two second-order models M,N of the signature in example 147.16, and show that the hole would have to be a function TmNTmM. Then exhibit two models and a map α for which no such function exists.

Exercise 147.7

★★☆ In the translated theory, define the de Bruijn variables 0:=q, 1:=q[p], 2:=q[p][p], and compute lam(lam(10)) in the empty context. Then apply β twice to lam(lam(10))uv and check that the result is uv.

Source. The second-order extension is A. Kaposi and Sz. Xie, Second-order generalised algebraic theories: signatures and first-order semantics, FSCD 2024, Definitions 3 and 4 on physical pp. 5–6 and the metatheory statement on physical p. 4; the related finitary presentation of inductive-inductive signatures is [KKL20].

Suggested first pass.

Begin with exercise 147.8 and exercise 147.9, then complete exercise 147.12.

Exercise 147.8

★☆☆ Write the presentation of reflexive graphs — one sort of vertices, one sort of edges indexed by two vertices, and one operation giving a loop at each vertex — and identify the uniform family of contexts used for the edge sort. Then say what an internal reflexive graph is in the CwF Set.

Exercise 147.9

★★☆ Prove directly, without corollary 147.10, that the family assigning to each CwF its chosen terminal object is uniform, and that the family assigning to each CwF some chosen non-terminal context is not. Which clause of definition 54.26 is responsible?

Exercise 147.10

★★★ Give a Cartmell-style theory with a declaration ΓA=A type that is not the image of any presentation under proposition 147.13, or prove that in the case you choose the type equation can be replaced by a term equation as in remark 147.14. State exactly which of the two you have established.

Exercise 147.11

★★☆ Show that theorem 147.11 fails if the closure condition on comprehension is dropped: exhibit a presentation and a subclass of TΘ closed under everything except . that does not contain every context.

Exercise 147.12

★★★ Practical project.gat-presentation-checker Implement a checker for presentations in the small syntactic form supplied by corollary 147.10. The input is a finite list of entries. An entry is a sort declaration, an operator declaration, or an equation; in each case its context, type and terms are given as raw expressions over the CwF combinators of definition 54.16 extended by the symbols declared in earlier entries. The program processes the list in order and, for each entry, checks that its context is a derivable context, that its type is a derivable type over that context, and that its terms are derivable terms of that type, using only the rules generated by the entries already accepted.

Invariant. The program maintains, after entry n, exactly the set of symbols declared by Θn and the equations declared by Θn, and it never uses a symbol or an equation from a later entry when checking an earlier one. It checks this by recording, with every accepted judgment, the index of the last entry used in its derivation, and by verifying that the index is smaller than the current one.

Concrete result. For each entry the program prints accepted together with two recorded indices — the last entry of any kind used, and the last equation used, or none — or rejected together with the reason: undeclared symbol, ill-typed argument, or an equation not yet available.

Acceptance test. Run it on the monoid presentation of example 147.6: all six entries must print accepted, and the last entry used by the left unit law must be the entry declaring . Run it on the presentation of example 147.1 in the displayed order: all seven entries must be accepted; the last equation used by W must be the entry declaring x0=x1, and the last entry of any kind used by W must be the entry declaring Z. Reporting only one of those two indices is not enough, because W depends on a sort declared after the equation. Run the list again with the equation moved after the declaration of W: the entry for W must be rejected with the reason equation not yet available. A run that accepts the reordered list has failed to check the argument types of Z against the equations available at that point, which is the precise defect this test detects.

Sources. Definition 147.3, Definition 147.4, the monoid calculation of example 147.6, theorem 147.9, corollary 147.10 and the boundary of remark 147.14 follow M. Bezem, T. Coquand, P. Dybjer and M. Escardó, On generalized algebraic theories and categories with families, Mathematical Structures in Computer Science 31 (2021), 1006–1023 [BCDE21]: the interdependency example and Definition 4 on physical page 6, Theorem 1 and Remarks 2–4 on physical page 7, the four construction steps on physical page 9, and the monoid presentation and initial model on physical pages 10–11. The original first-order syntax and the contextual-category semantics are J. Cartmell, Generalised algebraic theories and contextual categories, PhD thesis, Oxford 1978, and the article of the same title, Annals of Pure and Applied Logic 32 (1986), 209–243 [Car78, Car86, Car18]. The initial CwF used as the base case is theorem 54.27, following Castellan, Clairambault and Dybjer [CCD21] and Dybjer [Dyb96].

Search the book

Type to search the local edition.