Synthesizing Probabilistic Invariants via Doob's Decomposition

被引:41
作者
Barthe, Gilles [1 ]
Espitau, Thomas [2 ]
Ferrer Fioriti, Luis Maria [3 ]
Hsu, Justin [4 ]
机构
[1] IMDEA Software Inst, Madrid, Spain
[2] ENS Cachan, Cachan, France
[3] Univ Saarland, Saarbrucken, Germany
[4] Univ Penn, Philadelphia, PA 19104 USA
来源
COMPUTER AIDED VERIFICATION, (CAV 2016), PT I | 2016年 / 9779卷
关键词
GENERATION; TERMINATION;
D O I
10.1007/978-3-319-41528-4_3
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
When analyzing probabilistic computations, a powerful approach is to first find a martingale-an expression on the program variables whose expectation remains invariant-and then apply the optional stopping theorem in order to infer properties at termination time. One of the main challenges, then, is to systematically find martingales. We propose a novel procedure to synthesize martingale expressions from an arbitrary initial expression. Contrary to state-of-the-art approaches, we do not rely on constraint solving. Instead, we use a symbolic construction based on Doob's decomposition. This procedure can produce very complex martingales, expressed in terms of conditional expectations. We show how to automatically generate and simplify these martingales, as well as how to apply the optional stopping theorem to infer properties at termination time. This last step typically involves some simplification steps, and is usually done manually in current approaches. We implement our techniques in a prototype tool and demonstrate our process on several classical examples. Some of them go beyond the capability of current semi-automatic approaches.
引用
收藏
页码:43 / 61
页数:19
相关论文
共 33 条
[1]  
Allen J.R., 1983, Proc. of the Symposium on Principles of Programming Languages. POPL, P177
[2]  
AMMARGUELLAT Z, 1990, SIGPLAN NOTICES, V25, P283, DOI 10.1145/93548.93583
[3]  
Baier C, 2008, PRINCIPLES OF MODEL CHECKING, P1
[4]  
Barthe G, 2011, LECT NOTES COMPUT SC, V6841, P71, DOI 10.1007/978-3-642-22792-9_5
[5]  
Bournez O, 2005, LECT NOTES COMPUT SC, V3467, P323
[6]  
Chakarov Aleksandar, 2013, Computer Aided Verification. 25th International Conference, CAV 2013. Proceedings. LNCS 8044, P511, DOI 10.1007/978-3-642-39799-8_34
[7]   Deductive Proofs of Almost Sure Persistence and Recurrence Properties [J].
Chakarov, Aleksandar ;
Voronin, Yuen-Lam ;
Sankaranarayanan, Sriram .
TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS (TACAS 2016), 2016, 9636 :260-279
[8]   Expectation invariants for probabilistic program loops as fixed points [J].
Chakarov, Aleksandar ;
Sankaranarayanan, Sriram .
Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2014, 8723 :85-100
[9]   Algorithmic Analysis of Qualitative and Quantitative Termination Problems for Affine Probabilistic Programs [J].
Chatterjee, Krishnendu ;
Fu, Hongfei ;
Novotny, Petr ;
Hasheminezhad, Rouzbeh .
ACM SIGPLAN NOTICES, 2016, 51 (01) :327-342
[10]   Counterexample-Guided Polynomial Loop Invariant Generation by Lagrange Interpolation [J].
Chen, Yu-Fang ;
Hong, Chih-Duo ;
Wang, Bow-Yaw ;
Zhang, Lijun .
COMPUTER AIDED VERIFICATION, PT I, 2015, 9206 :658-674