The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.FreeCommRing
51 declarations and 1 deprecated aliases. Mathlib docs · Source
Free commutative rings
The theory of the free commutative ring generated by a type α.
It is isomorphic to the polynomial ring over ℤ with variables
in α
Main definitions
FreeCommRing α: the free commutative ring on a type αlift (f : α → R): the ring homFreeCommRing α →+* Rinduced by functoriality fromf.map (f : α → β): the ring homFreeCommRing α →*+ FreeCommRing βinduced by functoriality from f.
Main results
FreeCommRing has functorial properties (it is an adjoint to the forgetful functor).
In this file we have:
-
of : α → FreeCommRing α -
lift (f : α → R) : FreeCommRing α →+* R -
map (f : α → β) : FreeCommRing α →+* FreeCommRing β -
freeCommRingEquivMvPolynomialInt : FreeCommRing α ≃+* MvPolynomial α ℤ:FreeCommRing αis isomorphic to a polynomial ring.
Implementation notes
FreeCommRing α is implemented not using MvPolynomial but
directly as the free abelian group on Multiset α, the type
of monomials in this free commutative ring.
Tags
free commutative ring, free ring
def FreeCommRing E3 #
Type u → Type u
If α is a type, then FreeCommRing α is the free commutative ring generated by α.
This is a commutative ring equipped with a function FreeCommRing.of : α → FreeCommRing α which has
the following universal property: if R is any commutative ring, and f : α → R is any function,
then this function is the composite of FreeCommRing.of and a unique ring homomorphism
FreeCommRing.lift f : FreeCommRing α →+* R.
A typical element of FreeCommRing α is a ℤ-linear combination of
formal products of elements of α.
For example if x and y are terms of type α then 3 * x * x * y - 2 * x * y + 1 is a
"typical" element of FreeCommRing α. In particular if α is empty
then FreeCommRing α is isomorphic to ℤ, and if α has one term t
then FreeCommRing α is isomorphic to the polynomial ring ℤ[t].
One can think of FreeCommRing α as the free polynomial ring
with coefficients in the integers and variables indexed by α.
instance instCommRingFreeCommRing E0 #
(α : Type u_1) → CommRing (FreeCommRing α)
instance instInhabitedFreeCommRing E0 #
(α : Type u_1) → Inhabited (FreeCommRing α)
def FreeCommRing.of E1 #
{α : Type u} → α → FreeCommRing α
The canonical map from α to the free commutative ring on α.
theorem FreeCommRing.of_injective E1 #
∀ {α : Type u}, Function.Injective FreeCommRing.of
theorem FreeCommRing.of_ne_zero E0 #
∀ {α : Type u} (x : α), FreeCommRing.of x ≠ 0
theorem FreeCommRing.zero_ne_of E0 #
∀ {α : Type u} (x : α), 0 ≠ FreeCommRing.of x
theorem FreeCommRing.of_ne_one E0 #
∀ {α : Type u} (x : α), FreeCommRing.of x ≠ 1
theorem FreeCommRing.one_ne_of E0 #
∀ {α : Type u} (x : α), 1 ≠ FreeCommRing.of x
theorem FreeCommRing.induction_on E1 #
∀ {α : Type u} {motive : FreeCommRing α → Prop} (z : FreeCommRing α),
motive (-1) →
(∀ (b : α), motive (FreeCommRing.of b)) →
(∀ (x y : FreeCommRing α), motive x → motive y → motive (x + y)) →
(∀ (x y : FreeCommRing α), motive x → motive y → motive (x * y)) → motive z
def FreeCommRing.lift E1 #
{α : Type u} → {R : Type v} → [inst : CommRing R] → (α → R) ≃ (FreeCommRing α →+* R)
Lift a map α → R to an additive group homomorphism FreeCommRing α → R.
theorem FreeCommRing.lift_of E0 #
∀ {α : Type u} {R : Type v} [inst : CommRing R] (f : α → R) (x : α), (FreeCommRing.lift f) (FreeCommRing.of x) = f x
theorem FreeCommRing.lift_comp_of E0 #
∀ {α : Type u} {R : Type v} [inst : CommRing R] (f : FreeCommRing α →+* R), FreeCommRing.lift (⇑f ∘ FreeCommRing.of) = f
theorem FreeCommRing.hom_ext E1 #
∀ {α : Type u} {R : Type v} [inst : CommRing R] ⦃f g : FreeCommRing α →+* R⦄,
(∀ (x : α), f (FreeCommRing.of x) = g (FreeCommRing.of x)) → f = g
theorem FreeCommRing.hom_ext_iff E0 #
∀ {α : Type u} {R : Type v} [inst : CommRing R] {f g : FreeCommRing α →+* R},
f = g ↔ ∀ (x : α), f (FreeCommRing.of x) = g (FreeCommRing.of x)
def FreeCommRing.map E1 #
{α : Type u} → {β : Type v} → (α → β) → FreeCommRing α →+* FreeCommRing β
A map f : α → β produces a ring homomorphism FreeCommRing α →+* FreeCommRing β.
theorem FreeCommRing.map_of E0 #
∀ {α : Type u} {β : Type v} (f : α → β) (x : α), (FreeCommRing.map f) (FreeCommRing.of x) = FreeCommRing.of (f x)
def FreeCommRing.IsSupported E1 #
{α : Type u} → FreeCommRing α → Set α → Prop
is_supported x s means that all monomials showing up in x have variables in s.
theorem FreeCommRing.isSupported_upwards E1 #
∀ {α : Type u} {x : FreeCommRing α} {s t : Set α}, x.IsSupported s → s ⊆ t → x.IsSupported t
theorem FreeCommRing.isSupported_add E1 #
∀ {α : Type u} {x y : FreeCommRing α} {s : Set α}, x.IsSupported s → y.IsSupported s → (x + y).IsSupported s
theorem FreeCommRing.isSupported_neg E1 #
∀ {α : Type u} {x : FreeCommRing α} {s : Set α}, x.IsSupported s → (-x).IsSupported s
theorem FreeCommRing.isSupported_sub E1 #
∀ {α : Type u} {x y : FreeCommRing α} {s : Set α}, x.IsSupported s → y.IsSupported s → (x - y).IsSupported s
theorem FreeCommRing.isSupported_mul E1 #
∀ {α : Type u} {x y : FreeCommRing α} {s : Set α}, x.IsSupported s → y.IsSupported s → (x * y).IsSupported s
theorem FreeCommRing.isSupported_zero E1 #
∀ {α : Type u} {s : Set α}, FreeCommRing.IsSupported 0 s
theorem FreeCommRing.isSupported_one E1 #
∀ {α : Type u} {s : Set α}, FreeCommRing.IsSupported 1 s
theorem FreeCommRing.isSupported_int E1 #
∀ {α : Type u} {i : ℤ} {s : Set α}, (↑i).IsSupported s
def FreeCommRing.restriction E1 #
{α : Type u} → (s : Set α) → [DecidablePred fun x ↦ x ∈ s] → FreeCommRing α →+* FreeCommRing ↑s
The restriction map from FreeCommRing α to FreeCommRing s where s : Set α, defined
by sending all variables not in s to zero.
theorem FreeCommRing.restriction_of E0 #
∀ {α : Type u} (s : Set α) [inst : DecidablePred fun x ↦ x ∈ s] (p : α),
(FreeCommRing.restriction s) (FreeCommRing.of p) = if H : p ∈ s then FreeCommRing.of ⟨p, H⟩ else 0
theorem FreeCommRing.isSupported_of E1 #
∀ {α : Type u} {p : α} {s : Set α}, (FreeCommRing.of p).IsSupported s ↔ p ∈ s
theorem FreeCommRing.map_subtypeVal_restriction E0 #
∀ {α : Type u} {x : FreeCommRing α} (s : Set α) [inst : DecidablePred fun x ↦ x ∈ s],
x.IsSupported s → (FreeCommRing.map Subtype.val) ((FreeCommRing.restriction s) x) = x
theorem FreeCommRing.exists_finite_support E1 #
∀ {α : Type u} (x : FreeCommRing α), ∃ s, s.Finite ∧ x.IsSupported s
theorem FreeCommRing.exists_finset_support E1 #
∀ {α : Type u} (x : FreeCommRing α), ∃ s, x.IsSupported ↑s
def FreeRing.toFreeCommRing E1 #
{α : Type u_1} → FreeRing α →+* FreeCommRing α
The canonical ring homomorphism from the free ring generated by α to the free commutative ring
generated by α.
def FreeRing.castFreeCommRing E1 #
{α : Type u_1} → FreeRing α → FreeCommRing α
The coercion defined by the canonical ring homomorphism from the free ring generated by α to
the free commutative ring generated by α.
instance FreeRing.FreeCommRing.instCoe E0 #
(α : Type u) → Coe (FreeRing α) (FreeCommRing α)
def FreeRing.coeRingHom E1 #
(α : Type u) → FreeRing α →+* FreeCommRing α
The natural map FreeRing α → FreeCommRing α, as a RingHom.
theorem FreeRing.coe_zero E0 #
∀ (α : Type u), ↑0 = 0
theorem FreeRing.coe_one E0 #
∀ (α : Type u), ↑1 = 1
theorem FreeRing.coe_of E0 #
∀ {α : Type u} (a : α), ↑(FreeRing.of a) = FreeCommRing.of a
theorem FreeRing.coe_neg E0 #
∀ {α : Type u} (x : FreeRing α), ↑(-x) = -↑x
theorem FreeRing.coe_add E0 #
∀ {α : Type u} (x y : FreeRing α), ↑(x + y) = ↑x + ↑y
theorem FreeRing.coe_sub E0 #
∀ {α : Type u} (x y : FreeRing α), ↑(x - y) = ↑x - ↑y
theorem FreeRing.coe_mul E0 #
∀ {α : Type u} (x y : FreeRing α), ↑(x * y) = ↑x * ↑y
theorem FreeRing.coe_surjective E0 #
∀ (α : Type u), Function.Surjective FreeRing.castFreeCommRing
instance FreeRing.instCommRing E0 #
(α : Type u) → [Subsingleton α] → CommRing (FreeRing α)
def FreeRing.subsingletonEquivFreeCommRing E1 #
(α : Type u) → [inst : Subsingleton α] → FreeRing α ≃+* FreeCommRing α
If α has size at most 1 then the natural map from the free ring on α to the
free commutative ring on α is an isomorphism of rings.
def freeCommRingEquivMvPolynomialInt E1 #
(α : Type u) → FreeCommRing α ≃+* MvPolynomial α ℤ
The free commutative ring on α is isomorphic to the polynomial ring over ℤ with
variables in α
def freeCommRingPEmptyEquivInt E1 #
FreeCommRing PEmpty.{u + 1} ≃+* ℤ
The free commutative ring on the empty type is isomorphic to ℤ.
def freeCommRingPUnitEquivPolynomialInt E1 #
FreeCommRing PUnit.{u + 1} ≃+* Polynomial ℤ
The free commutative ring on a type with one term is isomorphic to ℤ[X].
def freeRingPEmptyEquivInt E1 #
FreeRing PEmpty.{u + 1} ≃+* ℤ
The free ring on the empty type is isomorphic to ℤ.
def freeRingPUnitEquivPolynomialInt E1 #
FreeRing PUnit.{u + 1} ≃+* Polynomial ℤ
The free ring on a type with one term is isomorphic to ℤ[X].
Deprecated aliases
| Name | New name | Since |
|---|---|---|
FreeCommRing.map_subtype_val_restriction | FreeCommRing.map_subtypeVal_restriction | 2026-11-10 |