Commit 2021-08-23 17:55 98a63294
View on Github →refactor(algebra/group_power): use covariant_class
(#8713)
Main changes
- use
covariant_class
instead ofcanonically_ordered_*
orordered_add_*
as an assumption in many lemmas; - move some lemmas to the root namespace;
- use
to_additive
for more lemmas;
Detailed list of API changes
canonically_ordered_comm_semiring.pow_le_pow_of_le_left
:- rename to
pow_le_pow_of_le_left'
; - assume
[covariant_class M M (*) (≤)]
; - use
to_additive
to generatensmul_le_nsmul_of_le_right
;
- rename to
canonically_ordered_comm_semiring.one_le_pow_of_one_le
:- rename to
one_le_pow_of_one_le
'; - assume
[covariant_class M M (*) (≤)]
; - use
to_additive
to generatensmul_nonneg
;
- rename to
canonically_ordered_comm_semiring.pow_le_one
:- rename to
pow_le_one'
; - assume
[covariant_class M M (*) (≤)]
; - use
to_additive
to generatensmul_nonpos
;
- rename to
- add
pow_le_pow'
, generatensmul_le_nsmul
; - add
pow_le_pow_of_le_one'
andnsmul_le_nsmul_of_nonpos
; - add
one_lt_pow'
, generatensmul_pos
;- as a side effect,
nsmul_pos
now assumesn ≠ 0
instead of0 < n
.
- as a side effect,
- add
pow_lt_one'
, generatensmul_neg
; - add
pow_lt_pow'
, generatensmul_lt_nsmul
; - generalize
one_le_pow_iff
andpow_le_one_iff
, generatensmul_nonneg_iff
andnsmul_nonpos_iff
; - generalize
one_lt_pow_iff
,pow_lt_one_iff
, andpow_eq_one_iff
, generatensmul_pos_iff
,nsmul_neg_iff
, andnsmul_eq_zero_iff
; - add
one_le_gpow
, generategsmul_nonneg
; - rename
eq_of_sq_eq_sq
tosq_eq_sq
, golf; - drop
eq_one_of_pow_eq_one
in favor of theiff
versionpow_eq_one_iff
; - add missing instance
nat.ordered_comm_semiring
;
Misc changes
- replace some proofs about
nat.pow
with references to generic lemmas; - add
nnreal.coe_eq_one
;