Resource type
Thesis type
(Thesis) M.Sc.
Date created
2026-04-15
Authors/Contributors
Author: Chen Chen, Jimmy
Abstract
Refactoring is known to be an important but tedious and error-prone software development process for a long time. Although numerous automated refactoring tools were created over the years to address this problem, none of them provide formal guarantees, not even on well-typedness preservation. This lack of preservation is exacerbated in the scenario where the author of the refactor script is not the same person as its users; in such a scenario, the author would not have access to users' programs, ruling out the possibility for the author to check, perhaps using the compiler, whether the refactored versions remain well-typed. To solve this challenge, we have designed a tool, in the form of a DSL, called ReType, such that every script written in the language is guaranteed to preserve the well-typedness of target programs. The benefit of such a formal guarantee is comparable to the benefit of static type checking in standard languages. The main insight of this research is the novel concept of type system transformation, used as a way to track the behaviours of program transformations. We use the simply typed lambda calculus (STLC) with extensions as the target language, together with an implementation of the DSL, to illustrate the practicality of the theory.
File
Extent
99 pages.
Identifier
etd24286
Copyright statement
Copyright is held by the author(s).
Academic Supervisor
Thesis advisor: Miltner, Anders
Language
English
Member of collection
| Download file | Size |
|---|---|
| etd24286.pdf | 475.01 KB |