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.
20 lines
382 B
Text
20 lines
382 B
Text
@[simp] def f (x : Nat) := x + 1
|
|
|
|
@[simp] def g (x : Nat) := id x
|
|
|
|
def h (x : Nat) := g (g x)
|
|
|
|
namespace Extra
|
|
attribute [scoped simp] h
|
|
end Extra
|
|
|
|
theorem ex1 : f (g (h x)) = x + 1 := by
|
|
simp -- did not unfold h
|
|
simp [h]
|
|
|
|
theorem ex2 : f (g (h x)) = x + 1 := by
|
|
open Extra in simp -- unfold f,g,h
|
|
|
|
theorem ex3 : f (g x) = x + 1 := by
|
|
simp [-f] -- did not unfold f
|
|
simp
|