计算机科学 > 计算机科学中的逻辑
[提交于 2008年7月10日 (v1),最后修订于 2008年9月10日 (此版本, v2)]
标题:Coinductive Formal Reasoning in Exact Real Arithmetic
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In this article we present a method for formally proving the correctness of the lazy algorithms for computing homographic and quadratic transformations -- of which field operations are special cases-- on a representation of real numbers by coinductive streams. The algorithms work on coinductive stream of M\"{o}bius maps and form the basis of the Edalat--Potts exact real arithmetic. We use the machinery of the Coq proof assistant for the coinductive types to present the formalisation. The formalised algorithms are only partially productive, i.e., they do not output provably infinite streams for all possible inputs. We show how to deal with this partiality in the presence of syntactic restrictions posed by the constructive type theory of Coq. Furthermore we show that the type theoretic techniques that we develop are compatible with the semantics of the algorithms as continuous maps on real numbers. The resulting Coq formalisation is available for public download.