-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
USize.size
inequalities (#6203)
This PR adds the theorems `le_usize_size` and `usize_size_le`, which make proving inequalities about `USize.size` easier. It also deprecates `usize_size_gt_zero` in favor of `usize_size_pos` (as that seems more consistent with our naming covention) and adds `USize.toNat_ofNat_of_lt_32` for dealing with small USize literals. It also moves `USize.ofNat32` and `USize.toUInt64` to `Init.Data.UInt.Basic` as neither are used in `Init.Prelude` anymore. --------- Co-authored-by: Kim Morrison <kim@tqft.net>
- Loading branch information
Showing
5 changed files
with
34 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters