带符号数字流的极限
Limits with Signed Digit Streams
AI总结:
本文提出一种算法,从收敛的实数带符号数字表示序列计算其极限的带符号数字表示,并用于计算平方根;通过构造性证明和程序提取(使用Minlog和Haskell)保证正确性。
摘要:
我们研究抽象实数的带符号数字表示,这大致上是二进制表示加上额外数字-1。本文的主要目标是提出一种算法,该算法接受一串实数(的带符号数字表示)作为输入,如果该序列收敛,则返回其极限的带符号数字表示。作为第一个应用,我们将该算法与海伦方法结合,构建一个将非负实数的带符号数字表示转换为其平方根的带符号数字表示的算法。我们不是先写出算法再证明其正确性,而是反其道而行之,遵循从证明中提取程序的传统。实际上,我们首先给出构造性证明,然后从这些证明中计算出提取项,即所需的算法。提取项的正确性直接由程序提取的可靠性定理保证。为了从一些通常相当长的证明中获取提取项,我们使用证明助手Minlog。然而,为了应用提取项,编程语言Haskell是有用的。因此,在每个证明之后,我们展示提取项的一种表示,它可以很容易地改写为Haskell中的定义。
英文摘要:
We work with the signed digit representation of abstract real numbers, which roughly is the binary representation enriched by the additional digit -1. The main objective of this paper is an algorithm which takes a sequence of signed digit representations of reals and returns the signed digit representation of their limit, if the sequence converges. As a first application we use this algorithm together with Heron's method to build up an algorithm which converts the signed digit representation of a non-negative real number into the signed digit representation of its square root. Instead of writing the algorithms first and proving their correctness afterwards, we work the other way round, in the tradition of program extraction from proofs. In fact we first give constructive proofs, and from these proofs we then compute the extracted terms, which is the desired algorithm. The correctness of the extracted term follows directly by the Soundness Theorem of program extraction. In order to get the extracted term from some proofs which are often quite long, we use the proof assistant Minlog. However, to apply the extracted terms, the programming language Haskell is useful. Therefore after each proof we show a notation of the extracted term, which can be easily rewritten as a definition in Haskell.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。