Hoare logicHoare logic is the fundamental formalism introduced by C.A.R. Hoare in 1969 for reasoning about the correctness of imperative programs, building on first-order logic. We will now study Hoare logic for simple While programs. The logic deals with the notion of correctness vis a specification that consists of apreconditionprecondition and apostconditionpostcondition. The correctness of a program with respect to a givenspecificationin Hoare logicspecification is asserted by constructing a derivation in the inference system of Hoare logic. While doing so, one must identify an invariant for every loop in the program.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Hoare Logic

  • José Bacelar Almeida,
  • Maria João Frade,
  • Jorge Sousa Pinto,
  • Simão Melo de Sousa

摘要

Hoare logicHoare logic is the fundamental formalism introduced by C.A.R. Hoare in 1969 for reasoning about the correctness of imperative programs, building on first-order logic. We will now study Hoare logic for simple While programs. The logic deals with the notion of correctness vis a specification that consists of apreconditionprecondition and apostconditionpostcondition. The correctness of a program with respect to a givenspecificationin Hoare logicspecification is asserted by constructing a derivation in the inference system of Hoare logic. While doing so, one must identify an invariant for every loop in the program.