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

相关类型推断的证明相关Horn子句与项合成

Proof-relevant Horn Clauses for Dependent Type Inference and Term Synthesis

František Farka, Ekaterina Komendantskya, Kevin Hammond

摘要:

一阶解析已经被用于类型推断很多年了,包括Hindley- Milner类型推断、类型类和约束数据类型。依赖类型是函数式语言的一个新趋势。在本文中,我们证明相关的一阶分辨率可以发挥重要作用,在自动化类型推断和术语合成依赖类型的语言。我们提出了一个演算,翻译类型推断和长期合成问题,在依赖类型化的语言,一个逻辑程序和目标的证明相关的一阶霍恩子句逻辑。然后,计算出的答案替换和证明项为给定的类型推断和项合成问题提供解决方案。我们证明了我们的方法的可判定性和可靠性。该文件正在考虑被TPLP接受。

英文摘要:

First-order resolution has been used for type inference for many years, including in Hindley- Milner type inference, type-classes, and constrained data types. Dependent types are a new trend in functional languages. In this paper, we show that proof-relevant first-order resolution can play an important role in automating type inference and term synthesis for dependently typed languages. We propose a calculus that translates type inference and term synthesis problems in a dependently typed language to a logic program and a goal in the proof-relevant first-order Horn clause logic. The computed answer substitution and proof term then provide a solution to the given type inference and term synthesis problem. We prove the decidability and soundness of our method. The paper is under consideration for acceptance in TPLP.

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

↑