The connection between two ways of reasoning about partial functions

被引:1
作者
Fitzgerald, John S. [1 ]
Jones, Cliff B. [1 ]
机构
[1] Newcastle Univ, Sch Comp Sci, Newcastle Upon Tyne, Tyne & Wear, England
基金
英国工程与自然科学研究理事会;
关键词
formal methods; specification languages; logic; partial functions; LPF; equality;
D O I
10.1016/j.ipl.2008.02.005
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Undefined terms involving the application of partial functions and operators are common in program specifications and in discharging proof obligations that arise in design. One way of reasoning about partial functions with classical First-order Predicate Calculus (FoPC) is to use a non-strict equality notion so as to insulate logical operators from undefined operands. An alternative approach is to work only with strict (weak) equality but use an alternative Logic of Partial Functions (LPF)- a logic in which the "Law of the Excluded Middle" does not hold. This paper explores the relationships between the theorems that can be proved in the two approaches. The main result is that theorems in LPF using weak equality can be straightforwardly translated into ones that are true in FoPC; translation in the other direction results, in general, in more complicated expressions but in many cases these can be readily simplified. Such results are important if the laudable move towards interworking of formal methods tools is to be sound. (C) 2008 Elsevier B.V. All rights reserved.
引用
收藏
页码:128 / 132
页数:5
相关论文
共 18 条
  • [1] Abrial J., 2005, The B-book: Assigning Programs to Meanings
  • [2] A LOGIC COVERING UNDEFINEDNESS IN PROGRAM PROOFS
    BARRINGER, H
    CHENG, JH
    JONES, CB
    [J]. ACTA INFORMATICA, 1984, 21 (03) : 251 - 269
  • [3] BICARREGUI JC, 1994, PROOF VDM PRACTITION
  • [4] Blamey S., 1980, THESIS OXFORD U
  • [5] Blamey S., 1986, HDB PHILOS LOGIC, VIII
  • [6] Cheng J. H., 1991, 3rd Refinement Workshop. Proceedings, P51
  • [7] Cheng J.H., 1986, THESIS U MANCHESTER
  • [8] A Set Theory with Support for Partial Functions
    Farmer W.M.
    Guttman J.D.
    [J]. Studia Logica, 2000, 66 (1) : 59 - 78
  • [9] FITZGERALD J, 1998, MODELLING SYSTEMS PR
  • [10] FITZGERALD JS, 2007, EATCS TEXTS THEORETI, P427