跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2511.15819 (cs)
[提交于 2025年11月19日]

标题:Filling the Gaps of Polarity: Implementing Dependent Data and Codata Types with Implicit Arguments

作者:Bohdan Liesnikov, David Binder, Tim Süberkrüb
查看论文《Filling the Gaps of Polarity: Implementing Dependent Data and Codata Types with Implicit Arguments》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:The expression problem describes a fundamental tradeoff between two types of extensibility: extending a type with new operations, such as by pattern matching on an algebraic data type in functional programming, and extending a type with new constructors, such as by adding a new object implementing an interface in object-oriented programming. Most dependently typed languages have good support for the former style through inductive types, but support for the latter style through coinductive types is usually much poorer. Polarity is a language that treats both kinds of types symmetrically and allows the developer to switch between type representations.However, it currently lacks several features expected of a state-of-the-art dependently typed language, such as implicit arguments. The central aim of this paper is to provide an algorithmic type system and inference algorithm for implicit arguments that respect the core symmetry of the language. Our work provides two key contributions: a complete algorithmic description of the type system backing Polarity, and a comprehensive description of a unification algorithm that covers arbitrary inductive and coinductive types. We give rules for reduction semantics, conversion checking, and a unification algorithm for pattern-matching, which are essential for a usable implementation. A work-in-progress implementation of the algorithms in this paper is available at https://polarity-lang.github.io/. We expect that the comprehensive account of the unification algorithm and our design decisions can serve as a blueprint for other dependently typed languages that support inductive and coinductive types symmetrically.
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:2511.15819 [cs.PL]
  (或者 arXiv:2511.15819v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2511.15819
期刊参考: The Art, Science, and Engineering of Programming, 2025, Vol. 10, Issue 3, Article 19
相关 DOI: https://doi.org/10.22152/programming-journal.org/2025/10/19

提交历史

来自:Bohdan Liesnikov
[v1] 2025年11月19日 星期三 19:22:43 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-11
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站