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> |
||
|---|---|---|
| .. | ||
| Basic.lean | ||
| BasicAux.lean | ||
| Bitwise.lean | ||
| Lemmas.lean | ||
| Log2.lean | ||