English

The encodability hierarchy for PCF types

Logic in Computer Science 2018-06-04 v1

Abstract

Working with the simple types over a base type of natural numbers (including product types), we consider the question of when a type σ\sigma is encodable as a definable retract of τ\tau: that is, when there are λ\lambda-terms e:στe:\sigma\rightarrow\tau and d:τσd:\tau\rightarrow\sigma with de=idd \circ e = id. In general, the answer to this question may vary according to both the choice of λ\lambda-calculus and the notion of equality considered; however, we shall show that the encodability relation \preceq between types actually remains stable across a large class of languages and equality relations, ranging from a very basic language with infinitely many distinguishable constants 0,1,0,1,\ldots (but no arithmetic) considered modulo computational equality, up to the whole of Plotkin's PCF considered modulo observational equivalence. We show that στσ\sigma \preceq \tau \preceq \sigma iff στ\sigma \cong \tau via trivial isomorphisms, and that for any σ,τ\sigma,\tau we have either στ\sigma \preceq \tau or τσ\tau \preceq \sigma. Furthermore, we show that the induced linear order on isomorphism classes of types is actually a well-ordering of type ϵ0\epsilon_0, and indeed that there is a close syntactic correspondence between simple types and Cantor normal forms for ordinals below ϵ0\epsilon_0. This means that the relation \preceq is readily decidable, and that terms witnessing a retraction στ\sigma \lhd \tau are readily constructible when στ\sigma \preceq \tau holds.

Keywords

Cite

@article{arxiv.1806.00344,
  title  = {The encodability hierarchy for PCF types},
  author = {John Longley},
  journal= {arXiv preprint arXiv:1806.00344},
  year   = {2018}
}

Comments

19 pages

R2 v1 2026-06-23T02:16:07.568Z