Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Some experiments with mechanised metatheory of type theory

Finished:

  • A definition of a weak type theory (WTT) - that is, a dependent type theory without definitional β/η laws - without setoids or quotients. Instead, we define (single) substitution as a relation.
    • The inductive-inductive syntax is defined in Syntax.
    • We then go on to show that substitution can be computed recursively in Comp<>.
    • We also construct the standard model in Model.
    • I think the especially interesting aspect here is that, because there is no redundancy in the substitution relation, the syntax is coherent (i.e. provably an hSet) and it therefore might be possible to construct a model in arbitrary n-types (--without-K). Unfortunately, defining such a model is still non-trivial (we need extra coherences).

WIP:

  • The groupoid model: GrpdModel
    • I think this is a really nice demonstration of the power of --smart-with (NathanielB123/agda#15).
    • Working with displayed groupoids usually hits a ton of transport hell, but smart rewrite (i.e. local equality reflection) can kill most of it.
  • NbE (including trying out an idea I have to deal with non-linear reductions): NonLinNbE
  • A minimal type theory for describing semi-simplicial types: SemiSimpl
    • Based on the WTT substitution-as-a-relation idea.
    • The particular minimal type theory is due to András Kovács.
    • Proving that the syntax is a set is trivial (there are no path constructors). Howevever, defining the type model is still quite difficult for similar reasons to the WTT example.
    • Still, I am hopeful that we can prove all the necessary coherences in the model by mutual induction on the syntax, though I think this approach might implicitly rely on something like https://stackoverflow.com/questions/79894235/can-we-prove-equal-subcases-have-equal-induction-hypotheses-in-recursion-princip. Also, there is currently a termination error...

About

Mechanised metatheory experiments

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages