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.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
验证语义引导合成问题的解决方案
语义指导合成(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
期刊最新文献
Memory Consistency and Program Transformations No Saved Kaleidosope: an 100% Jitted Neural Network Coding Language with Pythonic Syntax Towards Quantum Multiparty Session Types The Incredible Shrinking Context... in a decompiler near you Scheme Pearl: Quantum Continuations
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1