Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasgrosser committed Jun 3, 2024
1 parent e3002eb commit 1664e57
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Init/Data/BitVec/Lemmas.lean
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,11 @@ theorem Int.mod_lt (a : Int) (b: Nat) (h : a < 0) (h2 : -a < b): a % b = b - ((-
rw [Int.sub_eq_add_neg]
rw [Int.neg_sub]
norm_cast
-- here the negSucc comes in
have y : x.toNat + (2 ^ i - 1) - (2 ^ n - 1) = x.toNat + (2 ^ i) - (2 ^ n) := by omega
rw [y]
have yy : ((((2 ^ i):Nat):Int) + (↑x.toNat - 2 ^ n)).toNat = 2 ^ i + x.toNat - 2 ^ n := by omega
rw [yy]
omega
· simp at rr
simp [rr]
have tt := BitVec.toNat_lt_of_msb_false rr
Expand Down

0 comments on commit 1664e57

Please sign in to comment.