Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
mhk119 committed Nov 8, 2024
1 parent 76b3e74 commit 6878a2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Init/Data/BitVec/Lemmas.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1249,6 +1249,7 @@ theorem toNat_ushiftRight_eq_zero (x : BitVec w) (n : Nat) (hn : w ≤ n) :
theorem toInt_ushiftRight_zero (x : BitVec w) :
(x >>> 0).toInt = x.toInt := by simp


@[simp]
theorem toInt_ushiftRight_pos (x : BitVec w) (n : Nat) (hn : 0 < n) :
(x >>> n).toInt = x.toNat >>> n := by
Expand Down

0 comments on commit 6878a2d

Please sign in to comment.