Skip to content

Commit

Permalink
chore: undo change
Browse files Browse the repository at this point in the history
  • Loading branch information
bollu committed Sep 8, 2024
1 parent 6c94430 commit d50909f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Init/Data/BitVec/Lemmas.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,10 @@ theorem signExtend_eq_not_zeroExtend_not_of_msb_false {x : BitVec w} {v : Nat} (
x.signExtend v = x.zeroExtend v := by
ext i
by_cases hv : i < v
· simp [signExtend, toInt_eq_msb_cond, hmsb]
· simp only [signExtend, getLsbD, getLsbD_zeroExtend, hv, decide_True, Bool.true_and, toNat_ofInt,
BitVec.toInt_eq_msb_cond, hmsb, ↓reduceIte, reduceCtorEq]
rw [Int.ofNat_mod_ofNat, Int.toNat_ofNat, Nat.testBit_mod_two_pow]
simp [BitVec.testBit_toNat]
· simp only [getLsbD_zeroExtend, hv, decide_False, Bool.false_and]
apply getLsbD_ge
omega
Expand Down

0 comments on commit d50909f

Please sign in to comment.