Idris 2: Quantitative Type Theory in Practice (Artifact)

Author Edwin Brady

Thumbnail PDF

Artifact Description

  • Filesize: 0.49 MB
  • 7 pages

Document Identifiers

Author Details

Edwin Brady
  • School of Computer Science, University of St Andrews, Scotland, UK


This work was funded by EPSRC grant EP/T007265/1. Thanks to the Idris community for their many contributions to this Idris 2 project.

Cite AsGet BibTex

Edwin Brady. Idris 2: Quantitative Type Theory in Practice (Artifact). In Special Issue of the 35th European Conference on Object-Oriented Programming (ECOOP 2021). Dagstuhl Artifacts Series (DARTS), Volume 7, Issue 2, pp. 10:1-10:7, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2021)



Dependent types allow us to express precisely what a function is intended to do. Recent work on Quantitative Type Theory (QTT) extends dependent type systems with linearity, also allowing precision in expressing when a function can run. This is promising, because it suggests the ability to design and reason about resource usage protocols, such as we might find in distributed and concurrent programming, where the state of a communication channel changes throughout program execution. Idris 2 is a new version of Idris, implemented in itself, and based on Quantitative Type Theory. The paper introduces Idris 2 and describes how QTT has influenced its design, as well as giving several examples of how to use QTT in practice. The artifact, correspondingly, provides an implementation of Idris 2, running on a virtual machine, along with runnable examples from the paper. This document explains how to install the artifact, how to run the examples, and suggests some small ways to experiment with and modify the examples.

Subject Classification

ACM Subject Classification
  • Software and its engineering → Functional languages
  • Dependent types
  • linear types
  • concurrency


  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    PDF Downloads