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
568 B
Text
17 lines
568 B
Text
opaque f (x : Nat) : Nat
|
|
@[simp] axiom fEq (x : Nat) : f x = x
|
|
|
|
theorem ex1 (x : Nat) : f (f x, x).fst = x := by simp
|
|
|
|
theorem ex2 (x : Nat) : f ((fun a => f (f a)) x) = x := by simp
|
|
|
|
opaque g (x : Nat) : Nat
|
|
@[simp] axiom gEq (x : Nat) : g x = match x with | 0 => 1 | x+1 => 2
|
|
|
|
theorem ex3 (x : Nat) : g (x + 1) = 2 := by simp
|
|
|
|
theorem ex4 (x : Nat) : (fun x => x + 1) = (fun x => x.succ) := by simp
|
|
|
|
@[simp] theorem comm (x y : Nat) : x + y = y + x := Nat.add_comm ..
|
|
|
|
theorem ex5 (x y : Nat) : (fun x y : Nat => x + 0 + y) = (fun x y : Nat => y + x + 0) := by simp
|