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.
40 lines
934 B
Text
40 lines
934 B
Text
def mid {α} (T : α) := T
|
||
|
||
structure HH (A B : Nat) where
|
||
toFun : Nat
|
||
prop : True
|
||
|
||
set_option pp.explicit true
|
||
|
||
/--
|
||
trace: S T f : Nat
|
||
⊢ @Eq (HH S T) (@HH.mk S T f trivial) (@id (HH S T) (@HH.mk S T f trivial))
|
||
-/
|
||
#guard_msgs in
|
||
example {S T : Nat} (f : Nat) :
|
||
HH.mk (B := T) f trivial = id (α := HH S T) (HH.mk (B := mid T) f trivial) := by
|
||
simp only [mid]
|
||
trace_state
|
||
rfl
|
||
|
||
/--
|
||
trace: S T f : Nat
|
||
⊢ @Eq (HH S T) (@HH.mk S T f trivial) (@id (HH S T) (@HH.mk S T f trivial))
|
||
-/
|
||
#guard_msgs in
|
||
example {S T : Nat} (f : Nat) :
|
||
HH.mk (B := T) f trivial = id (α := HH S T) (HH.mk (B := mid T) f trivial) := by
|
||
dsimp only [mid]
|
||
trace_state
|
||
rfl
|
||
|
||
/--
|
||
trace: S T f : Nat
|
||
⊢ @Eq (HH S T) (@HH.mk S T f trivial) (@id (HH S T) (@HH.mk S T f trivial))
|
||
-/
|
||
#guard_msgs in
|
||
example {S T : Nat} (f : Nat) :
|
||
HH.mk (B := T) f trivial = id (α := HH S T) (HH.mk (B := mid T) f trivial) := by
|
||
unfold mid
|
||
trace_state
|
||
rfl
|