diff --git a/src/Init/Data/BitVec/Bitblast.lean b/src/Init/Data/BitVec/Bitblast.lean index ff916cf7d4fe..1fa7a3166d1a 100644 --- a/src/Init/Data/BitVec/Bitblast.lean +++ b/src/Init/Data/BitVec/Bitblast.lean @@ -403,7 +403,7 @@ theorem getLsbD_neg {i : Nat} {x : BitVec w} : rw [carry_succ_one _ _ (by omega), ← Bool.xor_not, ← decide_not] simp only [add_one_ne_zero, decide_false, getLsbD_not, and_eq_true, decide_eq_true_eq, not_eq_eq_eq_not, Bool.not_true, false_bne, not_exists, _root_.not_and, not_eq_true, - bne_left_inj, decide_eq_decide] + bne_right_inj, decide_eq_decide] constructor · rintro h j hj; exact And.right <| h j (by omega) · rintro h j hj; exact ⟨by omega, h j (by omega)⟩ @@ -419,7 +419,7 @@ theorem getMsbD_neg {i : Nat} {x : BitVec w} : simp [hi]; omega case pos => have h₁ : w - 1 - i < w := by omega - simp only [hi, decide_true, h₁, Bool.true_and, Bool.bne_left_inj, decide_eq_decide] + simp only [hi, decide_true, h₁, Bool.true_and, Bool.bne_right_inj, decide_eq_decide] constructor · rintro ⟨j, hj, h⟩ refine ⟨w - 1 - j, by omega, by omega, by omega, _root_.cast ?_ h⟩