Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Grosser <[email protected]>
  • Loading branch information
bollu and tobiasgrosser authored Sep 5, 2024
1 parent 4404af4 commit 29acadb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Init/Data/BitVec/Bitblast.lean
Original file line number Diff line number Diff line change
Expand Up @@ -743,11 +743,9 @@ def divSubtractShiftProof (qr : DivModState w) (h : qr.LawfulShiftSubtract wr w
case pos.hrWidth => apply toNat_shiftConcat_lt_of_lt_of_lt_two_pow <;> omega
case pos.hqWidth => apply toNat_shiftConcat_lt_of_lt_of_lt_two_pow <;> omega
case pos.hdiv =>
simp [qr.toNat_shiftRight_sub_one_eq h,
simp [qr.toNat_shiftRight_sub_one_eq h, h.hdiv, this,
toNat_shiftConcat_eq_of_lt_of_lt_two_pow (qr.wr_lt_w h) h.hrWidth,
h.hdiv,
toNat_shiftConcat_eq_of_lt_of_lt_two_pow (qr.wr_lt_w h) h.hqWidth,
this]
toNat_shiftConcat_eq_of_lt_of_lt_two_pow (qr.wr_lt_w h) h.hqWidth]
omega
· simp only [rltd, ↓reduceIte]
constructor <;> try bv_omega
Expand Down

0 comments on commit 29acadb

Please sign in to comment.