Formalization of the General Hoare Logic Laws Cover Image

Formalization of the General Hoare Logic Laws
Formalization of the General Hoare Logic Laws

Author(s): Aleksandar Kupusinac, Dusan Malbaski
Subject(s): Information Architecture
Published by: UIKTEN - Association for Information Communication Technology Education and Science
Keywords: Program verification; program correctness; Hoare logic; first-order predicate logic; Coq.

Summary/Abstract: This paper presents a new approach to formalizing the general rules of the Hoare logic. Our way is based on formulas of the first-order predicate logic defined over the abstract state space of a virtual machine, i.e. so-called S-formulas. S-formulas are general tool for analyzing program semantics in as much as Hoare triples of total and partial correctness are not more than two S-formulas. The general rules of Hoare logic, such as the laws of consequence, conjunction, disjunction and negation can be derived using axioms and theorems of first order predicate logic. Every proof is based on deriving the validity of some S-formula, so the procedure maybe automated using automatic theorem provers. In this paper we will use Coq.

  • Issue Year: 1/2012
  • Issue No: 3
  • Page Range: 145-150
  • Page Count: 6
  • Language: English