Localizations away from an element #
Main definitions #
IsLocalization.Away (x : R) Sexpresses thatSis a localization away fromx, as an abbreviation ofIsLocalization (Submonoid.powers x) S.exists_reduced_fraction' (hb : b ≠ 0)produces a reduced fraction of the formb = a * x^nfor somen : ℤand somea : Rthat is not divisible byx.
Implementation notes #
See Mathlib/RingTheory/Localization/Basic.lean for a design overview.
Tags #
localization, ring localization, commutative ring localization, characteristic predicate, commutative ring, field of fractions
Given x : R, the typeclass IsLocalization.Away x S states that S is
isomorphic to the localization of R at the submonoid generated by x.
Equations
- IsLocalization.Away x S = IsLocalization (Submonoid.powers x) S
Instances For
Given x : R and a localization map F : R →+* S away from x, invSelf is (F x)⁻¹.
Equations
- IsLocalization.Away.invSelf x = IsLocalization.mk' S 1 { val := x, property := (_ : x ∈ Submonoid.powers x) }
Instances For
Given x : R, a localization map F : R →+* S away from x, and a map of CommSemirings
g : R →+* P such that g x is invertible, the homomorphism induced from S to P sending
z : S to g y * (g x)⁻ⁿ, where y : R, n : ℕ are such that z = F y * (F x)⁻ⁿ.
Equations
- IsLocalization.Away.lift x hg = IsLocalization.lift (_ : ∀ (y : { x_1 // x_1 ∈ Submonoid.powers x }), IsUnit (↑g ↑y))
Instances For
Given x y : R and localizations S, P away from x and x * y
respectively, the homomorphism induced from S to P.
Equations
- IsLocalization.Away.awayToAwayRight x y = IsLocalization.Away.lift x (_ : IsUnit (↑(algebraMap R P) x))
Instances For
Given a map f : R →+* S and an element r : R, we may construct a map Rᵣ →+* Sᵣ.
Equations
- IsLocalization.Away.map S Q f r = IsLocalization.map Q f (_ : Submonoid.powers r ≤ Submonoid.comap f (Submonoid.powers (↑f r)))
Instances For
The localization at a module of units is isomorphic to the ring.
Equations
- IsLocalization.atUnits R M S H = AlgEquiv.ofBijective (Algebra.ofId R S) (_ : Function.Injective ↑(Algebra.ofId R S) ∧ Function.Surjective ↑(Algebra.ofId R S))
Instances For
The localization away from a unit is isomorphic to the ring.
Equations
- IsLocalization.atUnit R S x e = IsLocalization.atUnits R (Submonoid.powers x) S (_ : ∀ (x_1 : { x_1 // x_1 ∈ Submonoid.powers x }), IsUnit ↑x_1)
Instances For
The localization at one is isomorphic to the ring.
Equations
- IsLocalization.atOne R S = IsLocalization.atUnit R S 1 (_ : IsUnit 1)
Instances For
Given a map f : R →+* S and an element r : R, such that f r is invertible,
we may construct a map Rᵣ →+* S.
Equations
- Localization.awayLift f r hr = IsLocalization.Away.lift r hr
Instances For
Given a map f : R →+* S and an element r : R, we may construct a map Rᵣ →+* Sᵣ.
Equations
- Localization.awayMap f r = IsLocalization.Away.map (Localization.Away r) (Localization.Away (↑f r)) f r
Instances For
selfZpow x (m : ℤ) is x ^ m as an element of the localization away from x.
Equations
- selfZpow x B m = if x_1 : 0 ≤ m then ↑(algebraMap R B) x ^ Int.natAbs m else IsLocalization.mk' B 1 (Submonoid.pow x (Int.natAbs m))