We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo ScienceWISE logo

Computer Science > Logic in Computer Science

Title: GADTs, Functoriality, Parametricity: Pick Two

Authors: Patricia Johann (Appalachian State University), Enrico Ghiorzi (Appalachian State University), Daniel Jeffries (Appalachian State University)
Abstract: GADTs can be represented either as their Church encodings a la Atkey, or as fixpoints a la Johann and Polonsky. While a GADT represented as its Church encoding need not support a map function satisfying the functor laws, the fixpoint representation of a GADT must support such a map function even to be well-defined. The two representations of a GADT thus need not be the same in general. This observation forces a choice of representation of data types in languages supporting GADTs. In this paper we show that choosing whether to represent data types as their Church encodings or as fixpoints determines whether or not a language supporting GADTs can have parametric models. This choice thus has important consequences for how we can program with, and reason about, these advanced data types.
Comments: In Proceedings LSFA 2021, arXiv:2204.03415
Subjects: Logic in Computer Science (cs.LO); Programming Languages (cs.PL)
Journal reference: EPTCS 357, 2022, pp. 77-92
DOI: 10.4204/EPTCS.357.6
Cite as: arXiv:2105.03389 [cs.LO]
  (or arXiv:2105.03389v3 [cs.LO] for this version)

Submission history

From: EPTCS [view email]
[v1] Fri, 7 May 2021 16:50:42 GMT (40kb)
[v2] Tue, 7 Dec 2021 11:06:49 GMT (41kb)
[v3] Fri, 8 Apr 2022 07:18:08 GMT (29kb)

Link back to: arXiv, form interface, contact.