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.Basic

399 declarations and 2 deprecated aliases. Mathlib docs · Source

Basic lemmas about semigroups, monoids, and groups

This file lists various basic lemmas about semigroups, monoids, and groups. Most proofs are one-liners from the corresponding axioms. For the definitions of semigroups, monoids and groups, see Mathlib/Algebra/Group/Defs.lean.

Instances for grind.

theorem dite_vadd E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : VAdd β α] (p : Prop) [inst_1 : Decidable p] (a : α) (b : p → β) (c : ¬p → β),
  (if h : p then b h else c h) +ᵥ a = if h : p then b h +ᵥ a else c h +ᵥ a

theorem pow_dite E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Pow α β] (p : Prop) [inst_1 : Decidable p] (a : α) (b : p → β) (c : ¬p → β),
  (a ^ if h : p then b h else c h) = if h : p then a ^ b h else a ^ c h

theorem dite_smul E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : SMul β α] (p : Prop) [inst_1 : Decidable p] (a : α) (b : p → β) (c : ¬p → β),
  (if h : p then b h else c h) • a = if h : p then b h • a else c h • a

theorem dite_pow E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Pow α β] (p : Prop) [inst_1 : Decidable p] (a : p → α) (b : ¬p → α) (c : β),
  (if h : p then a h else b h) ^ c = if h : p then a h ^ c else b h ^ c

theorem smul_dite E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : SMul β α] (p : Prop) [inst_1 : Decidable p] (a : p → α) (b : ¬p → α) (c : β),
  (c • if h : p then a h else b h) = if h : p then c • a h else c • b h

theorem vadd_dite E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : VAdd β α] (p : Prop) [inst_1 : Decidable p] (a : p → α) (b : ¬p → α) (c : β),
  (c +ᵥ if h : p then a h else b h) = if h : p then c +ᵥ a h else c +ᵥ b h

theorem pow_ite E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Pow α β] (p : Prop) [inst_1 : Decidable p] (a : α) (b c : β),
  (a ^ if p then b else c) = if p then a ^ b else a ^ c

theorem ite_vadd E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : VAdd β α] (p : Prop) [inst_1 : Decidable p] (a : α) (b c : β),
  (if p then b else c) +ᵥ a = if p then b +ᵥ a else c +ᵥ a

theorem ite_smul E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : SMul β α] (p : Prop) [inst_1 : Decidable p] (a : α) (b c : β),
  (if p then b else c) • a = if p then b • a else c • a

theorem ite_pow E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Pow α β] (p : Prop) [inst_1 : Decidable p] (a b : α) (c : β),
  (if p then a else b) ^ c = if p then a ^ c else b ^ c

theorem smul_ite E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : SMul β α] (p : Prop) [inst_1 : Decidable p] (a b : α) (c : β),
  (c • if p then a else b) = if p then c • a else c • b

theorem vadd_ite E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : VAdd β α] (p : Prop) [inst_1 : Decidable p] (a b : α) (c : β),
  (c +ᵥ if p then a else b) = if p then c +ᵥ a else c +ᵥ b

instance Semigroup.to_isAssociative E0 #

∀ {α : Type u_1} [inst : Semigroup α], Std.Associative fun x1 x2 ↦ x1 * x2

instance AddSemigroup.to_isAssociative E0 #

∀ {α : Type u_1} [inst : AddSemigroup α], Std.Associative fun x1 x2 ↦ x1 + x2

theorem comp_mul_left E0 #

∀ {α : Type u_1} [inst : Semigroup α] (x y : α), ((fun x_1 ↦ x * x_1) ∘ fun x ↦ y * x) = fun x_1 ↦ x * y * x_1

Composing two multiplications on the left by y then x is equal to a multiplication on the left by x * y.

theorem comp_add_left E0 #

∀ {α : Type u_1} [inst : AddSemigroup α] (x y : α), ((fun x_1 ↦ x + x_1) ∘ fun x ↦ y + x) = fun x_1 ↦ x + y + x_1

Composing two additions on the left by y then x is equal to an addition on the left by x + y.

theorem comp_mul_right E0 #

∀ {α : Type u_1} [inst : Semigroup α] (x y : α), ((fun x_1 ↦ x_1 * x) ∘ fun x ↦ x * y) = fun x_1 ↦ x_1 * (y * x)

Composing two multiplications on the right by y and x is equal to a multiplication on the right by y * x.

theorem comp_add_right E0 #

∀ {α : Type u_1} [inst : AddSemigroup α] (x y : α), ((fun x_1 ↦ x_1 + x) ∘ fun x ↦ x + y) = fun x_1 ↦ x_1 + (y + x)

Composing two additions on the right by y and x is equal to an addition on the right by y + x.

instance Semigroup.to_isLawfulIdentity E0 #

∀ {M : Type u_4} [inst : MulOneClass M], Std.LawfulIdentity (fun x1 x2 ↦ x1 * x2) 1

instance AddSemigroup.to_isLawfulIdentity E0 #

∀ {M : Type u_4} [inst : AddZeroClass M], Std.LawfulIdentity (fun x1 x2 ↦ x1 + x2) 0

theorem ite_add_zero E1 #

∀ {M : Type u_4} [inst : AddZeroClass M] {P : Prop} [inst_1 : Decidable P] {a b : M},
  (if P then a + b else 0) = (if P then a else 0) + if P then b else 0

theorem ite_mul_one E1 #

∀ {M : Type u_4} [inst : MulOneClass M] {P : Prop} [inst_1 : Decidable P] {a b : M},
  (if P then a * b else 1) = (if P then a else 1) * if P then b else 1

theorem ite_zero_add E1 #

∀ {M : Type u_4} [inst : AddZeroClass M] {P : Prop} [inst_1 : Decidable P] {a b : M},
  (if P then 0 else a + b) = (if P then 0 else a) + if P then 0 else b

theorem ite_one_mul E1 #

∀ {M : Type u_4} [inst : MulOneClass M] {P : Prop} [inst_1 : Decidable P] {a b : M},
  (if P then 1 else a * b) = (if P then 1 else a) * if P then 1 else b

theorem zero_add_eq_id E1 #

∀ {M : Type u_4} [inst : AddZeroClass M], (fun x ↦ 0 + x) = id

theorem one_mul_eq_id E1 #

∀ {M : Type u_4} [inst : MulOneClass M], (fun x ↦ 1 * x) = id

theorem mul_one_eq_id E1 #

∀ {M : Type u_4} [inst : MulOneClass M], (fun x ↦ x * 1) = id

theorem add_zero_eq_id E1 #

∀ {M : Type u_4} [inst : AddZeroClass M], (fun x ↦ x + 0) = id

theorem add_left_comm E1 #

∀ {G : Type u_3} [inst : AddCommSemigroup G] (a b c : G), a + (b + c) = b + (a + c)

theorem mul_left_comm E1 #

∀ {G : Type u_3} [inst : CommSemigroup G] (a b c : G), a * (b * c) = b * (a * c)

theorem add_right_comm E1 #

∀ {G : Type u_3} [inst : AddCommSemigroup G] (a b c : G), a + b + c = a + c + b

theorem mul_right_comm E1 #

∀ {G : Type u_3} [inst : CommSemigroup G] (a b c : G), a * b * c = a * c * b

theorem mul_mul_mul_comm E1 #

∀ {G : Type u_3} [inst : CommSemigroup G] (a b c d : G), a * b * (c * d) = a * c * (b * d)

theorem add_add_add_comm E1 #

∀ {G : Type u_3} [inst : AddCommSemigroup G] (a b c d : G), a + b + (c + d) = a + c + (b + d)

theorem mul_mul_mul_comm' E1 #

∀ {G : Type u_3} [inst : CommSemigroup G] (a b c d : G), a * b * c * d = a * c * b * d

theorem add_add_add_comm' E1 #

∀ {G : Type u_3} [inst : AddCommSemigroup G] (a b c d : G), a + b + c + d = a + c + b + d

theorem add_rotate E1 #

∀ {G : Type u_3} [inst : AddCommSemigroup G] (a b c : G), a + b + c = b + c + a

theorem mul_rotate E1 #

∀ {G : Type u_3} [inst : CommSemigroup G] (a b c : G), a * b * c = b * c * a

theorem add_rotate' E1 #

∀ {G : Type u_3} [inst : AddCommSemigroup G] (a b c : G), a + (b + c) = b + (c + a)

theorem mul_rotate' E1 #

∀ {G : Type u_3} [inst : CommSemigroup G] (a b c : G), a * (b * c) = b * (c * a)

theorem boole_nsmul E1 #

∀ {M : Type u_4} [inst : AddMonoid M] (P : Prop) [inst_1 : Decidable P] (a : M),
  (if P then 1 else 0) • a = if P then a else 0

theorem pow_boole E1 #

∀ {M : Type u_4} [inst : Monoid M] (P : Prop) [inst_1 : Decidable P] (a : M),
  (a ^ if P then 1 else 0) = if P then a else 1

theorem nsmul_add_sub_nsmul E1 #

∀ {M : Type u_4} [inst : AddMonoid M] {m n : ℕ} (a : M), m ≤ n → m • a + (n - m) • a = n • a

theorem pow_mul_pow_sub E1 #

∀ {M : Type u_4} [inst : Monoid M] {m n : ℕ} (a : M), m ≤ n → a ^ m * a ^ (n - m) = a ^ n

theorem sub_nsmul_nsmul_add E1 #

∀ {M : Type u_4} [inst : AddMonoid M] {m n : ℕ} (a : M), m ≤ n → (n - m) • a + m • a = n • a

theorem pow_sub_mul_pow E1 #

∀ {M : Type u_4} [inst : Monoid M] {m n : ℕ} (a : M), m ≤ n → a ^ (n - m) * a ^ m = a ^ n

theorem sub_one_nsmul_add E1 #

∀ {M : Type u_4} [inst : AddMonoid M] {n : ℕ}, n ≠ 0 → ∀ (a : M), a + (n - 1) • a = n • a

theorem mul_pow_sub_one E1 #

∀ {M : Type u_4} [inst : Monoid M] {n : ℕ}, n ≠ 0 → ∀ (a : M), a * a ^ (n - 1) = a ^ n

theorem add_sub_one_nsmul E1 #

∀ {M : Type u_4} [inst : AddMonoid M] {n : ℕ}, n ≠ 0 → ∀ (a : M), (n - 1) • a + a = n • a

theorem pow_sub_one_mul E1 #

∀ {M : Type u_4} [inst : Monoid M] {n : ℕ}, n ≠ 0 → ∀ (a : M), a ^ (n - 1) * a = a ^ n

theorem pow_eq_pow_mod E1 #

∀ {M : Type u_4} [inst : Monoid M] {a : M} {n : ℕ} (m : ℕ), a ^ n = 1 → a ^ m = a ^ (m % n)

If x ^ n = 1, then x ^ m is the same as x ^ (m % n)

theorem nsmul_eq_mod_nsmul E1 #

∀ {M : Type u_4} [inst : AddMonoid M] {a : M} {n : ℕ} (m : ℕ), n • a = 0 → m • a = (m % n) • a

If n • x = 0, then m • x is the same as (m % n) • x

theorem nsmul_add_nsmul_eq_zero E1 #

∀ {M : Type u_4} [inst : AddMonoid M] {a b : M} (n : ℕ), a + b = 0 → n • a + n • b = 0

theorem pow_mul_pow_eq_one E1 #

∀ {M : Type u_4} [inst : Monoid M] {a b : M} (n : ℕ), a * b = 1 → a ^ n * b ^ n = 1

theorem mul_left_iterate E0 #

∀ {M : Type u_4} [inst : Monoid M] (a : M) (n : ℕ), (fun x ↦ a * x)^[n] = fun x ↦ a ^ n * x

theorem add_left_iterate E0 #

∀ {M : Type u_4} [inst : AddMonoid M] (a : M) (n : ℕ), (fun x ↦ a + x)^[n] = fun x ↦ n • a + x

theorem add_right_iterate E0 #

∀ {M : Type u_4} [inst : AddMonoid M] (a : M) (n : ℕ), (fun x ↦ x + a)^[n] = fun x ↦ x + n • a

theorem mul_right_iterate E0 #

∀ {M : Type u_4} [inst : Monoid M] (a : M) (n : ℕ), (fun x ↦ x * a)^[n] = fun x ↦ x * a ^ n

theorem mul_left_iterate_apply E0 #

∀ {M : Type u_4} [inst : Monoid M] {n : ℕ} (a b : M), (fun x ↦ a * x)^[n] b = a ^ n * b

Version of mul_left_iterate that is fully applied, for rw.

theorem add_left_iterate_apply E0 #

∀ {M : Type u_4} [inst : AddMonoid M] {n : ℕ} (a b : M), (fun x ↦ a + x)^[n] b = n • a + b

Version of add_left_iterate that is fully applied, for rw.

theorem mul_right_iterate_apply E0 #

∀ {M : Type u_4} [inst : Monoid M] {n : ℕ} (a b : M), (fun x ↦ x * a)^[n] b = b * a ^ n

Version of mul_right_iterate that is fully applied, for rw.

theorem add_right_iterate_apply E0 #

∀ {M : Type u_4} [inst : AddMonoid M] {n : ℕ} (a b : M), (fun x ↦ x + a)^[n] b = b + n • a

Version of add_right_iterate that is fully applied, for rw.

theorem add_left_iterate_apply_self E1 #

∀ {M : Type u_4} [inst : AddMonoid M] (a : M) (n : ℕ), (fun x ↦ a + x)^[n] a = (n + 1) • a

theorem mul_left_iterate_apply_self E1 #

∀ {M : Type u_4} [inst : Monoid M] (a : M) (n : ℕ), (fun x ↦ a * x)^[n] a = a ^ (n + 1)

theorem mul_right_iterate_apply_self E1 #

∀ {M : Type u_4} [inst : Monoid M] (a : M) (n : ℕ), (fun x ↦ x * a)^[n] a = a ^ (n + 1)

theorem add_right_iterate_apply_self E1 #

∀ {M : Type u_4} [inst : AddMonoid M] (a : M) (n : ℕ), (fun x ↦ x + a)^[n] a = (n + 1) • a

theorem add_left_iterate_apply_zero E1 #

∀ {M : Type u_4} [inst : AddMonoid M] {n : ℕ} (a : M), (fun x ↦ a + x)^[n] 0 = n • a

theorem mul_left_iterate_apply_one E1 #

∀ {M : Type u_4} [inst : Monoid M] {n : ℕ} (a : M), (fun x ↦ a * x)^[n] 1 = a ^ n

theorem add_right_iterate_apply_zero E1 #

∀ {M : Type u_4} [inst : AddMonoid M] {n : ℕ} (a : M), (fun x ↦ x + a)^[n] 0 = n • a

theorem mul_right_iterate_apply_one E1 #

∀ {M : Type u_4} [inst : Monoid M] {n : ℕ} (a : M), (fun x ↦ x * a)^[n] 1 = a ^ n

theorem pow_iterate E0 #

∀ {M : Type u_4} [inst : Monoid M] (k n : ℕ), (fun x ↦ x ^ k)^[n] = fun x ↦ x ^ k ^ n

theorem nsmul_iterate E1 #

∀ {M : Type u_4} [inst : AddMonoid M] (k n : ℕ), (fun x ↦ k • x)^[n] = fun x ↦ k ^ n • x

theorem neg_unique E1 #

∀ {M : Type u_4} [inst : AddCommMonoid M] {x y z : M}, x + y = 0 → x + z = 0 → y = z

theorem inv_unique E1 #

∀ {M : Type u_4} [inst : CommMonoid M] {x y z : M}, x * y = 1 → x * z = 1 → y = z

theorem nsmul_add E1 #

∀ {M : Type u_4} [inst : AddCommMonoid M] (a b : M) (n : ℕ), n • (a + b) = n • a + n • b

theorem mul_pow E1 #

∀ {M : Type u_4} [inst : CommMonoid M] (a b : M) (n : ℕ), (a * b) ^ n = a ^ n * b ^ n

theorem add_eq_left E0 #

∀ {M : Type u_4} [inst : AddMonoid M] [IsLeftCancelAdd M] {a b : M}, a + b = a ↔ b = 0

theorem mul_eq_left E0 #

∀ {M : Type u_4} [inst : Monoid M] [IsLeftCancelMul M] {a b : M}, a * b = a ↔ b = 1

theorem left_eq_add E0 #

∀ {M : Type u_4} [inst : AddMonoid M] [IsLeftCancelAdd M] {a b : M}, a = a + b ↔ b = 0

theorem left_eq_mul E0 #

∀ {M : Type u_4} [inst : Monoid M] [IsLeftCancelMul M] {a b : M}, a = a * b ↔ b = 1

theorem add_ne_left E1 #

∀ {M : Type u_4} [inst : AddMonoid M] [IsLeftCancelAdd M] {a b : M}, a + b ≠ a ↔ b ≠ 0

theorem mul_ne_left E1 #

∀ {M : Type u_4} [inst : Monoid M] [IsLeftCancelMul M] {a b : M}, a * b ≠ a ↔ b ≠ 1

theorem left_ne_add E1 #

∀ {M : Type u_4} [inst : AddMonoid M] [IsLeftCancelAdd M] {a b : M}, a ≠ a + b ↔ b ≠ 0

theorem left_ne_mul E1 #

∀ {M : Type u_4} [inst : Monoid M] [IsLeftCancelMul M] {a b : M}, a ≠ a * b ↔ b ≠ 1

theorem mul_eq_right E0 #

∀ {M : Type u_4} [inst : Monoid M] [IsRightCancelMul M] {a b : M}, a * b = b ↔ a = 1

theorem add_eq_right E0 #

∀ {M : Type u_4} [inst : AddMonoid M] [IsRightCancelAdd M] {a b : M}, a + b = b ↔ a = 0

theorem right_eq_mul E0 #

∀ {M : Type u_4} [inst : Monoid M] [IsRightCancelMul M] {a b : M}, b = a * b ↔ a = 1

theorem right_eq_add E0 #

∀ {M : Type u_4} [inst : AddMonoid M] [IsRightCancelAdd M] {a b : M}, b = a + b ↔ a = 0

theorem mul_ne_right E1 #

∀ {M : Type u_4} [inst : Monoid M] [IsRightCancelMul M] {a b : M}, a * b ≠ b ↔ a ≠ 1

theorem add_ne_right E1 #

∀ {M : Type u_4} [inst : AddMonoid M] [IsRightCancelAdd M] {a b : M}, a + b ≠ b ↔ a ≠ 0

theorem right_ne_mul E1 #

∀ {M : Type u_4} [inst : Monoid M] [IsRightCancelMul M] {a b : M}, b ≠ a * b ↔ a ≠ 1

theorem right_ne_add E1 #

∀ {M : Type u_4} [inst : AddMonoid M] [IsRightCancelAdd M] {a b : M}, b ≠ a + b ↔ a ≠ 0

theorem ne_iff_ne_of_mul_eq_mul E1 #

∀ {α : Type u_1} [inst : CancelCommMonoid α] {a b c d : α}, a * b = c * d → (a ≠ c ↔ b ≠ d)

theorem ne_iff_ne_of_add_eq_add E1 #

∀ {α : Type u_1} [inst : AddCancelCommMonoid α] {a b c d : α}, a + b = c + d → (a ≠ c ↔ b ≠ d)

theorem inv_involutive E0 #

∀ {G : Type u_3} [inst : InvolutiveInv G], Function.Involutive Inv.inv

theorem neg_involutive E0 #

∀ {G : Type u_3} [inst : InvolutiveNeg G], Function.Involutive Neg.neg

theorem inv_bijective E1 #

∀ {G : Type u_3} [inst : InvolutiveInv G], Function.Bijective Inv.inv

theorem neg_bijective E1 #

∀ {G : Type u_3} [inst : InvolutiveNeg G], Function.Bijective Neg.neg

theorem inv_surjective E0 #

∀ {G : Type u_3} [inst : InvolutiveInv G], Function.Surjective Inv.inv

theorem neg_surjective E0 #

∀ {G : Type u_3} [inst : InvolutiveNeg G], Function.Surjective Neg.neg

theorem neg_injective E1 #

∀ {G : Type u_3} [inst : InvolutiveNeg G], Function.Injective Neg.neg

theorem inv_injective E1 #

∀ {G : Type u_3} [inst : InvolutiveInv G], Function.Injective Inv.inv

theorem inv_inj E0 #

∀ {G : Type u_3} [inst : InvolutiveInv G] {a b : G}, a⁻¹ = b⁻¹ ↔ a = b

theorem neg_inj E0 #

∀ {G : Type u_3} [inst : InvolutiveNeg G] {a b : G}, -a = -b ↔ a = b

theorem neg_eq_iff_eq_neg E1 #

∀ {G : Type u_3} [inst : InvolutiveNeg G] {a b : G}, -a = b ↔ a = -b

theorem inv_eq_iff_eq_inv E1 #

∀ {G : Type u_3} [inst : InvolutiveInv G] {a b : G}, a⁻¹ = b ↔ a = b⁻¹

theorem inv_comp_inv E1 #

∀ (G : Type u_3) [inst : InvolutiveInv G], Inv.inv ∘ Inv.inv = id

theorem neg_comp_neg E1 #

∀ (G : Type u_3) [inst : InvolutiveNeg G], Neg.neg ∘ Neg.neg = id

theorem leftInverse_neg E1 #

∀ (G : Type u_3) [inst : InvolutiveNeg G], Function.LeftInverse (fun a ↦ -a) fun a ↦ -a

theorem leftInverse_inv E1 #

∀ (G : Type u_3) [inst : InvolutiveInv G], Function.LeftInverse (fun a ↦ a⁻¹) fun a ↦ a⁻¹

theorem rightInverse_neg E1 #

∀ (G : Type u_3) [inst : InvolutiveNeg G], Function.RightInverse (fun a ↦ -a) fun a ↦ -a

theorem rightInverse_inv E1 #

∀ (G : Type u_3) [inst : InvolutiveInv G], Function.RightInverse (fun a ↦ a⁻¹) fun a ↦ a⁻¹

theorem add_zero_sub E1 #

∀ {G : Type u_3} [inst : SubNegMonoid G] (x y : G), x + (0 - y) = x - y

theorem mul_one_div E1 #

∀ {G : Type u_3} [inst : DivInvMonoid G] (x y : G), x * (1 / y) = x / y

theorem mul_div_assoc' E1 #

∀ {G : Type u_3} [inst : DivInvMonoid G] (a b c : G), a * (b / c) = a * b / c

theorem add_sub_assoc' E1 #

∀ {G : Type u_3} [inst : SubNegMonoid G] (a b c : G), a + (b - c) = a + b - c

theorem mul_div E1 #

∀ {G : Type u_3} [inst : DivInvMonoid G] (a b c : G), a * (b / c) = a * b / c

theorem add_sub E1 #

∀ {G : Type u_3} [inst : SubNegMonoid G] (a b c : G), a + (b - c) = a + b - c

theorem sub_eq_add_zero_sub E1 #

∀ {G : Type u_3} [inst : SubNegMonoid G] (a b : G), a - b = a + (0 - b)

theorem div_eq_mul_one_div E1 #

∀ {G : Type u_3} [inst : DivInvMonoid G] (a b : G), a / b = a * (1 / b)

theorem sub_zero E0 #

∀ {G : Type u_3} [inst : SubNegZeroMonoid G] (a : G), a - 0 = a

theorem div_one E0 #

∀ {G : Type u_3} [inst : DivInvOneMonoid G] (a : G), a / 1 = a

theorem zero_sub_zero E1 #

∀ {G : Type u_3} [inst : SubNegZeroMonoid G], 0 - 0 = 0

theorem one_div_one E1 #

∀ {G : Type u_3} [inst : DivInvOneMonoid G], 1 / 1 = 1

theorem div_ne_one_of_ne E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] {a b : α}, a ≠ b → a / b ≠ 1

theorem sub_ne_zero_of_ne E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] {a b : α}, a ≠ b → a - b ≠ 0

theorem zero_sub_add_zero_sub_rev E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a b : α), 0 - a + (0 - b) = 0 - (b + a)

theorem one_div_mul_one_div_rev E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a b : α), 1 / a * (1 / b) = 1 / (b * a)

theorem neg_sub_left E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a b : α), -a - b = -(b + a)

theorem inv_div_left E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a b : α), a⁻¹ / b = (b * a)⁻¹

theorem neg_sub E0 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a b : α), -(a - b) = b - a

theorem inv_div E0 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a b : α), (a / b)⁻¹ = b / a

theorem zero_sub_sub E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a b : α), 0 - (a - b) = b - a

theorem one_div_div E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a b : α), 1 / (a / b) = b / a

theorem zero_sub_zero_sub E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a : α), 0 - (0 - a) = a

theorem one_div_one_div E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a : α), 1 / (1 / a) = a

theorem div_eq_div_iff_comm E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a b c : α) {d : α}, a / b = c / d ↔ b / a = d / c

theorem sub_eq_sub_iff_comm E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a b c : α) {d : α}, a - b = c - d ↔ b - a = d - c

instance DivisionMonoid.toDivInvOneMonoid E0 #

{α : Type u_1} → [DivisionMonoid α] → DivInvOneMonoid α

instance SubtractionMonoid.toSubNegZeroMonoid E0 #

{α : Type u_1} → [SubtractionMonoid α] → SubNegZeroMonoid α

theorem neg_nsmul E0 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a : α) (n : ℕ), n • -a = -(n • a)

theorem inv_pow E0 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a : α) (n : ℕ), a⁻¹ ^ n = (a ^ n)⁻¹

theorem zsmul_zero E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (n : ℤ), n • 0 = 0

theorem one_zpow E0 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (n : ℤ), 1 ^ n = 1

theorem neg_zsmul E0 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a : α) (n : ℤ), -n • a = -(n • a)

theorem zpow_neg E0 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a : α) (n : ℤ), a ^ (-n) = (a ^ n)⁻¹

theorem neg_one_zsmul_add E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a b : α), -1 • (a + b) = -1 • b + -1 • a

theorem mul_zpow_neg_one E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a b : α), (a * b) ^ (-1) = b ^ (-1) * a ^ (-1)

theorem zsmul_neg E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a : α) (n : ℤ), n • -a = -(n • a)

theorem inv_zpow E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a : α) (n : ℤ), a⁻¹ ^ n = (a ^ n)⁻¹

theorem inv_zpow' E0 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a : α) (n : ℤ), a⁻¹ ^ n = a ^ (-n)

theorem zsmul_neg' E0 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a : α) (n : ℤ), n • -a = -n • a

theorem one_div_pow E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a : α) (n : ℕ), (1 / a) ^ n = 1 / a ^ n

theorem nsmul_zero_sub E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a : α) (n : ℕ), n • (0 - a) = 0 - n • a

theorem one_div_zpow E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a : α) (n : ℤ), (1 / a) ^ n = 1 / a ^ n

theorem zsmul_zero_sub E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a : α) (n : ℤ), n • (0 - a) = 0 - n • a

theorem zsmul_eq_neg_nsmul_natAbs E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a : α) {n : ℤ}, n ≤ 0 → n • a = n.natAbs • -a

theorem zpow_eq_inv_pow_natAbs E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a : α) {n : ℤ}, n ≤ 0 → a ^ n = a⁻¹ ^ n.natAbs

theorem inv_eq_one E0 #

∀ {α : Type u_1} [inst : DivisionMonoid α] {a : α}, a⁻¹ = 1 ↔ a = 1

theorem neg_eq_zero E0 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] {a : α}, -a = 0 ↔ a = 0

theorem one_eq_inv E0 #

∀ {α : Type u_1} [inst : DivisionMonoid α] {a : α}, 1 = a⁻¹ ↔ a = 1

theorem zero_eq_neg E0 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] {a : α}, 0 = -a ↔ a = 0

theorem inv_ne_one E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] {a : α}, a⁻¹ ≠ 1 ↔ a ≠ 1

theorem neg_ne_zero E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] {a : α}, -a ≠ 0 ↔ a ≠ 0

theorem zpow_mul E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a : α) (m n : ℤ), a ^ (m * n) = (a ^ m) ^ n

theorem mul_zsmul' E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a : α) (m n : ℤ), (m * n) • a = n • m • a

theorem zpow_mul' E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a : α) (m n : ℤ), a ^ (m * n) = (a ^ n) ^ m

theorem mul_zsmul E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a : α) (m n : ℤ), (m * n) • a = m • n • a

theorem zsmul_comm E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a : α) (m n : ℤ), n • m • a = m • n • a

theorem zpow_comm E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a : α) (m n : ℤ), (a ^ m) ^ n = (a ^ n) ^ m

theorem div_div_eq_mul_div E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a b c : α), a / (b / c) = a * c / b

theorem sub_sub_eq_add_sub E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a b c : α), a - (b - c) = a + c - b

theorem div_inv_eq_mul E0 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a b : α), a / b⁻¹ = a * b

theorem sub_neg_eq_add E0 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a b : α), a - -b = a + b

theorem div_mul_eq_div_div_swap E1 #

∀ {α : Type u_1} [inst : DivisionMonoid α] (a b c : α), a / (b * c) = a / c / b

theorem sub_add_eq_sub_sub_swap E1 #

∀ {α : Type u_1} [inst : SubtractionMonoid α] (a b c : α), a - (b + c) = a - c - b

theorem mul_inv E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b : α), (a * b)⁻¹ = a⁻¹ * b⁻¹

theorem neg_add E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b : α), -(a + b) = -a + -b

theorem neg_sub' E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b : α), -(a - b) = -a - -b

theorem inv_div' E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b : α), (a / b)⁻¹ = a⁻¹ / b⁻¹

theorem sub_eq_neg_add E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b : α), a - b = -b + a

theorem div_eq_inv_mul E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b : α), a / b = b⁻¹ * a

theorem neg_add_eq_sub E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b : α), -a + b = b - a

theorem inv_mul_eq_div E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b : α), a⁻¹ * b = b / a

theorem neg_sub_comm E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b : α), -a - b = -b - a

theorem inv_div_comm E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b : α), a⁻¹ / b = b⁻¹ / a

theorem inv_mul' E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b : α), (a * b)⁻¹ = a⁻¹ / b

theorem neg_add' E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b : α), -(a + b) = -a - b

theorem neg_sub_neg E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b : α), -a - -b = b - a

theorem inv_div_inv E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b : α), a⁻¹ / b⁻¹ = b / a

theorem inv_inv_div_inv E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b : α), (a⁻¹ / b⁻¹)⁻¹ = a / b

theorem neg_neg_sub_neg E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b : α), -(-a - -b) = a - b

theorem zero_sub_add_zero_sub E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b : α), 0 - a + (0 - b) = 0 - (a + b)

theorem one_div_mul_one_div E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b : α), 1 / a * (1 / b) = 1 / (a * b)

theorem div_right_comm E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b c : α), a / b / c = a / c / b

theorem sub_right_comm E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b c : α), a - b - c = a - c - b

theorem sub_sub E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b c : α), a - b - c = a - (b + c)

theorem div_div E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b c : α), a / b / c = a / (b * c)

theorem sub_add E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b c : α), a - b + c = a - (b - c)

theorem div_mul E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b c : α), a / b * c = a / (b / c)

theorem add_sub_left_comm E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b c : α), a + (b - c) = b + (a - c)

theorem mul_div_left_comm E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b c : α), a * (b / c) = b * (a / c)

theorem add_sub_right_comm E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b c : α), a + b - c = a - c + b

theorem mul_div_right_comm E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b c : α), a * b / c = a / c * b

theorem sub_add_eq_sub_sub E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b c : α), a - (b + c) = a - b - c

theorem div_mul_eq_div_div E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b c : α), a / (b * c) = a / b / c

theorem div_mul_eq_mul_div E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b c : α), a / b * c = a * c / b

theorem sub_add_eq_add_sub E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b c : α), a - b + c = a + c - b

theorem one_div_mul_eq_div E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b : α), 1 / a * b = b / a

theorem zero_sub_add_eq_sub E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b : α), 0 - a + b = b - a

theorem add_comm_sub E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b c : α), a - b + c = a + (c - b)

theorem mul_comm_div E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b c : α), a / b * c = a * (c / b)

theorem div_mul_comm E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b c : α), a / b * c = c / b * a

theorem sub_add_comm E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b c : α), a - b + c = c - b + a

theorem sub_add_eq_sub_add_zero_sub E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b c : α), a - (b + c) = a - b + (0 - c)

theorem div_mul_eq_div_mul_one_div E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b c : α), a / (b * c) = a / b * (1 / c)

theorem div_div_div_eq E0 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b c d : α), a / b / (c / d) = a * d / (b * c)

theorem sub_sub_sub_eq E0 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b c d : α), a - b - (c - d) = a + d - (b + c)

theorem sub_sub_sub_comm E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b c d : α), a - b - (c - d) = a - c - (b - d)

theorem div_div_div_comm E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b c d : α), a / b / (c / d) = a / c / (b / d)

theorem div_mul_div_comm E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b c d : α), a / b * (c / d) = a * c / (b * d)

theorem sub_add_sub_comm E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b c d : α), a - b + (c - d) = a + c - (b + d)

theorem add_sub_add_comm E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b c d : α), a + b - (c + d) = a - c + (b - d)

theorem mul_div_mul_comm E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b c d : α), a * b / (c * d) = a / c * (b / d)

theorem zsmul_add E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b : α) (n : ℤ), n • (a + b) = n • a + n • b

theorem mul_zpow E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b : α) (n : ℤ), (a * b) ^ n = a ^ n * b ^ n

theorem nsmul_sub E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b : α) (n : ℕ), n • (a - b) = n • a - n • b

theorem div_pow E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b : α) (n : ℕ), (a / b) ^ n = a ^ n / b ^ n

theorem div_zpow E1 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a b : α) (n : ℤ), (a / b) ^ n = a ^ n / b ^ n

theorem zsmul_sub E1 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a b : α) (n : ℤ), n • (a - b) = n • a - n • b

theorem div_eq_inv_self E0 #

∀ {G : Type u_3} [inst : Group G] {a b : G}, a / b = b⁻¹ ↔ a = 1

theorem sub_eq_neg_self E0 #

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

theorem add_left_surjective E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G), Function.Surjective fun x ↦ a + x

theorem mul_left_surjective E1 #

∀ {G : Type u_3} [inst : Group G] (a : G), Function.Surjective fun x ↦ a * x

theorem add_right_surjective E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G), Function.Surjective fun x ↦ x + a

theorem mul_right_surjective E1 #

∀ {G : Type u_3} [inst : Group G] (a : G), Function.Surjective fun x ↦ x * a

theorem neg_add_eq_of_eq_add E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b c : G}, b = a + c → -a + b = c

theorem inv_mul_eq_of_eq_mul E1 #

∀ {G : Type u_3} [inst : Group G] {a b c : G}, b = a * c → a⁻¹ * b = c

theorem add_neg_eq_of_eq_add E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b c : G}, a = c + b → a + -b = c

theorem mul_inv_eq_of_eq_mul E1 #

∀ {G : Type u_3} [inst : Group G] {a b c : G}, a = c * b → a * b⁻¹ = c

theorem add_eq_of_eq_neg_add E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b c : G}, b = -a + c → a + b = c

theorem mul_eq_of_eq_inv_mul E1 #

∀ {G : Type u_3} [inst : Group G] {a b c : G}, b = a⁻¹ * c → a * b = c

theorem mul_eq_of_eq_mul_inv E1 #

∀ {G : Type u_3} [inst : Group G] {a b c : G}, a = c * b⁻¹ → a * b = c

theorem add_eq_of_eq_add_neg E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b c : G}, a = c + -b → a + b = c

theorem mul_eq_one_iff_eq_inv E1 #

∀ {G : Type u_3} [inst : Group G] {a b : G}, a * b = 1 ↔ a = b⁻¹

theorem add_eq_zero_iff_eq_neg E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b : G}, a + b = 0 ↔ a = -b

theorem mul_eq_one_iff_inv_eq E0 #

∀ {G : Type u_3} [inst : Group G] {a b : G}, a * b = 1 ↔ a⁻¹ = b

theorem add_eq_zero_iff_neg_eq E0 #

∀ {G : Type u_3} [inst : AddGroup G] {a b : G}, a + b = 0 ↔ -a = b

theorem mul_eq_one_iff_eq_inv' E1 #

∀ {G : Type u_3} [inst : Group G] {a b : G}, a * b = 1 ↔ b = a⁻¹

Variant of mul_eq_one_iff_eq_inv with swapped equality.

theorem add_eq_zero_iff_eq_neg' E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b : G}, a + b = 0 ↔ b = -a

theorem mul_eq_one_iff_inv_eq' E1 #

∀ {G : Type u_3} [inst : Group G] {a b : G}, a * b = 1 ↔ b⁻¹ = a

Variant of mul_eq_one_iff_inv_eq with swapped equality.

theorem add_eq_zero_iff_neg_eq' E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b : G}, a + b = 0 ↔ -b = a

theorem neg_eq_iff_add_eq_zero E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b : G}, -a = b ↔ a + b = 0

theorem inv_eq_iff_mul_eq_one E1 #

∀ {G : Type u_3} [inst : Group G] {a b : G}, a⁻¹ = b ↔ a * b = 1

theorem neg_add_eq_iff_eq_add E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b c : G}, -a + b = c ↔ b = a + c

theorem inv_mul_eq_iff_eq_mul E1 #

∀ {G : Type u_3} [inst : Group G] {a b c : G}, a⁻¹ * b = c ↔ b = a * c

theorem mul_inv_eq_iff_eq_mul E1 #

∀ {G : Type u_3} [inst : Group G] {a b c : G}, a * b⁻¹ = c ↔ a = c * b

theorem add_neg_eq_iff_eq_add E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b c : G}, a + -b = c ↔ a = c + b

theorem add_neg_eq_zero E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b : G}, a + -b = 0 ↔ a = b

theorem mul_inv_eq_one E1 #

∀ {G : Type u_3} [inst : Group G] {a b : G}, a * b⁻¹ = 1 ↔ a = b

theorem neg_add_eq_zero E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b : G}, -a + b = 0 ↔ a = b

theorem inv_mul_eq_one E1 #

∀ {G : Type u_3} [inst : Group G] {a b : G}, a⁻¹ * b = 1 ↔ a = b

theorem addConj_eq_zero_iff E0 #

∀ {G : Type u_3} [inst : AddGroup G] {a b : G}, a + b + -a = 0 ↔ b = 0

theorem conj_eq_one_iff E0 #

∀ {G : Type u_3} [inst : Group G] {a b : G}, a * b * a⁻¹ = 1 ↔ b = 1

theorem div_left_injective E1 #

∀ {G : Type u_3} [inst : Group G] {b : G}, Function.Injective fun a ↦ a / b

theorem sub_left_injective E1 #

∀ {G : Type u_3} [inst : AddGroup G] {b : G}, Function.Injective fun a ↦ a - b

theorem div_right_injective E1 #

∀ {G : Type u_3} [inst : Group G] {b : G}, Function.Injective fun a ↦ b / a

theorem sub_right_injective E1 #

∀ {G : Type u_3} [inst : AddGroup G] {b : G}, Function.Injective fun a ↦ b - a

theorem div_mul_cancel_right E0 #

∀ {G : Type u_3} [inst : Group G] (a b : G), a / (b * a) = b⁻¹

theorem sub_add_cancel_right E0 #

∀ {G : Type u_3} [inst : AddGroup G] (a b : G), a - (b + a) = -b

theorem mul_div_mul_right_eq_div E0 #

∀ {G : Type u_3} [inst : Group G] (a b c : G), a * c / (b * c) = a / b

theorem add_sub_add_right_eq_sub E0 #

∀ {G : Type u_3} [inst : AddGroup G] (a b c : G), a + c - (b + c) = a - b

theorem div_eq_of_eq_mul'' E1 #

∀ {G : Type u_3} [inst : Group G] {a b c : G}, a = c * b → a / b = c

theorem sub_eq_of_eq_add E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b c : G}, a = c + b → a - b = c

theorem mul_eq_of_eq_div E1 #

∀ {G : Type u_3} [inst : Group G] {a b c : G}, a = c / b → a * b = c

theorem add_eq_of_eq_sub E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b c : G}, a = c - b → a + b = c

theorem sub_right_inj E0 #

∀ {G : Type u_3} [inst : AddGroup G] {a b c : G}, a - b = a - c ↔ b = c

theorem div_right_inj E0 #

∀ {G : Type u_3} [inst : Group G] {a b c : G}, a / b = a / c ↔ b = c

theorem sub_left_inj E0 #

∀ {G : Type u_3} [inst : AddGroup G] {a b c : G}, b - a = c - a ↔ b = c

theorem div_left_inj E0 #

∀ {G : Type u_3} [inst : Group G] {a b c : G}, b / a = c / a ↔ b = c

theorem sub_add_sub_cancel E0 #

∀ {G : Type u_3} [inst : AddGroup G] (a b c : G), a - b + (b - c) = a - c

theorem div_mul_div_cancel E0 #

∀ {G : Type u_3} [inst : Group G] (a b c : G), a / b * (b / c) = a / c

theorem add_add_neg_add_cancel E0 #

∀ {G : Type u_3} [inst : AddGroup G] (a b c : G), a + b + (-b + c) = a + c

theorem mul_mul_inv_mul_cancel E0 #

∀ {G : Type u_3} [inst : Group G] (a b c : G), a * b * (b⁻¹ * c) = a * c

theorem mul_inv_mul_mul_cancel E0 #

∀ {G : Type u_3} [inst : Group G] (a b c : G), a * b⁻¹ * (b * c) = a * c

theorem add_neg_add_add_cancel E0 #

∀ {G : Type u_3} [inst : AddGroup G] (a b c : G), a + -b + (b + c) = a + c

theorem sub_sub_sub_cancel_right E0 #

∀ {G : Type u_3} [inst : AddGroup G] (a b c : G), a - c - (b - c) = a - b

theorem div_div_div_cancel_right E0 #

∀ {G : Type u_3} [inst : Group G] (a b c : G), a / c / (b / c) = a / b

theorem sub_eq_zero E1 #

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

theorem div_eq_one E1 #

∀ {G : Type u_3} [inst : Group G] {a b : G}, a / b = 1 ↔ a = b

theorem div_eq_one_of_eq E0 #

∀ {G : Type u_3} [inst : Group G] {a b : G}, a = b → a / b = 1

Alias of the reverse direction of div_eq_one.

theorem sub_eq_zero_of_eq E0 #

∀ {G : Type u_3} [inst : AddGroup G] {a b : G}, a = b → a - b = 0

Alias of the reverse direction of sub_eq_zero.

theorem sub_ne_zero E1 #

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

theorem div_ne_one E1 #

∀ {G : Type u_3} [inst : Group G] {a b : G}, a / b ≠ 1 ↔ a ≠ b

theorem sub_eq_self E0 #

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

theorem div_eq_self E0 #

∀ {G : Type u_3} [inst : Group G] {a b : G}, a / b = a ↔ b = 1

theorem sub_eq_iff_eq_add E1 #

∀ {G : Type u_3} [inst : AddGroup G] {a b c : G}, a - b = c ↔ a = c + b

theorem div_eq_iff_eq_mul E1 #

∀ {G : Type u_3} [inst : Group G] {a b c : G}, a / b = c ↔ a = c * b

theorem leftInverse_div_mul_left E1 #

∀ {G : Type u_3} [inst : Group G] (c : G), Function.LeftInverse (fun x ↦ x / c) fun x ↦ x * c

theorem leftInverse_sub_add_left E1 #

∀ {G : Type u_3} [inst : AddGroup G] (c : G), Function.LeftInverse (fun x ↦ x - c) fun x ↦ x + c

theorem leftInverse_mul_left_div E1 #

∀ {G : Type u_3} [inst : Group G] (c : G), Function.LeftInverse (fun x ↦ x * c) fun x ↦ x / c

theorem leftInverse_add_left_sub E1 #

∀ {G : Type u_3} [inst : AddGroup G] (c : G), Function.LeftInverse (fun x ↦ x + c) fun x ↦ x - c

theorem leftInverse_add_right_neg_add E1 #

∀ {G : Type u_3} [inst : AddGroup G] (c : G), Function.LeftInverse (fun x ↦ c + x) fun x ↦ -c + x

theorem leftInverse_mul_right_inv_mul E1 #

∀ {G : Type u_3} [inst : Group G] (c : G), Function.LeftInverse (fun x ↦ c * x) fun x ↦ c⁻¹ * x

theorem leftInverse_neg_add_add_right E1 #

∀ {G : Type u_3} [inst : AddGroup G] (c : G), Function.LeftInverse (fun x ↦ -c + x) fun x ↦ c + x

theorem leftInverse_inv_mul_mul_right E1 #

∀ {G : Type u_3} [inst : Group G] (c : G), Function.LeftInverse (fun x ↦ c⁻¹ * x) fun x ↦ c * x

theorem natAbs_nsmul_eq_zero E0 #

∀ {G : Type u_3} [inst : AddGroup G] {a : G} {n : ℤ}, n.natAbs • a = 0 ↔ n • a = 0

theorem pow_natAbs_eq_one E0 #

∀ {G : Type u_3} [inst : Group G] {a : G} {n : ℤ}, a ^ n.natAbs = 1 ↔ a ^ n = 1

theorem pow_sub E1 #

∀ {G : Type u_3} [inst : Group G] (a : G) {m n : ℕ}, n ≤ m → a ^ (m - n) = a ^ m * (a ^ n)⁻¹

theorem sub_nsmul E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G) {m n : ℕ}, n ≤ m → (m - n) • a = m • a + -(n • a)

theorem sub_nsmul_neg E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G) {m n : ℕ}, n ≤ m → (m - n) • -a = -(m • a) + n • a

theorem inv_pow_sub E1 #

∀ {G : Type u_3} [inst : Group G] (a : G) {m n : ℕ}, n ≤ m → a⁻¹ ^ (m - n) = (a ^ m)⁻¹ * a ^ n

theorem zpow_add_one E1 #

∀ {G : Type u_3} [inst : Group G] (a : G) (n : ℤ), a ^ (n + 1) = a ^ n * a

theorem add_one_zsmul E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G) (n : ℤ), (n + 1) • a = n • a + a

theorem zpow_sub_one E1 #

∀ {G : Type u_3} [inst : Group G] (a : G) (n : ℤ), a ^ (n - 1) = a ^ n * a⁻¹

theorem sub_one_zsmul E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G) (n : ℤ), (n - 1) • a = n • a + -a

theorem zpow_add E1 #

∀ {G : Type u_3} [inst : Group G] (a : G) (m n : ℤ), a ^ (m + n) = a ^ m * a ^ n

theorem add_zsmul E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G) (m n : ℤ), (m + n) • a = m • a + n • a

theorem one_add_zsmul E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G) (n : ℤ), (1 + n) • a = a + n • a

theorem zpow_one_add E1 #

∀ {G : Type u_3} [inst : Group G] (a : G) (n : ℤ), a ^ (1 + n) = a * a ^ n

theorem mul_self_zpow E1 #

∀ {G : Type u_3} [inst : Group G] (a : G) (n : ℤ), a * a ^ n = a ^ (n + 1)

theorem add_zsmul_self E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G) (n : ℤ), a + n • a = (n + 1) • a

theorem add_self_zsmul E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G) (n : ℤ), n • a + a = (n + 1) • a

theorem mul_zpow_self E1 #

∀ {G : Type u_3} [inst : Group G] (a : G) (n : ℤ), a ^ n * a = a ^ (n + 1)

theorem sub_zsmul E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G) (m n : ℤ), (m - n) • a = m • a + -(n • a)

theorem zpow_sub E1 #

∀ {G : Type u_3} [inst : Group G] (a : G) (m n : ℤ), a ^ (m - n) = a ^ m * (a ^ n)⁻¹

theorem natCast_sub_natCast_zsmul E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G) (m n : ℕ), (↑m - ↑n) • a = m • a - n • a

theorem zpow_natCast_sub_natCast E1 #

∀ {G : Type u_3} [inst : Group G] (a : G) (m n : ℕ), a ^ (↑m - ↑n) = a ^ m / a ^ n

theorem natCast_sub_one_zsmul E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G) (n : ℕ), (↑n - 1) • a = n • a - a

theorem zpow_natCast_sub_one E1 #

∀ {G : Type u_3} [inst : Group G] (a : G) (n : ℕ), a ^ (↑n - 1) = a ^ n / a

theorem zpow_one_sub_natCast E1 #

∀ {G : Type u_3} [inst : Group G] (a : G) (n : ℕ), a ^ (1 - ↑n) = a / a ^ n

theorem one_sub_natCast_zsmul E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G) (n : ℕ), (1 - ↑n) • a = a - n • a

theorem zsmul_add_comm E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a : G) (m n : ℤ), m • a + n • a = n • a + m • a

theorem zpow_mul_comm E1 #

∀ {G : Type u_3} [inst : Group G] (a : G) (m n : ℤ), a ^ m * a ^ n = a ^ n * a ^ m

theorem mul_zpow_mul E1 #

∀ {G : Type u_3} [inst : Group G] (a b : G) (n : ℤ), (a * b) ^ n * a = a * (b * a) ^ n

theorem add_zsmul_add E1 #

∀ {G : Type u_3} [inst : AddGroup G] (a b : G) (n : ℤ), n • (a + b) + a = a + n • (b + a)

theorem zpow_eq_zpow_emod E1 #

∀ {G : Type u_3} [inst : Group G] {x : G} (m : ℤ) {n : ℤ}, x ^ n = 1 → x ^ m = x ^ (m % n)

theorem zpow_eq_zpow_emod' E1 #

∀ {G : Type u_3} [inst : Group G] {x : G} (m : ℤ) {n : ℕ}, x ^ n = 1 → x ^ m = x ^ (m % ↑n)

theorem zsmul_iterate E1 #

∀ {G : Type u_3} [inst : AddGroup G] (k : ℤ) (n : ℕ), (fun x ↦ k • x)^[n] = fun x ↦ k ^ n • x

theorem zpow_iterate E0 #

∀ {G : Type u_3} [inst : Group G] (k : ℤ) (n : ℕ), (fun x ↦ x ^ k)^[n] = fun x ↦ x ^ k ^ n

theorem zpow_induction_left E1 #

∀ {G : Type u_3} [inst : Group G] {g : G} {P : G → Prop},
  P 1 → (∀ (a : G), P a → P (g * a)) → (∀ (a : G), P a → P (g⁻¹ * a)) → ∀ (n : ℤ), P (g ^ n)

To show a property of all powers of g it suffices to show it is closed under multiplication by g and g⁻¹ on the left. For subgroups generated by more than one element, see Subgroup.closure_induction_left.

theorem zsmul_induction_left E1 #

∀ {G : Type u_3} [inst : AddGroup G] {g : G} {P : G → Prop},
  P 0 → (∀ (a : G), P a → P (g + a)) → (∀ (a : G), P a → P (-g + a)) → ∀ (n : ℤ), P (n • g)

To show a property of all multiples of g it suffices to show it is closed under addition by g and -g on the left. For additive subgroups generated by more than one element, see AddSubgroup.closure_induction_left.

theorem zpow_induction_right E1 #

∀ {G : Type u_3} [inst : Group G] {g : G} {P : G → Prop},
  P 1 → (∀ (a : G), P a → P (a * g)) → (∀ (a : G), P a → P (a * g⁻¹)) → ∀ (n : ℤ), P (g ^ n)

To show a property of all powers of g it suffices to show it is closed under multiplication by g and g⁻¹ on the right. For subgroups generated by more than one element, see Subgroup.closure_induction_right.

theorem zsmul_induction_right E1 #

∀ {G : Type u_3} [inst : AddGroup G] {g : G} {P : G → Prop},
  P 0 → (∀ (a : G), P a → P (a + g)) → (∀ (a : G), P a → P (a + -g)) → ∀ (n : ℤ), P (n • g)

To show a property of all multiples of g it suffices to show it is closed under addition by g and -g on the right. For additive subgroups generated by more than one element, see AddSubgroup.closure_induction_right.

theorem sub_eq_of_eq_add' E1 #

∀ {G : Type u_3} [inst : AddCommGroup G] {a b c : G}, a = b + c → a - b = c

theorem div_eq_of_eq_mul' E1 #

∀ {G : Type u_3} [inst : CommGroup G] {a b c : G}, a = b * c → a / b = c

theorem add_sub_add_left_eq_sub E0 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a b c : G), c + a - (c + b) = a - b

theorem mul_div_mul_left_eq_div E0 #

∀ {G : Type u_3} [inst : CommGroup G] (a b c : G), c * a / (c * b) = a / b

theorem mul_eq_of_eq_div' E1 #

∀ {G : Type u_3} [inst : CommGroup G] {a b c : G}, b = c / a → a * b = c

theorem add_eq_of_eq_sub' E1 #

∀ {G : Type u_3} [inst : AddCommGroup G] {a b c : G}, b = c - a → a + b = c

theorem div_div_self' E1 #

∀ {G : Type u_3} [inst : CommGroup G] (a b : G), a / (a / b) = b

theorem sub_sub_self E1 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a b : G), a - (a - b) = b

theorem div_eq_div_mul_div E1 #

∀ {G : Type u_3} [inst : CommGroup G] (a b c : G), a / b = c / b * (a / c)

theorem sub_eq_sub_add_sub E1 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a b c : G), a - b = c - b + (a - c)

theorem sub_sub_cancel E0 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a b : G), a - (a - b) = b

theorem div_div_cancel E0 #

∀ {G : Type u_3} [inst : CommGroup G] (a b : G), a / (a / b) = b

theorem sub_sub_cancel_left E0 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a b : G), a - b - a = -b

theorem div_div_cancel_left E0 #

∀ {G : Type u_3} [inst : CommGroup G] (a b : G), a / b / a = b⁻¹

theorem div_eq_iff_eq_mul' E1 #

∀ {G : Type u_3} [inst : CommGroup G] {a b c : G}, a / b = c ↔ a = b * c

theorem sub_eq_iff_eq_add' E1 #

∀ {G : Type u_3} [inst : AddCommGroup G] {a b c : G}, a - b = c ↔ a = b + c

theorem sub_eq_iff_comm E1 #

∀ {G : Type u_3} [inst : AddCommGroup G] {a b c : G}, a - b = c ↔ a - c = b

theorem div_eq_iff_comm E1 #

∀ {G : Type u_3} [inst : CommGroup G] {a b c : G}, a / b = c ↔ a / c = b

theorem add_sub_cancel_left E0 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a b : G), a + b - a = b

theorem mul_div_cancel_left E0 #

∀ {G : Type u_3} [inst : CommGroup G] (a b : G), a * b / a = b

theorem mul_div_cancel E0 #

∀ {G : Type u_3} [inst : CommGroup G] (a b : G), a * (b / a) = b

theorem add_sub_cancel E0 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a b : G), a + (b - a) = b

theorem div_mul_cancel_left E0 #

∀ {G : Type u_3} [inst : CommGroup G] (a b : G), a / (a * b) = b⁻¹

theorem sub_add_cancel_left E0 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a b : G), a - (a + b) = -b

theorem add_add_neg_cancel'_right E1 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a b : G), a + (b + -a) = b

theorem mul_mul_inv_cancel'_right E1 #

∀ {G : Type u_3} [inst : CommGroup G] (a b : G), a * (b * a⁻¹) = b

theorem mul_mul_div_cancel E0 #

∀ {G : Type u_3} [inst : CommGroup G] (a b c : G), a * c * (b / c) = a * b

theorem add_add_sub_cancel E0 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a b c : G), a + c + (b - c) = a + b

theorem div_mul_mul_cancel E0 #

∀ {G : Type u_3} [inst : CommGroup G] (a b c : G), a / c * (b * c) = a * b

theorem sub_add_add_cancel E0 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a b c : G), a - c + (b + c) = a + b

theorem sub_add_sub_cancel' E0 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a b c : G), a - b + (c - a) = c - b

theorem div_mul_div_cancel' E0 #

∀ {G : Type u_3} [inst : CommGroup G] (a b c : G), a / b * (c / a) = c / b

theorem add_sub_sub_cancel E0 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a b c : G), a + b - (a - c) = b + c

theorem mul_div_div_cancel E0 #

∀ {G : Type u_3} [inst : CommGroup G] (a b c : G), a * b / (a / c) = b * c

theorem div_div_div_cancel_left E0 #

∀ {G : Type u_3} [inst : CommGroup G] (a b c : G), c / a / (c / b) = b / a

theorem sub_sub_sub_cancel_left E0 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a b c : G), c - a - (c - b) = b - a

theorem div_eq_div_iff_mul_eq_mul E1 #

∀ {G : Type u_3} [inst : CommGroup G] {a b c d : G}, a / b = c / d ↔ a * d = c * b

theorem sub_eq_sub_iff_add_eq_add E1 #

∀ {G : Type u_3} [inst : AddCommGroup G] {a b c d : G}, a - b = c - d ↔ a + d = c + b

theorem mul_inv_eq_mul_inv_iff_mul_eq_mul E1 #

∀ {G : Type u_3} [inst : CommGroup G] {a b c d : G}, a * b⁻¹ = c * d⁻¹ ↔ a * d = c * b

theorem add_neg_eq_add_neg_iff_add_eq_add E1 #

∀ {G : Type u_3} [inst : AddCommGroup G] {a b c d : G}, a + -b = c + -d ↔ a + d = c + b

theorem neg_add_eq_neg_add_iff_add_eq_add E1 #

∀ {G : Type u_3} [inst : AddCommGroup G] {a b c d : G}, -b + a = -d + c ↔ a + d = c + b

theorem inv_mul_eq_inv_mul_iff_mul_eq_mul E1 #

∀ {G : Type u_3} [inst : CommGroup G] {a b c d : G}, b⁻¹ * a = d⁻¹ * c ↔ a * d = c * b

theorem sub_eq_sub_iff_sub_eq_sub E1 #

∀ {G : Type u_3} [inst : AddCommGroup G] {a b c d : G}, a - b = c - d ↔ a - c = b - d

theorem div_eq_div_iff_div_eq_div E1 #

∀ {G : Type u_3} [inst : CommGroup G] {a b c d : G}, a / b = c / d ↔ a / c = b / d

theorem const_sub_involutive E0 #

∀ {G : Type u_3} [inst : AddCommGroup G] (a : G), Function.Involutive fun x ↦ a - x

theorem const_div_involutive E0 #

∀ {G : Type u_3} [inst : CommGroup G] (a : G), Function.Involutive fun x ↦ a / x

theorem additive_of_symm_of_total E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : AddMonoid β] (p r : α → α → Prop) [Std.Total r] (f : α → α → β) [Std.Symm p],
  (∀ {a b : α}, p a b → f a b + f b a = 0) →
    (∀ {a b c : α}, r a b → r b c → p a b → p b c → p a c → f a c = f a b + f b c) →
      ∀ {a b c : α}, p a b → p b c → p a c → f a c = f a b + f b c

theorem multiplicative_of_symm_of_total E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Monoid β] (p r : α → α → Prop) [Std.Total r] (f : α → α → β) [Std.Symm p],
  (∀ {a b : α}, p a b → f a b * f b a = 1) →
    (∀ {a b c : α}, r a b → r b c → p a b → p b c → p a c → f a c = f a b * f b c) →
      ∀ {a b c : α}, p a b → p b c → p a c → f a c = f a b * f b c

theorem multiplicative_of_total E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Monoid β] (r : α → α → Prop) [Std.Total r] (f : α → α → β) (p : α → Prop),
  (∀ {a b : α}, p a → p b → f a b * f b a = 1) →
    (∀ {a b c : α}, r a b → r b c → p a → p b → p c → f a c = f a b * f b c) →
      ∀ {a b c : α}, p a → p b → p c → f a c = f a b * f b c

If a binary function from a type equipped with a total relation r to a monoid is anti-symmetric (i.e. satisfies f a b * f b a = 1), in order to show it is multiplicative (i.e. satisfies f a c = f a b * f b c), we may assume r a b and r b c are satisfied. We allow restricting to a subset specified by a predicate p.

theorem additive_of_total E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : AddMonoid β] (r : α → α → Prop) [Std.Total r] (f : α → α → β) (p : α → Prop),
  (∀ {a b : α}, p a → p b → f a b + f b a = 0) →
    (∀ {a b c : α}, r a b → r b c → p a → p b → p c → f a c = f a b + f b c) →
      ∀ {a b c : α}, p a → p b → p c → f a c = f a b + f b c

If a binary function from a type equipped with a total relation r to an additive monoid is anti-symmetric (i.e. satisfies f a b + f b a = 0), in order to show it is additive (i.e. satisfies f a c = f a b + f b c), we may assume r a b and r b c are satisfied. We allow restricting to a subset specified by a predicate p.

theorem hom_coe_pow E1 #

∀ {M : Type u_4} {F : Type u_5} [inst : Monoid F] (c : F → M → M),
  c 1 = id → (∀ (f g : F), c (f * g) = c f ∘ c g) → ∀ (f : F) (n : ℕ), c (f ^ n) = (c f)^[n]

An auxiliary lemma that can be used to prove ⇑(f ^ n) = ⇑f^[n].

theorem hom_coe_nsmul E1 #

∀ {M : Type u_4} {F : Type u_5} [inst : AddMonoid F] (c : F → M → M),
  c 0 = id → (∀ (f g : F), c (f + g) = c f ∘ c g) → ∀ (f : F) (n : ℕ), c (n • f) = (c f)^[n]

instance AddCommMonoid.toGrindNatModule E0 #

(α : Type u_5) → [s : AddCommMonoid α] → Lean.Grind.NatModule α

instance AddCommGroup.toGrindIntModule E0 #

(α : Type u_5) → [s : AddCommGroup α] → Lean.Grind.IntModule α

instance IsRightCancelAdd.toGrindAddRightCancel E0 #

∀ (α : Type u_5) [inst : AddSemigroup α] [IsRightCancelAdd α], Lean.Grind.AddRightCancel α

Deprecated aliases

NameNew nameSince
additive_of_symmetric_of_totaladditive_of_symm_of_total2026-06-10
multiplicative_of_symmetric_of_totalmultiplicative_of_symm_of_total2026-06-10