流体树自动机
Liquid Tree Automata
AI总结:
本文提出流体树自动机,通过逻辑相似性推理优化组件合成过程,提升复杂查询的合成效率。
摘要:
组件基于合成(CBS)从库组件生成无环程序以满足逻辑查询。尽管表达式规范和精确查询简化了解空间,但传统CBS过程寻找可行执行路径变得更具挑战性。随着约束更加精确,搜索必须在越来越稀疏的有效路径空间中导航。我们通过推理探索路径之间的逻辑相似性来解决这一挑战。我们考虑配备了细化类型规范的库方法,这些方法通过逻辑限定词丰富基本类型以精确约束值空间。为了高效探索此空间,我们引入了流体树自动机(LTA),这是一种新型的树自动机变种,其构造由细化类型规则驱动。LTAs利用子类型约束来识别并尽早合并语义相似的状态。这种合并避免了等价路径的冗余探索,显著提高了合成效率。我们实现这一方法于名为Hegel的工具中。我们的评估表明,Hegel能够合成超出现有最先进工具范围的复杂查询解决方案。
英文摘要:
Component-based synthesis (CBS) generates loop-free programs from library components to satisfy logical queries. While expressive specifications and precise queries simplify the solution space, they make finding feasible execution paths significantly more difficult for traditional CBS procedures. As constraints become more exact, the search must navigate an increasingly sparse space of valid paths. We address this challenge by reasoning about \emph{logical similarities} between exploration paths. We consider library methods equipped with refinement-type specifications, which enrich base types with logical qualifiers to precisely constrain the value space. To efficiently explore this space, we introduce Liquid Tree Automata (LTA), a novel tree automata variant whose construction is driven by refinement typing rules. LTAs leverage subtyping constraints to identify and eagerly merge semantically similar states during search. This merging avoids redundant exploration of equivalent paths, significantly improving synthesis efficiency. We implement this approach in a tool called Hegel. Our evaluation demonstrates that Hegel synthesizes solutions to complex queries that are beyond the reach of existing state-of-the-art tools.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。