Skip to content

Commit

Permalink
Update src/Init/Data/BitVec/Basic.lean
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em authored Sep 16, 2024
1 parent 54be414 commit 32114ff
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Init/Data/BitVec/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ instance : GetElem (BitVec w) Nat Bool fun _ i => i < w where
theorem getElem_eq_testBit_toNat (x : BitVec w) (i : Nat) (h : i < w) :
x[i] = x.toNat.testBit i := rfl

/-- This should become @[simp] after the getElem API has been completed. -/
theorem getLsbD_eq_getElem {x : BitVec w} {i : Nat} (h : i < w) :
x.getLsbD i = x[i] := by
simp [getLsbD, getElem_eq_testBit_toNat]
Expand Down

0 comments on commit 32114ff

Please sign in to comment.