Commit 2024-03-26 23:09 5bc68d9f
View on Github →chore(Data/Nat): Use Std lemmas (#11661)
Move basic Nat
lemmas from Data.Nat.Order.Basic
and Data.Nat.Pow
to Data.Nat.Defs
. Most proofs need adapting, but that's easily solved by replacing the general mathlib lemmas by the new Std Nat
-specific lemmas and using omega
.
Other changes
- Move the last few lemmas left in
Data.Nat.Pow
toAlgebra.GroupPower.Order
- Move the deprecated aliases from
Data.Nat.Pow
toAlgebra.GroupPower.Order
- Move the
bit
/bit0
/bit1
lemmas fromData.Nat.Order.Basic
toData.Nat.Bits
- Fix some fallout from not importing
Data.Nat.Order.Basic
anymore - Add a few
Nat
-specific lemmas to help fix the fallout (look fornolint simpNF
) - Turn
Nat.mul_self_le_mul_self_iff
andNat.mul_self_lt_mul_self_iff
around (they were misnamed) - Make more arguments to
Nat.one_lt_pow
implicit