Zheng Yang, Hang Lei, Weizhong Qian, Zehui Yan, Weiru Zeng
{"title":"A Resolution for Scalability Problem of Record Datatype Based Formal Memory Models in Coq","authors":"Zheng Yang, Hang Lei, Weizhong Qian, Zehui Yan, Weiru Zeng","doi":"10.1145/3424978.3425032","DOIUrl":null,"url":null,"abstract":"The formal memory model is one of the most critical components for program verification tools development. Theoretically, the record datatype based formal memory model is a type of intuitive and efficient formalization scheme. However, practical applications of record datatype based formal memory models in Coq are limited because of their scalability problem. Present work addresses this issue by defining a new multi-level table framework with modular polymorphism in Coq. First, we present polymorphic meta specifications of formal memory model and corresponding operations. Second, through the combination of polymorphic instantiation and recursive nesting of modules, we simulate the linear and tail recursion principles. With these principles, a new record type based abstract specifications of formal memory model with multi-level table structure and corresponding memory operations are constructed. Finally, we define a logic-physical memory conversion ratio to quantify the optimization of scalability, and we present a series experiments based on the ratio to certify the improvement of scalability of the optimized framework in Coq compared with conventional definitions.","PeriodicalId":178822,"journal":{"name":"Proceedings of the 4th International Conference on Computer Science and Application Engineering","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-10-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 4th International Conference on Computer Science and Application Engineering","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3424978.3425032","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
The formal memory model is one of the most critical components for program verification tools development. Theoretically, the record datatype based formal memory model is a type of intuitive and efficient formalization scheme. However, practical applications of record datatype based formal memory models in Coq are limited because of their scalability problem. Present work addresses this issue by defining a new multi-level table framework with modular polymorphism in Coq. First, we present polymorphic meta specifications of formal memory model and corresponding operations. Second, through the combination of polymorphic instantiation and recursive nesting of modules, we simulate the linear and tail recursion principles. With these principles, a new record type based abstract specifications of formal memory model with multi-level table structure and corresponding memory operations are constructed. Finally, we define a logic-physical memory conversion ratio to quantify the optimization of scalability, and we present a series experiments based on the ratio to certify the improvement of scalability of the optimized framework in Coq compared with conventional definitions.