Electronic Proceedings in Theoretical Computer Science (Oct 2018)

Programming Without Refining

  • Marwa Benabdelali,
  • Lamia Labed Jilani,
  • Wided Ghardallou,
  • Ali Mili

DOI
https://doi.org/10.4204/EPTCS.282.4
Journal volume & issue
Vol. 282, no. Proc. Refine 2018
pp. 39 – 52

Abstract

Read online

To derive a program for a given specification R means to find an artifact P that satisfies two conditions: P is executable in some programming language; and P is correct with respect to R. Refinement-based program derivation achieves this goal in a stepwise manner by enhancing executability while preserving correctness until we achieve complete executability. In this paper, we argue that it is possible to invert these properties, and to derive a program by enhancing correctness while preserving executability (proceeding from one executable program to another) until we achieve absolute correctness. Of course, this latter process is possible only if we know how to enhance correctness.