2015-03-05 02:06:39 +00:00
The Lean Homotopy Type Theory Library
=====================================
2015-08-06 21:19:07 +00:00
The Lean Homotopy Type Theory library consists of the following directories:
2015-03-05 02:06:39 +00:00
* [init ](init/init.md ) : constants and theorems needed for low-level system operations
* [types ](types/types.md ) : concrete datatypes and type constructors
2015-04-25 00:13:08 +00:00
* [hit ](hit/hit.md ): higher inductive types
2015-03-05 02:06:39 +00:00
* [algebra ](algebra/algebra.md ) : algebraic structures
2015-08-06 21:19:07 +00:00
* [cubical ](cubical/cubical.md ): cubical types
The following files don't fit in any of the subfolders:
2016-02-15 20:55:29 +00:00
* [prop_trunc ](prop_trunc.hlean ): in this file we prove that `is_trunc n A` is a mere proposition. We separate this from [types.trunc ](types/trunc.hlean ) to avoid circularity in imports.
2015-08-06 21:19:07 +00:00
* [eq2 ](eq2.hlean ): coherence rules for the higher dimensional structure of equality
* [function ](function.hlean ): embeddings, (split) surjections, retractions
* [arity ](arity.hlean ) : equality theorems about functions with arity 2 or higher
2016-01-21 20:31:41 +00:00
* [choice ](choice.hlean ) : theorems about the axiom of choice.
2016-02-23 18:00:16 +00:00
* [logic ](logic.hlean )
You can import the core part of the library by writing [`import core` ](core.hlean )
2015-04-25 00:13:08 +00:00
2015-08-05 00:17:14 +00:00
See [book.md ](book.md ) for an overview of the sections of the [HoTT book ](http://homotopytypetheory.org/book/ ) which have been covered.
2015-03-05 02:06:39 +00:00
Lean's homotopy type theory kernel is a version of Martin-Löf Type Theory with:
* universe polymorphism
2015-04-25 00:13:08 +00:00
* a non-cumulative hierarchy of universes, `Type 0` , `Type 1` , ...
2015-03-05 02:06:39 +00:00
* inductively defined types
2015-08-05 00:17:14 +00:00
* [Two HITs ](init/hit.hlean ): `n` -truncation and quotients.
2015-03-05 02:06:39 +00:00
2015-04-10 02:14:19 +00:00
Note that there is no proof-irrelevant or impredicative universe.
2015-03-05 02:06:39 +00:00
By default, the univalence axiom is declared on initialization.
2016-01-21 20:31:41 +00:00
See also the [standard library ](../library/library.md ). We [port ](port.md ) some files from the standard library to the HoTT library.