The encodability hierarchy for PCF types

06/01/2018
by   John Longley, et al.
0

Working with the simple types over a base type of natural numbers (including product types), we consider the question of when a type σ is encodable as a definable retract of τ: that is, when there are λ-terms e:σ→τ and d:τ→σ with d ∘ e = id. In general, the answer to this question may vary according to both the choice of λ-calculus and the notion of equality considered; however, we shall show that the encodability relation ≼ 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,... (but no arithmetic) considered modulo computational equality, up to the whole of Plotkin's PCF considered modulo observational equivalence. We show that σ≼τ≼σ iff στ via trivial isomorphisms, and that for any σ,τ we have either σ≼τ or τ≼σ. Furthermore, we show that the induced linear order on isomorphism classes of types is actually a well-ordering of type ϵ_0, and indeed that there is a close syntactic correspondence between simple types and Cantor normal forms for ordinals below ϵ_0. This means that the relation ≼ is readily decidable, and that terms witnessing a retraction στ are readily constructible when σ≼τ holds.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/15/2017

Statman's Hierarchy Theorem

In the Simply Typed λ-calculus Statman investigates the reducibility rel...
research
05/12/2020

Session Types with Arithmetic Refinements

Session types statically prescribe bidirectional communication protocols...
research
07/17/2019

Typal Heterogeneous Equality Types

The usual homogeneous form of equality type in Martin-Löf Type Theory co...
research
09/08/2020

On principal types and well-foundedness of terms in ECC

When we investigate a type system, it is helpful if we can establish the...
research
02/28/2019

Infinite Types, Infinite Data, Infinite Interaction

We describe a way to represent computable functions between coinductive ...
research
07/13/2019

Sharing Equality is Linear

The λ-calculus is a handy formalism to specify the evaluation of higher-...
research
12/05/2017

Computational Higher Type Theory III: Univalent Universes and Exact Equality

This is the third in a series of papers extending Martin-Löf's meaning e...

Please sign up or login with your details

Forgot password? Click here to reset