【24h】

Graded Hoare Logic and its Categorical Semantics

机译:分级HOARE LOGIC及其分类语义

获取原文

摘要

Deductive verification techniques based on program logics (i.e., the family of Floyd-Hoare logics) are a powerful approach for program reasoning. Recently, there has been a trend of increasing the expressive power of such logics by augmenting their rules with additional information to reason about program side-effects. For example, general program logics have been augmented with cost analyses, logics for probabilistic computations have been augmented with estimate measures, and logics for differential privacy with indistinguishability bounds. In this work, we unify these various approaches via the paradigm of grading, adapted from the world of functional calculi and semantics. We propose Graded Hoare Logic (GHL), a parameterisable framework for augmenting program logics with a preordered monoidal analysis. We develop a semantic framework for modelling GHL such that grading, logical assertions (pre- and post-conditions) and the underlying effectful semantics of an imperative language can be integrated together. Central to our framework is the notion of a graded category which we extend here, introducing graded Freyd categories which provide a semantics that can interpret many examples of augmented program logics from the literature. We leverage coherent fibrations to model the base assertion language, and thus the overall setting is also fibrational.
机译:基于节目逻辑的演绎验证技术(即,弗洛伊德Hoare逻辑系列)是一种强大的程序推理方法。最近,通过使用额外信息增强这些逻辑的表现力来增加这些逻辑的表现力,以推理计划副作用。例如,一般程序逻辑已经增强了成本分析,概率计算的逻辑已经增强了估计措施,以及具有无法区分的差异范围的差异隐私的逻辑。在这项工作中,我们通过分级的范式统一这些各种方法,改编自功能性结石和语义的世界。我们提出了渐变的HOARE逻辑(GHL),该框架,用于增强程序逻辑,具有预订的单面分析。我们开发一个用于建模GH1的语义框架,使得分级,逻辑断言(预先和后期和后期)和势在必可语言的底层有效的语义可以集成在一起。我们的框架核心是我们在此处扩展的分级类别的概念,引入了评级Freyd类别,该类别提供了一种可以解释来自文献中的增强程序逻辑的许多示例的语义。我们利用连贯的纤维来模拟基本断言语言,因此整体设置也是造棒。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号