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.
27 lines
771 B
Text
27 lines
771 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 transport {A : Type u} (B : A → Type v) {a b : A} (p : a = b) : B a → B b :=
|
|
by { induction p; exact id }
|
|
|
|
def transportconst {A B : Type u} : A = B → A → B :=
|
|
transport id
|
|
|
|
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
|