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.
25 lines
617 B
Text
25 lines
617 B
Text
def f (x : Nat) := x + 1
|
|
|
|
theorem f_eq (x : Nat) : f (x + 1) = x + 2 := rfl
|
|
|
|
theorem ex1 : f (f (x + 1)) = x + 3 := by
|
|
simp -implicitDefEqProofs only [f_eq]
|
|
|
|
/--
|
|
info: theorem ex1 : ∀ {x : Nat}, f (f (x + 1)) = x + 3 :=
|
|
fun {x} =>
|
|
of_eq_true
|
|
(Eq.trans (congrFun' (congrArg Eq (Eq.trans (congrArg f (f_eq x)) (f_eq (x + 1)))) (x + 3)) (eq_self (x + 1 + 2)))
|
|
-/
|
|
#guard_msgs in
|
|
#print ex1
|
|
|
|
theorem ex2 : f (f (x + 1)) = x + 3 := by
|
|
simp +implicitDefEqProofs only [f_eq]
|
|
|
|
/--
|
|
info: theorem ex2 : ∀ {x : Nat}, f (f (x + 1)) = x + 3 :=
|
|
fun {x} => of_eq_true (eq_self (x + 1 + 2))
|
|
-/
|
|
#guard_msgs in
|
|
#print ex2
|