An Agda scope checker implemented in Agda

dc.contributor.authorGazzetta, Francesco
dc.contributor.departmentChalmers tekniska högskola / Institutionen för data och informationstekniksv
dc.contributor.departmentChalmers University of Technology / Department of Computer Science and Engineeringen
dc.contributor.examinerJansson, Patrik
dc.contributor.supervisorAbel, Andreas
dc.date.accessioned2024-01-10T13:30:22Z
dc.date.available2024-01-10T13:30:22Z
dc.date.issued2023
dc.date.submitted2023
dc.description.abstractAgda [1] is a Haskell-style, purely functional, dependently typed programming language and theorem prover. Scope checking is the process of analyzing the Abstract Syntax Tree (AST) of a program and resolving all references to symbols by connecting them to the corresponding declarations of said symbols. The Agda scope checker – as well as the rest of the compiler – is written in Haskell, and does not include any proof about the reachability of declarations. In this thesis, we present a scope checker for the Agda language, written in Agda itself, and prove the correctness of its name resolution algorithm with reference to the reachability properties of the Agda language. The result of this scope checking pass is a correct by construction AST that contains a proof that the syntax is well-scoped represented as paths from references of names (eg. x) to declarations (eg. x = ...).
dc.identifier.coursecodeDATX05
dc.identifier.urihttp://hdl.handle.net/20.500.12380/307506
dc.language.isoeng
dc.setspec.uppsokTechnology
dc.subjectComputer science
dc.subjectAgda
dc.subjectcompilers
dc.subjectscoping
dc.subjectwell-scoped syntax
dc.subjectdependent types
dc.subjectname resolution
dc.subjectformal verification
dc.titleAn Agda scope checker implemented in Agda
dc.type.degreeExamensarbete för masterexamensv
dc.type.degreeMaster's Thesisen
dc.type.uppsokH
local.programmeComputer science – algorithms, languages and logic (MPALG), MSc

Ladda ner

Original bundle

Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
CSE 23-146 FG.pdf
Storlek:
1.51 MB
Format:
Adobe Portable Document Format

License bundle

Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
license.txt
Storlek:
2.35 KB
Format:
Item-specific license agreed upon to submission
Beskrivning: