논리 프로그램에 대한 정교화 계산법
A Refinement Calculus for Logic Programs
A Refinement Calculus for Logic Programs
@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}
}
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
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.
초록
기존 정교화 계산기는 명세에서 명령형 프로그램을 단계적으로 개발하기 위한 프레임워크를 제공한다. 본 논문은 논리 프로그램 도출을 위한 정교화 계산을 제시한다. 이 계산에는 순차적 결합, 결합, 존재량화자와 같은 실행 가능한 구성 요소와 일반 술어, 가정, 보편량화자 같은 명세 구성 요소를 포함한 광범위한 범위의 논리 프로그래밍 언어를 포함한다. 이 광범위한 범위의 언어에 대해 실행을 기반으로 선언적 의미론이 정의된다. 실행은 상태 집합으로 표현되는 상태에서 상태로의 부분 함수이다. 의미론은 매개변수와 재귀를 포함한 프로그램과 명세의 의미를 정의한다. 계산을 완성하기 위해 광범위한 범위의 언어의 프로그램에 대한 정확성 보전 정교화 개념이 정의되고 프로그램 개발을 위한 정교화 법칙이 소개된다. 정교화 계산은 예시 유도 사례를 통해 설명되며 프로토 타입 도구 지원에 대해 논의한다.
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.