[Paper Review] Semantics, Logic, and Verification of "Exact Real Computation"
This paper formalizes Exact Real Computation (ERC) through a small imperative programming language for real numbers, combining algebraic ADT manipulation with sound, approximation-based semantics. It proves the language Turing-complete for partial real functions computable in Recursive Analysis, supports rigorous correctness via an extended Hoare logic, and establishes a decidable, model-complete first-order theory over integers and reals for specifying and verifying non-extensional computations.
This work formalizes Exact Real Computation (ERC): a paradigm combining (i) ALGEBRAIC imperative programming of/over abstract data types (ADTs) for CONTINUOUS structures with (ii) a selection and sound semantics of primitives computable in the sense of Recursive ANALYSIS, that is, by means of approximations -- yet presented to the user as exact. We specify a small imperative programming language for the ADT of real (i.e., including transcendental) numbers with rigorous semantics: arguments are provided, passed to and received from calls to functions (like $e^x$), and operated on EXACTLY -- with partial inequality predicate and multivalued binary SELECT and continuous conditional (aka PARALLEL-IF) operations -- yet REALIZING a function (again like $e^x$) requires only to APPROXIMATE its return value up to guaranteed absolute error $2^p$ for any given integer $p$: closure under composition is implicit. We prove this language Turing-COMPLETE: it can express precisely those partial real functions computable in the sense of Recursive Analysis; similarly for functionALs. Three basic numerical problems demonstrate both the convenience and novel control-flow considerations of this approach to Reliable Numerics: multivalued integer rounding, solving systems of linear equations, and simple root finding. For rigorously specifying and arguing about such (non-extensional) computations, we propose a first-order theory over two sorts: integers and reals; and prove it both decidable and 'model complete': thus reflecting the elegance inherent to real (as opposed to rational/floating point) numbers. Rules of Hoare Logic are extended to support formal correctness proofs in ERC.
Motivation & Objective
- To formalize a programming paradigm for exact computation over continuous structures using abstract data types (ADTs) for real and transcendental numbers.
- To integrate computable functions from Recursive Analysis—computed via approximations—into an imperative language with exact user-facing semantics.
- To provide a rigorous foundation for reasoning about non-extensional computations involving partial equality, multivalued selection, and continuous conditionals.
- To prove the language's Turing-completeness for the class of partial real functions computable in Recursive Analysis.
- To develop a decidable, model-complete first-order theory over integers and reals for specifying and verifying ERC programs.
Proposed method
- Designs a small imperative language with ADTs for real numbers, supporting exact operations like $e^x$ and partial inequality predicates.
- Introduces multivalued binary SELECT and continuous conditional (PARALLEL-IF) operations to handle non-extensional behavior in real computation.
- Defines computability via approximation: any function must be approximable to within $2^p$ for any given integer $p$, ensuring guaranteed error bounds.
- Establishes closure under function composition by construction, preserving computability across program components.
- Proposes a first-order theory with two sorts (integers and reals) that is both decidable and model complete, enabling formal verification.
- Extends Hoare logic with rules tailored to ERC, supporting formal correctness proofs for programs involving real-number computations.
Experimental results
Research questions
- RQ1Can a practical imperative programming language be designed to support exact computation over real numbers while relying on approximation-based implementations?
- RQ2How can non-extensional operations—such as multivalued selection and continuous conditionals—be formally integrated into a computationally sound framework?
- RQ3Is it possible to define a decidable and model-complete first-order theory over integers and reals that supports reasoning about exact real computations?
- RQ4What logical and semantic foundations are required to ensure that the language captures precisely the class of partial real functions computable in Recursive Analysis?
- RQ5How can formal verification via Hoare logic be extended to support the unique control-flow and semantic features of Exact Real Computation?
Key findings
- The proposed language is Turing-complete for the class of partial real functions computable in Recursive Analysis, establishing its expressive power.
- The language supports exact user-level operations on real numbers—including transcendental functions like $e^x$—while internally relying on approximations with guaranteed error bounds.
- The first-order theory over integers and reals is decidable and model complete, enabling rigorous specification and verification of ERC programs.
- The extension of Hoare logic to ERC supports formal correctness proofs for programs involving continuous conditionals and multivalued operations.
- Three fundamental numerical problems—multivalued integer rounding, linear systems, and root finding—demonstrate the language’s expressiveness and novel control-flow requirements.
- The framework provides a sound, elegant, and formally grounded foundation for Reliable Numerics using exact real computation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.