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

可视化 miniKanren 搜索:基于细粒度小步语义

Visualizing miniKanren Search with a Fine-Grained Small-Step Semantics

Seton Hall University(新泽西学院)

Brysen Pfingsten, Jason Hemann

AI总结:

本文提出 miniKanren 的确定性小步语义以显式表示搜索树,并实现交互式可视化工具,帮助理解公平搜索行为,经属性测试验证。

摘要:

我们提出了一种确定性的 miniKanren 小步操作语义,该语义在执行过程中显式地表示不断演化的搜索树。该语义在细粒度上对交错和目标调度进行建模,使得每一步求值——目标激活、挂起、恢复和成功——都能被精确地可视化。基于此模型,我们实现了一个交互式可视化工具,该工具在搜索树生成时将其渲染出来,并允许用户逐步执行。该工具充当一种教学性的概念机器,用于推理 miniKanren 的公平搜索行为,帮助用户理解令人惊讶的答案顺序和操作效应。我们的语义和工具通过基于属性的测试得到验证,并通过多个示例加以说明。

英文摘要:

We present a deterministic small-step operational semantics for miniKanren that explicitly represents the evolving search tree during execution. This semantics models interleaving and goal scheduling at fine granularity, allowing each evaluation step-goal activation, suspension, resumption, and success -- to be visualized precisely. Building on this model, we implement an interactive visualizer that renders the search tree as it develops and lets users step through execution. The tool acts as a pedagogical notional machine for reasoning about miniKanren's fair search behavior, helping users understand surprising answer orders and operational effects. Our semantics and tool are validated through property-based testing and illustrated with several examples.

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

↑