Reasoning with the HERMIT: tool support for equational reasoning on GHC core programs
Authors:
Open Access
- 30 August 2015
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 50 (12) , 23-34
Abstract
A benefit of pure functional programming is that it encourages equational reasoning. However, the Haskell language has lacked direct tool support for such reasoning. Consequently, reasoning about Haskell programs is either performed manually, or in another language that does provide tool support (e.g. Agda or Coq). HERMIT is a Haskell-specific toolkit designed to support equational reasoning and user-guided program transformation, and to do so as part of the GHC compilation pipeline. This paper describes HERMIT's recently developed support for equational reasoning, and presents two case studies of HERMIT usage: checking that type-class laws hold for specific instance declarations, and mechanising textbook equational reasoning.Keywords
Funding Information
- National Science Foundation (1117569)
This publication has 24 references indexed in Scilit:
- The Kansas University rewrite engineJournal of Functional Programming, 2014
- Work it, wrap it, fix it, fold itJournal of Functional Programming, 2014
- Refactoring tools for functional languagesJournal of Functional Programming, 2013
- Automating Inductive Proofs Using Theory Exploration2013
- Zeno: An Automated Prover for Properties of Recursive Data Structures2012
- Tactics for Reasoning Modulo AC in Coq2011
- Algebra of programming in Agda: Dependent types for relational program derivationJournal of Functional Programming, 2009
- The worker/wrapper transformationJournal of Functional Programming, 2009
- The Haskell Refactorer, HaRe, and its APIElectronic Notes in Theoretical Computer Science, 2005
- A Transformation System for Developing Recursive ProgramsJournal of the ACM, 1977