A Word Sampler for Well-Typed Functions

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteur principal: Considine, Breandan
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915646600642560
author Considine, Breandan
author_facet Considine, Breandan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2512_01036
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Word Sampler for Well-Typed Functions
Considine, Breandan
Programming Languages
Formal Languages and Automata Theory
F.4.3
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.
title A Word Sampler for Well-Typed Functions
topic Programming Languages
Formal Languages and Automata Theory
F.4.3
url https://arxiv.org/abs/2512.01036