Journal of Software:2017.28(2):203-215

(解放军理工大学 指挥信息系统学院, 江苏 南京 210007;解放军理工大学 信息管理中心, 江苏 南京 210014)
Verification of File Comparison Algorithm fcomp in Isabelle/HOL
SONG Li-Hua,WANG Hai-Tao,JI Xiao-Jun,ZHANG Xing-Yuan
(College of Command Information Systems, PLA University of Science and Technology, Nanjing 210007, China;Information Management Center, PLA University of Science and Technology, Nanjing 210014, China)
Chart / table
Similar Articles
Article :Browse 1543   Download 1275
Received:November 21, 2015    Revised:March 22, 2016
> 中文摘要: 基于机器定理证明的形式验证技术不受状态空间限制,是保证软件正确性、避免因潜在软件缺陷带来严重损失的重要方法.文件比较算法(file comparison algorithm)是一类成员众多,应用极为广泛,跨越生物信息学、情报检索、网络安全等多个应用领域的基础算法.在交互式定理证明器Isabelle/HOL中对Miller和Myers在1985年提出的基于行的文件比较算法fcomp做了形式化,改正了算法关于边界变量迭代的一个小错误,证明了改正后算法的可终止性和正确性;对算法时间复杂性做了完全形式化的分析,印证了算法的非形式化分析结论,为今后更多文件比较算法的形式验证提供了可供借鉴的经验.
Abstract:Being unbound to the state space size, mechanical theorem proving is an important method in ensuring software's correctness and avoiding serious damage from program bugs. File comparison algorithms constitute a large family of algorithms which find wide range of application domains including bio-informatics, information retrieval and network security. This paper presents a work on formalization of fcomp, an efficient line oriented file comparison algorithm suggested by Miller and Myers in 1985, in the interactive theorem prover Isabelle/HOL. A small bug in fcomp's bound variable iteration is identified, and the termination and correctness of the modified algorithm is established. Formal analysis of time complexity is also performed which coincides with the algorithm designers' own results. The presented work lays a valuable foundation for subsequent formal checking of other file comparison algorithms.
文章编号:     中图分类号:    文献标志码:
基金项目:江苏省自然科学基金(BK20130070) 江苏省自然科学基金(BK20130070)
Foundation items:Natural Science Foundation of Jiangsu Province of China (BK20130070)
Reference text:


SONG Li-Hua,WANG Hai-Tao,JI Xiao-Jun,ZHANG Xing-Yuan.Verification of File Comparison Algorithm fcomp in Isabelle/HOL.Journal of Software,2017,28(2):203-215