Mathlib.Algebra.Group.Even
48 declarations. Mathlib docs · Source
def IsSquare E1 #
{α : Type u_2} → [Mul α] → α → Prop
An element a of a type α with multiplication satisfies IsSquare a if a = r * r,
for some root r : α.
def Even E1 #
{α : Type u_2} → [Add α] → α → Prop
An element a of a type α with addition satisfies Even a if a = r + r,
for some r : α.
theorem isSquare_iff_exists_mul_self E1 #
∀ {α : Type u_2} [inst : Mul α] (a : α), IsSquare a ↔ ∃ r, a = r * r
theorem even_iff_exists_add_self E1 #
∀ {α : Type u_2} [inst : Add α] (a : α), Even a ↔ ∃ r, a = r + r
theorem IsSquare.exists_mul_self E1 #
∀ {α : Type u_2} [inst : Mul α] (a : α), IsSquare a → ∃ r, a = r * r
Alias of the forward direction of isSquare_iff_exists_mul_self.
theorem Even.exists_add_self E1 #
∀ {α : Type u_2} [inst : Add α] (a : α), Even a → ∃ r, a = r + r
Alias of the forward direction of even_iff_exists_add_self.
theorem Even.add_self E0 #
∀ {α : Type u_2} [inst : Add α] (r : α), Even (r + r)
theorem IsSquare.mul_self E0 #
∀ {α : Type u_2} [inst : Mul α] (r : α), IsSquare (r * r)
theorem even_op_iff E0 #
∀ {α : Type u_2} [inst : Add α] {a : α}, Even (AddOpposite.op a) ↔ Even a
theorem isSquare_op_iff E0 #
∀ {α : Type u_2} [inst : Mul α] {a : α}, IsSquare (MulOpposite.op a) ↔ IsSquare a
theorem even_unop_iff E0 #
∀ {α : Type u_2} [inst : Add α] {a : αᵃᵒᵖ}, Even (AddOpposite.unop a) ↔ Even a
theorem isSquare_unop_iff E0 #
∀ {α : Type u_2} [inst : Mul α] {a : αᵐᵒᵖ}, IsSquare (MulOpposite.unop a) ↔ IsSquare a
instance instDecidablePredMulOppositeIsSquare E0 #
{α : Type u_2} → [inst : Mul α] → [DecidablePred IsSquare] → DecidablePred IsSquare
instance instDecidablePredAddOppositeEven E0 #
{α : Type u_2} → [inst : Add α] → [DecidablePred Even] → DecidablePred Even
theorem even_ofMul_iff E0 #
∀ {α : Type u_2} [inst : Mul α] {a : α}, Even (Additive.ofMul a) ↔ IsSquare a
theorem isSquare_toMul_iff E0 #
∀ {α : Type u_2} [inst : Mul α] {a : Additive α}, IsSquare (Additive.toMul a) ↔ Even a
instance Additive.instDecidablePredEven E0 #
{α : Type u_2} → [inst : Mul α] → [DecidablePred IsSquare] → DecidablePred Even
theorem isSquare_ofAdd_iff E0 #
∀ {α : Type u_2} [inst : Add α] {a : α}, IsSquare (Multiplicative.ofAdd a) ↔ Even a
theorem even_toAdd_iff E0 #
∀ {α : Type u_2} [inst : Add α] {a : Multiplicative α}, Even (Multiplicative.toAdd a) ↔ IsSquare a
instance Multiplicative.instDecidablePredIsSquare E0 #
{α : Type u_2} → [inst : Add α] → [DecidablePred Even] → DecidablePred IsSquare
theorem Even.zero E0 #
∀ {α : Type u_2} [inst : AddZeroClass α], Even 0
theorem IsSquare.one E0 #
∀ {α : Type u_2} [inst : MulOneClass α], IsSquare 1
theorem IsSquare.map E1 #
∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : MulOneClass α] [inst_1 : MulOneClass β] [inst_2 : FunLike F α β]
[MonoidHomClass F α β] {a : α} (f : F), IsSquare a → IsSquare (f a)
theorem Even.map E1 #
∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : AddZeroClass α] [inst_1 : AddZeroClass β]
[inst_2 : FunLike F α β] [AddMonoidHomClass F α β] {a : α} (f : F), Even a → Even (f a)
theorem even_subset_image_even E1 #
∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : AddZeroClass α] [inst_1 : AddZeroClass β]
[inst_2 : FunLike F α β] [AddMonoidHomClass F α β] {f : F}, Function.Surjective ⇑f → {b | Even b} ⊆ ⇑f '' {a | Even a}
theorem isSquare_subset_image_isSquare E1 #
∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : MulOneClass α] [inst_1 : MulOneClass β] [inst_2 : FunLike F α β]
[MonoidHomClass F α β] {f : F}, Function.Surjective ⇑f → {b | IsSquare b} ⊆ ⇑f '' {a | IsSquare a}
theorem even_iff_exists_two_nsmul E1 #
∀ {α : Type u_2} [inst : AddMonoid α] (a : α), Even a ↔ ∃ r, a = 2 • r
theorem isSquare_iff_exists_sq E1 #
∀ {α : Type u_2} [inst : Monoid α] (a : α), IsSquare a ↔ ∃ r, a = r ^ 2
theorem Even.exists_two_nsmul E1 #
∀ {α : Type u_2} [inst : AddMonoid α] (a : α), Even a → ∃ r, a = 2 • r
Alias of the forwards direction of even_iff_exists_two_nsmul.
theorem IsSquare.exists_sq E1 #
∀ {α : Type u_2} [inst : Monoid α] (a : α), IsSquare a → ∃ r, a = r ^ 2
Alias of the forward direction of isSquare_iff_exists_sq.
theorem IsSquare.sq E1 #
∀ {α : Type u_2} [inst : Monoid α] (r : α), IsSquare (r ^ 2)
theorem Even.two_nsmul E1 #
∀ {α : Type u_2} [inst : AddMonoid α] (r : α), Even (2 • r)
theorem Even.nsmul_right E1 #
∀ {α : Type u_2} [inst : AddMonoid α] {a : α} (n : ℕ), Even a → Even (n • a)
theorem IsSquare.pow E1 #
∀ {α : Type u_2} [inst : Monoid α] {a : α} (n : ℕ), IsSquare a → IsSquare (a ^ n)
theorem Even.isSquare_pow E1 #
∀ {α : Type u_2} [inst : Monoid α] {n : ℕ}, Even n → ∀ (a : α), IsSquare (a ^ n)
theorem Even.nsmul_left E1 #
∀ {α : Type u_2} [inst : AddMonoid α] {n : ℕ}, Even n → ∀ (a : α), Even (n • a)
theorem IsSquare.mul E1 #
∀ {α : Type u_2} [inst : CommSemigroup α] {a b : α}, IsSquare a → IsSquare b → IsSquare (a * b)
theorem Even.add E1 #
∀ {α : Type u_2} [inst : AddCommSemigroup α] {a b : α}, Even a → Even b → Even (a + b)
theorem isSquare_inv E0 #
∀ {α : Type u_2} [inst : DivisionMonoid α] {a : α}, IsSquare a⁻¹ ↔ IsSquare a
theorem even_neg E0 #
∀ {α : Type u_2} [inst : SubtractionMonoid α] {a : α}, Even (-a) ↔ Even a
theorem IsSquare.inv E1 #
∀ {α : Type u_2} [inst : DivisionMonoid α] {a : α}, IsSquare a → IsSquare a⁻¹
Alias of the reverse direction of isSquare_inv.
theorem Even.neg E1 #
∀ {α : Type u_2} [inst : SubtractionMonoid α] {a : α}, Even a → Even (-a)
Alias of the reverse direction of even_neg.
theorem Even.zsmul_right E1 #
∀ {α : Type u_2} [inst : SubtractionMonoid α] {a : α} (n : ℤ), Even a → Even (n • a)
theorem IsSquare.zpow E1 #
∀ {α : Type u_2} [inst : DivisionMonoid α] {a : α} (n : ℤ), IsSquare a → IsSquare (a ^ n)
theorem IsSquare.div E1 #
∀ {α : Type u_2} [inst : DivisionCommMonoid α] {a b : α}, IsSquare a → IsSquare b → IsSquare (a / b)
theorem Even.sub E1 #
∀ {α : Type u_2} [inst : SubtractionCommMonoid α] {a b : α}, Even a → Even b → Even (a - b)
theorem Even.zsmul_left E0 #
∀ {α : Type u_2} [inst : AddGroup α] {n : ℤ}, Even n → ∀ (a : α), Even (n • a)
theorem Even.isSquare_zpow E0 #
∀ {α : Type u_2} [inst : Group α] {n : ℤ}, Even n → ∀ (a : α), IsSquare (a ^ n)