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 / V06. Rings, fields and ordered algebra

Mathlib.Algebra.Algebra.ZMod

6 declarations. Mathlib docs · Source

The ZMod n-algebra structure on rings whose characteristic divides n

instance ZMod.instSubsingletonAlgebra E0 #

∀ (R : Type u_1) [inst : Ring R] (p : ℕ), Subsingleton (Algebra (ZMod p) R)

abbrev ZMod.algebra' E1 #

(R : Type u_1) → [inst : Ring R] → {n : ℕ} → (m : ℕ) → [CharP R m] → m ∣ n → Algebra (ZMod n) R

The ZMod n-algebra structure on rings whose characteristic m divides n. See note [reducible non-instances].

abbrev ZMod.algebra E1 #

(R : Type u_1) → [inst : Ring R] → (p : ℕ) → [CharP R p] → Algebra (ZMod p) R

The ZMod p-algebra structure on a ring of characteristic p. This is not an instance since it creates a diamond with Algebra.id. See note [reducible non-instances].

def ZMod.algebraOfModule E1 #

(n : ℕ) → (R : Type u_2) → [inst : Ring R] → [Module (ZMod n) R] → Algebra (ZMod n) R

Any ring with a ZMod p-module structure can be upgraded to a ZMod p-algebra. Not an instance because this is usually not the default way, and this will cause typeclass search loop.

theorem ZMod.algebraOfModule.proof E1 #

∀ (n : ℕ) (R : Type u_2) [inst : Ring R] [inst_1 : Module (ZMod n) R] (r : ZMod n) (x : R),
  r • 1 * x = r • x ∧ x * r • 1 = r • x

instance ZMod.instIsScalarTower E0 #

∀ (n : ℕ) (R : Type u_2) (M : Type u_3) [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module (ZMod n) R]
  [m₁ : Module (ZMod n) M] [inst_3 : Module R M], IsScalarTower (ZMod n) R M