Files
lean4/tests/elab/grind_9427.lean
Garmelon 08eb78a5b2 chore: switch to new test/bench suite (#12590)
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.
2026-02-25 13:51:53 +00:00

40 lines
980 B
Lean4

module
example {n} (x y : BitVec n) : x * y = y * x := by
grind
example {n} (x y z w : BitVec n) : w = z x * y - z*w = 0 z*z = y * x := by
grind
example (x y : BitVec 64) : x * y = y * x := by
grind
example (x y : BitVec 128) : x * y = y * x := by
grind
example (x y : BitVec 128) : x * y = y * x + 2^64 * 2^64 * x := by
grind
example (x y : BitVec 256) : x * y = y * x := by
grind
example (x y : BitVec 1024) : x * y = y * x := by
grind
example (x y : BitVec 1024) : x * y = y * x := by
grind -lia
example (x y : BitVec 100000) : x * y = y * x := by
grind -lia
example (x y z : BitVec 100000) : x * y - z*z = 0 z*z = y * x := by
grind -lia
/--
trace: [grind.issues] exponent 1024 exceeds threshold for exponentiation `(exp := 16)`
[grind.issues] exponent 1024 exceeds threshold for exponentiation `(exp := 16)`
-/
#guard_msgs in
set_option trace.grind.issues true in
example (x y : BitVec 1024) : x * y = y * x := by
grind (exp := 16)