LLM2Cert:基于LLM合成证书并通过SMT/Lean验证
LLM2Cert: LLM Synthesis of Certificates with SMT/Lean Verification
AI总结:
本研究针对证书合成与验证的挑战,推出含105个实例的DynaCertBench基准,提出LLM2Cert框架,在该基准上验证了77.1%的实例,较无反馈方法提升17.1个百分点,还解决了All-SMT未解决的22个实例。
摘要:
李雅普诺夫函数和障碍证书可提供状态空间层面的稳定性与安全性保证,但合成与验证这些对象——尤其是针对非线性、高维系统——仍是未解决的挑战。现有流程通过数值求解器(平方和规划)、区间方法或可满足性模理论(SMT)求解器验证候选对象,这些方法常需引入松弛、具有保守性,且随模型维度与非线性程度提升扩展性较差。这些限制也影响了基准测试集的设计:标准测试套件以低维多项式系统为主,其选择依据是求解器的处理能力,而非工程应用的实际需求。我们从两方面应对这一挑战:首先,推出DynaCertBench,包含105个实例的基准测试集,其中80个为从文献中筛选的非冗余系统,扩展了高维、带控制约束的变体及新的非线性耦合系统,全面覆盖稳定性、吸引域、前向不变性与安全性任务;其次,提出LLM2Cert,一种由大语言模型(LLM)驱动的框架,可合成候选证书并针对其证明义务进行验证:每个证明义务会被路由至SMT求解器,或直接提交给Lean证明修复代理。在DynaCertBench上,LLM2Cert验证了105个实例中的81个(77.1%),较无反馈的一次性提案提升了17.1个百分点;在这81个已验证的证书中,LLM2Cert还验证了22个All-SMT无法解决的实例。代码与数据可在该https URL获取。
英文摘要:
Lyapunov functions and barrier certificates give state-space guarantees of stability and safety, but synthesizing and verifying them---especially for nonlinear, high-dimensional systems---remains an open challenge. Existing pipelines verify candidates with numerical solvers (sum-of-squares programs), interval methods, or satisfiability-modulo-theories (SMT) solvers, which often require relaxations, are conservative, or scale poorly with model dimension and nonlinearity. These limitations have also shaped benchmark design: standard test suites are dominated by low-dimensional polynomial systems chosen to suit what solvers can handle rather than what engineering applications require. We address both sides of this challenge. First, we introduce DynaCertBench, a benchmark of 105 instances: 80 non-redundant systems curated from the literature, extended with high-dimensional and control-constrained variants and new nonlinearly coupled systems, comprehensively spanning stability, region-of-attraction, forward-invariance, and safety tasks. Second, we present LLM2Cert, an LLM-driven framework that synthesizes candidate certificates and verifies them against their proof obligations: each obligation is routed to an SMT solver or directly to the Lean Proof-Repair agent. On DynaCertBench, LLM2Cert verifies 81 of 105 instances ($77.1\%$), a $17.1$ percentage point improvement over one-shot proposal without feedback. On the 81 fixed certificates, LLM2Cert verifies 22 that All-SMT leaves unresolved. Code and data are available at https://github.com/FormalCert-AI/llm2cert.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。