首页 | 本学科首页   官方微博 | 高级检索  
     


Proofs of randomized algorithms in Coq
Authors:Philippe Audebaud
Affiliation:a LIP, École normale supérieure de Lyon, 46 allée d’Italie, F-69437 Lyon, France
b ProVal, INRIA Saclay - Île-de-France, Parc Orsay Université, Zac des Vignes, 4 rue Jacques Monod, F-91893 Orsay, France
c LRI, Université Paris-Sud & CNRS, F-91405 Orsay, France
Abstract:Randomized algorithms are widely used for finding efficiently approximated solutions to complex problems, for instance primality testing and for obtaining good average behavior. Proving properties of such algorithms requires subtle reasoning both on algorithmic and probabilistic aspects of programs. Thus, providing tools for the mechanization of reasoning is an important issue. This paper presents a new method for proving properties of randomized algorithms in a proof assistant based on higher-order logic. It is based on the monadic interpretation of randomized programs as probabilistic distributions (Giry, Ramsey and Pfeffer). It does not require the definition of an operational semantics for the language nor the development of a complex formalization of measure theory. Instead it uses functional and algebraic properties of unit interval. Using this model, we show the validity of general rules for estimating the probability for a randomized algorithm to satisfy specified properties. This approach addresses only discrete distributions and gives rules for analyzing general recursive functions.We apply this theory to the formal proof of a program implementing a Bernoulli distribution from a coin flip and to the (partial) termination of several programs. All the theories and results presented in this paper have been fully formalized and proved in the Coq proof assistant.
Keywords:Randomized algorithms   Proof of partial and total correctness   Functional language   Axiomatic semantics   Probability framing   Call-by-value   Monadic interpretation
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号