From 2a9261d1ba962deff9fcc1784be44563af513af5 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Fri, 10 Oct 2025 00:30:19 +0200 Subject: Lean 4.18 --- Common/BitVec.lean | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Common/BitVec.lean') 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 -- cgit v1.2.3