Content area

Abstract

We propose a simple imperative programming language, ERC, that features arbitrary real numbers as primitive data type, exactly. Equipped with a denotational semantics, ERC provides a formal programming language-theoretic foundation to the algorithmic processing of real numbers. In order to capture multi-valuedness, which is well-known to be essential to real number computation, we use a Plotkin powerdomain and make our programming language semantics computable and complete: all and only real functions computable in computable analysis can be realized in ERC. The base programming language supports real arithmetic as well as implicit limits; expansions support additional primitive operations (such as a user-defined exponential function). By restricting integers to Presburger arithmetic and real coercion to the `precision' embedding \(\mathbb{Z}\ni p\mapsto 2^p\in\mathbb{R}\), we arrive at a first-order theory which we prove to be decidable and model-complete. Based on said logic as specification language for preconditions and postconditions, we extend Hoare logic to a sound (w.r.t. the denotational semantics) and expressive system for deriving correct total correctness specifications. Various examples demonstrate the practicality and convenience of our language and the extended Hoare logic.

Details

1009240
Title
Semantics, Specification Logic, and Hoare Logic of Exact Real Computation
Publication title
arXiv.org; Ithaca
Publication year
2024
Publication date
Jun 21, 2024
Section
Computer Science; Mathematics
Publisher
Cornell University Library, arXiv.org
Source
arXiv.org
Place of publication
Ithaca
Country of publication
United States
University/institution
Cornell University Library arXiv.org
e-ISSN
2331-8422
Source type
Working Paper
Language of publication
English
Document type
Working Paper
Publication history
 
 
Online publication date
2024-08-07
Milestone dates
2016-08-20 (Submission v1); 2024-06-21 (Submission v10); 2017-11-21 (Submission v2); 2018-12-31 (Submission v3); 2019-01-29 (Submission v4); 2020-09-14 (Submission v5); 2021-06-07 (Submission v6); 2022-04-21 (Submission v7); 2024-04-29 (Submission v8); 2024-05-12 (Submission v9)
Publication history
 
 
   First posting date
07 Aug 2024
ProQuest document ID
2076424577
Document URL
https://www.proquest.com/working-papers/semantics-specification-logic-hoare-exact-real/docview/2076424577/se-2?accountid=208611
Full text outside of ProQuest
Copyright
© 2024. This work is published under http://creativecommons.org/licenses/by/4.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Last updated
2024-08-08
Database
ProQuest One Academic