Extracting Imperative Programs from Proofs: In-place Quicksort
Extracting Imperative Programs from Proofs: In-place Quicksort
复制标题
从证明中提取命令式程序:就地快速排序
DOI:
--
复制
发表时间:
2013
期刊:
影响因子:
--
通讯作者:
Gregory J. M. Woods
中科院分区:
文献类型:
--
作者:
Ulrich Berger;M. Seisenberger;Gregory J. M. Woods
The process of program extraction is primarily associated with
functional programs with less focus on imperative program extraction. In this paper we consider a standard problem for imperative programming: In-place Quicksort. We formalize a proof that every array of natural numbers can be sorted and apply a realizability
interpretation to extract a program from the proof. Using monads we
are able to exhibit the inherent imperative nature of the extracted
program. We see this as a first step towards an automated extraction of imperative programs. The case study is carried out in the interactive proof assistant Minlog.