In this paper we present the verification of an imperative implementation of the ubiquitous B+-tree data structure in the interactive theorem prover Isabelle/HOL. The implementation supports membership test, insertion and range queries with efficient binary search for intra-node navigation. The imperative implementation is verified in two steps: an abstract set interface is refined to an executable but inefficient purely functional implementation which is further refined to the efficient imperative implementation.
翻译:在本文件中,我们在互动理论证明Isabelle/HOL中提出对无处不在的B+-tree数据结构必须执行的核查。执行支持成员测试、插入和范围查询,对节点内导航进行高效的二进制搜索。执行的当务之急分两步核查:一个抽象的集成接口被改进为可执行但效率不高的纯功能性执行,并进一步完善为高效的当务之急执行。