Call-by-name Gradual Type Theory

01/31/2018
by   Max S. New, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/16/2022

A Formal Logic for Formal Category Theory

We present a domain-specific type theory for constructions and proofs in...
research
05/01/2021

Dialectica models of type theory

We present two Dialectica-like constructions for models of intensional M...
research
02/17/2021

Formalizing relations in type theory

Type theory plays an important role in foundations of mathematics as a f...
research
09/18/2023

Fixpoint constructions in focused orthogonality models of linear logic

Orthogonality is a notion based on the duality between programs and thei...
research
05/14/2020

Proof-relevant Category Theory in Agda

The generality and pervasiness of category theory in modern mathematics ...
research
12/13/2019

Computer Viruses: The Abstract Theory Revisited

Identifying new viral threats, and developing long term defences against...
research
04/02/2022

Two-sided cartesian fibrations of synthetic (∞,1)-categories

Within the framework of Riehl-Shulman's synthetic (∞,1)-category theory,...

Please sign up or login with your details

Forgot password? Click here to reset