Skip to content

A toy implementation of the dependently typed lambda calculus known as λΠ

License

Notifications You must be signed in to change notification settings

tdietert/lambda-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lambda-pi

This project is a toy implementation of the dependently typed lambda calculus known as λΠ, based on the language and semantics presented in the paper A tutorial implementation of a dependently typed lambda calculus, by Loh, McBride, and Swierstra. Instead of the ad-hoc implementation of de Bruijn indices presented in the paper, we use the library unbound-generics for alpha equivalence and capture-avoiding substitution (CAS) of lambda abstractions and pi terms. This project hopes to explore the implementation details of compiling dependently typed programming languages.

LP Interpreter

To run the original interpreter from the paper and the "prelude" (standard library) defined in paper/prelude.lp, download the nix package manager and run:

$ ./lp
LP> :load paper/prelude.lp

About

A toy implementation of the dependently typed lambda calculus known as λΠ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published