Graded Modal Type Theory, Formalized

dc.contributor.authorEriksson, Oskar
dc.date.accessioned2025-04-15T12:15:22Z
dc.date.available2025-04-15T12:15:22Z
dc.date.issued2025
dc.description.abstractA graded modal type theory equips a type theory with a semiring of grades, which enables encoding additional information of some kind. A typical application of such a system is to encode quantitative information, specifically how many times variables are used or referenced at runtime. Concrete examples include erasure or linear types. In this thesis, we present such a type theory with dependent types, designed primarily with encoding quantitative information in mind. The theory supports Π-types, Σ-types, unit, and empty types, as well as a hierarchy of universes. It also supports natural numbers, and special attention is given to establishing a method for counting variable uses for the recursive eliminator of this type. We prove some key meta-theoretical results for this system, as well as two main correctness results. Firstly, we show correctness for erasure in the sense that it is safe to remove erased information during compilation without affecting the result of evaluation. Secondly, we show that the system is capable of correctly tracking how many times variables should be referenced through an abstract machine in which heap lookups (corresponding to variable references) are tracked. The thesis is accompanied by an Agda formalization in which the results have been mechanized.sv
dc.identifier.urihttps://hdl.handle.net/2077/86472
dc.language.isoengsv
dc.subjectgraded modal type theory
dc.subjectquantitative type theory
dc.subjectdependent types
dc.subjecterasure
dc.subjectlinearity
dc.subjectabstract machine
dc.subjectformalization
dc.titleGraded Modal Type Theory, Formalizedsv
dc.typeTextsv
dc.type.sveplicentiate thesissv

Files

Original bundle

Now showing 1 - 1 of 1
No Thumbnail Available
Name:
Graded Modal Type Theory Formalized.pdf
Size:
873.83 KB
Format:
Adobe Portable Document Format
Description:
Lic. Thesis

License bundle

Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
4.68 KB
Format:
Item-specific license agreed upon to submission
Description: