Die Teilnahme an mindestens einem Masterseminar in der TCS-Gruppe ist für alle Masterarbeiten verpflichtend.
Formal Verification of the Amortised Analysis of Lazy Skew Heaps
Lazy skew heaps are a purely functional priority queue data structure introduced by Chris Okasaki in The Fun of Programming [5]. In a persistent setting, the standard amortised analysis of ephemeral data structures no longer applies directly, since expensive operations may be shared across multiple versions of a data structure [8]. Okasaki addresses this challenge by exploiting lazy evaluation and presents an informal potential-based proof establishing logarithmic amortised complexity for the core heap operations of lazy skew heaps. While machine-checked amortised analyses exist for classical (non-lazy) skew heaps, notably in the work of Nipkow and Brinkop [6], the corresponding analysis for the lazy variant has not been formalised.
The proposed project aims to develop a machine-checked formalisation of Okasaki's amortised analysis of lazy skew heaps. The project can build upon existing approaches to the verification of amortised complexity for lazy functional programs [1–4]. In particular, recent work based on bidirectional demand semantics has successfully been applied to the verification of Okasaki's amortised queues using the reverse physicist's method. This project will investigate whether the same approach can be extended to a more sophisticated data structure such as lazy skew heaps and whether it provides a suitable foundation for formalising more intricate amortised analyses.
A second objective is to extend the formalisation to the refined amortised bounds established by Schoenmakers for top-down skew heaps and to determine whether these tighter bounds also apply to the lazy variant. Furthermore, the developed approach can be evaluated on other complex lazy data structures, providing insight into its applicability beyond the case of lazy skew heaps.
References
(1) Nils Anders Danielsson. "Lightweight semiformal time complexity analysis for purely functional data structures". In: ACM SIGPLAN Notices 43.1 (2008), pp. 133–144.
(2) Martin AT Handley, Niki Vazou, and Graham Hutton. "Liquidate your assets: reasoning about resource usage in liquid haskell". In: Proceedings of the ACM on Programming Languages 4.POPL (2019), pp. 1–27.
(3) Glen Mével, Jacques-Henri Jourdan, and François Pottier. "Time credits and time receipts in Iris". In: Programming Languages and Systems: 28th European Symposium on Programming, ESOP 2019, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2019, Prague, Czech Republic, April 6–11, 2019, Proceedings 28. Springer, 2019, pp. 3–29.
(4) Xia, Li-yao, et al. Story of Your Lazy Function's Life: A Bidirectional Demand Semantics for Mechanized Cost Analysis of Lazy Programs. Proceedings of the ACM on Programming Languages 8.ICFP (2024): 30–63.
(5) Okasaki, C. (1995). Fun with Binary Heap Trees. In J. Gibbons & O. de Moor (Eds.), The Fun of Programming Languages. Section 1.7: "Analysis of Lazy Skew Heaps".
(6) Nipkow, T., & Brinkop, H. (2019). Amortized Complexity Verified. Journal of Automated Reasoning, 62, 367–391.
(7) Schoenmakers, L. (1997). A Tight Lower Bound for Top-Down Skew Heaps. Information Processing Letters, 61(5), 279–284.
(8) Okasaki, Chris. Purely functional data structures. Cambridge University Press, 1998.
Betreuer_in
Georg Moser, Armin Walch
Voraussetzungen
Interactive Theorem Proving (e.g. VU Logic and Learning B: Interactive Theorem Proving in Isabelle/HOL)
Probabilistic Term Rewriting
In den letzten Jahren haben das Interesse und die Techniken zur Ressourcenanalyse probabilistischer Programme erheblich zugenommen. Im Projekt untersuchen wir einen aktuellen Ansatz zur automatisierten Komplexitätsanalyse probablisitischer Term-Rewrite-Systeme (PTRS) von Avanzini et al. mit dem Ziel, die Methoden in TcT zu implementieren. Ein weiteres Ziel ist die (potenzielle) Verbesserung der Theorie und Methoden.
- On Probabilistic Term Rewriting
Martin Avanzini, Ugo Dal Lago, Akihisa Yamada
Proc. 14. Internationales Symposium für funktionale und logische Programmierung, LNCS 10818, S. 132–148, 2018 - TcT: Tyrolean Complexity Tool
Martin Avanzini, Georg Moser, Michael Schaper
Proc. 22. Internationale Konferenz über Tools und Algorithmen für die Konstruktion und Analyse von Systemen, LNCS 9636, S. 407–423, 2016
Komplexitätsanalyse von Lazy Programmen
Im Gegensatz zu der Fülle an Literatur über die (automatisierte) Ressourcenanalyse von strikten Sprachen wie OCaml wurde der Ressourcenanalyse von nicht-strikten Sprachen wie Haskell kaum Aufmerksamkeit geschenkt. Eine bemerkenswerte Ausnahme ist Okasaki, der die Bankier-Methode der Amortisationskostenanalyse an die Debit-Methode angepasst hat, um die Amortisationskosten von lazy Datenstrukturen korrekt zu analysieren. In dieser Masterarbeit wollen wir seinen Ansatz untersuchen und formalisieren. Insbesondere wollen wir die jüngsten Arbeiten zur vollautomatischen Amortisationsanalyse von selbstanpassenden Datenstrukturen wie Splay Trees, Splay Heaps und Pairing Heaps an die lazy evaluation anpassen. Das erste Ziel ist eine rigorose Formalisierung der Okasaki's Debit-Methode für die amortisierte Analyse von nicht-strikten funktionalen Programmen, zweitens ist die Implementierung dieser formalen Methodik vorgesehen sowie die Anwendung dieser prototypischen Implementierung auf populäre faule Datenstrukturen, wie z.B. Lazy Skew Heaps. Ein mögliches weiteres Ziel könnten Lazy Pairing Heaps sein.
- Purely functional data structures Chris Okasaki, Cambridge University Press 1999, ISBN 978-0-521-66350-2, pp. I-X, 1-220
Multivariate Amortisierte Ressourcenanalyse
In jüngster Zeit hat die Amortisationsanalyse in der Ressourcenanalyse großes Interesse gefunden. In diesem Masterprojekt werden wir die verschiedenen Ansätze untersuchen und insbesondere aktuelle Ergebnisse zur multivariaten amortisierten Analyse von Termumschreibsystemen umsetzen. Dies wird unter anderem die automatische Synthese von Baumautomaten beinhalten, die zur Definition des Potentials von Werten über beliebige benutzerdefinierte Datentypen eingesetzt werden.
- Amortised Resource Analysis and Typed Polynomial Interpretations Martin Hofmann, Georg Moser, RTA-TLCA 2015
Keine Einträge.
Automated Amortized Multi-Potential Analysis
ATLAS (Automated Amortised Complexity Analysis of Self-Adjusting Data Structures) bietet eine vollautomatische Analyse der erwarteten amortisierten Kosten von selbstanpassenden Datenstrukturen, d.h. von randomisierten Splay Trees, randomisierten Splay Heaps, randomisierten meldable Heaps und anderen anspruchsvollen Datenstrukturen (nicht notwendigerweise randomisiert), die bisher in der Literatur nur (halb-)manuell analysiert wurden. Der aktuelle Prototyp ist in Java implementiert und soll nach Haskell portiert werden. Wenn möglich, sollte diese Re-Implementierung auch die Klasse der betrachteten Ressourcenfunktionen erweitern.
- ATLAS: Automated Amortised Complexity Analysis of Self-adjusting Data Structures Lorenz Leutgeb, Georg Moser, Florian Zuleger, CAV 2021
- Automated Expected Amortised Cost Analysis of Probabilistic Data Structures Lorenz Leutgeb, Georg Moser, Florian Zuleger, CAV 2022
Real Root Counting und Ableitungskomplexität von Term-Rewrite-Systemen
Wir können polynomiale Obergrenzen für die Ableitungskomplexität eines Term-Rewrite-Systems induzieren, wenn wir eine kompatible Matrixinterpretation finden, deren maximale Matrix einen Spektralradius von höchstens eins hat. Ausgehend von Root Counting Algorithmus der mathematischen Literatur untersuchen wir die Leistung verschiedener Einschränkungen, die sicherstellen, dass diese Bedingung erfüllt ist.
Student_in
Philipp Wirtenberger
Betreuer_in
Georg Moser