ICFP 2024
Mon 2 - Sat 7 September 2024 Milan, Italy
Wed 4 Sep 2024 13:30 - 13:48 at Green 1-2-3 - Separation Logic Chair(s): Jacques Garrigue

Probabilistic programs often trade accuracy for efficiency, and thus

may, with a small probability, return an incorrect result.

It is important to obtain precise bounds for

the probability of these errors, but existing verification approaches have limitations that

lead to error probability bounds that are excessively coarse, or only apply to first-order programs.

In this paper we present Eris, a higher-order separation logic for proving

error probability bounds for probabilistic programs written in an expressive higher-order language.

Our key novelty is the introduction of error credits, a separation logic resource

that tracks an upper bound on the probability that a program returns an erroneous result.

By representing error bounds as a resource,

we recover the benefits of separation logic, including compositionality,

modularity, and dependency between errors and program terms, allowing

for more precise specifications. Moreover, we enable novel reasoning principles

such as expectation-preserving error composition, amortized error reasoning,

and error induction.

We illustrate the advantages of our approach by proving amortized error

bounds on a range of examples, including collision probabilities

in hash functions, which allow us to write

more modular specifications for data structures that use them as clients. We

also use our logic to prove correctness and almost-sure termination of

rejection sampling algorithms. All of our results have been mechanized

in the Coq proof assistant using the Iris separation logic framework and

the Coquelicot real analysis library.

Wed 4 Sep

Displayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change

13:30 - 15:00
Separation Logic ICFP Papers and Events at Green 1-2-3
Chair(s): Jacques Garrigue Nagoya University
13:30
18m
Talk
Error Credits: Resourceful Reasoning about Error Bounds for Higher-Order Probabilistic ProgramsDistinguished Paper
ICFP Papers and Events
Alejandro Aguirre Aarhus University, Philipp G. Haselwarter Aarhus University, Markus de Medeiros New York University, Kwing Hei Li Aarhus University, Simon Oddershede Gregersen New York University, Joseph Tassarotti New York University, Lars Birkedal Aarhus University
DOI Pre-print
13:48
18m
Talk
Snapshottable StoresDistinguished Paper
ICFP Papers and Events
Clément Allain Inria, Basile Clément OCamlPro, Alexandre Moine Inria, Gabriel Scherer Université Paris Cité - Inria - CNRS
DOI
14:06
18m
Talk
Almost-Sure Termination by Guarded Refinement
ICFP Papers and Events
Simon Oddershede Gregersen New York University, Alejandro Aguirre Aarhus University, Philipp G. Haselwarter Aarhus University, Joseph Tassarotti New York University, Lars Birkedal Aarhus University
DOI Pre-print
14:24
18m
Talk
Refinement Composition Logic
ICFP Papers and Events
Youngju Song MPI-SWS, Dongjae Lee Seoul National University
DOI
14:42
18m
Talk
Specification and Verification for Unrestricted Algebraic Effects and Handling
ICFP Papers and Events
Yahui Song National University of Singapore, Darius Foo National University of Singapore, Wei-Ngan Chin National University of Singapore
DOI Pre-print