Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Grosser <github@grosser.es>
  • Loading branch information
bollu and tobiasgrosser authored Jul 27, 2024
1 parent b6e0b32 commit 6022cf9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Init/Data/BitVec/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,6 @@ instance {n} : HShiftRight (BitVec m) (BitVec n) (BitVec m) := ⟨fun x y => x >

def sshiftRight' (a : BitVec n) (s : BitVec m) : BitVec n := a.sshiftRight s.toNat


/-- Auxiliary function for `rotateLeft`, which does not take into account the case where
the rotation amount is greater than the bitvector width. -/
def rotateLeftAux (x : BitVec w) (n : Nat) : BitVec w :=
Expand Down
2 changes: 0 additions & 2 deletions src/Init/Data/BitVec/Bitblast.lean
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ theorem ushiftRight_rec_succ (x : BitVec w₁) (y : BitVec w₂) :
theorem ushiftRight_eq' (x : BitVec w) (y : BitVec w₂) :
x >>> y = x >>> y.toNat := by rfl


@[simp]
theorem BitVec.ushiftRight_zero (x : BitVec w) : x >>> 0 = x := by
simp [bv_toNat]
Expand Down Expand Up @@ -503,7 +502,6 @@ theorem shiftRight_eq_shiftRight_rec (x : BitVec ℘) (y : BitVec w₂) :
· simp [of_length_zero]
· simp [ushiftRight_rec_eq]


/- ### Arithmetic (sshiftRight) recurrence -/

@[simp]
Expand Down

0 comments on commit 6022cf9

Please sign in to comment.