REPOZYTORIUM UNIWERSYTETU
W BIAŁYMSTOKU
UwB

Proszę używać tego identyfikatora do cytowań lub wstaw link do tej pozycji: http://hdl.handle.net/11320/21453
Tytuł: Correctness of Non Overwriting Programs. Part I
Autorzy: Nakamura, Yatsuka
Data wydania: 2004
Data dodania: 6-lis-2026
Wydawca: University of Białystok
Źródło: Formalized Mathematics, Volume 12, Issue 1, Pages 29-32
Abstrakt: Non overwriting program is a program where each variable used in it is written only just one time, but the control variables used for “for-statement” are exceptional. Contrarily, variables are allowed to be read many times. There are other restrictions for the non overwriting program. For statements, only the following are allowed: “substituting-statement”, “f-else-statement”, “for-statement” (with break and without break), function (correct one) -- “call-statement” and “return-statement”. Grammar of non overwriting program is like the one of the C-language. For type of variables, “int”, “real", “char” and “float” can be used, and array of them can also be used. For operation, “+”, “$-$” and “*” are used for a type “int”; “+”, “`$-$”, “*” and “/” are used for a type “float”. User can also define structures like in C. Non overwriting program can be translated to (predicative) logic formula in definition part to define functions. If a new function is correctly defined, a corresponding program is correct, if it does not use arrays. If it uses arrays, area check is necessary in the following theorem.\par Semantic correctness is shown by some theorems following the definition. These theorems must tie up the result of the program and mathematical concepts introduced before. Correctness is proven {\it function-wise}. We must use only {\it correctness-proven} functions to define a new function (to write a new program as a form of a function). Here, we present two programs of division function of two natural numbers and of two integers. An algorithm is checked for each case by proving correctness of the definitions. We also perform an area check of the index of arrays used in one of the programs.
Afiliacja: Shinshu University, Nagano
URI: http://hdl.handle.net/11320/21453
ISSN: 1426-2630
Typ Dokumentu: Article
metadata.dc.rights.uri: https://creativecommons.org/licenses/by-sa/4.0/
Właściciel praw: © 2005 University of Białystok
This work is licensed under the Creative Commons License.
Występuje w kolekcji(ach):Formalized Mathematics, 2004, Volume 12, Issue 1

Pliki w tej pozycji:
Plik Opis RozmiarFormat 
Correctness_of_Non_Overwriting_Programs.pdf77,32 kBAdobe PDFOtwórz
Pokaż pełny widok rekordu Zobacz statystyki


Pozycja ta dostępna jest na podstawie licencji Licencja Creative Commons CCL Creative Commons