Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: irrelevant_sort
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (30 sloc) 1.399 kb
Take Coq.
Add in its syntax (up to kernel/ :
- Irr : Type(0)
- iPrf : Irr -> Prop
- iJMeq : forall {A B: Type}, A -> B -> Irr
- iSubst : forall {A: Type} (a: A) (b: A)
(eq: iPrf (iJMeq a b)) (P : A -> Type) (p : P a), P b
Make it typecheck them (kernel/ +
Add in its conversion test (kernel/ :
G |- p == q : forall (x_1: T_1) ... (x_n: T_n), iPrf A
Add in the reduction machine (kernel/ :
G |- a == b : A
G |- isubst a b eq P p ==> p
Of course, Coq reduction machine and conversion test are not typed so
you have cheated by
- carrying and updating a typing environment that destructs all the performance
- declaring references "nasty_infer" & "nasty_conv" in kernel/
that you set to the latter-defined functions afterward.
Of course, it is completely incomplete and will do "pattern matching
failure" if you try to use cbv reduction machines.
Of course, it is full of bugs such as the one that makes NMake_gen.v
kill your computer if you keep "reflexivity" instead of "exact
eq_refl" at some point. I personnaly stop the massacre after 30Go of
But at least, you will obtain a playground thus this one ... Sandbox
is open at theories/Irr/Irr.v.
Jump to Line
Something went wrong with that request. Please try again.