Verification of Scapegoat Trees Using Dafny

Jiapeng Wang, Sini Chen, Huibiao Zhu*

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Self-balancing binary search trees are essential in Computer Science for their versatility and efficient management of ordered data. While a clear definition might exist for a specific kind of balanced tree, multiple implementations can exist. This diversity highlights the critical importance of verifying the correctness of a specific implementation. With this perspective, this paper shifts focus to the scapegoat tree, a type of self-balancing tree, prized for its operational simplicity. Utilizing the formal verification tool, Dafny, we undertake a rigorous examination of a scapegoat tree implementation. Through Dafny’s powerful specification and verification techniques, we prove the correctness of its core operations within our chosen implementation. We also summarized our user experience with Dafny, presenting several techniques that can enhance the efficiency of the proof process.

Original languageEnglish
Title of host publicationNASA Formal Methods - 16th International Symposium, NFM 2024, Proceedings
EditorsNathaniel Benz, Divya Gopinath, Nija Shi
PublisherSpringer Science and Business Media Deutschland GmbH
Pages118-135
Number of pages18
ISBN (Print)9783031606977
DOIs
StatePublished - 2024
Event16th International Symposium on NASA Formal Methods, NFM 2024 - Moffett Field, United States
Duration: 4 Jun 20246 Jun 2024

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14627 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference16th International Symposium on NASA Formal Methods, NFM 2024
Country/TerritoryUnited States
CityMoffett Field
Period4/06/246/06/24

Keywords

  • Dafny
  • Formal Methods
  • Scapegoat Trees
  • Verification

Fingerprint

Dive into the research topics of 'Verification of Scapegoat Trees Using Dafny'. Together they form a unique fingerprint.

Cite this