summaryrefslogtreecommitdiff
path: root/Common/BitVec.lean
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2025-10-10 00:30:19 +0200
committerAndreas Grois <andi@grois.info>2025-10-10 00:30:19 +0200
commit2a9261d1ba962deff9fcc1784be44563af513af5 (patch)
treee6c805e970924027723a159aa751e9aa0269ce7b /Common/BitVec.lean
parent671ccf18e506398fd8eb65ebac92ec6d2fd03ccd (diff)
Lean 4.18
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