Affiliation:
1. Inria, France
2. Universität Innsbruck, Austria
3. Build Informed, Austria
Abstract
In this work, we study the fully automated inference of expected result values of probabilistic programs in the presence of natural programming constructs such as procedures, local variables and recursion. While crucial, capturing these constructs becomes highly non-trivial. The key contribution is the definition of a term representation, denoted as infer[.], translating a pre-expectation semantics into first-order constraints, susceptible to automation via standard methods. A crucial step is the use of logical variables, inspired by previous work on Hoare logics for recursive programs. Noteworthy, our methodology is not restricted to tail-recursion, which could unarguably be replaced by iteration and wouldn't need additional insights. We have implemented this analysis in our prototype ev-imp. We provide ample experimental evidence of the prototype's algorithmic expressibility.
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Reference56 articles.
1. Proving almost-sure termination by omega-regular decomposition
2. On continuation-passing transformations and expected cost analysis
3. Type-Based Complexity Analysis of Probabilistic Functional Programs
4. A modular cost analysis for probabilistic programs
5. M. Avanzini G. Moser and M. Schaper. 2023. Automated Expected Value Analysis of Recursive Programs. arxiv:2304.01284. M. Avanzini G. Moser and M. Schaper. 2023. Automated Expected Value Analysis of Recursive Programs. arxiv:2304.01284.
Cited by
3 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献