arXivPreprintOpen accesscs.PL
Properly defining Erlang lists
Albert Schimpf, Stefan Wehr, Annette Bieniusa
Key points
From the paper's conclusion- We compare BEAM VM type checkers and catalogue how other languages design lists and cons cells.
Abstract
We define list types, distinguishing proper lists, which end in the empty list, from improper lists, which may end in any value. Both are encoded as recursive types of cons cells, implemented in etylizer. This work found one OTP compiler bug. We propose a one-line sound improvement to Dialyzer's list handling that finds six instances of dead code in the OTP code base. We compare BEAM VM type checkers and catalogue how other languages design lists and cons cells.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- From Strong Normalization to WhatsApp: the Journey of an AxiomarXiv · 2026
- The Reversible Intermediate Language L4, its Type System, and its Bidirectional Small-Step SemanticsarXiv · 2026
- Record Types EverywherearXiv · 2026
- Towards Concise Binding Semantics of Late-Bound OOP SystemsProceedings of the ACM on Programming Languages · 2026
- A Linked List of Cases in Language DesignarXiv · 2026
- DueList: A Theory of Lists with Combinators for SMT SolversarXiv · 2026