[Merged by Bors] - chore(Algebra): use IsMulCommutative to spell Std.Commutative (· * ·)#37448
Conversation
PR summary 5d32f3eac7Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
…ff_isLieAbelian`
|
!bench |
|
Benchmark results for 6d77e2a against d4d96de are in. There are no significant changes. @SnirBroshi
Medium changes (1🟥)
Small changes (5🟥)
|
Mathlib/Algebra/Group/Hom/Defs.lean
Outdated
| obtain ⟨b', hb'⟩ := is_surj b | ||
| simp only [← ha', ← hb', ← map_mul] | ||
| rw [is_comm.comm] | ||
| rw [is_comm.is_comm.comm] |
There was a problem hiding this comment.
Can you not use mul_comm' here (and everywhere else)?
There was a problem hiding this comment.
Done except for SpecificGroups/Dihedral.lean where it can't easily infer the type,
and h'.is_comm.comm (r 1) (sr 0) seems better than mul_comm' (r (n := n + 3) 1) (sr 0)
|
Just testing the !bench |
|
Benchmark results for 0c2121f against d4d96de are in. There are no significant changes. @SnirBroshi
Medium changes (2🟥)
Small changes (1✅, 6🟥)
|
|
Hmm switching to |
|
!radar |
|
Benchmark results for 7292add against d4d96de are in. There are no significant changes. @tb65536
Medium changes (2🟥)
Small changes (4🟥)
|
|
Benchmark results for c687a3d against de14307 are in. Significant changes detected! @tb65536
No significant changes detected. |
|
!bench |
|
Benchmark results for c687a3d against de14307 are in. Significant changes detected! @SnirBroshi
No significant changes detected. |
|
!bench |
|
Benchmark results for 98005e1 against 5d32f3e are in. There are no significant changes. @SnirBroshi
Medium changes (2🟥)
Small changes (1✅, 4🟥)
|
tb65536
left a comment
There was a problem hiding this comment.
Thanks!
maintainer merge
|
🚀 Pull request has been placed on the maintainer queue by tb65536. |
|
Oh sorry, I thought we never add deprecations to instances, even explicitly named ones. Added! |
adomani
left a comment
There was a problem hiding this comment.
Thanks!
Regarding the deprecations, I am probably being overcareful, but when you are proving that a group is commutative, you are more likely to call on an instance explicitly inside a proof. In such situations, the deprecations are helpful.
bors merge
… ·)` (#37448) and use `IsAddCommutative` to spell `Std.Commutative (· + ·)`. Also makes `Is{Mul/Add}Commutative.is_comm` instances so that core lemmas (or `grind`) can synthesize `Std.Commutative`.
|
Pull request successfully merged into master. Build succeeded:
|
IsMulCommutative to spell Std.Commutative (· * ·)IsMulCommutative to spell Std.Commutative (· * ·)
…heorem Corrects a mistake I made in leanprover-community#37448
| @[deprecated inferInstance (since := "2026-04-09")] | ||
| instance IsQuadraticExtension.isMulCommutative_galoisGroup : IsMulCommutative Gal(K/F) := | ||
| inferInstance |
… ·)` (leanprover-community#37448) and use `IsAddCommutative` to spell `Std.Commutative (· + ·)`. Also makes `Is{Mul/Add}Commutative.is_comm` instances so that core lemmas (or `grind`) can synthesize `Std.Commutative`.
…heorem (leanprover-community#37822) Corrects a mistake I made in leanprover-community#37448
and use
IsAddCommutativeto spellStd.Commutative (· + ·).Also makes
Is{Mul/Add}Commutative.is_comminstances so that core lemmas (orgrind) can synthesizeStd.Commutative.Hopefully this is useful since #36549 was merged.