Automated Amortised Analysis of Skew Heaps and Leftist Heaps (Extended Version)

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Walch, Armin, Moser, Georg, Schoenmakers, Berry, Zuleger, Florian
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911674311639040
author Walch, Armin
Moser, Georg
Schoenmakers, Berry
Zuleger, Florian
author_facet Walch, Armin
Moser, Georg
Schoenmakers, Berry
Zuleger, Florian
contents We study the fully automated amortised analysis of purely functional data structures like skew heaps, as well as weight- and rank-biased leftist heaps. For that we generalise earlier works on automated amortised resource analysis by developing a type inference based approach with a generic type system. This allows for modular reasoning and the inference of precise and optimal cost bounds. More specifically, we extend the work on the ATLAS system by Leutgeb et al. which was developed to cover the analysis of splay trees and some closely related data structures. To enable the analysis of skew heaps, however, and the even more challenging (amortised) analysis of leftist heaps, we have developed a range of new techniques for type-based automated analysis. By introducing a generic type system we allow for arbitrary (classes of) potential functions, compared to the use of hard-coded potential functions in ATLAS, which we have implemented in Haskell in an entirely modular way. We have also greatly enhanced the existing type inference algorithm by extensions in multiple directions, including path-sensitive reasoning, data structure invariants, and template parameters for piecewise defined potential functions. We show how our newly developed system supports the use of all known potential functions for analysing skew heaps and leftist heaps, confirming the known bounds.
format Preprint
id arxiv_https___arxiv_org_abs_2605_12091
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Automated Amortised Analysis of Skew Heaps and Leftist Heaps (Extended Version)
Walch, Armin
Moser, Georg
Schoenmakers, Berry
Zuleger, Florian
Programming Languages
We study the fully automated amortised analysis of purely functional data structures like skew heaps, as well as weight- and rank-biased leftist heaps. For that we generalise earlier works on automated amortised resource analysis by developing a type inference based approach with a generic type system. This allows for modular reasoning and the inference of precise and optimal cost bounds. More specifically, we extend the work on the ATLAS system by Leutgeb et al. which was developed to cover the analysis of splay trees and some closely related data structures. To enable the analysis of skew heaps, however, and the even more challenging (amortised) analysis of leftist heaps, we have developed a range of new techniques for type-based automated analysis. By introducing a generic type system we allow for arbitrary (classes of) potential functions, compared to the use of hard-coded potential functions in ATLAS, which we have implemented in Haskell in an entirely modular way. We have also greatly enhanced the existing type inference algorithm by extensions in multiple directions, including path-sensitive reasoning, data structure invariants, and template parameters for piecewise defined potential functions. We show how our newly developed system supports the use of all known potential functions for analysing skew heaps and leftist heaps, confirming the known bounds.
title Automated Amortised Analysis of Skew Heaps and Leftist Heaps (Extended Version)
topic Programming Languages
url https://arxiv.org/abs/2605.12091