Learning Probabilistic Termination Proofs

نویسندگان

چکیده

Abstract We present the first machine learning approach to termination analysis of probabilistic programs. Ranking supermartingales (RSMs) prove that programs halt, in expectation, within a finite number steps. While previously RSMs were directly synthesised from source code, our method learns them sampled execution traces. introduce neural ranking supermartingale : we let network fit an RSM over traces and then verify it code using satisfiability modulo theories (SMT); if latter step produces counterexample, generate new sample repeat counterexample-guided inductive synthesis loop, until SMT solver confirms validity RSM. The result is thus sound witness termination. Our strategy agnostic its verification counterpart supports widest range single-loop any existing tool can handle date. demonstrate efficacy benchmarks include linear polynomial with discrete, continuous, state-dependent, multi-variate, hierarchical distributions, distributions undefined moments.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Program Termination Proofs

Proving termination of programs is an undecidable problem. In this work we provide a sound method for proving the termination of a certain class of programs by using the power of linear programming tools. We handle while-loops with a simple loop condition where the assignment of the variables is nondeterministically-chosen out of a set of possible linear assignments. We implement a simple effic...

متن کامل

Interactive Termination Proofs Using Termination Cores

Recent advances in termination analysis have yielded new methods and tools that are highly automatic. However, when they fail, even experts have difficulty understanding why and determining how to proceed. In this paper, we address the issue of building termination analysis engines that are both highly automatic and easy to use in an interactive setting. We consider the problem in the context o...

متن کامل

Erasure for Termination Proofs

We introduce a technique to facilitate termination proofs for term rewriting systems. We especially focus on innermost termination. The main features of this technique lie in its simplicity and e ectiveness in practice. This work can be regarded as an application of the general notion termination through transformation to both termination and innermost termination proofs.

متن کامل

Automata-Based Termination Proofs

This paper describes our generic framework for detecting termination of programs handling infinite and complex data domains, such as pointer structures. The framework is based on a counterexample-driven abstraction refinement loop. We have instantiated the framework for programs handling tree-like data structures, which allowed us to prove automatically termination of programs such as the depth...

متن کامل

Probabilistic Termination Versus Fair Termination

In this paper we show that probabilistic termination of concurrent program is in many cases much simpler than the "f~" one. For a wide class of definitions of probabilistic termination we may express termination by rrf arithmetic formula, whereas the "fair" termination can be expressed only by rrf secqnd order arithmetic formula. Proof of "fair" termination usually needs induction on recursive ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Lecture Notes in Computer Science

سال: 2021

ISSN: ['1611-3349', '0302-9743']

DOI: https://doi.org/10.1007/978-3-030-81688-9_1