The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V05. Groups

Mathlib.Algebra.Group.Torsion

59 declarations and 2 deprecated aliases. Mathlib docs · Source

Torsion-free monoids and groups

This file proves lemmas about torsion-free monoids. A monoid M is torsion-free if n • · : M → M is injective for all non-zero natural numbers n.

instance instNoNatZeroDivisorsOfHasUniqueDiv E0 #

∀ {M : Type u_1} [inst : AddCommMonoid M] [HasUniqueDiv M], Lean.Grind.NoNatZeroDivisors M

instance insthasUniqueDivOfSubsingleton E0 #

∀ {M : Type u_1} [inst : AddMonoid M] [Subsingleton M], HasUniqueDiv M

instance instHasUniqueRootsOfSubsingleton E0 #

∀ {M : Type u_1} [inst : Monoid M] [Subsingleton M], HasUniqueRoots M

theorem AddCommute.nsmul_right_inj E1 #

∀ {M : Type u_1} [inst : AddMonoid M] [IsAddTorsionFree M] {n : ℕ} {a b : M},
  AddCommute a b → n ≠ 0 → (n • a = n • b ↔ a = b)

theorem Commute.pow_left_inj E1 #

∀ {M : Type u_1} [inst : Monoid M] [IsMulTorsionFree M] {n : ℕ} {a b : M}, Commute a b → n ≠ 0 → (a ^ n = b ^ n ↔ a = b)

theorem nsmul_eq_zero_iff_right E1 #

∀ {M : Type u_1} [inst : AddMonoid M] [IsAddTorsionFree M] {n : ℕ} {a : M}, n ≠ 0 → (n • a = 0 ↔ a = 0)

theorem pow_eq_one_iff_left E1 #

∀ {M : Type u_1} [inst : Monoid M] [IsMulTorsionFree M] {n : ℕ} {a : M}, n ≠ 0 → (a ^ n = 1 ↔ a = 1)

theorem pow_eq_one_iff E0 #

∀ {M : Type u_1} [inst : Monoid M] [IsMulTorsionFree M] {n : ℕ} {a : M}, a ^ n = 1 ↔ a = 1 ∨ n = 0

theorem nsmul_eq_zero_iff E0 #

∀ {M : Type u_1} [inst : AddMonoid M] [IsAddTorsionFree M] {n : ℕ} {a : M}, n • a = 0 ↔ a = 0 ∨ n = 0

theorem pow_eq_one_iff_right E1 #

∀ {M : Type u_1} [inst : Monoid M] [IsMulTorsionFree M] {n : ℕ} {a : M}, a ≠ 1 → (a ^ n = 1 ↔ n = 0)

theorem nsmul_eq_zero_iff_left E1 #

∀ {M : Type u_1} [inst : AddMonoid M] [IsAddTorsionFree M] {n : ℕ} {a : M}, a ≠ 0 → (n • a = 0 ↔ n = 0)

theorem sq_eq_one E1 #

∀ {M : Type u_1} [inst : Monoid M] [IsMulTorsionFree M] {a : M}, a ^ 2 = 1 ↔ a = 1

See sq_eq_one_iff for a version that holds in rings.

theorem two_nsmul_eq_zero E1 #

∀ {M : Type u_1} [inst : AddMonoid M] [IsAddTorsionFree M] {a : M}, 2 • a = 0 ↔ a = 0

theorem pow_left_inj E1 #

∀ {M : Type u_1} [inst : Monoid M] [HasUniqueRoots M] {n : ℕ} {a b : M}, n ≠ 0 → (a ^ n = b ^ n ↔ a = b)

theorem nsmul_right_inj E1 #

∀ {M : Type u_1} [inst : AddMonoid M] [HasUniqueDiv M] {n : ℕ} {a b : M}, n ≠ 0 → (n • a = n • b ↔ a = b)

theorem IsAddTorsionFree.nsmul_left_injective E1 #

∀ {M : Type u_1} [inst : AddCancelMonoid M] [IsAddTorsionFree M] {a : M}, a ≠ 0 → Function.Injective fun n ↦ n • a

theorem IsMulTorsionFree.pow_right_injective E1 #

∀ {M : Type u_1} [inst : CancelMonoid M] [IsMulTorsionFree M] {a : M}, a ≠ 1 → Function.Injective fun n ↦ a ^ n

theorem IsAddTorsionFree.nsmul_left_injective_iff E0 #

∀ {M : Type u_1} [inst : AddCancelMonoid M] [IsAddTorsionFree M] {a : M}, (Function.Injective fun n ↦ n • a) ↔ a ≠ 0

theorem IsMulTorsionFree.pow_right_injective_iff E0 #

∀ {M : Type u_1} [inst : CancelMonoid M] [IsMulTorsionFree M] {a : M}, (Function.Injective fun n ↦ a ^ n) ↔ a ≠ 1

theorem IsAddTorsionFree.nsmul_left_inj E0 #

∀ {M : Type u_1} [inst : AddCancelMonoid M] [IsAddTorsionFree M] {a : M}, a ≠ 0 → ∀ {n m : ℕ}, n • a = m • a ↔ n = m

theorem IsMulTorsionFree.pow_right_inj E0 #

∀ {M : Type u_1} [inst : CancelMonoid M] [IsMulTorsionFree M] {a : M}, a ≠ 1 → ∀ {n m : ℕ}, a ^ n = a ^ m ↔ n = m

theorem IsMulTorsionFree.hasUniqueRoots E1 #

∀ {M : Type u_1} [inst : CommMonoid M] [IsMulTorsionFree M], HasUniqueRoots M

A commutative torsion-free monoid has unique roots.

This is not an instance, to avoid an expensive instance loop with HasUniqueRoots M → IsMulTorsionFree M.

theorem IsAddTorsionFree.hasUniqueDiv E1 #

∀ {M : Type u_1} [inst : AddCommMonoid M] [IsAddTorsionFree M], HasUniqueDiv M

A commutative torsion-free additive monoid has unique divisibility.

This is not an instance, to avoid an expensive instance loop with HasUniqueDiv M → IsAddTorsionFree M.

theorem Commute.zpow_left_inj E1 #

∀ {G : Type u_2} [inst : Group G] {n : ℤ} {a b : G} [IsMulTorsionFree G], Commute a b → n ≠ 0 → (a ^ n = b ^ n ↔ a = b)

theorem AddCommute.zsmul_right_inj E1 #

∀ {G : Type u_2} [inst : AddGroup G] {n : ℤ} {a b : G} [IsAddTorsionFree G],
  AddCommute a b → n ≠ 0 → (n • a = n • b ↔ a = b)

theorem IsMulTorsionFree.zpow_eq_one_iff_left E1 #

∀ {G : Type u_2} [inst : Group G] {n : ℤ} {a : G} [IsMulTorsionFree G], n ≠ 0 → (a ^ n = 1 ↔ a = 1)

theorem IsAddTorsionFree.zsmul_eq_zero_iff_right E1 #

∀ {G : Type u_2} [inst : AddGroup G] {n : ℤ} {a : G} [IsAddTorsionFree G], n ≠ 0 → (n • a = 0 ↔ a = 0)

theorem IsMulTorsionFree.zpow_eq_one_iff E0 #

∀ {G : Type u_2} [inst : Group G] {n : ℤ} {a : G} [IsMulTorsionFree G], a ^ n = 1 ↔ a = 1 ∨ n = 0

theorem IsAddTorsionFree.zsmul_eq_zero_iff E0 #

∀ {G : Type u_2} [inst : AddGroup G] {n : ℤ} {a : G} [IsAddTorsionFree G], n • a = 0 ↔ a = 0 ∨ n = 0

theorem IsMulTorsionFree.zpow_eq_one_iff_right E1 #

∀ {G : Type u_2} [inst : Group G] {n : ℤ} {a : G} [IsMulTorsionFree G], a ≠ 1 → (a ^ n = 1 ↔ n = 0)

theorem IsAddTorsionFree.zsmul_eq_zero_iff_left E1 #

∀ {G : Type u_2} [inst : AddGroup G] {n : ℤ} {a : G} [IsAddTorsionFree G], a ≠ 0 → (n • a = 0 ↔ n = 0)

theorem IsMulTorsionFree.zpow_right_injective_iff E0 #

∀ {G : Type u_2} [inst : Group G] {a : G} [IsMulTorsionFree G], (Function.Injective fun x ↦ a ^ x) ↔ a ≠ 1

theorem IsAddTorsionFree.zsmul_left_injective_iff E0 #

∀ {G : Type u_2} [inst : AddGroup G] {a : G} [IsAddTorsionFree G], (Function.Injective fun x ↦ x • a) ↔ a ≠ 0

theorem IsAddTorsionFree.zsmul_left_injective E1 #

∀ {G : Type u_2} [inst : AddGroup G] {a : G} [IsAddTorsionFree G], a ≠ 0 → Function.Injective fun x ↦ x • a

Alias of the reverse direction of IsAddTorsionFree.zsmul_left_injective_iff.

theorem IsMulTorsionFree.zpow_right_injective E1 #

∀ {G : Type u_2} [inst : Group G] {a : G} [IsMulTorsionFree G], a ≠ 1 → Function.Injective fun x ↦ a ^ x

Alias of the reverse direction of IsMulTorsionFree.zpow_right_injective_iff.

theorem IsAddTorsionFree.zsmul_left_inj E0 #

∀ {G : Type u_2} [inst : AddGroup G] {a : G} [IsAddTorsionFree G], a ≠ 0 → ∀ {m n : ℤ}, m • a = n • a ↔ m = n

theorem IsMulTorsionFree.zpow_right_inj E0 #

∀ {G : Type u_2} [inst : Group G] {a : G} [IsMulTorsionFree G], a ≠ 1 → ∀ {m n : ℤ}, a ^ m = a ^ n ↔ m = n

theorem self_eq_neg E1 #

∀ {G : Type u_2} [inst : AddGroup G] {a : G} [IsAddTorsionFree G], a = -a ↔ a = 0

theorem self_eq_inv E1 #

∀ {G : Type u_2} [inst : Group G] {a : G} [IsMulTorsionFree G], a = a⁻¹ ↔ a = 1

theorem neg_eq_self E1 #

∀ {G : Type u_2} [inst : AddGroup G] {a : G} [IsAddTorsionFree G], -a = a ↔ a = 0

theorem inv_eq_self E1 #

∀ {G : Type u_2} [inst : Group G] {a : G} [IsMulTorsionFree G], a⁻¹ = a ↔ a = 1

theorem self_ne_neg E1 #

∀ {G : Type u_2} [inst : AddGroup G] {a : G} [IsAddTorsionFree G], a ≠ -a ↔ a ≠ 0

theorem self_ne_inv E1 #

∀ {G : Type u_2} [inst : Group G] {a : G} [IsMulTorsionFree G], a ≠ a⁻¹ ↔ a ≠ 1

theorem inv_ne_self E1 #

∀ {G : Type u_2} [inst : Group G] {a : G} [IsMulTorsionFree G], a⁻¹ ≠ a ↔ a ≠ 1

theorem neg_ne_self E1 #

∀ {G : Type u_2} [inst : AddGroup G] {a : G} [IsAddTorsionFree G], -a ≠ a ↔ a ≠ 0

theorem isSelfInv_iff_eq_one E1 #

∀ {G : Type u_2} [inst : Group G] {a : G} [IsMulTorsionFree G], IsSelfInv a ↔ a = 1

theorem isSelfNeg_iff_eq_zero E1 #

∀ {G : Type u_2} [inst : AddGroup G] {a : G} [IsAddTorsionFree G], IsSelfNeg a ↔ a = 0

theorem zpow_left_injective E1 #

∀ {G : Type u_2} [inst : Group G] [HasUniqueRoots G] {n : ℤ}, n ≠ 0 → Function.Injective fun a ↦ a ^ n

theorem zsmul_right_injective E1 #

∀ {G : Type u_2} [inst : AddGroup G] [HasUniqueDiv G] {n : ℤ}, n ≠ 0 → Function.Injective fun a ↦ n • a

theorem zsmul_right_inj E1 #

∀ {G : Type u_2} [inst : AddGroup G] [HasUniqueDiv G] {n : ℤ} {a b : G}, n ≠ 0 → (n • a = n • b ↔ a = b)

theorem zpow_left_inj E1 #

∀ {G : Type u_2} [inst : Group G] [HasUniqueRoots G] {n : ℤ} {a b : G}, n ≠ 0 → (a ^ n = b ^ n ↔ a = b)

theorem Commute.of_zpow_right E1 #

∀ {G : Type u_2} [inst : Group G] [HasUniqueRoots G] {n : ℤ} {a b : G}, Commute a (b ^ n) → n ≠ 0 → Commute a b

theorem AddCommute.of_zsmul_right E1 #

∀ {G : Type u_2} [inst : AddGroup G] [HasUniqueDiv G] {n : ℤ} {a b : G}, AddCommute a (n • b) → n ≠ 0 → AddCommute a b

theorem Commute.of_zpow_left E1 #

∀ {G : Type u_2} [inst : Group G] [HasUniqueRoots G] {n : ℤ} {a b : G}, Commute (a ^ n) b → n ≠ 0 → Commute a b

theorem AddCommute.of_zsmul_left E1 #

∀ {G : Type u_2} [inst : AddGroup G] [HasUniqueDiv G] {n : ℤ} {a b : G}, AddCommute (n • a) b → n ≠ 0 → AddCommute a b

theorem Commute.of_zpow_zpow E1 #

∀ {G : Type u_2} [inst : Group G] [HasUniqueRoots G] {n m : ℤ} {a b : G},
  Commute (a ^ m) (b ^ n) → m ≠ 0 → n ≠ 0 → Commute a b

theorem AddCommute.of_zsmul_zsmul E1 #

∀ {G : Type u_2} [inst : AddGroup G] [HasUniqueDiv G] {n m : ℤ} {a b : G},
  AddCommute (m • a) (n • b) → m ≠ 0 → n ≠ 0 → AddCommute a b

theorem Commute.of_zpow_eq E0 #

∀ {G : Type u_2} [inst : Group G] [HasUniqueRoots G] {n m : ℤ} {a b : G}, a ^ m = b ^ n → n ≠ 0 → Commute a b

Elements with a common nonzero power in a group with unique roots commute: if a ^ m = b ^ n and n ≠ 0, then a and b commute.

theorem AddCommute.of_zsmul_eq E0 #

∀ {G : Type u_2} [inst : AddGroup G] [HasUniqueDiv G] {n m : ℤ} {a b : G}, m • a = n • b → n ≠ 0 → AddCommute a b

Deprecated aliases

NameNew nameSince
zpow_eq_zpow_iff'zpow_left_inj2026-09-30
zsmul_eq_zsmul_iff'zsmul_right_inj2026-09-30