Localizations of commutative monoids #
Localizing a commutative ring at one of its submonoids does not rely on the ring's addition, so we can generalize localizations to commutative monoids.
We characterize the localization of a commutative monoid M
at a submonoid S
up to
isomorphism; that is, a commutative monoid N
is the localization of M
at S
iff we can find a
monoid homomorphism f : M →* N
satisfying 3 properties:
- For all
y ∈ S
,f y
is a unit; - For all
z : N
, there exists(x, y) : M × S
such thatz * f y = f x
; - For all
x, y : M
such thatf x = f y
, there existsc ∈ S
such thatx * c = y * c
. (The converse is a consequence of 1.)
Given such a localization map f : M →* N
, we can define the surjection
Submonoid.LocalizationMap.mk'
sending (x, y) : M × S
to f x * (f y)⁻¹
, and
Submonoid.LocalizationMap.lift
, the homomorphism from N
induced by a homomorphism from M
which
maps elements of S
to invertible elements of the codomain. Similarly, given commutative monoids
P, Q
, a submonoid T
of P
and a localization map for T
from P
to Q
, then a homomorphism
g : M →* P
such that g(S) ⊆ T
induces a homomorphism of localizations, LocalizationMap.map
,
from N
to Q
. We treat the special case of localizing away from an element in the sections
AwayMap
and Away
.
We also define the quotient of M × S
by the unique congruence relation (equivalence relation
preserving a binary operation) r
such that for any other congruence relation s
on M × S
satisfying '∀ y ∈ S
, (1, 1) ∼ (y, y)
under s
', we have that (x₁, y₁) ∼ (x₂, y₂)
by s
whenever (x₁, y₁) ∼ (x₂, y₂)
by r
. We show this relation is equivalent to the standard
localization relation.
This defines the localization as a quotient type, Localization
, but the majority of
subsequent lemmas in the file are given in terms of localizations up to isomorphism, using maps
which satisfy the characteristic predicate.
The Grothendieck group construction corresponds to localizing at the top submonoid, namely making every element invertible.
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.
The infimum form of the localization congruence relation is chosen as 'canonical' here, since it shortens some proofs.
To apply a localization map f
as a function, we use f.toMap
, as coercions don't work well for
this structure.
To reason about the localization as a quotient type, use mk_eq_monoidOf_mk'
and associated
lemmas. These show the quotient map mk : M → S → Localization S
equals the
surjection LocalizationMap.mk'
induced by the map
Localization.monoidOf : Submonoid.LocalizationMap S (Localization S)
(where of
establishes the
localization as a quotient type satisfies the characteristic predicate). The lemma
mk_eq_monoidOf_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.
TODO #
- Show that the localization at the top monoid is a group.
- Generalise to (nonempty) subsemigroups.
- If we acquire more bundlings, we can make
Localization.mkOrderEmbedding
be an ordered monoid embedding.
Tags #
localization, monoid localization, quotient monoid, congruence relation, characteristic predicate, commutative monoid, grothendieck group
The type of AddMonoid homomorphisms satisfying the characteristic predicate: if f : M →+ N
satisfies this predicate, then N
is isomorphic to the localization of M
at S
.
Instances For
The type of monoid homomorphisms satisfying the characteristic predicate: if f : M →* N
satisfies this predicate, then N
is isomorphic to the localization of M
at S
.
Instances For
The congruence relation on M × S
, M
an AddCommMonoid
and S
an add_submonoid
of M
,
whose quotient is the localization of M
at S
, defined as the unique congruence relation on
M × S
such that for any other congruence relation s
on M × S
where for all y ∈ S
,
(0, 0) ∼ (y, y)
under s
, we have that (x₁, y₁) ∼ (x₂, y₂)
by r
implies
(x₁, y₁) ∼ (x₂, y₂)
by s
.
Equations
- AddLocalization.r S = sInf {c : AddCon (M × ↥S) | ∀ (y : ↥S), c 0 (↑y, y)}
Instances For
The congruence relation on M × S
, M
a CommMonoid
and S
a submonoid of M
, whose
quotient is the localization of M
at S
, defined as the unique congruence relation on
M × S
such that for any other congruence relation s
on M × S
where for all y ∈ S
,
(1, 1) ∼ (y, y)
under s
, we have that (x₁, y₁) ∼ (x₂, y₂)
by r
implies
(x₁, y₁) ∼ (x₂, y₂)
by s
.
Equations
- Localization.r S = sInf {c : Con (M × ↥S) | ∀ (y : ↥S), c 1 (↑y, y)}
Instances For
An alternate form of the congruence relation on M × S
, M
a CommMonoid
and S
a
submonoid of M
, whose quotient is the localization of M
at S
.
Equations
Instances For
Equations
- ⋯ = ⋯
Instances For
An alternate form of the congruence relation on M × S
, M
a CommMonoid
and S
a
submonoid of M
, whose quotient is the localization of M
at S
.
Equations
Instances For
Equations
- ⋯ = ⋯
Instances For
Equations
- ⋯ = ⋯
Instances For
The additive congruence relation used to localize an AddCommMonoid
at a submonoid can be
expressed equivalently as an infimum (see AddLocalization.r
) or explicitly
(see AddLocalization.r'
).
Equations
- ⋯ = ⋯
Instances For
The congruence relation used to localize a CommMonoid
at a submonoid can be expressed
equivalently as an infimum (see Localization.r
) or explicitly
(see Localization.r'
).
The localization of an AddCommMonoid
at one of its submonoids (as a quotient type).
Equations
Instances For
The localization of a CommMonoid
at one of its submonoids (as a quotient type).
Equations
Instances For
Equations
- AddLocalization.inhabited S = AddCon.Quotient.inhabited
Equations
- Localization.inhabited S = Con.Quotient.inhabited
Multiplication in a Localization
is defined as ⟨a, b⟩ * ⟨c, d⟩ = ⟨a * c, b * d⟩
.
Equations
Instances For
Addition in an AddLocalization
is defined as ⟨a, b⟩ + ⟨c, d⟩ = ⟨a + c, b + d⟩
.
Should not be confused with the ring localization counterpart Localization.add
, which maps
⟨a, b⟩ + ⟨c, d⟩
to ⟨d * a + b * c, b * d⟩
.
Addition in an AddLocalization
is defined as ⟨a, b⟩ + ⟨c, d⟩ = ⟨a + c, b + d⟩
.
Should not be confused with the ring localization counterpart Localization.add
, which maps
⟨a, b⟩ + ⟨c, d⟩
to ⟨d * a + b * c, b * d⟩
.
Equations
Instances For
Equations
- AddLocalization.instAddLocalization S = { add := AddLocalization.add S }
Equations
- Localization.instMulLocalization S = { mul := Localization.mul S }
The identity element of an AddLocalization
is defined as ⟨0, 0⟩
.
Should not be confused with the ring localization counterpart Localization.zero
,
which is defined as ⟨0, 1⟩
.
Equations
Instances For
The identity element of an AddLocalization
is defined as ⟨0, 0⟩
.
Should not be confused with the ring localization counterpart Localization.zero
,
which is defined as ⟨0, 1⟩
.
Equations
- AddLocalization.instZeroLocalization S = { zero := AddLocalization.zero S }
Equations
- Localization.instOneLocalization S = { one := Localization.one S }
Exponentiation in a Localization
is defined as ⟨a, b⟩ ^ n = ⟨a ^ n, b ^ n⟩
.
This is a separate irreducible
def to ensure the elaborator doesn't waste its time
trying to unify some huge recursive definition with itself, but unfolded one step less.
Equations
Instances For
Multiplication with a natural in an AddLocalization
is defined as
n • ⟨a, b⟩ = ⟨n • a, n • b⟩
.
This is a separate irreducible
def to ensure the elaborator doesn't waste its time
trying to unify some huge recursive definition with itself, but unfolded one step less.
Equations
Instances For
Multiplication with a natural in an AddLocalization
is defined as
n • ⟨a, b⟩ = ⟨n • a, n • b⟩
.
This is a separate irreducible
def to ensure the elaborator doesn't waste its time
trying to unify some huge recursive definition with itself, but unfolded one step less.
Equations
Equations
Given an AddCommMonoid
M
and submonoid S
, mk
sends x : M
, y ∈ S
to
the equivalence class of (x, y)
in the localization of M
at S
.
Equations
- AddLocalization.mk x y = (AddCon.mk' (AddLocalization.r S)) (x, y)
Instances For
Given a CommMonoid
M
and submonoid S
, mk
sends x : M
, y ∈ S
to the equivalence
class of (x, y)
in the localization of M
at S
.
Equations
- Localization.mk x y = (Con.mk' (Localization.r S)) (x, y)
Instances For
Dependent recursion principle for AddLocalizations
: given elements f a b : p (mk a b)
for all a b
, such that r S (a, b) (c, d)
implies f a b = f c d
(with the correct coercions),
then f
is defined on the whole AddLocalization S
.
Equations
- AddLocalization.rec f H x = Quot.rec (fun (y : M × ↥S) => ⋯ ▸ f y.1 y.2) ⋯ x
Instances For
Dependent recursion principle for Localizations
: given elements f a b : p (mk a b)
for all a b
, such that r S (a, b) (c, d)
implies f a b = f c d
(with the correct coercions),
then f
is defined on the whole Localization S
.
Equations
- Localization.rec f H x = Quot.rec (fun (y : M × ↥S) => ⋯ ▸ f y.1 y.2) ⋯ x
Instances For
Copy of Quotient.recOnSubsingleton₂
for AddLocalization
Equations
- One or more equations did not get rendered due to their size.
Instances For
Copy of Quotient.recOnSubsingleton₂
for Localization
Equations
- One or more equations did not get rendered due to their size.
Instances For
Non-dependent recursion principle for AddLocalization
s: given elements f a b : p
for all a b
, such that r S (a, b) (c, d)
implies f a b = f c d
,
then f
is defined on the whole Localization S
.
Equations
- AddLocalization.liftOn x f H = AddLocalization.rec f ⋯ x
Instances For
Non-dependent recursion principle for localizations: given elements f a b : p
for all a b
, such that r S (a, b) (c, d)
implies f a b = f c d
,
then f
is defined on the whole Localization S
.
Equations
- Localization.liftOn x f H = Localization.rec f ⋯ x
Instances For
Equations
- ⋯ = ⋯
Instances For
Non-dependent recursion principle for localizations: given elements f x y : p
for all x
and y
, such that r S x x'
and r S y y'
implies f x y = f x' y'
,
then f
is defined on the whole Localization S
.
Equations
- AddLocalization.liftOn₂ x y f H = AddLocalization.liftOn x (fun (a : M) (b : ↥S) => AddLocalization.liftOn y (f a b) ⋯) ⋯
Instances For
Non-dependent recursion principle for localizations: given elements f x y : p
for all x
and y
, such that r S x x'
and r S y y'
implies f x y = f x' y'
,
then f
is defined on the whole Localization S
.
Equations
- Localization.liftOn₂ x y f H = Localization.liftOn x (fun (a : M) (b : ↥S) => Localization.liftOn y (f a b) ⋯) ⋯
Instances For
Scalar multiplication in a monoid localization is defined as c • ⟨a, b⟩ = ⟨c • a, b⟩
.
Equations
Instances For
Equations
- Localization.instSMulLocalization = { smul := Localization.smul }
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- Localization.instMulActionLocalization = MulAction.mk ⋯ ⋯
Equations
- Localization.instMulDistribMulActionLocalizationToMonoidCommMonoid = MulDistribMulAction.mk ⋯ ⋯
Makes a localization map from an AddCommMonoid
hom satisfying the characteristic predicate.
Equations
- AddMonoidHom.toLocalizationMap f H1 H2 H3 = { toAddMonoidHom := f, map_add_units' := H1, surj' := H2, exists_of_eq := H3 }
Instances For
Makes a localization map from a CommMonoid
hom satisfying the characteristic predicate.
Equations
- MonoidHom.toLocalizationMap f H1 H2 H3 = { toMonoidHom := f, map_units' := H1, surj' := H2, exists_of_eq := H3 }
Instances For
Short for toAddMonoidHom
; used to apply a localization map as a function.
Equations
- AddSubmonoid.LocalizationMap.toMap f = f.toAddMonoidHom
Instances For
Short for toMonoidHom
; used to apply a localization map as a function.
Equations
- Submonoid.LocalizationMap.toMap f = f.toMonoidHom
Instances For
Given a localization map f : M →+ N
, and z w : N
, there exist z' w' : M
and d : S
such that f z' - f d = z
and f w' - f d = w
.
Equations
- ⋯ = ⋯
Instances For
Given a localization map f : M →* N
, and z w : N
, there exist z' w' : M
and d : S
such that f z' / f d = z
and f w' / f d = w
.
Equations
- ⋯ = ⋯
Instances For
Given a localization map f : M →+ N
, a section function sending z : N
to some (x, y) : M × S
such that f x - f y = z
.
Equations
Instances For
Given a localization map f : M →* N
, a section function sending z : N
to some
(x, y) : M × S
such that f x * (f y)⁻¹ = z
.
Equations
Instances For
Given an AddMonoidHom f : M →+ N
and Submonoid S ⊆ M
such that
f(S) ⊆ AddUnits N
, for all w, z : N
and y ∈ S
, we have w - f y = z ↔ w = f y + z
.
Given a MonoidHom f : M →* N
and Submonoid S ⊆ M
such that f(S) ⊆ Nˣ
, for all
w, z : N
and y ∈ S
, we have w * (f y)⁻¹ = z ↔ w = f y * z
.
Given an AddMonoidHom f : M →+ N
and Submonoid S ⊆ M
such that
f(S) ⊆ AddUnits N
, for all w, z : N
and y ∈ S
, we have z = w - f y ↔ z + f y = w
.
Given a MonoidHom f : M →* N
and Submonoid S ⊆ M
such that f(S) ⊆ Nˣ
, for all
w, z : N
and y ∈ S
, we have z = w * (f y)⁻¹ ↔ z * f y = w
.
Given an AddMonoidHom f : M →+ N
and Submonoid S ⊆ M
such that
f(S) ⊆ AddUnits N
, for all x₁ x₂ : M
and y₁, y₂ ∈ S
, we have
f x₁ - f y₁ = f x₂ - f y₂ ↔ f (x₁ + y₂) = f (x₂ + y₁)
.
Given a MonoidHom f : M →* N
and Submonoid S ⊆ M
such that
f(S) ⊆ Nˣ
, for all x₁ x₂ : M
and y₁, y₂ ∈ S
, we have
f x₁ * (f y₁)⁻¹ = f x₂ * (f y₂)⁻¹ ↔ f (x₁ * y₂) = f (x₂ * y₁)
.
Given an AddMonoidHom f : M →+ N
and Submonoid S ⊆ M
such that
f(S) ⊆ AddUnits N
, for all y, z ∈ S
, we have - (f y) = - (f z) → f y = f z
.
Given a MonoidHom f : M →* N
and Submonoid S ⊆ M
such that f(S) ⊆ Nˣ
, for all
y, z ∈ S
, we have (f y)⁻¹ = (f z)⁻¹ → f y = f z
.
Given an AddMonoidHom f : M →+ N
and Submonoid S ⊆ M
such that
f(S) ⊆ AddUnits N
, for all y ∈ S
, - (f y)
is unique.
Given a MonoidHom f : M →* N
and Submonoid S ⊆ M
such that f(S) ⊆ Nˣ
, for all
y ∈ S
, (f y)⁻¹
is unique.
Equations
- ⋯ = ⋯
Instances For
Given a localization map f : M →+ N
, the surjection sending (x, y) : M × S
to f x - f y
.
Equations
Instances For
Given a localization map f : M →* N
, the surjection sending (x, y) : M × S
to
f x * (f y)⁻¹
.
Equations
- Submonoid.LocalizationMap.mk' f x y = (Submonoid.LocalizationMap.toMap f) x * ↑((IsUnit.liftRight (MonoidHom.restrict (Submonoid.LocalizationMap.toMap f) S) ⋯) y)⁻¹
Instances For
Given a localization map f : M →+ N
for a Submonoid S ⊆ M
, for all z : N
we have that if x : M, y ∈ S
are such that z + f y = f x
, then f x - f y = z
.
Given a localization map f : M →* N
for a submonoid S ⊆ M
, for all z : N
we have that if
x : M, y ∈ S
are such that z * f y = f x
, then f x * (f y)⁻¹ = z
.
Given a Localization map f : M →+ N
for a Submonoid S ⊆ M
, for all x₁ : M
and y₁ ∈ S
, if x₂ : M, y₂ ∈ S
are such that (f x₁ - f y₁) + f y₂ = f x₂
, then there exists
c ∈ S
such that x₁ + y₂ + c = x₂ + y₁ + c
.
Given a Localization map f : M →* N
for a Submonoid S ⊆ M
, for all x₁ : M
and y₁ ∈ S
,
if x₂ : M, y₂ ∈ S
are such that f x₁ * (f y₁)⁻¹ * f y₂ = f x₂
, then there exists c ∈ S
such that x₁ * y₂ * c = x₂ * y₁ * c
.
Given a Localization map f : M →+ N
for a Submonoid S ⊆ M
and a map of
AddCommMonoid
s g : M →+ P
such that g(S) ⊆ AddUnits P
, f x = f y → g x = g y
for all x y : M
.
Given a Localization map f : M →* N
for a Submonoid S ⊆ M
and a map of CommMonoid
s
g : M →* P
such that g(S) ⊆ Units P
, f x = f y → g x = g y
for all x y : M
.
Given AddCommMonoid
s M, P
, Localization maps f : M →+ N, k : P →+ Q
for Submonoids
S, T
respectively, and g : M →+ P
such that g(S) ⊆ T
, f x = f y
implies k (g x) = k (g y)
.
Given CommMonoid
s M, P
, Localization maps f : M →* N, k : P →* Q
for Submonoids
S, T
respectively, and g : M →* P
such that g(S) ⊆ T
, f x = f y
implies
k (g x) = k (g y)
.
Given a localization map f : M →+ N
for a submonoid S ⊆ M
and a map of
AddCommMonoid
s g : M →+ P
such that g y
is invertible for all y : S
, the homomorphism
induced from N
to P
sending z : N
to g x - g y
, where (x, y) : M × S
are such that
z = f x - f y
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given a Localization map f : M →* N
for a Submonoid S ⊆ M
and a map of CommMonoid
s
g : M →* P
such that g y
is invertible for all y : S
, the homomorphism induced from
N
to P
sending z : N
to g x * (g y)⁻¹
, where (x, y) : M × S
are such that
z = f x * (f y)⁻¹
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given a Localization map f : M →+ N
for a Submonoid S ⊆ M
and a map of
AddCommMonoid
s g : M →+ P
such that g y
is invertible for all y : S
, the homomorphism
induced from N
to P
maps f x - f y
to g x - g y
for all x : M, y ∈ S
.
Given a Localization map f : M →* N
for a Submonoid S ⊆ M
and a map of CommMonoid
s
g : M →* P
such that g y
is invertible for all y : S
, the homomorphism induced from
N
to P
maps f x * (f y)⁻¹
to g x * (g y)⁻¹
for all x : M, y ∈ S
.
Given a Localization map f : M →+ N
for a Submonoid S ⊆ M
, if an
AddCommMonoid
map g : M →+ P
induces a map f.lift hg : N →+ P
then for all
z : N, v : P
, we have f.lift hg z = v ↔ g x = g y + v
, where x : M, y ∈ S
are such that
z + f y = f x
.
Given a Localization map f : M →* N
for a Submonoid S ⊆ M
, if a CommMonoid
map
g : M →* P
induces a map f.lift hg : N →* P
then for all z : N, v : P
, we have
f.lift hg z = v ↔ g x = g y * v
, where x : M, y ∈ S
are such that z * f y = f x
.
Given a Localization map f : M →+ N
for a Submonoid S ⊆ M
, if an AddCommMonoid
map
g : M →+ P
induces a map f.lift hg : N →+ P
then for all
z : N, v w : P
, we have f.lift hg z + w = v ↔ g x + w = g y + v
, where x : M, y ∈ S
are such
that z + f y = f x
.
Given a Localization map f : M →* N
for a Submonoid S ⊆ M
, if a CommMonoid
map
g : M →* P
induces a map f.lift hg : N →* P
then for all z : N, v w : P
, we have
f.lift hg z * w = v ↔ g x * w = g y * v
, where x : M, y ∈ S
are such that
z * f y = f x
.
Given a Localization map f : M →+ N
for a Submonoid S ⊆ M
, if an AddCommMonoid
map g : M →+ P
induces a map f.lift hg : N →+ P
then for all z : N
, we have
f.lift hg z + g y = g x
, where x : M, y ∈ S
are such that z + f y = f x
.
Given a Localization map f : M →* N
for a Submonoid S ⊆ M
, if a CommMonoid
map
g : M →* P
induces a map f.lift hg : N →* P
then for all z : N
, we have
f.lift hg z * g y = g x
, where x : M, y ∈ S
are such that z * f y = f x
.
Given a Localization map f : M →+ N
for a Submonoid S ⊆ M
, if an AddCommMonoid
map
g : M →+ P
induces a map f.lift hg : N →+ P
then for all z : N
, we have
g y + f.lift hg z = g x
, where x : M, y ∈ S
are such that z + f y = f x
.
Given a Localization map f : M →* N
for a Submonoid S ⊆ M
, if a CommMonoid
map
g : M →* P
induces a map f.lift hg : N →* P
then for all z : N
, we have
g y * f.lift hg z = g x
, where x : M, y ∈ S
are such that z * f y = f x
.
Given Localization maps f : M →+ N
for a Submonoid S ⊆ M
and
k : M →+ Q
for a Submonoid T ⊆ M
, such that S ≤ T
, and we have
l : M →+ A
, the composition of the induced map f.lift
for k
with
the induced map k.lift
for l
is equal to the induced map f.lift
for l
Given Localization maps f : M →* N
for a Submonoid S ⊆ M
and
k : M →* Q
for a Submonoid T ⊆ M
, such that S ≤ T
, and we have
l : M →* A
, the composition of the induced map f.lift
for k
with
the induced map k.lift
for l
is equal to the induced map f.lift
for l
.
Given two Localization maps f : M →+ N, k : M →+ P
for a Submonoid S ⊆ M
, the hom
from P
to N
induced by f
is left inverse to the hom from N
to P
induced by k
.
Given two Localization maps f : M →* N, k : M →* P
for a Submonoid S ⊆ M
, the hom
from P
to N
induced by f
is left inverse to the hom from N
to P
induced by k
.
Given an AddCommMonoid
homomorphism g : M →+ P
where for Submonoids S ⊆ M, T ⊆ P
we have
g(S) ⊆ T
, the induced AddMonoid homomorphism from the Localization of M
at S
to the
Localization of P
at T
: if f : M →+ N
and k : P →+ Q
are Localization maps for S
and
T
respectively, we send z : N
to k (g x) - k (g y)
, where (x, y) : M × S
are such
that z = f x - f y
.
Equations
Instances For
Given a CommMonoid
homomorphism g : M →* P
where for Submonoids S ⊆ M, T ⊆ P
we have
g(S) ⊆ T
, the induced Monoid homomorphism from the Localization of M
at S
to the
Localization of P
at T
: if f : M →* N
and k : P →* Q
are Localization maps for S
and
T
respectively, we send z : N
to k (g x) * (k (g y))⁻¹
, where (x, y) : M × S
are such
that z = f x * (f y)⁻¹
.
Equations
Instances For
Given Localization maps f : M →+ N, k : P →+ Q
for Submonoids S, T
respectively, if an
AddCommMonoid
homomorphism g : M →+ P
induces a f.map hy k : N →+ Q
, then for all z : N
,
u : Q
, we have f.map hy k z = u ↔ k (g x) = k (g y) + u
where x : M, y ∈ S
are such that
z + f y = f x
.
Given Localization maps f : M →* N, k : P →* Q
for Submonoids S, T
respectively, if a
CommMonoid
homomorphism g : M →* P
induces a f.map hy k : N →* Q
, then for all z : N
,
u : Q
, we have f.map hy k z = u ↔ k (g x) = k (g y) * u
where x : M, y ∈ S
are such that
z * f y = f x
.
Given Localization maps f : M →+ N, k : P →+ Q
for Submonoids S, T
respectively, if an
AddCommMonoid
homomorphism g : M →+ P
induces a f.map hy k : N →+ Q
, then for all z : N
,
we have f.map hy k z + k (g y) = k (g x)
where x : M, y ∈ S
are such that
z + f y = f x
.
Given Localization maps f : M →* N, k : P →* Q
for Submonoids S, T
respectively, if a
CommMonoid
homomorphism g : M →* P
induces a f.map hy k : N →* Q
, then for all z : N
,
we have f.map hy k z * k (g y) = k (g x)
where x : M, y ∈ S
are such that
z * f y = f x
.
Given Localization maps f : M →+ N, k : P →+ Q
for Submonoids S, T
respectively if an
AddCommMonoid
homomorphism g : M →+ P
induces a f.map hy k : N →+ Q
, then for all z : N
,
we have k (g y) + f.map hy k z = k (g x)
where x : M, y ∈ S
are such that
z + f y = f x
.
Given Localization maps f : M →* N, k : P →* Q
for Submonoids S, T
respectively, if a
CommMonoid
homomorphism g : M →* P
induces a f.map hy k : N →* Q
, then for all z : N
,
we have k (g y) * f.map hy k z = k (g x)
where x : M, y ∈ S
are such that
z * f y = f x
.
If AddCommMonoid
homs g : M →+ P, l : P →+ A
induce maps of localizations, the composition
of the induced maps equals the map of localizations induced by l ∘ g
.
If CommMonoid
homs g : M →* P, l : P →* A
induce maps of localizations, the composition
of the induced maps equals the map of localizations induced by l ∘ g
.
If AddCommMonoid
homs g : M →+ P, l : P →+ A
induce maps of localizations, the composition
of the induced maps equals the map of localizations induced by l ∘ g
.
If CommMonoid
homs g : M →* P, l : P →* A
induce maps of localizations, the composition
of the induced maps equals the map of localizations induced by l ∘ g
.
Equations
- ⋯ = ⋯
Instances For
Given an injective AddCommMonoid
homomorphism g : M →+ P
, and a
submonoid S ⊆ M
, the induced monoid homomorphism from the localization of M
at S
to the localization of P
at g S
, is injective.
Given an injective CommMonoid
homomorphism g : M →* P
, and a submonoid S ⊆ M
,
the induced monoid homomorphism from the localization of M
at S
to the
localization of P
at g S
, is injective.
Given x : M
, the type of AddCommMonoid
homomorphisms f : M →+ N
such that N
is isomorphic to the localization of M
at the AddSubmonoid generated by x
.
Equations
Instances For
Given x : M
, the type of CommMonoid
homomorphisms f : M →* N
such that N
is isomorphic to the Localization of M
at the Submonoid generated by x
.
Equations
Instances For
Given x : M
and a Localization map F : M →* N
away from x
, invSelf
is (F x)⁻¹
.
Equations
- Submonoid.LocalizationMap.AwayMap.invSelf x F = Submonoid.LocalizationMap.mk' F 1 { val := x, property := ⋯ }
Instances For
Given x : M
, a Localization map F : M →* N
away from x
, and a map of CommMonoid
s
g : M →* P
such that g x
is invertible, the homomorphism induced from N
to P
sending
z : N
to g y * (g x)⁻ⁿ
, where y : M, n : ℕ
are such that z = F y * (F x)⁻ⁿ
.
Equations
Instances For
Given x y : M
and Localization maps F : M →* N, G : M →* P
away from x
and x * y
respectively, the homomorphism induced from N
to P
.
Equations
Instances For
Given x : A
and a Localization map F : A →+ B
away from x
, neg_self
is - (F x)
.
Equations
- AddSubmonoid.LocalizationMap.AwayMap.negSelf x F = AddSubmonoid.LocalizationMap.mk' F 0 { val := x, property := ⋯ }
Instances For
Given x : A
, a localization map F : A →+ B
away from x
, and a map of AddCommMonoid
s
g : A →+ C
such that g x
is invertible, the homomorphism induced from B
to C
sending
z : B
to g y - n • g x
, where y : A, n : ℕ
are such that z = F y - n • F x
.
Equations
Instances For
Given x y : A
and Localization maps F : A →+ B, G : A →+ C
away from x
and x + y
respectively, the homomorphism induced from B
to C
.
Equations
Instances For
If f : M →+ N
and k : M →+ R
are Localization maps for an AddSubmonoid S
, we get an
isomorphism of N
and R
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If f : M →* N
and k : M →* P
are Localization maps for a Submonoid S
, we get an
isomorphism of N
and P
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If f : M →+ N
is a Localization map for a Submonoid S
and k : N ≃+ P
is an isomorphism
of AddCommMonoid
s, k ∘ f
is a Localization map for M
at S
.
Equations
Instances For
Equations
- ⋯ = ⋯
Instances For
If f : M →* N
is a Localization map for a Submonoid S
and k : N ≃* P
is an isomorphism
of CommMonoid
s, k ∘ f
is a Localization map for M
at S
.
Equations
Instances For
Equations
- ⋯ = ⋯
Instances For
Given AddCommMonoid
s M, P
and AddSubmonoid
s S ⊆ M, T ⊆ P
, if f : M →* N
is a
Localization map for S
and k : P ≃+ M
is an isomorphism of AddCommMonoid
s such that
k(T) = S
, f ∘ k
is a Localization map for T
.
Equations
- AddSubmonoid.LocalizationMap.ofAddEquivOfDom f H = let H' := ⋯; AddMonoidHom.toLocalizationMap (AddMonoidHom.comp (AddSubmonoid.LocalizationMap.toMap f) (AddEquiv.toAddMonoidHom k)) ⋯ ⋯ ⋯
Instances For
Equations
- ⋯ = ⋯
Instances For
Equations
- ⋯ = ⋯
Instances For
Equations
- ⋯ = ⋯
Instances For
Equations
- ⋯ = ⋯
Instances For
Given CommMonoid
s M, P
and Submonoids S ⊆ M, T ⊆ P
, if f : M →* N
is a Localization
map for S
and k : P ≃* M
is an isomorphism of CommMonoid
s such that k(T) = S
, f ∘ k
is a Localization map for T
.
Equations
- Submonoid.LocalizationMap.ofMulEquivOfDom f H = let H' := ⋯; MonoidHom.toLocalizationMap (MonoidHom.comp (Submonoid.LocalizationMap.toMap f) (MulEquiv.toMonoidHom k)) ⋯ ⋯ ⋯
Instances For
A special case of f ∘ id = f
, f
a Localization map.
Equations
- ⋯ = ⋯
Instances For
A special case of f ∘ id = f
, f
a Localization map.
Given Localization maps f : M →+ N, k : P →+ U
for Submonoids S, T
respectively, an
isomorphism j : M ≃+ P
such that j(S) = T
induces an isomorphism of localizations N ≃+ U
.
Equations
Instances For
Given Localization maps f : M →* N, k : P →* U
for Submonoids S, T
respectively, an
isomorphism j : M ≃* P
such that j(S) = T
induces an isomorphism of localizations N ≃* U
.
Equations
Instances For
Natural homomorphism sending x : M
, M
an AddCommMonoid
, to the equivalence class of
(x, 0)
in the Localization of M
at a Submonoid.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Natural homomorphism sending x : M
, M
a CommMonoid
, to the equivalence class of
(x, 1)
in the Localization of M
at a Submonoid.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given a Localization map f : M →+ N
for a Submonoid S
, we get an isomorphism between
the Localization of M
at S
as a quotient type and N
.
Equations
Instances For
Given a Localization map f : M →* N
for a Submonoid S
, we get an isomorphism between
the Localization of M
at S
as a quotient type and N
.
Equations
Instances For
Given x : M
, the Localization of M
at the Submonoid generated by x
, as a quotient.
Equations
Instances For
Given x : M
, the Localization of M
at the Submonoid generated by x
, as a quotient.
Equations
Instances For
Given x : M
, negSelf
is -x
in the Localization (as a quotient type) of M
at the
Submonoid generated by x
.
Equations
- AddLocalization.Away.negSelf x = AddLocalization.mk 0 { val := x, property := ⋯ }
Instances For
Given x : M
, invSelf
is x⁻¹
in the Localization (as a quotient type) of M
at the
Submonoid generated by x
.
Equations
- Localization.Away.invSelf x = Localization.mk 1 { val := x, property := ⋯ }
Instances For
Given x : M
, the natural hom sending y : M
, M
an AddCommMonoid
, to the equivalence
class of (y, 0)
in the Localization of M
at the Submonoid generated by x
.
Equations
Instances For
Given x : M
, the natural hom sending y : M
, M
a CommMonoid
, to the equivalence class
of (y, 1)
in the Localization of M
at the Submonoid generated by x
.
Equations
Instances For
Given x : M
and a Localization map f : M →+ N
away from x
, we get an isomorphism between
the Localization of M
at the Submonoid generated by x
as a quotient type and N
.
Instances For
Given x : M
and a Localization map f : M →* N
away from x
, we get an isomorphism between
the Localization of M
at the Submonoid generated by x
as a quotient type and N
.
Equations
Instances For
If S
contains 0
then the localization at S
is trivial.
The type of homomorphisms between monoids with zero satisfying the characteristic predicate:
if f : M →*₀ N
satisfies this predicate, then N
is isomorphic to the localization of M
at
S
.
- toFun : M → N
- map_one' : self.toFun 1 = 1
- map_units' : ∀ (y : ↥S), IsUnit (self.toFun ↑y)
- map_zero' : self.toFun 0 = 0
Instances For
The monoid with zero hom underlying a LocalizationMap
.
Equations
- Submonoid.LocalizationWithZeroMap.toMonoidWithZeroHom f = { toZeroHom := { toFun := f.toFun, map_zero' := ⋯ }, map_one' := ⋯, map_mul' := ⋯ }
Instances For
The zero element in a Localization is defined as (0, 1)
.
Should not be confused with AddLocalization.zero
which is (0, 0)
.
Equations
Instances For
Equations
- Localization.instZeroLocalizationToCommMonoid S = { zero := Localization.zero S }
Equations
- Localization.instCommMonoidWithZeroLocalizationToCommMonoid = CommMonoidWithZero.mk ⋯ ⋯
Given a Localization map f : M →*₀ N
for a Submonoid S ⊆ M
and a map of
CommMonoidWithZero
s g : M →*₀ P
such that g y
is invertible for all y : S
, the
homomorphism induced from N
to P
sending z : N
to g x * (g y)⁻¹
, where (x, y) : M × S
are such that z = f x * (f y)⁻¹
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given a Localization map f : M →*₀ N
for a Submonoid S ⊆ M
,
if M
is left cancellative monoid with zero, and all elements of S
are
left regular, then N is a left cancellative monoid with zero.
Given a Localization map f : M →*₀ N
for a Submonoid S ⊆ M
,
if M
is a cancellative monoid with zero, and all elements of S
are
regular, then N is a cancellative monoid with zero.
Alias of Submonoid.LocalizationWithZeroMap.isLeftRegular_of_le_isCancelMulZero
.
Given a Localization map f : M →*₀ N
for a Submonoid S ⊆ M
,
if M
is a cancellative monoid with zero, and all elements of S
are
regular, then N is a cancellative monoid with zero.
Equations
- AddLocalization.decidableEq a b = AddLocalization.recOnSubsingleton₂ a b fun (x x_1 : α) (x_2 x_3 : ↥s) => decidable_of_iff' (↑x_3 + x = ↑x_2 + x_1) ⋯
Equations
- Localization.decidableEq a b = Localization.recOnSubsingleton₂ a b fun (x x_1 : α) (x_2 x_3 : ↥s) => decidable_of_iff' (↑x_3 * x = ↑x_2 * x_1) ⋯
Order #
Equations
- AddLocalization.le = { le := fun (a b : AddLocalization s) => AddLocalization.liftOn₂ a b (fun (a₁ : α) (a₂ : ↥s) (b₁ : α) (b₂ : ↥s) => ↑b₂ + a₁ ≤ ↑a₂ + b₁) ⋯ }
Equations
- Localization.le = { le := fun (a b : Localization s) => Localization.liftOn₂ a b (fun (a₁ : α) (a₂ : ↥s) (b₁ : α) (b₂ : ↥s) => ↑b₂ * a₁ ≤ ↑a₂ * b₁) ⋯ }
Equations
- AddLocalization.lt = { lt := fun (a b : AddLocalization s) => AddLocalization.liftOn₂ a b (fun (a₁ : α) (a₂ : ↥s) (b₁ : α) (b₂ : ↥s) => ↑b₂ + a₁ < ↑a₂ + b₁) ⋯ }
Equations
- Localization.lt = { lt := fun (a b : Localization s) => Localization.liftOn₂ a b (fun (a₁ : α) (a₂ : ↥s) (b₁ : α) (b₂ : ↥s) => ↑b₂ * a₁ < ↑a₂ * b₁) ⋯ }
Equations
- AddLocalization.partialOrder = PartialOrder.mk ⋯
Equations
- Localization.partialOrder = PartialOrder.mk ⋯
Equations
- AddLocalization.orderedAddCancelCommMonoid = let __src := AddLocalization.addCommMonoid s; let __src_1 := AddLocalization.partialOrder; OrderedCancelAddCommMonoid.mk ⋯
Equations
- Localization.orderedCancelCommMonoid = let __src := Localization.commMonoid s; let __src_1 := Localization.partialOrder; OrderedCancelCommMonoid.mk ⋯
Equations
- AddLocalization.decidableLE a b = AddLocalization.recOnSubsingleton₂ a b fun (x x_1 : α) (x_2 x_3 : ↥s) => decidable_of_iff' (↑x_3 + x ≤ ↑x_2 + x_1) ⋯
Equations
- Localization.decidableLE a b = Localization.recOnSubsingleton₂ a b fun (x x_1 : α) (x_2 x_3 : ↥s) => decidable_of_iff' (↑x_3 * x ≤ ↑x_2 * x_1) ⋯
Equations
- AddLocalization.decidableLT a b = AddLocalization.recOnSubsingleton₂ a b fun (x x_1 : α) (x_2 x_3 : ↥s) => decidable_of_iff' (↑x_3 + x < ↑x_2 + x_1) ⋯
Equations
- Localization.decidableLT a b = Localization.recOnSubsingleton₂ a b fun (x x_1 : α) (x_2 x_3 : ↥s) => decidable_of_iff' (↑x_3 * x < ↑x_2 * x_1) ⋯
An ordered cancellative monoid injects into its localization by
sending a
to a - b
.
Equations
- AddLocalization.mkOrderEmbedding b = { toEmbedding := { toFun := fun (a : α) => AddLocalization.mk a b, inj' := ⋯ }, map_rel_iff' := ⋯ }
Instances For
An ordered cancellative monoid injects into its localization by sending a
to a / b
.
Equations
- Localization.mkOrderEmbedding b = { toEmbedding := { toFun := fun (a : α) => Localization.mk a b, inj' := ⋯ }, map_rel_iff' := ⋯ }
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.