Quantitative Separation Logic

02/28/2018
by   Kevin Batz, et al.
0

We present quantitative separation logic (QSL). In contrast to classical separation logic, QSL employs quantities which evaluate to real numbers instead of predicates which evaluate to boolean values. The connectives of classical separation logic, separating conjunction and separating implication, are both lifted from predicates to quantities. This extension is conservative: Both connectives are backward compatible to their classical analogs and obey the same laws, e.g. modus ponens, adjointness of separating conjunction and implication, etc. Furthermore, we develop a weakest precondition calculus for quantitative reasoning about probabilistic pointer programs in QSL. This calculus is a conservative extension of both Reynolds' weakest preconditions for heap manipulating programs and McIver & Morgan's weakest preexpectations for probabilistic programs. In particular, our calculus preserves O'Hearn's frame rule which enables local reasoning - a key principle of separation logic. We demonstrate that our calculus enables reasoning about quantitaties, such as the probability of terminating with an empty heap or the expected length of a randomly constructed list.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/27/2022

Foundations for Entailment Checking in Quantitative Separation Logic (extended version)

Quantitative separation logic (QSL) is an extension of separation logic ...
research
02/14/2022

Quantitative Strongest Post

We present a novel strongest-postcondition-style calculus for quantitati...
research
11/23/2022

A Calculus for Amortized Expected Runtimes

We develop a weakest-precondition-style calculus à la Dijkstra for reaso...
research
12/14/2018

Computational interpretations of classical reasoning: From the epsilon calculus to stateful programs

The problem of giving a computational meaning to classical reasoning lie...
research
07/06/2022

Towards Concurrent Quantitative Separation Logic

In this paper, we develop a novel verification technique to reason about...
research
04/03/2023

Lilac: A Modal Separation Logic for Conditional Probability

We present Lilac, a separation logic for reasoning about probabilistic p...
research
09/16/2023

Dynamic Separation Logic

This paper introduces a dynamic logic extension of separation logic. The...

Please sign up or login with your details

Forgot password? Click here to reset