Characterising renaming within OCaml’s module system
Date: Wed, December 04, 2019
Room: COLLOQUIUMZAAL 0.E420
We present an abstract, set-theoretic denotational semantics for a significant subset of OCaml and its module system, allowing to reason about the correctness of renaming value bindings. Our semantics captures information about the binding structure of programs, as well as about which declarations are related by the use of different language constructs (e.g. functors, module types and module constraints). Correct renamings are precisely those that preserve this structure. We show that our abstract semantics is sound with respect to a (domain-theoretic) denotational model of the operational behaviour of programs, and that it allows us to prove various high-level, intuitive properties of renamings. This formal framework has been implemented in a prototype refactoring tool for OCaml that performs renaming.
Arjen Rouvoet | Intrinsically-Typed Interpreters for Linear Languages
Next: | NWO/AES awards MasCot project on software restructuring