ICFP/SPLASH 2025 (series) / TyDe 2025 (series) / TyDe 2025 /
Representing Data Structures with Invariants in Haskell: the cases of BST and AVL
This program is tentative and subject to change.
Sun 12 Oct 2025 11:00 - 11:30 at Seminar Room 2 - Session 1
Invariants are an essential aspect to take into account for the correct implementation of data structures and their operations. This paper explores how to encode and enforce invariants at type level in Haskell, using Binary Search Trees (BSTs) and AVL trees as case studies. This means the encoding of invariants at type level using advanced features of Haskell type system and their later verification by the type checker. We compare three approaches for the type-level encoding of invariants: fully externalist, externalist, and internalist, each offering a different balance between modularity, safety, and complexity. We also show how to systematically extract standard implementations from correct, invariant-based code.
This program is tentative and subject to change.
Sun 12 OctDisplayed time zone: Perth change
Sun 12 Oct
Displayed time zone: Perth change
11:00 - 12:30 | |||
11:00 30mTalk | Representing Data Structures with Invariants in Haskell: the cases of BST and AVL TyDe Nicolas Rodriguez Instituto de Computación, Universidad de la República, Alberto Pardo Universidad de la Republica, Uruguay, Marcos Viera University of the Republic, Uruguay | ||
11:30 30mTalk | Generating a corpus of Hazel programs from ill-typed OCaml programs (Extended Abstract) TyDe | ||
12:00 30mTalk | Constrained generation of well-typed programs (Extended Abstract) TyDe |