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.
17 lines
365 B
Text
17 lines
365 B
Text
theorem ex1 : a * 2 = 2 * a := by
|
|
have h : ∀ (a b : Nat), a * b = a * b := by
|
|
intros; rfl
|
|
conv at h =>
|
|
intro a b; lhs; rw [Nat.mul_comm]
|
|
exact h 2 a
|
|
|
|
#print ex1
|
|
|
|
theorem ex2 : a * 2 = 2 * a := by
|
|
have h : (fun x y => x * y) = Nat.mul := by
|
|
rfl
|
|
conv at h =>
|
|
lhs; intro x y; rw [Nat.mul_comm]
|
|
exact congrFun (congrFun h 2) a
|
|
|
|
#print ex2
|