Code

An important aspect of HoTT is the fact that intensional Martin-Löf type theory has a computational implementation in proof assistants like Coq and Agda.

This forms the basis of Vladimir Voevodsky’s Univalent Foundations program, which uses Coq to generate and verify proofs with homotopical content.  Collected here are various resources for working (and playing) with HoTT in Coq, mostly hosted at GitHub.  See the resources below for examples, and for instructions on how to set up your own Coq system and GitHub repository so you can get Coqing and share the results.

Main sources:

Tutorials:

Individual repos:

Individual results:

Another proof assistant is Agda. Agda includes some more advanced features than Coq, but lacks a tactic language; also one must use the option --without-K for consistency with homotopy type theory. Here are some links to Agda code implementing aspects of homotopy type theory.

  • Nils Anders Danielsson and Thierry Coquand’s Agda code (HTML listings here), which proves (among other things) that Ωn is abelian for n≥2.

To add something to this list, just leave a reply below.

2 Responses to Code

  1. Pingback: Unifying Programming and Math – The Dependent Type Revolution | Atomic Spin

  2. favonia says:

    Hi, my old repository (on the current list) is in Agda, not Coq. BTW, maybe we should list https://github.com/HoTT/HoTT-Agda as well?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s