lean4-htt/tests/lean/run/bv_llvm.lean
Henrik Böving da9c68a37a feat: import LeanSAT's tactic frontends
Co-authored-by: Markus Himmel <markus@lean-fro.org>
2024-08-28 18:14:39 +02:00

12 lines
362 B
Text

import Std.Tactic.BVDecide
theorem remAnd_a_thm (x : _root_.BitVec 32) :
x + x.sdiv 8#32 * 4294967288#32 &&& 1#32 = x &&& 1#32 := by
bv_decide
theorem test21_thm (x : _root_.BitVec 8) :
x.sshiftRight 7 &&& 1#8 = x >>> 7 := by
bv_decide
theorem bitvec_AndOrXor_1683_2 : ∀ (a b : BitVec 64), (b ≤ a) || (a != b) = true := by
intros; bv_decide