summaryrefslogtreecommitdiff
path: root/Common/BitVec.lean
diff options
context:
space:
mode:
Diffstat (limited to 'Common/BitVec.lean')
-rw-r--r--Common/BitVec.lean4
1 files changed, 2 insertions, 2 deletions
diff --git a/Common/BitVec.lean b/Common/BitVec.lean
index ad46efb..31af340 100644
--- a/Common/BitVec.lean
+++ b/Common/BitVec.lean
@@ -1,8 +1,8 @@
def BitVec.setBitTrue {n : Nat} (i : Fin n) (a : BitVec n) : BitVec n :=
- a ||| BitVec.ofNatLt (1 <<< i.val) (by simp[Nat.shiftLeft_eq, i.isLt, Nat.pow_lt_pow_iff_right])
+ a ||| BitVec.ofNatLT (1 <<< i.val) (by simp[Nat.shiftLeft_eq, i.isLt, Nat.pow_lt_pow_iff_right])
def BitVec.setBitFalse {n : Nat} (i : Fin n) (a : BitVec n) : BitVec n :=
- a &&& BitVec.not (BitVec.ofNatLt (1 <<< i.val) (by simp[Nat.shiftLeft_eq, i.isLt, Nat.pow_lt_pow_iff_right]))
+ a &&& BitVec.not (BitVec.ofNatLT (1 <<< i.val) (by simp[Nat.shiftLeft_eq, i.isLt, Nat.pow_lt_pow_iff_right]))
def BitVec.setBit {n : Nat} (i : Fin n) (v : Bool) (a : BitVec n) : BitVec n :=
if v then