Open tydeu opened 1 day ago
These inequalities could also be named USize.le_size
and USize.size_le
, but I stuck with the current usize_size
convention. This also avoids a clash with batteries, which already defines them and uses 2 ^ _
to represent the size instead of the computed value. I used the computed value as that is also current core convention.
Mathlib CI status (docs):
nightly-with-mathlib
branch. Try git rebase 43dfc2a25fc64095fb76d576802a70d88773fea8 --onto 884a9ea2ff70bb4d0c6da4a1c23ffc26c3a974ee
. (2024-11-25 13:49:54)
This PR adds the theorems
le_usize_size
andusize_size_le
, which make proving inequalities aboutUSize.size
easier.It also deprecates
usize_size_gt_zero
in favor ofusize_size_pos
(as that seems more consistent with our naming covention) and addsUSize.toNat_ofNat_of_lt32
for dealing with small USize literals.It also moves
USize.ofNat32
andUSize.toUInt64
toInit.Data.UInt.Basic
as neither are used inInit.Prelude
anymore.