St Andrews Research Repository

St Andrews University Home
View Item 
  •   St Andrews Research Repository
  • University of St Andrews Research
  • University of St Andrews Research
  • University of St Andrews Research
  • View Item
  •   St Andrews Research Repository
  • University of St Andrews Research
  • University of St Andrews Research
  • University of St Andrews Research
  • View Item
  •   St Andrews Research Repository
  • University of St Andrews Research
  • University of St Andrews Research
  • University of St Andrews Research
  • View Item
  • Login
JavaScript is disabled for your browser. Some features of this site may not work without it.

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

Thumbnail
View/Open
WPTE2021.pdf (213.5Kb)
Date
18/07/2021
Author
Barwell, Adam David
Brown, Christopher Mark
Sarkar, Susmit
Keywords
Haskell
Refactoring
Dependent types
Idris
Renaming
Proof-carrying code
Soundness
QA75 Electronic computers. Computer science
T-NDAS
NIS
Metadata
Show full item record
Altmetrics Handle Statistics
Abstract
We present a formally verified refactoring framework for a subset of Haskell 98. Our framework 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.
Citation
Barwell , A D , Brown , C M & Sarkar , S 2021 , Proving renaming for Haskell via dependent types : a case-study in refactoring soundness . in 8th International Workshop on Rewriting Techniques for Program Transformations and Evaluation (WPTE 2021) . pp. 1-10 , 8th International Workshop on Rewriting Techniques for Program Transformations and Evaluation , Buenos Aeires , Argentina , 18/07/21 .
 
workshop
 
Publication
8th International Workshop on Rewriting Techniques for Program Transformations and Evaluation (WPTE 2021)
Type
Conference item
Rights
Copyright 2021 © A. Barwell, C. Brown & S. Sarkar. This work is licensed under the Creative Commons Attribution License.
Collections
  • University of St Andrews Research
URL
https://www.ipl.riec.tohoku.ac.jp/wpte2021/
URI
http://hdl.handle.net/10023/23673

Items in the St Andrews Research Repository are protected by copyright, with all rights reserved, unless otherwise indicated.

Advanced Search

Browse

All of RepositoryCommunities & CollectionsBy Issue DateNamesTitlesSubjectsClassificationTypeFunderThis CollectionBy Issue DateNamesTitlesSubjectsClassificationTypeFunder

My Account

Login

Open Access

To find out how you can benefit from open access to research, see our library web pages and Open Access blog. For open access help contact: openaccess@st-andrews.ac.uk.

Accessibility

Read our Accessibility statement.

How to submit research papers

The full text of research papers can be submitted to the repository via Pure, the University's research information system. For help see our guide: How to deposit in Pure.

Electronic thesis deposit

Help with deposit.

Repository help

For repository help contact: Digital-Repository@st-andrews.ac.uk.

Give Feedback

Cookie policy

This site may use cookies. Please see Terms and Conditions.

Usage statistics

COUNTER-compliant statistics on downloads from the repository are available from the IRUS-UK Service. Contact us for information.

© University of St Andrews Library

University of St Andrews is a charity registered in Scotland, No SC013532.

  • Facebook
  • Twitter