HackerPapers

arXiv:1802.00061cs.PL

Call-by-name Gradual Type Theory

Max S. New, Daniel R. Licata

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

We present gradual type theory, a logic and type theory for call-by-name gradual typing. We define the central constructions of gradual typing (the dynamic type, type casts and type error) in a novel way, by universal properties relative to new judgments for gradual type and term dynamism, which were developed in blame calculi and to state the "gradual guarantee" theorem of gradual typing. Combined with the ordinary extensionality ($η$) principles that type theory provides, we show that most of the standard operational behavior of casts is uniquely determined by the gradual guarantee. This provides a semantic justification for the definitions of casts, and shows that non-standard definitions of casts must violate these principles. Our type theory is the internal language of a certain class of preorder categories called equipments. We give a general construction of an equipment interpreting gradual type theory from a 2-category representing non-gradual types and programs, which is a semantic analogue of Findler and Felleisen's definitions of contracts, and use it to build some concrete domain-theoretic models of gradual typing.

arXiv comments
Journal reference
Logical Methods in Computer Science, Volume 16, Issue 1 (January 31, 2020) lmcs:5154
DOI
doi:10.23638/LMCS-16(1:7)2020
Subjects
cs.PLProgramming Languages

On Hacker News

Linked by 1 identifiable commenter in 1 comment across 1 thread, from Apr 2018 to Apr 2018.

Comments linking this paper, per year.

Discussed in comments1 thread

    • The concrete examples the author is looking for, where it's easier to analyze programs according to their behavior instead of their imperative structure, is Per Martin-Löf's paper Constructive Mathematics and Computer Programming (DOI: 10.1016/S0049-237X(09)70189-2). For a brief…

      hackermailmanView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.