A Principled Approach to Ornamentation in ML - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Rapport (Rapport De Recherche) Année : 2017

A Principled Approach to Ornamentation in ML

Résumé

Ornaments are a way to describe changes in datatype definitions reorganizing, adding, or dropping some pieces of data so that functions operating on the bare definition can be partially and sometimes totally lifted into functions operating on the ornamented structure. We propose an extension of ML with higher-order ornaments, demonstrate its expressiveness with a few typical examples, including code refactoring, study the metatheoretical properties of ornaments, and describe their elaboration process. We formalize ornamentation via an a posteriori abstraction of the bare code, called generic lifting, which lives in a meta-language above ML. The lifted code is obtained by application of the generic lifting to well-chosen arguments, followed by staged reduction, and some remaining simplifications. We use logical relations to closely relate the lifted code to the bare code.
Fichier principal
Vignette du fichier
ornaments-long.pdf (1.04 Mo) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01628060 , version 1 (07-11-2017)

Identifiants

Citer

Thomas Williams, Didier Rémy. A Principled Approach to Ornamentation in ML. [Research Report] Inria. 2017. ⟨hal-01628060⟩

Collections

INRIA INRIA2 LARA
151 Consultations
241 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More