Proving renaming for Haskell via dependent types: a case-study in refactoring soundness

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

We present a formally verified renaming refactoring for a subset of Haskell 98 giving a case-study in proving soundness properties of Haskell refactorings. Our renaming is implemented in the dependently- typed language Idris, which allows us to encode soundness proofs as an integral part of the implementation. We give the formal definition of our static semantics for our Haskell 98 subset, which we encode as part of the AST, ensuring that only well-formed programs may be represented and transformed. This forms a foundation upon which refactorings can be formally specified. We then define soundness of refactoring implementations as conformity to their specification. We demonstrate our approach via renaming, a canonical and well-understood refactoring, giving its implementation alongside its formal specification and soundness proof.
Original languageEnglish
Title of host publication8th International workshop on rewriting techniques for program transformations and evaluation (WPTE 2021)
Number of pages10
Publication statusPublished - 18 Jul 2021
Event8th International Workshop on Rewriting Techniques for Program Transformations and Evaluation
- Argentina, Buenos Aeires, Argentina
Duration: 18 Jul 2021 → …
Conference number: 8
https://www.ipl.riec.tohoku.ac.jp/wpte2021/

Workshop

Workshop8th International Workshop on Rewriting Techniques for Program Transformations and Evaluation
Abbreviated titleWPTE 2021
Country/TerritoryArgentina
CityBuenos Aeires
Period18/07/21 → …
Internet address

Keywords

  • Haskell
  • Refactoring
  • Dependent types
  • Idris
  • Renaming
  • Proof-carrying code
  • Soundness

Fingerprint

Dive into the research topics of 'Proving renaming for Haskell via dependent types: a case-study in refactoring soundness'. Together they form a unique fingerprint.

Cite this