Haskell’s Show-Class in Isabelle/HOL
Christian Sternagel and René ThiemannArchive of Formal Proofs 2014.
Abstract
We implemented a type-class for pretty-printing, similar to Haskell’s Show-class. Moreover, we provide instantiations for Isabelle/HOL’s standard types like bool, prod, sum, nats, ints, and rats. It is further possible, to automatically derive pretty-printer for arbitrary user defined datatypes similar to Haskell’s “deriving Show”.
BibTeX
@article{CSRT-AFP14a,
author = {Christian Sternagel and René Thiemann},
title = {Haskell's {Show}-Class in {Isabelle/HOL}},
journal = "Archive of Formal Proofs",
month = jul,
year = 2014,
note = {\url{https://www.isa-afp.org/entries/Show.html},
Formal proof development},
ISSN = {2150-914x},
}