Animated Logic: Correct Functional Conversion to Conjunctive Normal Form

03/11/2020
by   Pedro Barroso, et al.
0

We present an approach to obtain formally verified implementations of classical Computational Logic algorithms. We choose the Why3 platform because it allows to implement functions in a style very close to the mathematical definitions, as well as it allows a high degree of automation in the verification process. As proof of concept, we present a mathematical definition of the algorithm to convert propositional formulae to conjunctive normal form, implementations in WhyML (the Why3 language, very similar to OCaml), and proofs of correctness of the implementations. We apply our proposal on two variants of this algorithm: one in direct-style and another with an explicit stack structure. Being both first-order versions, Why3 processes the proofs naturally.

READ FULL TEXT

page 6

page 11

page 15

page 17

page 20

page 21

page 22

page 23

research
06/03/2018

A New Style of Mathematical Proof

Mathematical proofs will play a crucial role in building a universal dig...
research
04/09/2021

A Constructive Logic with Classical Proofs and Refutations (Extended Version)

We study a conservative extension of classical propositional logic disti...
research
04/09/2019

The Last Mile: High-Assurance and High-Speed Cryptographic Implementations

We develop a new approach for building cryptographic implementations. Ou...
research
05/12/2023

Linearizability Analysis of the Contention-Friendly Binary Search Tree

We present a formal framework for proving the correctness of set impleme...
research
06/12/2018

What Does This Notation Mean Anyway?

Following the introduction of BNF notation by Backus for the Algol 60 re...
research
03/12/2020

A Deductive Verification Framework for Circuit-building Quantum Programs

While recent progress in quantum hardware open the door for significant ...
research
05/24/2022

Syntheto: A Surface Language for APT and ACL2

Syntheto is a surface language for carrying out formally verified progra...

Please sign up or login with your details

Forgot password? Click here to reset