Balancing Lists: A Proof Pearl
From MaRDI portal
Abstract: Starting with an algorithm to turn lists into full trees which uses non-obvious invariants and partial functions, we progressively encode the invariants in the types of the data, removing most of the burden of a correctness proof. The invariants are encoded using non-uniform inductive types which parallel numerical representations in a style advertised by Okasaki, and a small amount of dependent types.
Recommendations
- Proof pearl: The KeY to correct and stable sorting
- scientific article; zbMATH DE number 1405440
- scientific article; zbMATH DE number 4045132
- Padded Lists Revisited
- scientific article; zbMATH DE number 524124
- Balcobalancing numbers and balcobalancers
- Almost balancing numbers
- On the theory of bags and lists
- scientific article; zbMATH DE number 6957541
- scientific article; zbMATH DE number 3865598
Cited in
(4)
This page was built for publication: Balancing Lists: A Proof Pearl
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q2879268)