Adnan Rashid, Ayesha Gauhar, Osman Hasan, Sa’ed Abed, Imtiaz Ahmad
{"title":"Formal Verification of Universal Numbers using Theorem Proving","authors":"Adnan Rashid, Ayesha Gauhar, Osman Hasan, Sa’ed Abed, Imtiaz Ahmad","doi":"10.1007/s10836-024-06123-9","DOIUrl":null,"url":null,"abstract":"<p>A universal number (<span>Unum</span>) is a number representation format that can reduce the memory contention issues in multicore processors and parallel computing systems by optimizing the bit storage in the arithmetic operations. Given the safety-critical nature of applications of <span>Unum</span> format, there is a dire need to rigorously assess the correctness of the <span>Unum</span> based arithmetic operations. <span>Unums</span> are of three types, namely, Unum-I, Unum-II and <span>Unum-III</span> (commonly known as <span>Posits</span>). In this paper, we provide a higher-order-logic formalization of <span>Unum-III</span> (<span>posits</span>). In particular, we formally model a <span>posit</span> format (binary encoding of a <span>posit</span>), which is comprised of the sign, exponent, regime and fraction bits, using the <span>HOL Light</span> theorem prover. In order to prove the correctness of a <span>posit</span> format, we formally verify various properties regarding conversions of a real number to a <span>posit</span> and a <span>posit</span> to a real number and the scaling factors of the regime, exponent and fraction bits of a <span>posit</span> using <span>HOL Light</span>.</p>","PeriodicalId":501485,"journal":{"name":"Journal of Electronic Testing","volume":"61 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-06-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Electronic Testing","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1007/s10836-024-06123-9","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
A universal number (Unum) is a number representation format that can reduce the memory contention issues in multicore processors and parallel computing systems by optimizing the bit storage in the arithmetic operations. Given the safety-critical nature of applications of Unum format, there is a dire need to rigorously assess the correctness of the Unum based arithmetic operations. Unums are of three types, namely, Unum-I, Unum-II and Unum-III (commonly known as Posits). In this paper, we provide a higher-order-logic formalization of Unum-III (posits). In particular, we formally model a posit format (binary encoding of a posit), which is comprised of the sign, exponent, regime and fraction bits, using the HOL Light theorem prover. In order to prove the correctness of a posit format, we formally verify various properties regarding conversions of a real number to a posit and a posit to a real number and the scaling factors of the regime, exponent and fraction bits of a posit using HOL Light.