chore: remove useless Nat.mul_one from proof (#6728)

This PR removes theorems `Nat.mul_one` to simplify a rewrite in the
proof of `BitVec.getMsbD_rotateLeft_of_lt`
This commit is contained in:
Luisa Cicolini 2025-01-21 17:00:19 +00:00 committed by GitHub
parent eb30249b11
commit 0c2fb34c82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3079,7 +3079,7 @@ theorem getMsbD_rotateLeft_of_lt {n w : Nat} {x : BitVec w} (hi : r < w):
· simp only [h₁, decide_true, Bool.true_and]
have h₂ : (r + n) < 2 * (w + 1) := by omega
congr 1
rw [← Nat.sub_mul_eq_mod_of_lt_of_le (n := 1) (by omega) (by omega), Nat.mul_one]
rw [← Nat.sub_mul_eq_mod_of_lt_of_le (n := 1) (by omega) (by omega)]
omega
· simp [h₁]