Tutorial on implementing Hoare logic for imperative programs in Haskell

01/27/2021
by   Boro Sitnikovski, et al.
0

Using the programming language Haskell, we introduce an implementation of propositional calculus, number theory, and a simple imperative language that can evaluate arithmetic and boolean expressions. Finally, we provide an implementation of Hoare's logic which will allow us to deduce facts about programs without the need for a full evaluation.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/21/2023

Sequential decomposition of propositional logic programs

The sequential composition of propositional logic programs has been rece...
research
10/20/2020

Evaluation of Logic Programs with Built-Ins and Aggregation: A Calculus for Bag Relations

We present a scheme for translating logic programs, which may use aggreg...
research
08/08/2021

Planning for an Efficient Implementation of Hypothetical Bousi Prolog

This paper explores the integration of hypothetical reasoning into an ef...
research
10/14/2020

PrivaLog: a privacy-aware logic programming language

Logic Programming (LP) is a subcategory of declarative programming that ...
research
05/24/2023

"What if?" in Probabilistic Logic Programming

A ProbLog program is a logic program with facts that only hold with a sp...
research
02/01/2018

HOL Light QE

We are interested in algorithms that manipulate mathematical expressions...
research
04/25/2018

Stratified Negation in Limit Datalog Programs

There has recently been an increasing interest in declarative data analy...

Please sign up or login with your details

Forgot password? Click here to reset