VSL 2014: VIENNA SUMMER OF LOGIC 2014

Balancing lists: a proof pearl

Authors: Guyslain Naves and Arnaud Spiwack

PapersPapers with AbstractsPrefaceAuthor IndexKeyword Index

Paper Information

Title:Balancing lists: a proof pearl
Authors:Guyslain Naves and Arnaud Spiwack
Proceedings:ITP 2014 LNCS Proceedings
Editors: Gerwin Klein and Ruben Gamboa
Keywords:Coq, Full trees, Non-uniform inductive types, Numerical representations, Ocaml, Proof pearl
Abstract:

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.

Pages:13
Talk:Jul 15 14:30
Paper:
Disclaimer | Powered by EasyChair Smart Program