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
tobiasgrosser and kim-em authored Sep 16, 2024
1 parent 6892ddc commit fc67298
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 @@ -528,7 +528,7 @@ theorem getElem_truncate (m : Nat) (x : BitVec n) (i : Nat) (hi : i < m) :
simp [getElem?_eq, getElem_zeroExtend]

theorem getElem?_truncate (m : Nat) (x : BitVec n) (i : Nat) :
(truncate m x)[i]? = if i < m then some (x.getLsbD i) else none :=
(truncate m x)[i]? = if h : i < m then some x[i] else none :=
getElem?_zeroExtend m x i

theorem getLsbD_truncate (m : Nat) (x : BitVec n) (i : Nat) :
Expand Down

0 comments on commit fc67298

Please sign in to comment.