On correctness of an n queens program

09/16/2019
by   Włodzimierz Drabent, et al.
0

Thom Frühwirth presented a short, elegant and efficient Prolog program for the n queens problem. However the program may be seen as rather tricky and one may be not convinced about its correctness. This paper explains the program in a declarative way, and provides a proof of its correctness and completeness.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/18/2021

On correctness and completeness of an n queens program

Thom Frühwirth presented a short, elegant and efficient Prolog program f...
research
10/23/2018

Programming Without Refining

To derive a program for a given specification R means to find an artifac...
research
05/17/2022

Local Completeness Logic on Kleene Algebra with Tests

Local Completeness Logic (LCL) has been put forward as a program logic f...
research
02/19/2018

Transforming Proof Tableaux of Hoare Logic into Inference Sequences of Rewriting Induction

A proof tableau of Hoare logic is an annotated program with pre- and pos...
research
08/24/2017

From Concurrent Programs to Simulating Sequential Programs: Correctness of a Transformation

Frama-C is a software analysis framework that provides a common infrastr...
research
10/27/2018

Beyond Structured Programming

The correctness of a structured program is, at best, plausible. Though t...
research
09/13/2019

Reasoning about call-by-value: a missing result in the history of Hoare's logic

We provide a sound and relatively complete Hoare-like proof system for r...

Please sign up or login with your details

Forgot password? Click here to reset