Equivalence and Similarity Refutation for Probabilistic Programs

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Chatterjee, Krishnendu, Goharshady, Ehsan Kafshdar, Novotný, Petr, Žikelić, Đorđe
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909160806809600
author Chatterjee, Krishnendu
Goharshady, Ehsan Kafshdar
Novotný, Petr
Žikelić, Đorđe
author_facet Chatterjee, Krishnendu
Goharshady, Ehsan Kafshdar
Novotný, Petr
Žikelić, Đorđe
contents We consider the problems of statically refuting equivalence and similarity of output distributions defined by a pair of probabilistic programs. Equivalence and similarity are two fundamental relational properties of probabilistic programs that are essential for their correctness both in implementation and in compilation. In this work, we present a new method for static equivalence and similarity refutation. Our method refutes equivalence and similarity by computing a function over program outputs whose expected value with respect to the output distributions of two programs is different. The function is computed simultaneously with an upper expectation supermartingale and a lower expectation submartingale for the two programs, which we show to together provide a formal certificate for refuting equivalence and similarity. To the best of our knowledge, our method is the first approach to relational program analysis to offer the combination of the following desirable features: (1) it is fully automated, (2) it is applicable to infinite-state probabilistic programs, and (3) it provides formal guarantees on the correctness of its results. We implement a prototype of our method and our experiments demonstrate the effectiveness of our method to refute equivalence and similarity for a number of examples collected from the literature.
format Preprint
id arxiv_https___arxiv_org_abs_2404_03430
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Equivalence and Similarity Refutation for Probabilistic Programs
Chatterjee, Krishnendu
Goharshady, Ehsan Kafshdar
Novotný, Petr
Žikelić, Đorđe
Programming Languages
Formal Languages and Automata Theory
We consider the problems of statically refuting equivalence and similarity of output distributions defined by a pair of probabilistic programs. Equivalence and similarity are two fundamental relational properties of probabilistic programs that are essential for their correctness both in implementation and in compilation. In this work, we present a new method for static equivalence and similarity refutation. Our method refutes equivalence and similarity by computing a function over program outputs whose expected value with respect to the output distributions of two programs is different. The function is computed simultaneously with an upper expectation supermartingale and a lower expectation submartingale for the two programs, which we show to together provide a formal certificate for refuting equivalence and similarity. To the best of our knowledge, our method is the first approach to relational program analysis to offer the combination of the following desirable features: (1) it is fully automated, (2) it is applicable to infinite-state probabilistic programs, and (3) it provides formal guarantees on the correctness of its results. We implement a prototype of our method and our experiments demonstrate the effectiveness of our method to refute equivalence and similarity for a number of examples collected from the literature.
title Equivalence and Similarity Refutation for Probabilistic Programs
topic Programming Languages
Formal Languages and Automata Theory
url https://arxiv.org/abs/2404.03430