首页    期刊浏览 2025年05月01日 星期四
登录注册

文章基本信息

  • 标题:Call-by-Name Gradual Type Theory
  • 作者:Max S. New ; Daniel R. Licata
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2018
  • 卷号:108
  • 页码:24:1-24:17
  • DOI:10.4230/LIPIcs.FSCD.2018.24
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要: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. These dynamism judgements build on prior work in blame calculi and on the "gradual guarantee" theorem of gradual typing. Combined with the ordinary extensionality (eta) 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 the interpretation of gradual typing using contracts, and use it to build some concrete domain-theoretic models of gradual typing.
  • 关键词:Gradual Typing; Type Systems; Program Logics; Category Theory; Denotational Semantics
Loading...
联系我们|关于我们|网站声明
国家哲学社会科学文献中心版权所有