Skip to content

Commit

Permalink
chore: avoid non-terminal simp
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasgrosser committed Aug 11, 2024
1 parent 7351639 commit a905623
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 @@ -164,7 +164,7 @@ theorem toNat_zero (n : Nat) : (0#n).toNat = 0 := by trivial

@[simp] theorem sub_toNat_mod_cancel {x : BitVec w} (h : ¬ x = 0#w) :
(2 ^ w - x.toNat) % 2 ^ w = 2 ^ w - x.toNat := by
simp [bv_toNat] at h
simp only [toNat_eq, toNat_ofNat, Nat.zero_mod] at h
rw [Nat.mod_eq_of_lt (by omega)]

@[simp] theorem sub_sub_toNat_cancel {x : BitVec w} :
Expand Down

0 comments on commit a905623

Please sign in to comment.