Module docstring
{"# Localizations of commutative rings
We characterize the localization of a commutative ring R at a submonoid M up to
isomorphism; that is, a commutative ring S is the localization of R at M iff we can find a
ring homomorphism f : R →+* S satisfying 3 properties:
1. For all y ∈ M, f y is a unit;
2. For all z : S, there exists (x, y) : R × M such that z * f y = f x;
3. For all x, y : R such that f x = f y, there exists c ∈ M such that x * c = y * c.
(The converse is a consequence of 1.)
In the following, let R, P be commutative rings, S, Q be R- and P-algebras
and M, T be submonoids of R and P respectively, e.g.:
variable (R S P Q : Type*) [CommRing R] [CommRing S] [CommRing P] [CommRing Q]
variable [Algebra R S] [Algebra P Q] (M : Submonoid R) (T : Submonoid P)
Main definitions
IsLocalization (M : Submonoid R) (S : Type*)is a typeclass expressing thatSis a localization ofRatM, i.e. the canonical mapalgebraMap R S : R →+* Sis a localization map (satisfying the above properties).IsLocalization.mk' Sis a surjection sending(x, y) : R × Mtof x * (f y)⁻¹IsLocalization.liftis the ring homomorphism fromSinduced by a homomorphism fromRwhich maps elements ofMto invertible elements of the codomain.IsLocalization.map S Qis the ring homomorphism fromStoQwhich maps elements ofMto elements ofTIsLocalization.ringEquivOfRingEquiv: ifRandPare isomorphic by an isomorphism sendingMtoT, thenSandQare isomorphic
Main results
Localization M S, a construction of the localization as a quotient type, defined inGroupTheory.MonoidLocalization, hasCommRing,Algebra RandIsLocalization Minstances ifRis a ring.Localization.Away,Localization.AtPrimeandFractionRingare abbreviations forLocalizations and have their correspondingIsLocalizationinstances
Implementation notes
In maths it is natural to reason up to isomorphism, but in Lean we cannot naturally rewrite one
structure with an isomorphic one; one way around this is to isolate a predicate characterizing
a structure up to isomorphism, and reason about things that satisfy the predicate.
A previous version of this file used a fully bundled type of ring localization maps,
then used a type synonym f.codomain for f : LocalizationMap M S to instantiate the
R-algebra structure on S. This results in defining ad-hoc copies for everything already
defined on S. By making IsLocalization a predicate on the algebraMap R S,
we can ensure the localization map commutes nicely with other algebraMaps.
To prove most lemmas about a localization map algebraMap R S in this file we invoke the
corresponding proof for the underlying CommMonoid localization map
IsLocalization.toLocalizationMap M S, which can be found in GroupTheory.MonoidLocalization
and the namespace Submonoid.LocalizationMap.
To reason about the localization as a quotient type, use mk_eq_of_mk' and associated lemmas.
These show the quotient map mk : R → M → Localization M equals the surjection
LocalizationMap.mk' induced by the map algebraMap : R →+* Localization M.
The lemma mk_eq_of_mk' hence gives you access to the results in the rest of the file,
which are about the LocalizationMap.mk' induced by any localization map.
The proof that \"a CommRing K which is the localization of an integral domain R at R \\ {0}
is a field\" is a def rather than an instance, so if you want to reason about a field of
fractions K, assume [Field K] instead of just [CommRing K].
Tags
localization, ring localization, commutative ring localization, characteristic predicate, commutative ring, field of fractions ","### Constructing a localization at a given submonoid "}