Monadic second-order incorrectness logic for GP 2

被引:6
|
作者
Poskitt, Christopher M. [1 ]
Plump, Detlef [2 ]
机构
[1] Singapore Management Univ, Sch Comp & Informat Syst, Singapore, Singapore
[2] Univ York, Dept Comp Sci, York, England
关键词
Program logics; Correctness proofs; Under-approximate reasoning; Monadic second-order logic; Graph transformation; GRAPH TRANSFORMATION SYSTEMS; VERIFICATION;
D O I
10.1016/j.jlamp.2022.100825
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Program logics typically reason about an over-approximation of program behaviour to prove the absence of bugs. Recently, program logics have been proposed that instead prove the presence of bugs by means of under-approximate reasoning, which has the promise of better scalability. In this paper, we present an under-approximate program logic for GP 2, a rule-based programming language for manipulating graphs. We define the proof rules of this program logic extensionally, i.e. independently of fixed assertion languages, then instantiate them with a morphism-based assertion language able to specify monadic second-order properties on graphs (e.g. path properties). We show how these proof rules can be used to reason deductively about the presence of forbidden graph structure or failing executions. Finally, we prove our 'incorrectness logic' to be sound, and our extensional proof rules to be relatively complete.(c) 2022 Elsevier Inc. All rights reserved.
引用
收藏
页数:29
相关论文
共 50 条