Commit 2024-04-17 00:57 42466cc7
View on Github →chore(Associated): add simps, golf (#11435)
New simp
tags or simp
lemmas
associated_one_iff_isUnit
, associated_zero_iff_eq_zero
,
Associates.mk_eq_one
, Associates.mk_dvd_mk
,
Associates.mk_isRelPrime_iff
, Associates.mk_zero
,
Associates.quot_out_zero
, Associates.le_zero
,
Associates.prime_mk
, Associates.irreducible_mk
,
Associates.mk_dvdNotUnit_mk_iff
, Associates.factors_le
,
Associates.prod_factors
New gcongr
tags
Associates.factors_mono
, Associates.prod_mono
Change explicit args to implicit
Associates.prime_mk
, Associates.irreducible_mk
,
Associates.one_or_eq_of_le_of_prime
Change typeclass assumptions
- drop
[Nontrivial _]
here and there, mostly in cases when a lemma has_ ≠ _
assumption - drop all decidability assumptions
in
Associates.FactorSetMem
- drop decidability assumptions when they aren't needed to formulate a theorem
Use WithTop
API
Use WithTop.some
and ⊤
instead of Option.some
and none
in UniqueFactorizationDomain
.
Renames
Associates.isPrimal_iff
→Associates.isPrimal_mk
;Associates.mk_le_mk_iff_dvd_iff
→Associates.mk_le_mk_iff_dvd
;Associates.factors_0
→Associates.factors_zero
;Associates.factors_eq_none_iff_zero
→Associates.factors_eq_top_iff_zero