From a905623a7554b363204097fcd5057dc7cef7f074 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sun, 11 Aug 2024 10:50:03 +0100 Subject: [PATCH] chore: avoid non-terminal simp --- src/Init/Data/BitVec/Lemmas.lean | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Init/Data/BitVec/Lemmas.lean b/src/Init/Data/BitVec/Lemmas.lean index 3ccdfc14013b..148f578f235f 100644 --- a/src/Init/Data/BitVec/Lemmas.lean +++ b/src/Init/Data/BitVec/Lemmas.lean @@ -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} :