计算机科学 > 计算机科学中的逻辑
[提交于 2017年7月10日]
标题:Finding polynomial loop invariants for probabilistic programs
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Quantitative loop invariants are an essential element in the verification of probabilistic programs. Recently, multivariate Lagrange interpolation has been applied to synthesizing polynomial invariants. In this paper, we propose an alternative approach. First, we fix a polynomial template as a candidate of a loop invariant. Using Stengle's Positivstellensatz and a transformation to a sum-of-squares problem, we find sufficient conditions on the coefficients. Then, we solve a semidefinite programming feasibility problem to synthesize the loop invariants. If the semidefinite program is unfeasible, we backtrack after increasing the degree of the template. Our approach is semi-complete in the sense that it will always lead us to a feasible solution if one exists and numerical errors are small. Experimental results show the efficiency of our approach.
提交历史
来自:David N. Jansen[v1] 2017年7月10日 星期一 04:02:27 UTC