Local rings #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
Define local rings as commutative rings having a unique maximal ideal.
Main definitions #
local_ring
: A predicate on commutative semirings, stating that for any pair of elements that adds up to1
, one of them is a unit. 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
- is_unit_or_is_unit_of_add_one : ∀ {a b : R}, a + b = 1 → is_unit a ∨ is_unit b
A semiring is local if it is nontrivial and a
or b
is a unit whenever a + b = 1
.
Note that local_ring
is a predicate.
Instances of this typeclass
A semiring is local if it is nontrivial and the set of nonunits is closed under the addition.
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' := _}
Instances for local_ring.maximal_ideal
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.
Instances of this typeclass
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
If f : R →+* S
is a surjective local ring hom, then the induced units map is surjective.
The residue field of a local ring is the quotient of the ring by its maximal ideal.
Equations
Equations
The quotient map from a local ring to its residue field.
Equations
Instances for local_ring.residue
Equations
A local ring homomorphism into a field can be descended onto the residue field.
Equations
The map on residue fields induced by a local homomorphism between local rings
Equations
Applying residue_field.map
to the identity ring homomorphism gives the identity
ring homomorphism.
The composite of two residue_field.map
s is the residue_field.map
of the composite.
A ring isomorphism defines an isomorphism of residue fields.
The group homomorphism from ring_aut R
to ring_aut k
where k
is the residue field of R
.
Equations
- local_ring.residue_field.map_aut = {to_fun := local_ring.residue_field.map_equiv _inst_2, map_one' := _, map_mul' := _}
If G
acts on R
as a mul_semiring_action
, then it also acts on residue_field R
.