pith. sign in

arxiv: 1401.7886 · v2 · pith:ILECLGVHnew · submitted 2014-01-30 · 💻 cs.DS · cs.LO

Balancing lists: a proof pearl

classification 💻 cs.DS cs.LO
keywords invariantstypeslistsproofadvertisedalgorithmamountbalancing
0
0 comments X
read the original 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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.