Verifying Graph Programs with First-Order Logic

被引:3
|
作者
Wulandari, Gia S. [1 ,2 ]
Plump, Detlef [1 ]
机构
[1] Univ York, York, England
[2] Telkom Univ, Bandung, Indonesia
关键词
D O I
10.4204/EPTCS.330.11
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We consider Hoare-style verification for the graph programming language GP 2. In previous work, graph properties were specified by so-called E-conditions which extend nested graph conditions. However, this type of assertions is not easy to comprehend by programmers that are used to formal specifications in standard first-order logic. In this paper, we present an approach to verify GP 2 programs with a standard first-order logic. We show how to construct a strongest liberal postcondition with respect to a rule schema and a precondition. We then extend this construction to obtain strongest liberal postconditions for arbitrary loop-free programs. Compared with previous work, this allows to reason about a vastly generalised class of graph programs. In particular, many programs with nested loops can be verified with the new calculus.
引用
收藏
页码:181 / 200
页数:20
相关论文
共 50 条
  • [1] Verifying Graph Programs with Monadic Second-Order Logic
    Wulandari, Gia S.
    Plump, Detlef
    [J]. GRAPH TRANSFORMATION, ICGT 2021, 2021, 12741 : 240 - 261
  • [2] A progression semantics for first-order logic programs
    Zhou, Yi
    Zhang, Yan
    [J]. ARTIFICIAL INTELLIGENCE, 2017, 250 : 58 - 79
  • [3] Verifying Relational Properties of Functional Programs by First-Order Refinement
    Asada, Kazuyuki
    Sato, Ryosuke
    Kobayashi, Naoki
    [J]. PROCEEDINGS OF THE 2015 ACM SIGPLAN WORKSHOP ON PARTIAL EVALUATION AND PROGRAM MANIPULATION (PEPM'15), 2015, : 61 - 72
  • [4] Verifying relational properties of functional programs by first-order refinement
    Asada, Kazuyuki
    Sato, Ryosuke
    Kobayashi, Naoki
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2017, 137 : 2 - 62
  • [5] A formalization of programs in first-order logic with a discrete linear order
    Lin, Fangzhen
    [J]. ARTIFICIAL INTELLIGENCE, 2016, 235 : 1 - 25
  • [6] A Formalization of Programs in First-Order Logic with a Discrete Linear Order
    Lin, Fangzhen
    [J]. FOURTEENTH INTERNATIONAL CONFERENCE ON THE PRINCIPLES OF KNOWLEDGE REPRESENTATION AND REASONING, 2014, : 338 - 347
  • [7] First-order logic axiomatization of metric graph theory
    Chalopin, Jérémie
    Changat, Manoj
    Chepoi, Victor
    Jacob, Jeny
    [J]. Theoretical Computer Science, 2024, 993
  • [8] First-order logic axiomatization of metric graph theory
    Chalopin, Jeremie
    Changat, Manoj
    Chepoi, Victor
    Jacob, Jeny
    [J]. THEORETICAL COMPUTER SCIENCE, 2024, 993
  • [9] THE FIRST-ORDER LOGIC OF CZF IS INTUITIONISTIC FIRST-ORDER LOGIC
    Passmann, Robert
    [J]. JOURNAL OF SYMBOLIC LOGIC, 2024, 89 (01) : 308 - 330
  • [10] First-order modular logic programs and their conservative extensions
    Harrison, Amelia
    Lierler, Yuliya
    [J]. THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2016, 16 : 755 - 770