首页 | 本学科首页   官方微博 | 高级检索  
     

文件比较算法fcomp在Isabelle/HOL中的验证
引用本文:宋丽华,王海涛,季晓君,张兴元. 文件比较算法fcomp在Isabelle/HOL中的验证[J]. 软件学报, 2017, 28(2): 203-215
作者姓名:宋丽华  王海涛  季晓君  张兴元
作者单位:解放军理工大学 指挥信息系统学院,江苏 南京 210007,解放军理工大学 信息管理中心,江苏 南京 210007,解放军理工大学 指挥信息系统学院,江苏 南京 210007,解放军理工大学 指挥信息系统学院,江苏 南京 210007
基金项目:江苏省自然科学基金(BK20130070)
摘    要:基于机器定理证明的形式验证技术不受状态空间限制,是保证软件正确性、避免因潜在软件缺陷带来严重损失的重要方法.文件比较算法(File Comparison Algorithm)是一类成员众多,应用极为广泛,跨越生物信息学、情报检索、网络安全等多个应用领域的基础算法,但关于它们的形式验证工作很少,至今未有经机器检查的性质证明.本文在交互式定理证明器Isabelle/HOL 中对Miller和Myers在1985年提出的基于行的文件比较算法fcomp作了形式化,改正了算法关于边界变量迭代的一个小错误,证明了改正后算法的可终止性和正确性;对算法时间复杂性作了完全形式化的分析,印证了算法作者的非形式化分析结论.本文为今后更多文件比较算法的形式验证提供了可供借鉴的经验.

关 键 词:文件比较算法  fcomp  交互式定理证明  Isabelle/HOL
收稿时间:2015-11-21
修稿时间:2016-03-22

Verification of File Comparison Algorithm fcomp in Isabelle/HOL
SONG Li-Hu,WANG Hai-Tao,JI Xiao-Jun and ZHANG Xing-Yuan. Verification of File Comparison Algorithm fcomp in Isabelle/HOL[J]. Journal of Software, 2017, 28(2): 203-215
Authors:SONG Li-Hu  WANG Hai-Tao  JI Xiao-Jun  ZHANG Xing-Yuan
Affiliation: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,College of Command Information Systems, PLA University of Science and Technology, Nanjing 210007, China and College of Command Information Systems, PLA University of Science and Technology, Nanjing 210007, China
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.
Keywords:file comparison algorithm   fcomp   interactive theorem proving   Isabelle/HOL
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号