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 / V02. Numbers

Mathlib.Data.ZMod.IntUnitsPower

18 declarations. Mathlib docs · Source

instance instSMulZModOfNatNatAdditiveUnitsInt E0 #

SMul (ZMod 2) (Additive ℤˣ)

theorem ZMod.smul_units_def E0 #

∀ (z : ZMod 2) (au : Additive ℤˣ), z • au = z.val • au

theorem ZMod.natCast_smul_units E1 #

∀ (n : ℕ) (au : Additive ℤˣ), ↑n • au = n • au

instance instModuleZModOfNatNatAdditiveUnitsInt E0 #

Module (ZMod 2) (Additive ℤˣ)

This is an indirect way of saying that ℤˣ has a power operation by ZMod 2.

instance Int.instUnitsPow E0 #

{R : Type u_1} → [inst : CommSemiring R] → [Module R (Additive ℤˣ)] → Pow ℤˣ R

There is a canonical power operation on ℤˣ by R if Additive ℤˣ is an R-module.

In lemma names, this operation is called uzpow to match zpow.

Notably this is satisfied by R ∈ {ℕ, ℤ, ZMod 2}.

theorem ofMul_uzpow E0 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : Module R (Additive ℤˣ)] (u : ℤˣ) (r : R),
  Additive.ofMul (u ^ r) = r • Additive.ofMul u

theorem toMul_uzpow E0 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : Module R (Additive ℤˣ)] (u : Additive ℤˣ) (r : R),
  Additive.toMul (r • u) = Additive.toMul u ^ r

theorem uzpow_natCast E1 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : Module R (Additive ℤˣ)] (u : ℤˣ) (n : ℕ), u ^ ↑n = u ^ n

theorem uzpow_coe_nat E1 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : Module R (Additive ℤˣ)] (s : ℤˣ) (n : ℕ) [inst_2 : n.AtLeastTwo],
  s ^ OfNat.ofNat n = s ^ OfNat.ofNat n

theorem one_uzpow E0 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : Module R (Additive ℤˣ)] (x : R), 1 ^ x = 1

theorem mul_uzpow E1 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : Module R (Additive ℤˣ)] (s₁ s₂ : ℤˣ) (x : R),
  (s₁ * s₂) ^ x = s₁ ^ x * s₂ ^ x

theorem uzpow_zero E0 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : Module R (Additive ℤˣ)] (s : ℤˣ), s ^ 0 = 1

theorem uzpow_one E0 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : Module R (Additive ℤˣ)] (s : ℤˣ), s ^ 1 = s

theorem uzpow_mul E1 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : Module R (Additive ℤˣ)] (s : ℤˣ) (x y : R), s ^ (x * y) = (s ^ x) ^ y

theorem uzpow_add E1 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : Module R (Additive ℤˣ)] (s : ℤˣ) (x y : R),
  s ^ (x + y) = s ^ x * s ^ y

theorem uzpow_sub E1 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : Module R (Additive ℤˣ)] (s : ℤˣ) (x y : R), s ^ (x - y) = s ^ x / s ^ y

theorem uzpow_neg E1 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : Module R (Additive ℤˣ)] (s : ℤˣ) (x : R), s ^ (-x) = (s ^ x)⁻¹

theorem uzpow_intCast E1 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : Module R (Additive ℤˣ)] (u : ℤˣ) (z : ℤ), u ^ ↑z = u ^ z