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
552 B
Text
17 lines
552 B
Text
--
|
|
@[simp] theorem andTrue (p : Prop) : (p ∧ True) = p :=
|
|
propext <| Iff.intro (fun ⟨h, _⟩ => h) (fun h => ⟨h, trivial⟩)
|
|
attribute [simp] Nat.add_comm
|
|
|
|
theorem ex1 (x : Nat) : (if x > 3 ∧ True then 1 else 2) = (if x > 3 then 1 else 2) :=
|
|
by simp
|
|
|
|
theorem ex2 (x : Nat) : (if x = 0 ∧ True then x + 1 else 2 + x) = (if x = 0 then 1 else x + 2) :=
|
|
by simp (config := {contextual := true})
|
|
|
|
#print ex2
|
|
|
|
theorem ex3 (x : Nat) : (if h : x = 0 ∧ True then x + 1 else 2 + x) = (if h : x = 0 then 1 + x else x + 2) :=
|
|
by simp
|
|
|
|
#print ex3
|