Local rings #
Define local rings as commutative rings having a unique maximal ideal.
Main definitions #
local_ring
: A predicate on commutative semirings, stating that the set of nonunits is closed under the addition. This is shown to be equivalent to the condition that there exists a unique maximal ideal.local_ring.maximal_ideal
: The unique maximal ideal for a local rings. Its carrier set is the set of non units.is_local_ring_hom
: A predicate on semiring homomorphisms, requiring that it maps nonunits to nonunits. For local rings, this means that the image of the unique maximal ideal is again contained in the unique maximal ideal.local_ring.residue_field
: The quotient of a local ring by its maximal ideal.
- to_nontrivial : nontrivial R
- nonunits_add : ∀ {a b : R}, a ∈ nonunits R → b ∈ nonunits R → a + b ∈ nonunits R
A semiring is local if it is nontrivial and the set of nonunits is closed under the addition.
Note that local_ring
is a predicate.
A semiring is local if it has a unique maximal ideal.
The ideal of elements that are not units.
Equations
- local_ring.maximal_ideal R = {carrier := nonunits R (monoid_with_zero.to_monoid R), add_mem' := _, zero_mem' := _, smul_mem' := _}
A local ring homomorphism is a homomorphism f
between local rings such that a
in the domain
is a unit if f a
is a unit for any a
. See local_ring.local_hom_tfae
for other equivalent
definitions.
If f : R →+* S
is a local ring hom, then R
is a local ring if S
is.
The image of the maximal ideal of the source is contained within the maximal ideal of the target.
A ring homomorphism between local rings is a local ring hom iff it reflects units, i.e. any preimage of a unit is still a unit. https://stacks.math.columbia.edu/tag/07BJ
The residue field of a local ring is the quotient of the ring by its maximal ideal.
Equations
Equations
Equations
- local_ring.residue_field.inhabited R = {default := 37}
The quotient map from a local ring to its residue field.
Equations
Equations
The map on residue fields induced by a local homomorphism between local rings