Squares and even elements #
This file defines the subgroup of squares / even elements in an abelian group.
In a commutative semigroup S
, Subsemigroup.square S
is the subsemigroup of squares in S
.
Equations
- Subsemigroup.square S = { carrier := {s : S | IsSquare s}, mul_mem' := ⋯ }
Instances For
In a commutative additive semigroup S
, AddSubsemigroup.even S
is the subsemigroup of even elements in S
.
Equations
- AddSubsemigroup.even S = { carrier := {s : S | Even s}, add_mem' := ⋯ }
Instances For
@[simp]
@[simp]
@[simp]
@[simp]
In a commutative monoid M
, Submonoid.square M
is the submonoid of squares in M
.
Equations
- Submonoid.square M = { toSubsemigroup := Subsemigroup.square M, one_mem' := ⋯ }
Instances For
In a commutative additive monoid M
, AddSubmonoid.even M
is the submonoid of even elements in M
.
Equations
- AddSubmonoid.even M = { toAddSubsemigroup := AddSubsemigroup.even M, zero_mem' := ⋯ }
Instances For
@[simp]
theorem
Submonoid.square_toSubsemigroup
{M : Type u_1}
[CommMonoid M]
:
(square M).toSubsemigroup = Subsemigroup.square M
@[simp]
theorem
AddSubmonoid.even_toSubsemigroup
{M : Type u_1}
[AddCommMonoid M]
:
(even M).toAddSubsemigroup = AddSubsemigroup.even M
@[simp]
@[simp]
@[simp]
@[simp]
In an abelian group G
, Subgroup.square G
is the subgroup of squares in G
.
Equations
- Subgroup.square G = { toSubmonoid := Submonoid.square G, inv_mem' := ⋯ }
Instances For
In an abelian additive group G
, AddSubgroup.even G
is
the subgroup of even elements in G
.
Equations
- AddSubgroup.even G = { toAddSubmonoid := AddSubmonoid.even G, neg_mem' := ⋯ }
Instances For
@[simp]
theorem
Subgroup.square_toSubmonoid
{G : Type u_1}
[CommGroup G]
:
(square G).toSubmonoid = Submonoid.square G
@[simp]
theorem
AddSubgroup.even_toAddSubmonoid
{G : Type u_1}
[AddCommGroup G]
:
(even G).toAddSubmonoid = AddSubmonoid.even G
@[simp]
@[simp]