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 / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.RingTheory.FreeRing

18 declarations. Mathlib docs · Source

def FreeRing E1 #

Type u → Type u

If α is a type, then FreeRing α is the free ring generated by α. This is a ring equipped with a function FreeRing.of : α → FreeRing α which has the following universal property: if R is any ring, and f : α → R is any function, then this function is the composite of FreeRing.of and a unique ring homomorphism FreeRing.lift f : FreeRing α →+* R.

A typical element of FreeRing α is a ℤ-linear combination of formal products of elements of α. For example if x and y are terms of type α then 3 * x * y * x - 2 * y * x + 1 is a "typical" element of FreeRing α. In particular if α is empty then FreeRing α is isomorphic to ℤ, and if α has one term t then FreeRing α is isomorphic to the polynomial ring ℤ[t]. If α has two or more terms then FreeRing α is not commutative. One can think of FreeRing α as the free non-commutative polynomial ring with coefficients in the integers and variables indexed by α.

instance instNontrivialFreeRing E0 #

∀ (α : Type u_1), Nontrivial (FreeRing α)

instance instRingFreeRing E0 #

(α : Type u_1) → Ring (FreeRing α)

instance instInhabitedFreeRing E0 #

(α : Type u_1) → Inhabited (FreeRing α)

def FreeRing.of E1 #

{α : Type u} → α → FreeRing α

The canonical map from α to FreeRing α.

theorem FreeRing.of_injective E1 #

∀ {α : Type u}, Function.Injective FreeRing.of

theorem FreeRing.of_ne_zero E0 #

∀ {α : Type u} (x : α), FreeRing.of x ≠ 0

theorem FreeRing.zero_ne_of E0 #

∀ {α : Type u} (x : α), 0 ≠ FreeRing.of x

theorem FreeRing.of_ne_one E0 #

∀ {α : Type u} (x : α), FreeRing.of x ≠ 1

theorem FreeRing.one_ne_of E0 #

∀ {α : Type u} (x : α), 1 ≠ FreeRing.of x

theorem FreeRing.induction_on E1 #

∀ {α : Type u} {motive : FreeRing α → Prop} (z : FreeRing α),
  motive (-1) →
    (∀ (b : α), motive (FreeRing.of b)) →
      (∀ (x y : FreeRing α), motive x → motive y → motive (x + y)) →
        (∀ (x y : FreeRing α), motive x → motive y → motive (x * y)) → motive z

def FreeRing.lift E1 #

{α : Type u} → {R : Type v} → [inst : Ring R] → (α → R) ≃ (FreeRing α →+* R)

The ring homomorphism FreeRing α →+* R induced from a map α → R.

theorem FreeRing.lift_of E0 #

∀ {α : Type u} {R : Type v} [inst : Ring R] (f : α → R) (x : α), (FreeRing.lift f) (FreeRing.of x) = f x

theorem FreeRing.lift_comp_of E0 #

∀ {α : Type u} {R : Type v} [inst : Ring R] (f : FreeRing α →+* R), FreeRing.lift (⇑f ∘ FreeRing.of) = f

theorem FreeRing.hom_ext E1 #

∀ {α : Type u} {R : Type v} [inst : Ring R] ⦃f g : FreeRing α →+* R⦄,
  (∀ (x : α), f (FreeRing.of x) = g (FreeRing.of x)) → f = g

theorem FreeRing.hom_ext_iff E0 #

∀ {α : Type u} {R : Type v} [inst : Ring R] {f g : FreeRing α →+* R},
  f = g ↔ ∀ (x : α), f (FreeRing.of x) = g (FreeRing.of x)

def FreeRing.map E1 #

{α : Type u} → {β : Type v} → (α → β) → FreeRing α →+* FreeRing β

The canonical ring homomorphism FreeRing α →+* FreeRing β generated by a map α → β.

theorem FreeRing.map_of E0 #

∀ {α : Type u} {β : Type v} (f : α → β) (x : α), (FreeRing.map f) (FreeRing.of x) = FreeRing.of (f x)