Weakest Precondition for General Recursive Programs Formalized in Coq.

Xingyuan Zhang,Malcolm Munro,Mark Harman,Lin Hu
DOI: https://doi.org/10.1007/3-540-45685-6_22
2002-01-01
Abstract:This paper describes a formalization of the weakest precondition, wp, for general recursive programs using the type-theoretical proof assistant Coq. The formalization is a deep embedding using the computational power intrinsic to type theory. Since Coq accepts only structural recursive functions, the computational embedding of general recursive programs is non-trivial. To justify the embedding, an operational semantics is defined and the equivalence between wp and the operational semantics is proved. Three major healthiness conditions, namely: Strictness, Monotonicity and Conjunctivity are proved as well.
What problem does this paper attempt to address?