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

18 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 NatPowAssoc.

Results

  • npow_add a defining property: x ^ (k + n) = x ^ k * x ^ n
  • npow_one a defining property: x ^ 1 = x
  • npow_assoc strictly positive powers of an element have associative multiplication.
  • npow_comm x ^ m * x ^ n = x ^ n * x ^ m for strictly positive m and n.
  • npow_mul x ^ (m * n) = (x ^ m) ^ n for strictly positive m and n.
  • npow_eq_pow monoid exponentiation coincides with semigroup exponentiation.

Instances

We also produce the following instances:

  • NatPowAssoc for Monoids, Pi types and products.

TODO

  • to_additive?

class NatPowAssoc E1 #

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

A mixin for power-associative multiplication.

ctor NatPowAssoc.mk E0 #

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

theorem NatPowAssoc.npow_add E1 #

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

Multiplication is power-associative.

theorem NatPowAssoc.npow_zero E1 #

∀ {M : Type u_2} {inst : MulOneClass M} {inst_1 : Pow M ℕ} [self : NatPowAssoc M] (x : M), x ^ 0 = 1

Exponent zero is one.

theorem NatPowAssoc.npow_one E1 #

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

Exponent one is identity.

theorem npow_add E1 #

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

theorem npow_zero E0 #

∀ {M : Type u_1} [inst : MulOneClass M] [inst_1 : Pow M ℕ] [NatPowAssoc M] (x : M), x ^ 0 = 1

theorem npow_one E0 #

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

theorem npow_mul_assoc E1 #

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

theorem npow_mul_comm E1 #

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

theorem npow_mul E1 #

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

theorem npow_mul' E1 #

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

theorem neg_npow_assoc E1 #

∀ {R : Type u_2} [inst : NonAssocRing R] [inst_1 : Pow R ℕ] [NatPowAssoc R] (a b : R) (k : ℕ),
  (-1) ^ k * a * b = (-1) ^ k * (a * b)

instance Pi.instNatPowAssoc E0 #

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

instance Prod.instNatPowAssoc E0 #

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

instance Monoid.PowAssoc E0 #

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

theorem Nat.cast_npow E0 #

∀ (R : Type u_2) [inst : NonAssocSemiring R] [inst_1 : Pow R ℕ] [NatPowAssoc R] (n m : ℕ), ↑(n ^ m) = ↑n ^ m

theorem Int.cast_npow E0 #

∀ (R : Type u_2) [inst : NonAssocRing R] [inst_1 : Pow R ℕ] [NatPowAssoc R] (n : ℤ) (m : ℕ), ↑(n ^ m) = ↑n ^ m