Verifying Solutions to Semantics-Guided Synthesis Problems

Charlie Murphy, Keith Johnson, Thomas Reps, Loris D'Antoni
{"title":"Verifying Solutions to Semantics-Guided Synthesis Problems","authors":"Charlie Murphy, Keith Johnson, Thomas Reps, Loris D'Antoni","doi":"arxiv-2408.15475","DOIUrl":null,"url":null,"abstract":"Semantics-Guided Synthesis (SemGuS) provides a framework to specify synthesis\nproblems in a solver-agnostic and domain-agnostic way, by allowing a user to\nprovide both the syntax and semantics of the language in which the desired\nprogram should be synthesized. Because synthesis and verification are closely\nintertwined, the SemGuS framework raises the problem of how to verify programs\nin a solver and domain-agnostic way. We prove that the problem of verifying whether a program is a valid solution\nto a SemGuS problem can be reduced to proving validity of a query in the `CLP\ncalculus, a fixed-point logic that generalizes Constrained Horn Clauses and\nco-Constrained Horn Clauses. Our encoding into `CLP allows us to further\nclassify the SemGuS verification problems into ones that are reducible to\nvalidity of (i) first-order-logic formulas, (ii) Constrained Horn Clauses,\n(iii) co-Constrained Horn Clauses, and (iv) `CLP queries. Furthermore, our\nencoding shines light on some limitations of the SemGuS framework, such as its\ninability to model nondeterminism and reactive synthesis. We thus propose a\nmodification to SemGuS that makes it more expressive, and for which verifying\nsolutions is exactly equivalent to proving validity of a query in the `CLP\ncalculus. Our implementation of SemGuS verifiers based on the above encoding\ncan verify instances that were not even encodable in previous work.\nFurthermore, we use our SemGuS verifiers within an enumeration-based SemGuS\nsolver to correctly synthesize solutions to SemGuS problems that no previous\nSemGuS synthesizer could solve.","PeriodicalId":501197,"journal":{"name":"arXiv - CS - Programming Languages","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2024-08-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Programming Languages","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2408.15475","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Semantics-Guided Synthesis (SemGuS) provides a framework to specify synthesis problems in a solver-agnostic and domain-agnostic way, by allowing a user to provide both the syntax and semantics of the language in which the desired program should be synthesized. Because synthesis and verification are closely intertwined, the SemGuS framework raises the problem of how to verify programs in a solver and domain-agnostic way. We prove that the problem of verifying whether a program is a valid solution to a SemGuS problem can be reduced to proving validity of a query in the `CLP calculus, a fixed-point logic that generalizes Constrained Horn Clauses and co-Constrained Horn Clauses. Our encoding into `CLP allows us to further classify the SemGuS verification problems into ones that are reducible to validity of (i) first-order-logic formulas, (ii) Constrained Horn Clauses, (iii) co-Constrained Horn Clauses, and (iv) `CLP queries. Furthermore, our encoding shines light on some limitations of the SemGuS framework, such as its inability to model nondeterminism and reactive synthesis. We thus propose a modification to SemGuS that makes it more expressive, and for which verifying solutions is exactly equivalent to proving validity of a query in the `CLP calculus. Our implementation of SemGuS verifiers based on the above encoding can verify instances that were not even encodable in previous work. Furthermore, we use our SemGuS verifiers within an enumeration-based SemGuS solver to correctly synthesize solutions to SemGuS problems that no previous SemGuS synthesizer could solve.
验证语义引导合成问题的解决方案
语义指导合成(Semantics-Guided Synthesis,SemGuS)提供了一种框架,允许用户同时提供合成所需程序的语言的语法和语义,从而以与求解器和领域无关的方式指定合成问题。由于综合与验证紧密相连,SemGuS 框架提出了如何以与求解器和领域无关的方式验证程序的问题。我们证明,验证程序是否是SemGuS问题的有效解决方案的问题可以简化为证明`CLP微积分(Constrained Horn Clauses andco-Constrained Horn Clauses)中查询的有效性。我们对 "CLP "的编码使我们能够将SemGuS验证问题进一步分类为可还原为以下几种有效性的问题:(1)一阶逻辑公式;(2)约束Horn子句;(3)共约束Horn子句;以及(4)"CLP "查询。此外,我们的编码还揭示了SemGuS框架的一些局限性,比如它无法模拟非确定性和反应式合成。因此,我们提出了对SemGuS的修改,使其更具表现力,对它来说,验证解决方案完全等同于证明CLP微积分中查询的有效性。此外,我们在基于枚举的SemGuS求解器(SemGuSsolver)中使用我们的SemGuS验证器,正确地合成出以前的SemGuS合成器无法解决的SemGuS问题的解决方案。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信