This formalisation mostly follows the 1995 paper Categorical reconstruction of a reduction free normalization proof by Altenkirch at al.
- lists: Defines the basic data patterns that we see in contextual categories (
𝐶𝑡𝑥
,𝑇𝑚𝑠
, and𝑉𝑎𝑟
) - contextual: Gives the organising definition behind this implementation; everything is this project relies on contextual structures
- ccc: Defines what it means for a contextual category to be cartesian closed, and gives consequences of the structure
- functor: Defines contextual functors, constructs composition, and says what it means for a CF to preserve CCC structures
- psh: Defines a contextual cartesian closed category of presheaves
- normal: Defines normal an neutral terms, and related presheaves
- twgl: Defines a contextual category of glueings. Shows that any glueing gives rise to a normal form and equality proof
- twglccc: Establishes the contextual cartesian closedness of glueings
- norm: Establishes that any initial syntactic category has normalisation
- syn: Defines the syntactic contextual category
- eliminator: Establishes the initiality of syntax
- tests: Some applications of our results