Skip to content
naulon

No noticeNo retraction, correction or concern found when last checked on Dec 2, 2026.

First-Class Subtypes

Jeremy Yallop, Stephen Dolan

Electronic Proceedings in Theoretical Computer Science · 2019

doi:10.4204/eptcs.294.4 (opens in a new tab)

We email you when a new notice or a question about this paper appears.

Abstract

First class type equalities, in the form of generalized algebraic data types (GADTs), are commonly found in functional programs. However, first-class representations of other relations between types, such as subtyping, are not yet directly supported in most functional programming languages. We present several encodings of first-class subtypes using existing features of the OCaml language (made more convenient by the proposed modular implicits extension), show that any such encodings are interconvertible, and illustrate the utility of the encodings with several examples.

Abstract licence: CC BY-NC-ND

Reads

Read by people on this page

None yet.

Checked or read by AI through naulon

None yet.

A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.

Are you an author?

Is this your paper?

Claim it to add your note and be paid when agents cite it. Free.