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.


翻译:基于组件的合成(Component-based Synthesis, CBS)通过从库组件生成无循环程序来满足逻辑查询。尽管表达性强的规格和精确的查询简化了求解空间,但这也使得传统CBS过程寻找可行执行路径的难度显著增加。随着约束条件愈发精确,搜索必须在日益稀疏的有效路径空间中导航。我们通过推理探索路径之间的\emph{逻辑相似性}应对这一挑战。我们考虑配备有精化类型(refinement-type)规格的库方法,这些规格为基础类型添加逻辑限定符以精确约束值空间。为高效探索该空间,我们提出液态树自动机(Liquid Tree Automata, LTA),这是一种新型树自动机变体,其构造由精化类型规则驱动。LTA利用子类型约束在搜索过程中识别并主动合并语义相似的状态。这种合并避免了等效路径的冗余探索,显著提升了合成效率。我们将该方法实现为名为Hegel的工具。评估表明,Hegel能够合成解决复杂查询的方案,而这些查询超出了现有最先进工具的能力范围。

0
下载
关闭预览

相关内容

《使用AI/ML自动化来提高C4ISR互操作性映射和测试能力》
专知会员服务
29+阅读 · 2024年5月21日
《TextCycleGAN 技术报告》
专知会员服务
34+阅读 · 2023年5月4日
【Google】多模态Transformer视频检索,Multi-modal Transformer
专知会员服务
103+阅读 · 2020年7月22日
自动结构变分推理,Automatic structured variational inference
专知会员服务
41+阅读 · 2020年2月10日
概述自动机器学习(AutoML)
人工智能学家
19+阅读 · 2019年8月11日
基于PyTorch/TorchText的自然语言处理库
专知
28+阅读 · 2019年4月22日
使用RNN-Transducer进行语音识别建模【附PPT与视频资料】
人工智能前沿讲习班
74+阅读 · 2019年1月29日
NLP中自动生产文摘(auto text summarization)
机器学习研究会
14+阅读 · 2017年10月10日
国家自然科学基金
4+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Arxiv
0+阅读 · 5月19日
Arxiv
0+阅读 · 5月11日
VIP会员
最新内容
非对称防御中的自组织临界性:俄乌战争
专知会员服务
1+阅读 · 今天14:36
《战争中的大语言模型监管》
专知会员服务
2+阅读 · 今天14:26
边缘计算的军事应用
专知会员服务
8+阅读 · 8月9日
一种考虑资源机动性的武器目标分配混合算法
专知会员服务
9+阅读 · 8月8日
相关基金
国家自然科学基金
4+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员