A Refinement Calculus for Logic Programs

arXiv:cs/0202002 First posted 2002-02-04 v1 36 pages, 3 figures. To be published in Theory and Practice of Logic Programming (TPLP)
Cite this paper ×
BibTeX
@misc{hayes2002a,
  title = {A Refinement Calculus for Logic Programs},
  author = {Ian Hayes and Robert Colvin and David Hemer and Paul Strooper and Ray Nickson},
  year = {2002},
  eprint = {cs/0202002},
  archivePrefix = {arXiv},
  primaryClass = {cs.SE},
  url = {https://arxiv.org/abs/cs/0202002}
}
APA
Hayes, I., Colvin, R., Hemer, D., Strooper, P., & Nickson, R. (2002). A Refinement Calculus for Logic Programs [Preprint]. arXiv. https://doi.org/10.48550/arXiv.cs/0202002
GB/T 7714
HAYES I, COLVIN R, HEMER D, et al. A Refinement Calculus for Logic Programs[EB/OL]. (2002-02-04)[2026-11-29]. https://arxiv.org/abs/cs/0202002.

Abstract

Existing refinement calculi provide frameworks for the stepwise development of imperative programs from specifications. This paper presents a refinement calculus for deriving logic programs. The calculus contains a wide-spectrum logic programming language, including executable constructs such as sequential conjunction, disjunction, and existential quantification, as well as specification constructs such as general predicates, assumptions and universal quantification. A declarative semantics is defined for this wide-spectrum language based on executions. Executions are partial functions from states to states, where a state is represented as a set of bindings. The semantics is used to define the meaning of programs and specifications, including parameters and recursion. To complete the calculus, a notion of correctness-preserving refinement over programs in the wide-spectrum language is defined and refinement laws for developing programs are introduced. The refinement calculus is illustrated using example derivations and prototype tool support is discussed.

Post #1 · the paper

Discussion

No comments yet. Start the discussion!