Centralizers of magmas and monoids #
Main definitions #
Submonoid.centralizer: the centralizer of a subset of a monoidAddSubmonoid.centralizer: the centralizer of a subset of an additive monoid
We provide Subgroup.centralizer, AddSubgroup.centralizer in other files.
The centralizer of a subset of a monoid M.
Instances For
The centralizer of a subset of an additive monoid.
Instances For
@[simp]
theorem
Submonoid.coe_centralizer
{M : Type u_1}
(S : Set M)
[Monoid M]
:
↑(centralizer S) = S.centralizer
@[simp]
theorem
AddSubmonoid.coe_centralizer
{M : Type u_1}
(S : Set M)
[AddMonoid M]
:
↑(centralizer S) = S.addCentralizer
theorem
Submonoid.mem_centralizer_iff
{M : Type u_1}
{S : Set M}
[Monoid M]
{z : M}
:
z ∈ centralizer S ↔ ∀ g ∈ S, g * z = z * g
theorem
AddSubmonoid.mem_centralizer_iff
{M : Type u_1}
{S : Set M}
[AddMonoid M]
{z : M}
:
z ∈ centralizer S ↔ ∀ g ∈ S, g + z = z + g
@[implicit_reducible]
instance
Submonoid.decidableMemCentralizer
{M : Type u_1}
{S : Set M}
[Monoid M]
(a : M)
[Decidable (∀ b ∈ S, b * a = a * b)]
:
Decidable (a ∈ centralizer S)
@[implicit_reducible]
instance
AddSubmonoid.decidableMemCentralizer
{M : Type u_1}
{S : Set M}
[AddMonoid M]
(a : M)
[Decidable (∀ b ∈ S, b + a = a + b)]
:
Decidable (a ∈ centralizer S)
@[simp]
theorem
Submonoid.centralizer_eq_top_iff_subset
{M : Type u_1}
[Monoid M]
{s : Set M}
:
centralizer s = ⊤ ↔ s ⊆ ↑(center M)
@[simp]
theorem
AddSubmonoid.centralizer_eq_top_iff_subset
{M : Type u_1}
[AddMonoid M]
{s : Set M}
:
centralizer s = ⊤ ↔ s ⊆ ↑(center M)
@[simp]
@[simp]
@[simp]
@[simp]
theorem
Submonoid.isMulCommutative_closure
(M : Type u_1)
[Monoid M]
{s : Set M}
(hcomm : ∀ a ∈ s, ∀ b ∈ s, a * b = b * a)
:
IsMulCommutative ↥(closure s)
If all the elements of a set s commute, then closure s is a commutative monoid.
theorem
AddSubmonoid.isAddCommutative_closure
(M : Type u_1)
[AddMonoid M]
{s : Set M}
(hcomm : ∀ a ∈ s, ∀ b ∈ s, a + b = b + a)
:
IsAddCommutative ↥(closure s)
If all the elements of a set s commute, then closure s forms an additive
commutative monoid.
@[reducible, inline, deprecated Submonoid.isMulCommutative_closure (since := "2026-03-09")]
abbrev
Submonoid.closureCommMonoidOfComm
(M : Type u_1)
[Monoid M]
{s : Set M}
(hcomm : ∀ a ∈ s, ∀ b ∈ s, a * b = b * a)
:
CommMonoid ↥(closure s)
If all the elements of a set s commute, then closure s is a commutative monoid.
Instances For
@[reducible, inline, deprecated Submonoid.isMulCommutative_closure (since := "2026-03-09")]
abbrev
AddSubmonoid.closureAddCommMonoidOfComm
(M : Type u_1)
[AddMonoid M]
{s : Set M}
(hcomm : ∀ a ∈ s, ∀ b ∈ s, a + b = b + a)
:
AddCommMonoid ↥(closure s)
If all the elements of a set s commute, then closure s forms an additive
commutative monoid.
Instances For
instance
Submonoid.instIsMulCommutative_closure
(M : Type u_1)
[Monoid M]
{S : Type u_2}
[SetLike S M]
[MulMemClass S M]
(s : S)
[IsMulCommutative ↥s]
:
IsMulCommutative ↥(closure ↑s)
instance
AddSubmonoid.instIsAddCommutative_closure
(M : Type u_1)
[AddMonoid M]
{S : Type u_2}
[SetLike S M]
[AddMemClass S M]
(s : S)
[IsAddCommutative ↥s]
:
IsAddCommutative ↥(closure ↑s)