arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1808.09234cs.PL
收藏

关于收集依赖类型值的简短说明

A Short Note on Collecting Dependently Typed Values

Jan de Muijnck-Hughes

摘要:

在依赖类型语言中,例如Idris,类型可以依赖于值。然而,这种依赖性会限制标准容器中的项集合:所有元素必须具有相同的类型,因此它们的类型必须包含相同的值。我们提出了两种用于收集依赖类型的依赖类型数据结构:\texttt{DList}和\texttt{PList}。这些新的数据结构的使用允许创建单个简洁的归纳ADT,其构造先前是冗长的并且跨许多数据结构被分割。

英文摘要:

Within dependently typed languages, such as Idris, types can depend on values. This dependency, however, can limit the collection of items in standard containers: all elements must have the same type, and as such their types must contain the same values. We present two dependently typed data structures for collecting dependent types: \texttt{DList} and \texttt{PList}. Use of these new data structures allow for the creation of single succinct inductive ADT whose constructions were previously verbose and split across many data structures.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑