Published Online: Jul 20, 2019
Page range: 181 - 187
Accepted: May 27, 2019
DOI: https://doi.org/10.2478/forma-2019-0017
Keywords
© 2019 Adrian Jaszczak et al., published by Sciendo
This work is licensed under a Creative Commons Attribution Share-Alike 4.0 License.
In this paper we present a formalization in the Mizar system [3],[1] of the partial correctness of the algorithm:
computing the factorial of given natural number n, where variables
This work continues a formal verification of algorithms written in terms of simple-named complex-valued nominative data [6],[8],[14],[10],[11],[12]. 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 [13],[15],[7],[5].