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.
27 lines
558 B
Text
27 lines
558 B
Text
import Std.Tactic.BVDecide
|
|
|
|
inductive Sign : Type
|
|
| Positive : Sign
|
|
| Negative : Sign
|
|
deriving DecidableEq, Repr
|
|
|
|
inductive EFixedPoint : Type
|
|
| NaN : EFixedPoint
|
|
| Infinity : Sign -> EFixedPoint
|
|
deriving DecidableEq, Repr
|
|
|
|
namespace EFixedPoint
|
|
|
|
def equal (a b : EFixedPoint) : Bool :=
|
|
match a, b with
|
|
| Infinity s1, Infinity s2 => s1 = s2
|
|
| _, _ => false
|
|
|
|
/-- warning: declaration uses `sorry` -/
|
|
#guard_msgs in
|
|
theorem EFixedPoint_eq_refl (a : EFixedPoint) : a.equal a = true := by
|
|
unfold EFixedPoint.equal
|
|
bv_normalize
|
|
sorry
|
|
|
|
end EFixedPoint
|