arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.01036cs.PLcs.FL
收藏

为类型正确函数设计的词采样器

A Word Sampler for Well-Typed Functions

Breandan Considine

AI总结:

该研究提出了一种为类型正确函数生成随机函数的采样器,通过语法引导的类型系统转换到上下文无关文法,确保类型正确性和语言的稳健元理论。

摘要:

我们描述了一个精确的采样器,用于一种简单类型、一阶函数式编程语言。给定一个无环有限自动机,α_∅,它从L(α_∅)中的类型正确函数中均匀无 replacement地随机采样一个函数。这通过将语法引导的类型系统减少到上下文无关文法来实现,保持了类型正确性和完整性,同时保留了形式语言的稳健元理论。

英文摘要:

We describe an exact sampler for a simply-typed, first-order functional programming language. Given an acyclic finite automaton, $α_{\varnothing}$, it samples a random function uniformly without replacement from well-typed functions in $\mathcal{L}(α_{\varnothing})$. This is achieved via a fixed-parameter tractable reduction from a syntax-directed type system to a context-free grammar, preserving type soundness and completeness w.r.t. $\mathcal{L}(α_{\varnothing})$, while retaining the robust metatheory of formal languages.

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

↑