Limits with Signed Digit Streams

by   Franziskus Wiesnet, et al.

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.


page 1

page 2

page 3

page 4


First-order natural deduction in Agda

Agda is a dependently-typed functional programming language, based on an...

Isabelle's Metalogic: Formalization and Proof Checker

Isabelle is a generic theorem prover with a fragment of higher-order log...

Extracting efficient exact real number computation from proofs in constructive type theory

Exact real computation is an alternative to floating-point arithmetic wh...

Three Proofs that the Square Root of 2 Is Irrational

This short article gives three proofs that √ 2 is irrational. The articl...

Holbert: Reading, Writing, Proving and Learning in the Browser

This paper presents Holbert: a work-in-progress pedagogical proof assist...

A General Approach to Proving Properties of Fibonacci Representations via Automata Theory

We provide a method, based on automata theory, to mechanically prove the...

A syntactic approach to continuity of T-definable functionals

We give a new proof of the well-known fact that all functions (N→N) →N w...

Please sign up or login with your details

Forgot password? Click here to reset