A Tutorial Implementation of a Dependently Typed Lambda Calculus

  • Authors:
  • Andres Löh;Conor McBride;Wouter Swierstra

  • Affiliations:
  • (Correspd.) Utrecht University, The Netherlands. andres@cs.uu.nl;University of Strathclyde, U.K. conor.mcbride@cis.strath.ac.uk;Vector Fabrics, The Netherlands. wouter@vectorfabrics.com

  • Venue:
  • Fundamenta Informaticae - Dependently Typed Programming
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present the type rules for a dependently typed core calculus together with a straight-forward implementation in Haskell. We explicitly highlight the changes necessary to shift from a simply-typed lambda calculus to the dependently typed lambda calculus. We also describe how to extend our core language with data types and write several small example programs. The article is accompanied by an executable interpreter and example code that allows immediate experimentation with the system we describe.