English

A Specification Logic for Programs in the Probabilistic Guarded Command Language (Extended Version)

Logic in Computer Science 2022-08-22 v2

Abstract

The semantics of probabilistic languages has been extensively studied, but specification languages for their properties have received little attention. This paper introduces the probabilistic dynamic logic pDL, a specification logic for programs in the probabilistic guarded command language (pGCL) of McIver and Morgan. The proposed logic pDL can express both first-order state properties and probabilistic reachability properties, addressing both the non-deterministic and probabilistic choice operators of pGCL. In order to precisely explain the meaning of specifications, we formally define the satisfaction relation for pDL. Since pDL embeds pGCL programs in its box-modality operator, pDL satisfiability builds on a formal MDP semantics for pGCL programs. The satisfaction relation is modeled after PCTL, but extended from propositional to first-order setting of dynamic logic, and also embedding program fragments. We study basic properties of pDL, such as weakening and distribution, that can support reasoning systems. Finally, we demonstrate the use of pDL to reason about program behavior.

Keywords

Cite

@article{arxiv.2205.04822,
  title  = {A Specification Logic for Programs in the Probabilistic Guarded Command Language (Extended Version)},
  author = {Raúl Pardo and Einar Broch Johnsen and Ina Schaefer and Andrzej Wąsowski},
  journal= {arXiv preprint arXiv:2205.04822},
  year   = {2022}
}