LLM2Cert:LLM 合成带 SMT/Lean 验证的证书

·

研究论文 · 2026/10/27

本文针对非线性高维系统的Lyapunov函数和屏障证书合成与验证难题,提出了DynaCertBench基准(105个实例,涵盖稳定性、吸引域、前向不变性和安全性任务)和LLM2Cert框架(利用LLM合成候选证书,并通过SMT求解器或Lean证明修复代理验证证明义务)。在DynaCertBench上,LLM2Cert验证了81/105个实例(77.1%),比无反馈的一次性提议提高了17.1个百分点;在81个固定证书上,LLM2Cert验证了22个All-SMT无法解决的实例。

该论文针对形式化验证中证书合成与验证的瓶颈,提出了结合大语言模型与SMT/Lean验证的新框架,并构建了更具挑战性的基准,显著提升了验证成功率,对安全关键系统的形式化保障有重要推动意义。

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.

阅读原文

参与讨论