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

13 declarations. Mathlib docs · Source

Typeclasses for power-associative structures

In this file we define power-associativity for algebraic structures with a multiplication operation. The class is a Prop-valued mixin named PNatPowAssoc, where PNat means only strictly positive powers are considered.

Results

  • ppow_add a defining property: x ^ (k + n) = x ^ k * x ^ n
  • ppow_one a defining property: x ^ 1 = x
  • ppow_assoc strictly positive powers of an element have associative multiplication.
  • ppow_comm x ^ m * x ^ n = x ^ n * x ^ m for strictly positive m and n.
  • ppow_mul x ^ (m * n) = (x ^ m) ^ n for strictly positive m and n.
  • ppow_eq_pow monoid exponentiation coincides with semigroup exponentiation.

Instances

  • PNatPowAssoc for products and Pi types

TODO

  • NatPowAssoc for MulOneClass - more or less the same flow
  • It seems unlikely that anyone will want NatSMulAssoc and PNatSMulAssoc as additive versions of power-associativity, but we have found that it is not hard to write.

class PNatPowAssoc E1 #

(M : Type u_2) → [Mul M] → [Pow M ℕ+] → Prop

A Prop-valued mixin for power-associative multiplication in the non-unital setting.

ctor PNatPowAssoc.mk E0 #

∀ {M : Type u_2} [inst : Mul M] [inst_1 : Pow M ℕ+],
  (∀ (k n : ℕ+) (x : M), x ^ (k + n) = x ^ k * x ^ n) → (∀ (x : M), x ^ 1 = x) → PNatPowAssoc M

theorem PNatPowAssoc.ppow_add E1 #

∀ {M : Type u_2} {inst : Mul M} {inst_1 : Pow M ℕ+} [self : PNatPowAssoc M] (k n : ℕ+) (x : M),
  x ^ (k + n) = x ^ k * x ^ n

Multiplication is power-associative.

theorem PNatPowAssoc.ppow_one E1 #

∀ {M : Type u_2} {inst : Mul M} {inst_1 : Pow M ℕ+} [self : PNatPowAssoc M] (x : M), x ^ 1 = x

Exponent one is identity.

theorem ppow_add E1 #

∀ {M : Type u_1} [inst : Mul M] [inst_1 : Pow M ℕ+] [PNatPowAssoc M] (k n : ℕ+) (x : M), x ^ (k + n) = x ^ k * x ^ n

theorem ppow_one E0 #

∀ {M : Type u_1} [inst : Mul M] [inst_1 : Pow M ℕ+] [PNatPowAssoc M] (x : M), x ^ 1 = x

theorem ppow_mul_assoc E1 #

∀ {M : Type u_1} [inst : Mul M] [inst_1 : Pow M ℕ+] [PNatPowAssoc M] (k m n : ℕ+) (x : M),
  x ^ k * x ^ m * x ^ n = x ^ k * (x ^ m * x ^ n)

theorem ppow_mul_comm E1 #

∀ {M : Type u_1} [inst : Mul M] [inst_1 : Pow M ℕ+] [PNatPowAssoc M] (m n : ℕ+) (x : M), x ^ m * x ^ n = x ^ n * x ^ m

theorem ppow_mul E1 #

∀ {M : Type u_1} [inst : Mul M] [inst_1 : Pow M ℕ+] [PNatPowAssoc M] (x : M) (m n : ℕ+), x ^ (m * n) = (x ^ m) ^ n

theorem ppow_mul' E1 #

∀ {M : Type u_1} [inst : Mul M] [inst_1 : Pow M ℕ+] [PNatPowAssoc M] (x : M) (m n : ℕ+), x ^ (m * n) = (x ^ n) ^ m

instance Pi.instPNatPowAssoc E0 #

∀ {ι : Type u_2} {α : ι → Type u_3} [inst : (i : ι) → Mul (α i)] [inst_1 : (i : ι) → Pow (α i) ℕ+]
  [∀ (i : ι), PNatPowAssoc (α i)], PNatPowAssoc ((i : ι) → α i)

instance Prod.instPNatPowAssoc E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : Mul M] [inst_1 : Pow M ℕ+] [PNatPowAssoc M] [inst_3 : Mul N] [inst_4 : Pow N ℕ+]
  [PNatPowAssoc N], PNatPowAssoc (M × N)

theorem ppow_eq_pow E1 #

∀ {M : Type u_1} [inst : Monoid M] [inst_1 : Pow M ℕ+] [PNatPowAssoc M] (x : M) (n : ℕ+), x ^ n = x ^ ↑n