Book contents
- Frontmatter
- Contents
- Preface
- 1 Introduction
- 2 Categorical Preliminaries
- 3 Partiality
- 4 Order-Enriched Categories of Partial Maps
- 5 Data Types
- 6 Recursive Types
- 7 Recursive Types in Cpo-Categories
- 8 FPC
- 9 Computational Soundness and Adequacy
- 10 Summary and Further Research
- A Lemma 8.4.4
- B Theorem 8.6.6
- C Lemma 9.1.3
- D Propositions D.0.1 and D.0.2
- Bibliography
- Index
- Symbol Index
6 - Recursive Types
Published online by Cambridge University Press: 23 November 2009
- Frontmatter
- Contents
- Preface
- 1 Introduction
- 2 Categorical Preliminaries
- 3 Partiality
- 4 Order-Enriched Categories of Partial Maps
- 5 Data Types
- 6 Recursive Types
- 7 Recursive Types in Cpo-Categories
- 8 FPC
- 9 Computational Soundness and Adequacy
- 10 Summary and Further Research
- A Lemma 8.4.4
- B Theorem 8.6.6
- C Lemma 9.1.3
- D Propositions D.0.1 and D.0.2
- Bibliography
- Index
- Symbol Index
Summary
We thoroughly study the semantics of inductive and recursive types. Our point of view is that types constitute the objects of a category and that type constructors are bifunctors on the category of types. By a bifunctor on a category we mean a functor on two variables from the category to itself, contravariant in the first, covariant in the second.
First, following Peter Freyd, the stress is on the study of algebraically complete categories, i.e. those categories admitting all inductive types (in the sense that every endofunctor on them has an initial algebra—this is understood in a setting in which the phrase “every endofunctor” refers to a class of enriched endofunctors—see Definition 6.1.4). After observing that algebraic completeness guarantees the existence of parameterised initial algebras, we identify, under the name of parameterised algebraically complete categories, all those categories which are algebraically complete and such that every parameterised inductive type constructor gives rise to a parameterised inductive type (see Definition 6.1.7). Type constructors on several variables are dealt with by Bekič's Lemma, from which follow both the Product Theorem for Parameterised Algebraically Complete Categories (Theorem 6.1.14) and also the dinaturality of Fix (the functor delivering initial algebras).
Second, again following Peter Freyd, algebraic completeness is refined to algebraic compactness by imposing the axiom that, for every endofunctor, the inverse of an initial algebra is a final coalgebra. The compactness axiom is motivated with a simple argument showing that every bifunctor on an algebraically compact category admits a fixed-point.
- Type
- Chapter
- Information
- Axiomatic Domain Theory in Categories of Partial Maps , pp. 106 - 132Publisher: Cambridge University PressPrint publication year: 1996