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.
24 lines
710 B
Text
24 lines
710 B
Text
set_option cbv.warning false
|
|
|
|
-- Success: proposition reduces to `Bool.true`
|
|
example : 1 + 1 = 2 := by decide_cbv
|
|
|
|
example : 1 ∈ [1, 2, 3] := by decide_cbv
|
|
|
|
/-- error: `decide_cbv` failed: the proposition evaluates to `false` -/
|
|
#guard_msgs (error) in
|
|
example : 1 + 1 = 3 := by decide_cbv
|
|
|
|
opaque myOpaqueBool : Bool
|
|
|
|
/--
|
|
error: `decide_cbv` failed: could not reduce the expression to a boolean value; got stuck at: ⏎
|
|
Decidable.rec (fun h => false) (fun h => true)
|
|
(match myOpaqueBool, true with
|
|
| false, false => isTrue ⋯
|
|
| false, true => isFalse ⋯
|
|
| true, false => isFalse ⋯
|
|
| true, true => isTrue ⋯)
|
|
-/
|
|
#guard_msgs (error) in
|
|
example : myOpaqueBool = true := by decide_cbv
|