lean4-htt/tests/lean/run/grind_bitvec.lean
Kim Morrison 3e8d28ae6b
feat: use grind in BitVec/Lemmas (#8967)
This PR both adds initial `@[grind]` annotations for `BitVec`, and uses
`grind` to remove many proofs from `BitVec/Lemmas`.

---------

Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
2025-06-24 10:54:43 +00:00

7 lines
188 B
Text

open BitVec
example (x : BitVec (w+1)) : (cons x.msb (x.setWidth w)) = x := by
grind
example {x : BitVec v} (h : w ≤ v) : BitVec.setWidth w (-x) = -BitVec.setWidth w x := by
grind