计算机科学 > 程序设计语言
[提交于 2025年10月16日]
标题:Visualizing miniKanren Search with a Fine-Grained Small-Step Semantics
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Jason Hemann[v1] 2025年10月16日 星期四 22:34:36 UTC