【24h】

Formalizing Hoare Logic in PVS

机译:在PVS中正式化HOARE逻辑

获取原文

摘要

We formalize a Hoare logic for the partial correctness of while programs in PVS and prove its soundness and relative completeness. We use the PVS higher-order logic to define the syntax and semantics of a small imperative programming language, and describe a proof system for Hoare triples involving programs in this language. We prove the soundness of the proof system by demonstrating that only valid triples are provable. We also demonstrate the relative completeness of the proof system by defining the weakest liberal precondition operator and using it to prove that all valid Hoare triples are provable modulo the assertion logic. Finally, we verify a verification condition generator for Hoare logic Variants of Hoare logic have been formalized before in PVS and using other interactive proof assistants. We use Hoare logic as a tutorial exercise to illustrate the effective use of PVS in capturing the syntax and semantics of embedded logics. The embedding of Hoare logic is simple enough to be easily reproduced by the reader, but it also illustrates some of the nuances of formalization and proof using PVS, in particular, and higher-order logic, in general.
机译:我们将HOARE逻辑正规化为PVS中的程序部分正确性,并证明其声音和相对完整性。我们使用PVS高阶逻辑来定义小型势不一编程语言的语法和语义,并描述了涉及这种语言的程序的HOARE三重的证明系统。我们通过证明只有有效的三元证明证明了证明系统的声音。我们还通过定义最弱的自由主义前提操作,并用它来证明所有有效霍尔三元组是可证明模断言逻辑论证证明系统的相对完整性。最后,我们验证了HOARE逻辑变体的验证条件发生器在PVS之前正式化,并使用其他互动备用助手。我们使用Hoare Logic作为教程练习,以说明PVS在捕获嵌入逻辑的语法和语义时有效使用PV。 HOARE逻辑的嵌入足以容易被读者再现,但也说明了使用PVS,特别是高阶逻辑的形式化和证据的一些细微差别。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号