Verification of non-functional programs using interpretations in type theory

被引:49
作者
Filliâtre, JC [1 ]
机构
[1] Univ Paris 11, LRI, F-91405 Orsay, France
关键词
D O I
10.1017/S095679680200446X
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We study the problem of certifying programs combining imperative and functional features within the general framework of type theory. Type theory is a powerful specification language which is naturally suited for the proof of purely functional programs. To deal with imperative programs, we propose a logical interpretation of an annotated program as a partial proof of its specification. The construction of the corresponding partial proof term is based on a static analysis of the effects of the program which excludes aliases. The missing subterms in the partial proof term are seen as proof obligations, whose actual proofs are left to the user. We show that the validity of those proof obligations implies the total correctness of the program. This work has been implemented in the Coq proof assistant. It appears as a tactic taking an annotated program as argument and generating a set of proof obligations. Several nontrivial algorithms have been certified using this tactic.
引用
收藏
页码:709 / 745
页数:37
相关论文
共 40 条
[1]  
Abrial J., 2005, The B-book: Assigning Programs to Meanings
[2]  
[Anonymous], SYSTEMATIC SOFTWARE
[3]   ON CORRECT REFINEMENT OF PROGRAMS [J].
BACK, RJR .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1981, 23 (01) :49-68
[4]  
BARRAS B, 1999, THESIS U PARIS 7
[5]  
Bruijn d. N. G., 1980, HB CURRY ESSAYS COMB, P579
[6]  
*COQ, 2001, COQ PROOF ASS
[7]   THE CALCULUS OF CONSTRUCTIONS [J].
COQUAND, T ;
HUET, G .
INFORMATION AND COMPUTATION, 1988, 76 (2-3) :95-120
[8]  
Cousot P., 1990, HDB THEORETICAL COMP, P841
[9]  
Dijkstra E. W, 1976, A Discipline of Programming
[10]  
FILLIATRE JC, 1999, UNPUB THEORY MONADS