Graded Hoare Logic and its Categorical Semantics

07/22/2020
by   Marco Gaboardi, et al.
0

Deductive verification techniques, based on program logics (i.e., the family of Floyd-Hoare logics), are a powerful approach for program reasoning. Recently, there has been a trend of increasing the expressive power of such logics by augmenting their rules with additional analyses. For example, general program logics have been augmented with cost analyses, logics for probabilistic programming have been augmented with estimate measures, and logics for differential privacy with sensitivity bounds. In this work, we unify these various disparate approaches via the paradigm of grading, adapted from the world of functional calculi and semantics. We propose Graded Hoare Logic (GHL), a parametrisable framework for augmenting program logics with a pre-ordered monoidal analysis. We develop a semantic framework for modelling GHL such that grading, logical assertions (pre- and post-conditions) and the underlying effectful semantics of an imperative language can be integrated together. Central to our framework is the notion of graded category which we extend here, introducing graded Freyd categories which provide a semantics that can interpret many examples of augmented program logics from the literature. We leverage coherent fibrations to model the base assertion language, and thus the overall setting is also fibrational.

READ FULL TEXT
POST COMMENT

Comments

There are no comments yet.

Authors

page 1

page 2

page 3

page 4

07/02/2021

Higher-order probabilistic adversarial computations: Categorical semantics and program logics

Adversarial computations are a widely studied class of computations wher...
05/29/2019

Fuzzi: A Three-Level Logic for Differential Privacy

Curators of sensitive datasets sometimes need to know whether queries ag...
03/14/2018

An Assertion-Based Program Logic for Probabilistic Programs

Research on deductive verification of probabilistic programs has conside...
01/28/2020

Unifying graded and parameterised monads

Monads are a useful tool for structuring effectful features of computati...
01/05/2018

Intelligence Graph

In fact, there exist three genres of intelligence architectures: logics ...
08/01/2015

Extending SROIQ with Constraint Networks and Grounded Circumscription

Developments in semantic web technologies have promoted ontological enco...
01/06/2021

Logics of First-Order Constraints – A Category Independent Approach

Reflecting our experiences in areas, like Algebraic Specifications, Abst...
This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.