diff --git a/src/Init/Data/BitVec/Lemmas.lean b/src/Init/Data/BitVec/Lemmas.lean index 6b580f8c38c0..f93450e01d3f 100644 --- a/src/Init/Data/BitVec/Lemmas.lean +++ b/src/Init/Data/BitVec/Lemmas.lean @@ -1494,7 +1494,7 @@ theorem getElem_sshiftRight {x : BitVec w} {s i : Nat} (h : i < w) : apply BitVec.lt_of_getLsbD hlsb ยท simp [sshiftRight_eq_of_msb_true hmsb] -theorem toInt_sshiftRight_of_pos {x : BitVec w} {n : Nat} : +theorem toInt_sshiftRight {x : BitVec w} {n : Nat} : (x.sshiftRight n).toInt = x.toInt >>> n := by match w with | 0 => simp [BitVec.sshiftRight, toInt_ofInt, Int.bmod_def, toInt_zero_length]