An Agda Formalisation of Modalities and Erasure in a Dependently Typed Language

dc.contributor.authorEriksson, Oskar
dc.contributor.departmentChalmers tekniska högskola / Institutionen för data och informationstekniksv
dc.contributor.examinerJansson, Patrik
dc.contributor.supervisorAbel, Andreas
dc.date.accessioned2021-07-06T07:05:35Z
dc.date.available2021-07-06T07:05:35Z
dc.date.issued2021sv
dc.date.submitted2020
dc.description.abstractModal types extend the expressivity of types by giving them different interpretations depending on the used modality. In this thesis, we develop a general modality structure in the setting of a dependently typed language, notably containing dependent products and sums as well as natural numbers, based on the work of Abel and Bernardy [1]. The modality structure is based on a semiring, the elements of which are used as annotations on terms and whose algebraic properties form the basis for the modal type system. In addition, we instantiate the general modality structure to a modality for erasure in which annotations are interpreted as either computationally relevant, indicating that the annotated term is used during evaluation, or computationally irrelevant, indicating that the marked term is not useful during evaluation. Based on this interpretation, we define an extraction function that translates terms to an untyped lambda calculus, removing terms that have been marked for erasure. Using a logical relation between terms of the two languages we then prove the extraction function to be sound with respect to the semantics of the languages in the special case of natural numbers.sv
dc.identifier.urihttps://hdl.handle.net/20.500.12380/303636
dc.language.isoengsv
dc.setspec.uppsokTechnology
dc.subjectmodal type theorysv
dc.subjectMartin-Löf type theorysv
dc.subjecterasuresv
dc.subjectlogical relationsv
dc.subjectmodalitiessv
dc.subjectAgdasv
dc.titleAn Agda Formalisation of Modalities and Erasure in a Dependently Typed Languagesv
dc.type.degreeExamensarbete för masterexamensv
dc.type.uppsokH
Ladda ner
Original bundle
Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
CSE 21-107 Eriksson.pdf
Storlek:
1.61 MB
Format:
Adobe Portable Document Format
Beskrivning:
License bundle
Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
license.txt
Storlek:
1.51 KB
Format:
Item-specific license agreed upon to submission
Beskrivning: