Online veröffentlicht: 20. Juli 2019
Seitenbereich: 189 - 195
Akzeptiert: 27. Mai 2019
DOI: https://doi.org/10.2478/forma-2019-0018
Schlüsselwörter
© 2019 Adrian Jaszczak, published by Sciendo
This work is licensed under a Creative Commons Attribution Share-Alike 4.0 License.
This work continues a formal verification of algorithms written in terms of simple-named complex-valued nominative data [6],[8],[15],[11],[12],[13]. In this paper we present a formalization in the Mizar system [3],[1] of the partial correctness of the algorithm:
computing the natural n power of given complex number b, where variables
The validity of the algorithm is presented in terms of semantic Floyd-Hoare triples over such data [9]. Proofs of the correctness are based on an inference system for an extended Floyd-Hoare logic [2],[4] with partial pre- and post-conditions [14],[16],[7],[5].