Skip to content

Commit

Permalink
Update src/Init/Data/BitVec/Lemmas.lean
Browse files Browse the repository at this point in the history
Co-authored-by: Kim Morrison <[email protected]>
  • Loading branch information
mhk119 and kim-em authored Jan 9, 2025
1 parent 82c9de4 commit 064aa35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Init/Data/BitVec/Lemmas.lean
Original file line number Diff line number Diff line change
Expand Up @@ -2901,7 +2901,7 @@ theorem toNat_rotateLeft {x : BitVec w} {r : Nat} :

/-! ## Rotate Right -/

/--`rotateRight` is defined in terms of left and right shifts. -/
/-- `rotateRight` is defined in terms of left and right shifts. -/
theorem rotateRight_def {x : BitVec w} {r : Nat} :
x.rotateRight r = (x >>> (r % w)) ||| (x <<< (w - r % w)) := by
simp only [rotateRight, rotateRightAux]
Expand Down

0 comments on commit 064aa35

Please sign in to comment.