Saved in:
Bibliographic Details
Main Authors: Majumdar, Rupak, Sathiyanarayana, V. R.
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2404.19724
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910539594072064
author Majumdar, Rupak
Sathiyanarayana, V. R.
author_facet Majumdar, Rupak
Sathiyanarayana, V. R.
contents Deciding termination is a fundamental problem in the analysis of probabilistic imperative programs. We consider the qualitative and quantitative probabilistic termination problems for an imperative programming model with discrete probabilistic choice and demonic bounded nondeterminism. The qualitative question asks if the program terminates almost-surely, no matter how nondeterminism is resolved. The quantitative question asks for a bound on the probability of termination. Despite a long and rich literature on the topic, no sound and relatively complete proof systems were known for these problems. In this paper, we provide such sound and relatively complete proof rules for proving qualitative and quantitative termination in the assertion language of arithmetic. Our rules use supermartingales as estimates of the likelihood of a program's evolution and variants as measures of distances to termination. Our key insight is our completeness result, which shows how to construct a suitable supermartingales from an almost-surely terminating program. We also show that proofs of termination in many existing proof systems can be transformed to proofs in our system, pointing to its applicability in practice. As an application of our proof rule, we show an explicit proof of almost-sure termination for the two-dimensional random walker.
format Preprint
id arxiv_https___arxiv_org_abs_2404_19724
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Sound and Complete Proof Rules for Probabilistic Termination
Majumdar, Rupak
Sathiyanarayana, V. R.
Logic in Computer Science
Deciding termination is a fundamental problem in the analysis of probabilistic imperative programs. We consider the qualitative and quantitative probabilistic termination problems for an imperative programming model with discrete probabilistic choice and demonic bounded nondeterminism. The qualitative question asks if the program terminates almost-surely, no matter how nondeterminism is resolved. The quantitative question asks for a bound on the probability of termination. Despite a long and rich literature on the topic, no sound and relatively complete proof systems were known for these problems. In this paper, we provide such sound and relatively complete proof rules for proving qualitative and quantitative termination in the assertion language of arithmetic. Our rules use supermartingales as estimates of the likelihood of a program's evolution and variants as measures of distances to termination. Our key insight is our completeness result, which shows how to construct a suitable supermartingales from an almost-surely terminating program. We also show that proofs of termination in many existing proof systems can be transformed to proofs in our system, pointing to its applicability in practice. As an application of our proof rule, we show an explicit proof of almost-sure termination for the two-dimensional random walker.
title Sound and Complete Proof Rules for Probabilistic Termination
topic Logic in Computer Science
url https://arxiv.org/abs/2404.19724