This PR sets up the new integrated test/bench suite. It then migrates all benchmarks and some related tests to the new suite. There's also some documentation and some linting. For now, a lot of the old tests are left alone so this PR doesn't become even larger than it already is. Eventually, all tests should be migrated to the new suite though so there isn't a confusing mix of two systems.
24 lines
680 B
Text
24 lines
680 B
Text
namespace MWE
|
|
|
|
inductive Id {A : Type u} : A → A → Type u
|
|
| refl {a : A} : Id a a
|
|
|
|
attribute [induction_eliminator] Id.casesOn
|
|
|
|
infix:50 (priority := high) " = " => Id
|
|
|
|
def symm {A : Type u} {a b : A} (p : a = b) : b = a :=
|
|
by { induction p; exact Id.refl }
|
|
|
|
def transportconst {A B : Type u} : A = B → A → B :=
|
|
by { intro p x; induction p; exact x }
|
|
|
|
def transportconstInv {A B : Type u} (e : A = B) : B → A :=
|
|
transportconst (symm e)
|
|
|
|
def transportconstOverInv {A B : Type u} (p : A = B) :
|
|
∀ x, transportconst (symm p) x = transportconstInv p x :=
|
|
by { intro x; apply Id.refl }
|
|
|
|
def transportconstInv' {A B : Type u} : A = B → B → A :=
|
|
transportconst ∘ symm
|