Year: 2026
Type: dissertation
Abstract: The purpose of this thesis is to present formal program verification using type theory and the Curry-Howard correspondence. We examine the theoretical development from untyped lambda calculus (λ) and simply typed lambda calculus (λ → ) through Barendregt's Lambda Cube to the Calculus of Constructions (CoC). Based on this foundation, we develop a compiler for a minimal language, coco, in OCaml and demonstrate the mechanics of type checking and logical proof validation. To verify more complex programs, we use the Lean 4 proof assistant, in which we formally prove the correctness of the Insertion Sort algorithm. Finally, we discuss the potential industrial applications of dependent types and their integration with large language models. Svenšek L. Dokazovanje pravilnosti programov s pomočjo teorije tipov. Univerza na Primorskem, Fakulteta za matematiko, naravoslovje in informacijske tehnologije, 2026 IV Zahvala Iskreno se zahvaljujem mentorju izr.prof.dr.Nino Bašić-u za strokovno pomoč in potrpežljivost pri pisanju diplomske naloge. Posebna hvala gre tudi vsem, ki so nalogo pregledali in podali povratne informacije. Svenšek L. Dokazovanje pravilnosti programov s pomočjo teorije tipov.
Author: Svenšek, Luka
Institution: University of Primorska
Language: Slovenian
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7225763835
