A Formal Proof of Square Root and Division Elimination in Embedded Programs
The use of real numbers in a program can introduce differences between the expected and the actual behavior of the program, due to the finite representation of these numbers. Therefore, one may want to define programs using real numbers such that this difference vanishes. This paper defines a progra...
Main Author: | |
---|---|
Format: | Article |
Language: | English |
Published: |
University of Bologna
2013-01-01
|
Series: | Journal of Formalized Reasoning |
Subjects: | |
Online Access: | http://jfr.unibo.it/article/view/3887 |
id |
doaj-1148087c56974d28aafdf2da3c5034a2 |
---|---|
record_format |
Article |
spelling |
doaj-1148087c56974d28aafdf2da3c5034a22020-11-24T23:17:43ZengUniversity of BolognaJournal of Formalized Reasoning1972-57872013-01-01618911110.6092/issn.1972-5787/3887A Formal Proof of Square Root and Division Elimination in Embedded ProgramsPierre NeronThe use of real numbers in a program can introduce differences between the expected and the actual behavior of the program, due to the finite representation of these numbers. Therefore, one may want to define programs using real numbers such that this difference vanishes. This paper defines a program transformation for a certain class of programs that improves the accuracy of the computations on real number representations by removing the square root and division operations from the original program in order to enable exact computation with addition, multiplication and subtraction. This transformation is meant to be used on embedded systems, therefore the produced programs have to respect constraints relative to this kind of code. In order to ensure that the transformation is correct, i.e. preserves the semantics, we also aim at specifying and proving this transformation using the PVS proof assistant.http://jfr.unibo.it/article/view/3887Program TransformationArithmeticEmbedded Systems |
collection |
DOAJ |
language |
English |
format |
Article |
sources |
DOAJ |
author |
Pierre Neron |
spellingShingle |
Pierre Neron A Formal Proof of Square Root and Division Elimination in Embedded Programs Journal of Formalized Reasoning Program Transformation Arithmetic Embedded Systems |
author_facet |
Pierre Neron |
author_sort |
Pierre Neron |
title |
A Formal Proof of Square Root and Division Elimination in Embedded Programs |
title_short |
A Formal Proof of Square Root and Division Elimination in Embedded Programs |
title_full |
A Formal Proof of Square Root and Division Elimination in Embedded Programs |
title_fullStr |
A Formal Proof of Square Root and Division Elimination in Embedded Programs |
title_full_unstemmed |
A Formal Proof of Square Root and Division Elimination in Embedded Programs |
title_sort |
formal proof of square root and division elimination in embedded programs |
publisher |
University of Bologna |
series |
Journal of Formalized Reasoning |
issn |
1972-5787 |
publishDate |
2013-01-01 |
description |
The use of real numbers in a program can introduce differences between the expected and the actual behavior of the program, due to the finite representation of these numbers. Therefore, one may want to define programs using real numbers such that this difference vanishes. This paper defines a program transformation for a certain class of programs that improves the accuracy of the computations on real number representations by removing the square root and division operations from the original program in order to enable exact computation with addition, multiplication and subtraction. This transformation is meant to be used on embedded systems, therefore the produced programs have to respect constraints relative to this kind of code. In order to ensure that the transformation is correct, i.e. preserves the semantics, we also aim at specifying and proving this transformation using the PVS proof assistant. |
topic |
Program Transformation Arithmetic Embedded Systems |
url |
http://jfr.unibo.it/article/view/3887 |
work_keys_str_mv |
AT pierreneron aformalproofofsquarerootanddivisioneliminationinembeddedprograms AT pierreneron formalproofofsquarerootanddivisioneliminationinembeddedprograms |
_version_ |
1725583744034668544 |