Skip to content

Commit

Permalink
chore: fix deprecated usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tydeu committed Nov 28, 2024
1 parent 246ea00 commit a7c8d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Std/Data/DHashMap/Internal/Index.lean
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ cf. https://github.com/leanprover/lean4/issues/4157
⟨(scrambleHash hash).toUSize &&& (sz.toUSize - 1), by
-- Making this proof significantly less painful will be a good test for our USize API
by_cases h' : sz < USize.size
· rw [USize.and_toNat, ← USize.ofNat_one, USize.toNat_sub_of_le, USize.toNat_ofNat_of_lt]
· rw [USize.toNat_and, ← USize.ofNat_one, USize.toNat_sub_of_le, USize.toNat_ofNat_of_lt]
· refine Nat.lt_of_le_of_lt Nat.and_le_right (Nat.sub_lt h ?_)
rw [USize.toNat_ofNat_of_lt]
· exact Nat.one_pos
Expand Down

0 comments on commit a7c8d61

Please sign in to comment.