Projects per year
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 language | English |
---|---|
Title of host publication | 8th International workshop on rewriting techniques for program transformations and evaluation (WPTE 2021) |
Number of pages | 10 |
Publication status | Published - 18 Jul 2021 |
Event | 8th 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
Workshop | 8th International Workshop on Rewriting Techniques for Program Transformations and Evaluation |
---|---|
Abbreviated title | WPTE 2021 |
Country/Territory | Argentina |
City | Buenos Aeires |
Period | 18/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.Projects
- 3 Finished
-
-
Discovery: Pattern Discovery and Program: Discovery: Pattern Discovery and Program Shaping for Manycore Systems
Thomson, J. D. (PI), Hammond, K. (CoI) & Sarkar, S. (CoI)
1/07/17 → 31/12/20
Project: Standard