计算机科学 > 程序设计语言
[提交于 2025年11月30日]
标题:A Word Sampler for Well-Typed Functions
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We describe an exact sampler for a simply-typed, first-order functional programming language. Given an acyclic finite automaton, $\alpha_{\varnothing}$, it samples a random function uniformly without replacement from well-typed functions in $\mathcal{L}(\alpha_{\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}(\alpha_{\varnothing})$, while retaining the robust metatheory of formal languages.
提交历史
来自:Breandan Considine[v1] 2025年11月30日 星期日 19:05:50 UTC