The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.RingTheory.Localization.Basic

76 declarations. Mathlib docs · Source

Localizations of commutative rings

This file contains various basic results on localizations.

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.algEquiv: if Q is another localization of R at M, then S and Q are isomorphic as R-algebras

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

theorem IsLocalization.algEquivOfAlgEquiv.congr_simp E1 #

∀ {A : Type u_4} [inst : CommSemiring A] {R : Type u_5} [inst_1 : CommSemiring R] [inst_2 : Algebra A R]
  {M M_1 : Submonoid R} (e_M : M = M_1) (S : Type u_6) [inst_3 : CommSemiring S] [inst_4 : Algebra A S]
  [inst_5 : Algebra R S] [inst_6 : IsScalarTower A R S] [inst_7 : IsLocalization M S] {P : Type u_7}
  [inst_8 : CommSemiring P] [inst_9 : Algebra A P] {T T_1 : Submonoid P} (e_T : T = T_1) (Q : Type u_8)
  [inst_10 : CommSemiring Q] [inst_11 : Algebra A Q] [inst_12 : Algebra P Q] [inst_13 : IsScalarTower A P Q]
  [inst_14 : IsLocalization T Q] (h h_1 : R ≃ₐ[A] P) (e_h : h = h_1) (H : Submonoid.map h M = T),
  IsLocalization.algEquivOfAlgEquiv S Q h H = IsLocalization.algEquivOfAlgEquiv S Q h_1 ⋯

theorem IsLocalization.algEquiv.congr_simp E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (M M_1 : Submonoid R) (e_M : M = M_1) (S : Type u_2) [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : IsLocalization M S] (Q : Type u_4) [inst_4 : CommSemiring Q] [inst_5 : Algebra R Q]
  [inst_6 : IsLocalization M Q], IsLocalization.algEquiv M S Q = IsLocalization.algEquiv M_1 S Q

abbrev Localization.mapPiEvalRingHom E1 #

{ι : Type u_1} →
  {R : ι → Type u_2} →
    [inst : (i : ι) → CommSemiring (R i)] →
      {i : ι} → (S : Submonoid (R i)) → Localization (Submonoid.comap (Pi.evalRingHom R i) S) →+* Localization S

IsLocalization.map applied to a projection homomorphism from a product ring.

theorem Localization.mapPiEvalRingHom_bijective E1 #

∀ {ι : Type u_1} {R : ι → Type u_2} [inst : (i : ι) → CommSemiring (R i)] {i : ι} (S : Submonoid (R i)),
  Function.Bijective ⇑(Localization.mapPiEvalRingHom S)

theorem IsLocalization.finite E1 #

∀ (R : Type u_1) [inst : CommSemiring R] (M : Submonoid R) {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [IsLocalization M S] [Finite R], Finite S

theorem IsLocalization.linearMap_compatibleSMul E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) (S : Type u_2) [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [IsLocalization M S] (N₁ : Type u_4) (N₂ : Type u_5) [inst_4 : AddCommMonoid N₁]
  [inst_5 : AddCommMonoid N₂] [inst_6 : Module R N₁] [inst_7 : Module R N₂] [inst_8 : Module S N₁]
  [inst_9 : Module S N₂] [IsScalarTower R S N₁] [IsScalarTower R S N₂], LinearMap.CompatibleSMul N₁ N₂ S R

instance IsLocalization.instCompatibleSMulLocalizationOfIsScalarTower E0 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} (N₁ : Type u_4) (N₂ : Type u_5) [inst_1 : AddCommMonoid N₁]
  [inst_2 : AddCommMonoid N₂] [inst_3 : Module R N₁] [inst_4 : Module R N₂] [inst_5 : Module (Localization M) N₁]
  [inst_6 : Module (Localization M) N₂] [IsScalarTower R (Localization M) N₁] [IsScalarTower R (Localization M) N₂],
  LinearMap.CompatibleSMul N₁ N₂ (Localization M) R

theorem IsLocalization.algHom_subsingleton E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] {P : Type u_3} [inst_3 : CommSemiring P] [IsLocalization M S] [inst_5 : Algebra R P],
  Subsingleton (S →ₐ[R] P)

def IsLocalization.algEquiv E3 #

{R : Type u_1} →
  [inst : CommSemiring R] →
    (M : Submonoid R) →
      (S : Type u_2) →
        [inst_1 : CommSemiring S] →
          [inst_2 : Algebra R S] →
            [IsLocalization M S] →
              (Q : Type u_4) → [inst_4 : CommSemiring Q] → [inst_5 : Algebra R Q] → [IsLocalization M Q] → S ≃ₐ[R] Q

If S, Q are localizations of R at the submonoid M respectively, there is an isomorphism of localizations S ≃ₐ[R] Q.

theorem IsLocalization.algEquiv_apply E0 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) (S : Type u_2) [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : IsLocalization M S] (Q : Type u_4) [inst_4 : CommSemiring Q] [inst_5 : Algebra R Q]
  [inst_6 : IsLocalization M Q] (a : S), (IsLocalization.algEquiv M S Q) a = (IsLocalization.map Q (RingHom.id R) ⋯) a

theorem IsLocalization.algEquiv_symm_apply E0 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) (S : Type u_2) [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : IsLocalization M S] (Q : Type u_4) [inst_4 : CommSemiring Q] [inst_5 : Algebra R Q]
  [inst_6 : IsLocalization M Q] (a : Q),
  (IsLocalization.algEquiv M S Q).symm a = (IsLocalization.map S (RingHom.id R) ⋯) a

theorem IsLocalization.algEquiv_mk' E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : IsLocalization M S] {Q : Type u_4} [inst_4 : CommSemiring Q] [inst_5 : Algebra R Q]
  [inst_6 : IsLocalization M Q] (x : R) (y : ↥M),
  (IsLocalization.algEquiv M S Q) (IsLocalization.mk' S x y) = IsLocalization.mk' Q x y

theorem IsLocalization.algEquiv_symm_mk' E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : IsLocalization M S] {Q : Type u_4} [inst_4 : CommSemiring Q] [inst_5 : Algebra R Q]
  [inst_6 : IsLocalization M Q] (x : R) (y : ↥M),
  (IsLocalization.algEquiv M S Q).symm (IsLocalization.mk' Q x y) = IsLocalization.mk' S x y

theorem IsLocalization.bijective E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [IsLocalization M S] {Q : Type u_4} [inst_4 : CommSemiring Q] [inst_5 : Algebra R Q]
  [IsLocalization M Q] (f : S →+* Q), f.comp (algebraMap R S) = algebraMap R Q → Function.Bijective ⇑f

def IsLocalization.liftAlgHom E1 #

{A : Type u_4} →
  [inst : CommSemiring A] →
    {R : Type u_5} →
      [inst_1 : CommSemiring R] →
        [inst_2 : Algebra A R] →
          {M : Submonoid R} →
            {S : Type u_6} →
              [inst_3 : CommSemiring S] →
                [inst_4 : Algebra A S] →
                  [inst_5 : Algebra R S] →
                    [IsScalarTower A R S] →
                      {P : Type u_7} →
                        [inst_7 : CommSemiring P] →
                          [inst_8 : Algebra A P] →
                            [IsLocalization M S] → {f : R →ₐ[A] P} → (∀ (y : ↥M), IsUnit (f ↑y)) → S →ₐ[A] P

AlgHom version of IsLocalization.lift.

theorem IsLocalization.liftAlgHom_toRingHom E1 #

∀ {A : Type u_4} [inst : CommSemiring A] {R : Type u_5} [inst_1 : CommSemiring R] [inst_2 : Algebra A R]
  {M : Submonoid R} {S : Type u_6} [inst_3 : CommSemiring S] [inst_4 : Algebra A S] [inst_5 : Algebra R S]
  [inst_6 : IsScalarTower A R S] {P : Type u_7} [inst_7 : CommSemiring P] [inst_8 : Algebra A P]
  [inst_9 : IsLocalization M S] {f : R →ₐ[A] P} (hf : ∀ (y : ↥M), IsUnit (f ↑y)),
  (IsLocalization.liftAlgHom hf).toRingHom = IsLocalization.lift hf

theorem IsLocalization.coe_liftAlgHom E0 #

∀ {A : Type u_4} [inst : CommSemiring A] {R : Type u_5} [inst_1 : CommSemiring R] [inst_2 : Algebra A R]
  {M : Submonoid R} {S : Type u_6} [inst_3 : CommSemiring S] [inst_4 : Algebra A S] [inst_5 : Algebra R S]
  [inst_6 : IsScalarTower A R S] {P : Type u_7} [inst_7 : CommSemiring P] [inst_8 : Algebra A P]
  [inst_9 : IsLocalization M S] {f : R →ₐ[A] P} (hf : ∀ (y : ↥M), IsUnit (f ↑y)),
  ⇑(IsLocalization.liftAlgHom hf) = ⇑(IsLocalization.lift hf)

theorem IsLocalization.liftAlgHom_apply E0 #

∀ {A : Type u_4} [inst : CommSemiring A] {R : Type u_5} [inst_1 : CommSemiring R] [inst_2 : Algebra A R]
  {M : Submonoid R} {S : Type u_6} [inst_3 : CommSemiring S] [inst_4 : Algebra A S] [inst_5 : Algebra R S]
  [inst_6 : IsScalarTower A R S] {P : Type u_7} [inst_7 : CommSemiring P] [inst_8 : Algebra A P]
  [inst_9 : IsLocalization M S] {f : R →ₐ[A] P} (hf : ∀ (y : ↥M), IsUnit (f ↑y)) (x : S),
  (IsLocalization.liftAlgHom hf) x = (IsLocalization.lift hf) x

def IsLocalization.algEquivOfAlgEquiv E1 #

{A : Type u_4} →
  [inst : CommSemiring A] →
    {R : Type u_5} →
      [inst_1 : CommSemiring R] →
        [inst_2 : Algebra A R] →
          {M : Submonoid R} →
            (S : Type u_6) →
              [inst_3 : CommSemiring S] →
                [inst_4 : Algebra A S] →
                  [inst_5 : Algebra R S] →
                    [IsScalarTower A R S] →
                      [IsLocalization M S] →
                        {P : Type u_7} →
                          [inst_8 : CommSemiring P] →
                            [inst_9 : Algebra A P] →
                              {T : Submonoid P} →
                                (Q : Type u_8) →
                                  [inst_10 : CommSemiring Q] →
                                    [inst_11 : Algebra A Q] →
                                      [inst_12 : Algebra P Q] →
                                        [IsScalarTower A P Q] →
                                          [IsLocalization T Q] → (h : R ≃ₐ[A] P) → Submonoid.map h M = T → S ≃ₐ[A] Q

If S, Q are localizations of R and P at submonoids M, T respectively, an isomorphism h : R ≃ₐ[A] P such that h(M) = T induces an isomorphism of localizations S ≃ₐ[A] Q.

theorem IsLocalization.algEquivOfAlgEquiv_apply E0 #

∀ {A : Type u_4} [inst : CommSemiring A] {R : Type u_5} [inst_1 : CommSemiring R] [inst_2 : Algebra A R]
  {M : Submonoid R} (S : Type u_6) [inst_3 : CommSemiring S] [inst_4 : Algebra A S] [inst_5 : Algebra R S]
  [inst_6 : IsScalarTower A R S] [inst_7 : IsLocalization M S] {P : Type u_7} [inst_8 : CommSemiring P]
  [inst_9 : Algebra A P] {T : Submonoid P} (Q : Type u_8) [inst_10 : CommSemiring Q] [inst_11 : Algebra A Q]
  [inst_12 : Algebra P Q] [inst_13 : IsScalarTower A P Q] [inst_14 : IsLocalization T Q] (h : R ≃ₐ[A] P)
  (H : Submonoid.map h M = T) (a : S), (IsLocalization.algEquivOfAlgEquiv S Q h H) a = (IsLocalization.map Q ↑h ⋯) a

theorem IsLocalization.algEquivOfAlgEquiv_symm_apply E0 #

∀ {A : Type u_4} [inst : CommSemiring A] {R : Type u_5} [inst_1 : CommSemiring R] [inst_2 : Algebra A R]
  {M : Submonoid R} (S : Type u_6) [inst_3 : CommSemiring S] [inst_4 : Algebra A S] [inst_5 : Algebra R S]
  [inst_6 : IsScalarTower A R S] [inst_7 : IsLocalization M S] {P : Type u_7} [inst_8 : CommSemiring P]
  [inst_9 : Algebra A P] {T : Submonoid P} (Q : Type u_8) [inst_10 : CommSemiring Q] [inst_11 : Algebra A Q]
  [inst_12 : Algebra P Q] [inst_13 : IsScalarTower A P Q] [inst_14 : IsLocalization T Q] (h : R ≃ₐ[A] P)
  (H : Submonoid.map h M = T) (a : Q),
  (IsLocalization.algEquivOfAlgEquiv S Q h H).symm a =
    (IsLocalization.map S ↑{ toEquiv := ↑h.symm, map_mul' := ⋯, map_add' := ⋯ } ⋯) a

theorem IsLocalization.algEquivOfAlgEquiv_eq_map E1 #

∀ {A : Type u_4} [inst : CommSemiring A] {R : Type u_5} [inst_1 : CommSemiring R] [inst_2 : Algebra A R]
  {M : Submonoid R} {S : Type u_6} [inst_3 : CommSemiring S] [inst_4 : Algebra A S] [inst_5 : Algebra R S]
  [inst_6 : IsScalarTower A R S] [inst_7 : IsLocalization M S] {P : Type u_7} [inst_8 : CommSemiring P]
  [inst_9 : Algebra A P] {T : Submonoid P} {Q : Type u_8} [inst_10 : CommSemiring Q] [inst_11 : Algebra A Q]
  [inst_12 : Algebra P Q] [inst_13 : IsScalarTower A P Q] [inst_14 : IsLocalization T Q] {h : R ≃ₐ[A] P}
  (H : Submonoid.map h M = T), ↑(IsLocalization.algEquivOfAlgEquiv S Q h H) = IsLocalization.map Q ↑h ⋯

theorem IsLocalization.algEquivOfAlgEquiv_eq E0 #

∀ {A : Type u_4} [inst : CommSemiring A] {R : Type u_5} [inst_1 : CommSemiring R] [inst_2 : Algebra A R]
  {M : Submonoid R} {S : Type u_6} [inst_3 : CommSemiring S] [inst_4 : Algebra A S] [inst_5 : Algebra R S]
  [inst_6 : IsScalarTower A R S] [inst_7 : IsLocalization M S] {P : Type u_7} [inst_8 : CommSemiring P]
  [inst_9 : Algebra A P] {T : Submonoid P} {Q : Type u_8} [inst_10 : CommSemiring Q] [inst_11 : Algebra A Q]
  [inst_12 : Algebra P Q] [inst_13 : IsScalarTower A P Q] [inst_14 : IsLocalization T Q] {h : R ≃ₐ[A] P}
  (H : Submonoid.map h M = T) (x : R),
  (IsLocalization.algEquivOfAlgEquiv S Q h H) ((algebraMap R S) x) = (algebraMap P Q) (h x)

theorem IsLocalization.algEquivOfAlgEquiv_mk' E1 #

∀ {A : Type u_4} [inst : CommSemiring A] {R : Type u_5} [inst_1 : CommSemiring R] [inst_2 : Algebra A R]
  {M : Submonoid R} {S : Type u_6} [inst_3 : CommSemiring S] [inst_4 : Algebra A S] [inst_5 : Algebra R S]
  [inst_6 : IsScalarTower A R S] [inst_7 : IsLocalization M S] {P : Type u_7} [inst_8 : CommSemiring P]
  [inst_9 : Algebra A P] {T : Submonoid P} {Q : Type u_8} [inst_10 : CommSemiring Q] [inst_11 : Algebra A Q]
  [inst_12 : Algebra P Q] [inst_13 : IsScalarTower A P Q] [inst_14 : IsLocalization T Q] {h : R ≃ₐ[A] P}
  (H : Submonoid.map h M = T) (x : R) (y : ↥M),
  (IsLocalization.algEquivOfAlgEquiv S Q h H) (IsLocalization.mk' S x y) = IsLocalization.mk' Q (h x) ⟨h ↑y, ⋯⟩

theorem IsLocalization.algEquivOfAlgEquiv_symm E1 #

∀ {A : Type u_4} [inst : CommSemiring A] {R : Type u_5} [inst_1 : CommSemiring R] [inst_2 : Algebra A R]
  {M : Submonoid R} {S : Type u_6} [inst_3 : CommSemiring S] [inst_4 : Algebra A S] [inst_5 : Algebra R S]
  [inst_6 : IsScalarTower A R S] [inst_7 : IsLocalization M S] {P : Type u_7} [inst_8 : CommSemiring P]
  [inst_9 : Algebra A P] {T : Submonoid P} {Q : Type u_8} [inst_10 : CommSemiring Q] [inst_11 : Algebra A Q]
  [inst_12 : Algebra P Q] [inst_13 : IsScalarTower A P Q] [inst_14 : IsLocalization T Q] {h : R ≃ₐ[A] P}
  (H : Submonoid.map h M = T),
  (IsLocalization.algEquivOfAlgEquiv S Q h H).symm = IsLocalization.algEquivOfAlgEquiv Q S h.symm ⋯

theorem IsLocalization.smul_mem_iff E0 #

∀ {R : Type u_4} [inst : CommSemiring R] {S : Submonoid R} {R' : Type u_5} [inst_1 : CommSemiring R']
  [inst_2 : Algebra R R'] [IsLocalization S R'] {M' : Type u_6} [inst_4 : AddCommMonoid M'] [inst_5 : Module R' M']
  [inst_6 : Module R M'] [IsScalarTower R R' M'] {N' : Submodule R' M'} {x : M'} {s : ↥S}, s • x ∈ N' ↔ x ∈ N'

If x in a R' = S⁻¹ R-module M', then for a submodule N' of M', s • x ∈ N' if and only if x ∈ N' for some s in S.

theorem IsLocalization.of_le_isUnit_of_bijective E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {S : Type u_2} [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {M : Submonoid R},
  Algebra.algebraMapSubmonoid S M ≤ IsUnit.submonoid S → Function.Bijective ⇑(algebraMap R S) → IsLocalization M S

theorem IsLocalization.of_le_isUnit E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {S : Submonoid R}, S ≤ IsUnit.submonoid R → IsLocalization S R

instance IsLocalization.instSubmonoid E0 #

∀ {R : Type u_1} [inst : CommSemiring R], IsLocalization (IsUnit.submonoid R) R

instance IsLocalization.instAlgebraMapSubmonoidSubmonoid E0 #

∀ {R : Type u_1} [inst : CommSemiring R] {S : Type u_2} [inst_1 : CommSemiring S] [inst_2 : Algebra R S],
  IsLocalization (Algebra.algebraMapSubmonoid S (IsUnit.submonoid R)) S

def IsLocalization.atUnits E1 #

(R : Type u_1) →
  [inst : CommSemiring R] →
    (M : Submonoid R) →
      {S : Type u_2} →
        [inst_1 : CommSemiring S] → [inst_2 : Algebra R S] → [IsLocalization M S] → M ≤ IsUnit.submonoid R → R ≃ₐ[R] S

The localization at a module of units is isomorphic to the ring.

theorem IsLocalization.isLocalization_of_algEquiv E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] {P : Type u_3} [inst_3 : CommSemiring P] [inst_4 : Algebra R P] [IsLocalization M S]
  (h : S ≃ₐ[R] P), IsLocalization M P

theorem IsLocalization.self E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R}, M ≤ IsUnit.submonoid R → IsLocalization M R

theorem IsLocalization.isLocalization_iff_of_algEquiv E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] {P : Type u_3} [inst_3 : CommSemiring P] [inst_4 : Algebra R P] (h : S ≃ₐ[R] P),
  IsLocalization M S ↔ IsLocalization M P

theorem IsLocalization.isLocalization_iff_of_ringEquiv E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] {P : Type u_3} [inst_3 : CommSemiring P] (h : S ≃+* P), IsLocalization M S ↔ IsLocalization M P

theorem IsLocalization.isLocalization_iff_of_isLocalization E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (M N : Submonoid R) (S : Type u_2) [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] {P : Type u_3} [inst_3 : CommSemiring P] [IsLocalization M S] [IsLocalization N S]
  [inst_6 : Algebra R P], IsLocalization M P ↔ IsLocalization N P

If an algebra is simultaneously localizations for two submonoids, then an arbitrary algebra is a localization of one submonoid iff it is a localization of the other.

theorem IsLocalization.iff_of_le_of_exists_dvd E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] (N : Submonoid R),
  M ≤ N → (∀ n ∈ N, ∃ m ∈ M, n ∣ m) → (IsLocalization M S ↔ IsLocalization N S)

theorem IsLocalization.commutes E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (S₁ : Type u_4) (S₂ : Type u_5) (T : Type u_6) [inst_1 : CommSemiring S₁]
  [inst_2 : CommSemiring S₂] [inst_3 : CommSemiring T] [inst_4 : Algebra R S₁] [inst_5 : Algebra R S₂]
  [inst_6 : Algebra R T] [inst_7 : Algebra S₁ T] [inst_8 : Algebra S₂ T] [IsScalarTower R S₁ T] [IsScalarTower R S₂ T]
  (M₁ M₂ : Submonoid R) [IsLocalization M₁ S₁] [IsLocalization M₂ S₂]
  [IsLocalization (Algebra.algebraMapSubmonoid S₂ M₁) T], IsLocalization (Algebra.algebraMapSubmonoid S₁ M₂) T

If S₁ is the localization of R at M₁ and S₂ is the localization of R at M₂, then every localization T of S₂ at M₁ is also a localization of S₁ at M₂, in other words M₁⁻¹M₂⁻¹R can be identified with M₂⁻¹M₁⁻¹R.

theorem IsLocalization.algEquiv_comp_algebraMap E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] (Rₘ : Type u_4) (Sₙ : Type u_5) (Rₘ' : Type u_6) (Sₙ' : Type u_7) [inst_3 : CommSemiring Rₘ]
  [inst_4 : CommSemiring Sₙ] [inst_5 : CommSemiring Rₘ'] [inst_6 : CommSemiring Sₙ'] [inst_7 : Algebra R Rₘ]
  [inst_8 : Algebra S Sₙ] [inst_9 : Algebra R Rₘ'] [inst_10 : Algebra S Sₙ'] [inst_11 : Algebra R Sₙ]
  [inst_12 : Algebra Rₘ Sₙ] [inst_13 : Algebra Rₘ' Sₙ'] [inst_14 : Algebra R Sₙ'] (N : Submonoid S)
  [inst_15 : IsLocalization M Rₘ] [inst_16 : IsLocalization N Sₙ] [inst_17 : IsLocalization M Rₘ']
  [inst_18 : IsLocalization N Sₙ'] [IsScalarTower R Rₘ Sₙ] [IsScalarTower R S Sₙ] [IsScalarTower R Rₘ' Sₙ']
  [IsScalarTower R S Sₙ'],
  (↑(IsLocalization.algEquiv N Sₙ Sₙ')).comp (algebraMap Rₘ Sₙ) =
    (algebraMap Rₘ' Sₙ').comp ↑(IsLocalization.algEquiv M Rₘ Rₘ')

theorem IsLocalization.algEquiv_comp_algebraMap_apply E0 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] {Rₘ : Type u_4} (Sₙ : Type u_5) (Rₘ' : Type u_6) (Sₙ' : Type u_7) [inst_3 : CommSemiring Rₘ]
  [inst_4 : CommSemiring Sₙ] [inst_5 : CommSemiring Rₘ'] [inst_6 : CommSemiring Sₙ'] [inst_7 : Algebra R Rₘ]
  [inst_8 : Algebra S Sₙ] [inst_9 : Algebra R Rₘ'] [inst_10 : Algebra S Sₙ'] [inst_11 : Algebra R Sₙ]
  [inst_12 : Algebra Rₘ Sₙ] [inst_13 : Algebra Rₘ' Sₙ'] [inst_14 : Algebra R Sₙ'] (N : Submonoid S)
  [inst_15 : IsLocalization M Rₘ] [inst_16 : IsLocalization N Sₙ] [inst_17 : IsLocalization M Rₘ']
  [inst_18 : IsLocalization N Sₙ'] [IsScalarTower R Rₘ Sₙ] [IsScalarTower R S Sₙ] [IsScalarTower R Rₘ' Sₙ']
  [IsScalarTower R S Sₙ'] (x : Rₘ),
  ((↑(IsLocalization.algEquiv N Sₙ Sₙ')).comp (algebraMap Rₘ Sₙ)) x =
    ((algebraMap Rₘ' Sₙ').comp ↑(IsLocalization.algEquiv M Rₘ Rₘ')) x

theorem Localization.mk_natCast E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} (m : ℕ), Localization.mk (↑m) 1 = ↑m

def Localization.algEquiv E1 #

{R : Type u_1} →
  [inst : CommSemiring R] →
    (M : Submonoid R) →
      (S : Type u_2) →
        [inst_1 : CommSemiring S] → [inst_2 : Algebra R S] → [IsLocalization M S] → Localization M ≃ₐ[R] S

The localization of R at M as a quotient type is isomorphic to any other localization.

theorem Localization.algEquiv_apply E0 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) (S : Type u_2) [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : IsLocalization M S] (a : Localization M),
  (Localization.algEquiv M S) a = (IsLocalization.map S (RingHom.id R) ⋯) a

theorem Localization.algEquiv_symm_apply E0 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) (S : Type u_2) [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : IsLocalization M S] (a : S),
  (Localization.algEquiv M S).symm a = (IsLocalization.map (Localization M) (RingHom.id R) ⋯) a

def IsLocalization.unique E1 #

(R : Type u_4) →
  (Rₘ : Type u_5) →
    [inst : CommSemiring R] →
      [inst_1 : CommSemiring Rₘ] →
        (M : Submonoid R) → [Subsingleton R] → [inst_3 : Algebra R Rₘ] → [IsLocalization M Rₘ] → Unique Rₘ

The localization of a singleton is a singleton. Cannot be an instance due to metavariables.

theorem Localization.algEquiv_mk' E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : IsLocalization M S] (x : R) (y : ↥M),
  (Localization.algEquiv M S) (IsLocalization.mk' (Localization M) x y) = IsLocalization.mk' S x y

theorem Localization.algEquiv_symm_mk' E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : IsLocalization M S] (x : R) (y : ↥M),
  (Localization.algEquiv M S).symm (IsLocalization.mk' S x y) = IsLocalization.mk' (Localization M) x y

theorem Localization.algEquiv_mk E0 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : IsLocalization M S] (x : R) (y : ↥M),
  (Localization.algEquiv M S) (Localization.mk x y) = IsLocalization.mk' S x y

theorem Localization.algEquiv_symm_mk E0 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : IsLocalization M S] (x : R) (y : ↥M),
  (Localization.algEquiv M S).symm (IsLocalization.mk' S x y) = Localization.mk x y

theorem Localization.coe_algEquiv E0 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : IsLocalization M S],
  ↑(Localization.algEquiv M S) = IsLocalization.map S (RingHom.id R) ⋯

theorem Localization.coe_algEquiv_symm E0 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [inst_3 : IsLocalization M S],
  ↑(Localization.algEquiv M S).symm = IsLocalization.map (Localization M) (RingHom.id R) ⋯

theorem IsField.localization_map_bijective E1 #

∀ {R : Type u_4} {Rₘ : Type u_5} [inst : CommRing R] [inst_1 : CommRing Rₘ] {M : Submonoid R},
  0 ∉ M → IsField R → ∀ [inst_2 : Algebra R Rₘ] [IsLocalization M Rₘ], Function.Bijective ⇑(algebraMap R Rₘ)

If R is a field, then localizing at a submonoid not containing 0 adds no new elements.

theorem Field.localization_map_bijective E1 #

∀ {K : Type u_4} {Kₘ : Type u_5} [inst : Field K] [inst_1 : CommRing Kₘ] {M : Submonoid K},
  0 ∉ M → ∀ [inst_2 : Algebra K Kₘ] [IsLocalization M Kₘ], Function.Bijective ⇑(algebraMap K Kₘ)

If R is a field, then localizing at a submonoid not containing 0 adds no new elements.

def localizationAlgebra E1 #

{R : Type u_1} →
  [inst : CommSemiring R] →
    (M : Submonoid R) →
      (S : Type u_2) →
        [inst_1 : CommSemiring S] →
          [inst_2 : Algebra R S] →
            {Rₘ : Type u_4} →
              {Sₘ : Type u_5} →
                [inst_3 : CommSemiring Rₘ] →
                  [inst_4 : CommSemiring Sₘ] →
                    [inst_5 : Algebra R Rₘ] →
                      [IsLocalization M Rₘ] →
                        [inst_7 : Algebra S Sₘ] →
                          [i : IsLocalization (Algebra.algebraMapSubmonoid S M) Sₘ] → Algebra Rₘ Sₘ

Definition of the natural algebra induced by the localization of an algebra. Given an algebra R → S, a submonoid R of M, and a localization Rₘ for M, let Sₘ be the localization of S to the image of M under algebraMap R S. Then this is the natural algebra structure on Rₘ → Sₘ, such that the entire square commutes, where localization_map.map_comp gives the commutativity of the underlying maps.

This instance can be helpful if you define Sₘ := Localization (Algebra.algebraMapSubmonoid S M), however we will instead use the hypotheses [Algebra Rₘ Sₘ] [IsScalarTower R Rₘ Sₘ] in lemmas since the algebra structure may arise in different ways.

instance instAlgebraLocalizationAlgebraMapSubmonoid E0 #

{R : Type u_1} →
  [inst : CommSemiring R] →
    (M : Submonoid R) →
      (S : Type u_2) →
        [inst_1 : CommSemiring S] →
          [inst_2 : Algebra R S] → Algebra (Localization M) (Localization (Algebra.algebraMapSubmonoid S M))

theorem isScalarTower_localizationAlgebra E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) (S : Type u_2) [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] {Rₘ : Type u_4} {Sₘ : Type u_5} [inst_3 : CommSemiring Rₘ] [inst_4 : CommSemiring Sₘ]
  [inst_5 : Algebra R Rₘ] [inst_6 : IsLocalization M Rₘ] [inst_7 : Algebra S Sₘ]
  [i : IsLocalization (Algebra.algebraMapSubmonoid S M) Sₘ] [inst_8 : Algebra R Sₘ] [IsScalarTower R S Sₘ],
  IsScalarTower R Rₘ Sₘ

instance instIsScalarTowerLocalizationAlgebraMapSubmonoid E0 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) (S : Type u_2) [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S], IsScalarTower R (Localization M) (Localization (Algebra.algebraMapSubmonoid S M))

theorem IsLocalization.map_units_map_submonoid E0 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} (S : Type u_2) [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] (Sₘ : Type u_5) [inst_3 : CommSemiring Sₘ] [inst_4 : Algebra S Sₘ]
  [i : IsLocalization (Algebra.algebraMapSubmonoid S M) Sₘ] [inst_5 : Algebra R Sₘ] [IsScalarTower R S Sₘ] (y : ↥M),
  IsUnit ((algebraMap R Sₘ) ↑y)

theorem IsLocalization.algebraMap_mk' E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} (S : Type u_2) [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] (Rₘ : Type u_4) (Sₘ : Type u_5) [inst_3 : CommSemiring Rₘ] [inst_4 : CommSemiring Sₘ]
  [inst_5 : Algebra R Rₘ] [inst_6 : IsLocalization M Rₘ] [inst_7 : Algebra S Sₘ]
  [i : IsLocalization (Algebra.algebraMapSubmonoid S M) Sₘ] [inst_8 : Algebra Rₘ Sₘ] [inst_9 : Algebra R Sₘ]
  [IsScalarTower R Rₘ Sₘ] [IsScalarTower R S Sₘ] (x : R) (y : ↥M),
  (algebraMap Rₘ Sₘ) (IsLocalization.mk' Rₘ x y) = IsLocalization.mk' Sₘ ((algebraMap R S) x) ⟨(algebraMap R S) ↑y, ⋯⟩

theorem IsLocalization.algebraMap_eq_map_map_submonoid E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) (S : Type u_2) [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] (Rₘ : Type u_4) (Sₘ : Type u_5) [inst_3 : CommSemiring Rₘ] [inst_4 : CommSemiring Sₘ]
  [inst_5 : Algebra R Rₘ] [inst_6 : IsLocalization M Rₘ] [inst_7 : Algebra S Sₘ]
  [i : IsLocalization (Algebra.algebraMapSubmonoid S M) Sₘ] [inst_8 : Algebra Rₘ Sₘ] [inst_9 : Algebra R Sₘ]
  [IsScalarTower R Rₘ Sₘ] [IsScalarTower R S Sₘ], algebraMap Rₘ Sₘ = IsLocalization.map Sₘ (algebraMap R S) ⋯

If the square below commutes, the bottom map is uniquely specified:

R  →  S
↓     ↓
Rₘ → Sₘ

theorem IsLocalization.algebraMap_apply_eq_map_map_submonoid E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) (S : Type u_2) [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] (Rₘ : Type u_4) (Sₘ : Type u_5) [inst_3 : CommSemiring Rₘ] [inst_4 : CommSemiring Sₘ]
  [inst_5 : Algebra R Rₘ] [inst_6 : IsLocalization M Rₘ] [inst_7 : Algebra S Sₘ]
  [i : IsLocalization (Algebra.algebraMapSubmonoid S M) Sₘ] [inst_8 : Algebra Rₘ Sₘ] [inst_9 : Algebra R Sₘ]
  [IsScalarTower R Rₘ Sₘ] [IsScalarTower R S Sₘ] (x : Rₘ),
  (algebraMap Rₘ Sₘ) x = (IsLocalization.map Sₘ (algebraMap R S) ⋯) x

If the square below commutes, the bottom map is uniquely specified:

R  →  S
↓     ↓
Rₘ → Sₘ

theorem IsLocalization.lift_algebraMap_eq_algebraMap E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (M : Submonoid R) (S : Type u_2) [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] (Rₘ : Type u_4) (Sₘ : Type u_5) [inst_3 : CommSemiring Rₘ] [inst_4 : CommSemiring Sₘ]
  [inst_5 : Algebra R Rₘ] [inst_6 : IsLocalization M Rₘ] [inst_7 : Algebra S Sₘ]
  [i : IsLocalization (Algebra.algebraMapSubmonoid S M) Sₘ] [inst_8 : Algebra Rₘ Sₘ] [inst_9 : Algebra R Sₘ]
  [IsScalarTower R Rₘ Sₘ] [inst_11 : IsScalarTower R S Sₘ], IsLocalization.lift ⋯ = algebraMap Rₘ Sₘ

theorem localizationAlgebraMap_def E0 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] (Rₘ : Type u_4) (Sₘ : Type u_5) [inst_3 : CommSemiring Rₘ] [inst_4 : CommSemiring Sₘ]
  [inst_5 : Algebra R Rₘ] [inst_6 : IsLocalization M Rₘ] [inst_7 : Algebra S Sₘ]
  [i : IsLocalization (Algebra.algebraMapSubmonoid S M) Sₘ], algebraMap Rₘ Sₘ = IsLocalization.map Sₘ (algebraMap R S) ⋯

theorem localizationAlgebra_injective E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} {S : Type u_2} [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] (Rₘ : Type u_4) (Sₘ : Type u_5) [inst_3 : CommSemiring Rₘ] [inst_4 : CommSemiring Sₘ]
  [inst_5 : Algebra R Rₘ] [inst_6 : IsLocalization M Rₘ] [inst_7 : Algebra S Sₘ]
  [i : IsLocalization (Algebra.algebraMapSubmonoid S M) Sₘ],
  Function.Injective ⇑(algebraMap R S) → Function.Injective ⇑(algebraMap Rₘ Sₘ)

Injectivity of the underlying algebraMap descends to the algebra induced by localization.

instance instIsLocalizationAlgebraMapSubmonoid E0 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Submonoid R} (Rₘ : Type u_4) [inst_1 : CommSemiring Rₘ]
  [inst_2 : Algebra R Rₘ] [IsLocalization M Rₘ], IsLocalization (Algebra.algebraMapSubmonoid R M) Rₘ

theorem IsLocalization.map_injective_of_injective' E0 #

∀ {R : Type u_1} [inst : CommRing R] (M : Submonoid R) (S : Type u_2) [inst_1 : CommRing S] {f : R →+* S}
  {Rₘ : Type u_3} [inst_2 : CommRing Rₘ] [inst_3 : Algebra R Rₘ] [inst_4 : IsLocalization M Rₘ] (Sₘ : Type u_4)
  {N : Submonoid S} [inst_5 : CommRing Sₘ] [inst_6 : Algebra S Sₘ] [inst_7 : IsLocalization N Sₘ]
  (hf : M ≤ Submonoid.comap f N),
  0 ∉ N → ∀ [IsDomain S], Function.Injective ⇑f → Function.Injective ⇑(IsLocalization.map Sₘ f hf)

Another version of IsLocalization.map_injective_of_injective that is more general for the choice of the localization submonoid but requires it does not contain zero.

theorem Localization.mk_intCast E1 #

∀ {R : Type u_1} [inst : CommRing R] {M : Submonoid R} (m : ℤ), Localization.mk (↑m) 1 = ↑m

theorem Localization.r_iff_of_le_nonZeroDivisors E1 #

∀ {R : Type u_1} [inst : CommRing R] {M : Submonoid R},
  M ≤ nonZeroDivisors R → ∀ (a c : R) (b d : ↥M), (Localization.r M) (a, b) (c, d) ↔ a * ↑d = ↑b * c

theorem IsLocalization.algHom_ext E1 #

∀ {R : Type u_1} {A : Type u_2} {L : Type u_3} {B : Type u_4} [inst : CommSemiring R] [inst_1 : CommSemiring A]
  [inst_2 : CommSemiring L] [inst_3 : Semiring B] (W : Submonoid A) [inst_4 : Algebra A L] [IsLocalization W L]
  [inst_6 : Algebra R A] [inst_7 : Algebra R L] [inst_8 : IsScalarTower R A L] [inst_9 : Algebra R B] {f g : L →ₐ[R] B},
  f.comp (Algebra.algHom R A L) = g.comp (Algebra.algHom R A L) → f = g

theorem Localization.algHom_ext_iff E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : CommSemiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {W : Submonoid A} {f g : Localization W →ₐ[R] B},
  f = g ↔ f.comp (Algebra.algHom R A (Localization W)) = g.comp (Algebra.algHom R A (Localization W))

theorem Localization.algHom_ext E1 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : CommSemiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (W : Submonoid A) {f g : Localization W →ₐ[R] B},
  f.comp (Algebra.algHom R A (Localization W)) = g.comp (Algebra.algHom R A (Localization W)) → f = g

def AlgHom.extendScalarsOfIsLocalization E1 #

{R : Type u_1} →
  {A : Type u_2} →
    {B : Type u_3} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] →
            (S : Type u_4) →
              [inst_3 : CommSemiring S] →
                [inst_4 : Algebra R S] →
                  (M : Submonoid R) →
                    [IsLocalization M S] →
                      [inst_6 : Algebra R A] →
                        [inst_7 : Algebra S A] →
                          [IsScalarTower R S A] →
                            [inst_9 : Algebra R B] →
                              [inst_10 : Algebra S B] → [IsScalarTower R S B] → (A →ₐ[R] B) → A →ₐ[S] B

For an algebra homomorphism f : A →ₐ[R] B, if A and B are algebras over a localization S of R, then f is automatically an S-algebra homomorphism.

theorem AlgHom.extendScalarsOfIsLocalization_apply E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  (S : Type u_4) [inst_3 : CommSemiring S] [inst_4 : Algebra R S] (M : Submonoid R) [inst_5 : IsLocalization M S]
  [inst_6 : Algebra R A] [inst_7 : Algebra S A] [inst_8 : IsScalarTower R S A] [inst_9 : Algebra R B]
  [inst_10 : Algebra S B] [inst_11 : IsScalarTower R S B] (f : A →ₐ[R] B) (a : A),
  (AlgHom.extendScalarsOfIsLocalization S M f) a = f a

def AlgEquiv.extendScalarsOfIsLocalization E1 #

{R : Type u_1} →
  {A : Type u_2} →
    {B : Type u_3} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Semiring B] →
            (S : Type u_4) →
              [inst_3 : CommSemiring S] →
                [inst_4 : Algebra R S] →
                  (M : Submonoid R) →
                    [IsLocalization M S] →
                      [inst_6 : Algebra R A] →
                        [inst_7 : Algebra S A] →
                          [IsScalarTower R S A] →
                            [inst_9 : Algebra R B] →
                              [inst_10 : Algebra S B] → [IsScalarTower R S B] → (A ≃ₐ[R] B) → A ≃ₐ[S] B

For an algebra isomorphism f : A ≃ₐ[R] B, if A and B are algebras over a localization S of R, then f is automatically an S-algebra isomorphism.

theorem AlgEquiv.extendScalarsOfIsLocalization_apply E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  (S : Type u_4) [inst_3 : CommSemiring S] [inst_4 : Algebra R S] (M : Submonoid R) [inst_5 : IsLocalization M S]
  [inst_6 : Algebra R A] [inst_7 : Algebra S A] [inst_8 : IsScalarTower R S A] [inst_9 : Algebra R B]
  [inst_10 : Algebra S B] [inst_11 : IsScalarTower R S B] (f : A ≃ₐ[R] B) (a : A),
  (AlgEquiv.extendScalarsOfIsLocalization S M f) a = (↑↑(AlgHom.extendScalarsOfIsLocalization S M ↑f).toRingHom).toFun a

theorem AlgEquiv.extendScalarsOfIsLocalization_symm_apply E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  (S : Type u_4) [inst_3 : CommSemiring S] [inst_4 : Algebra R S] (M : Submonoid R) [inst_5 : IsLocalization M S]
  [inst_6 : Algebra R A] [inst_7 : Algebra S A] [inst_8 : IsScalarTower R S A] [inst_9 : Algebra R B]
  [inst_10 : Algebra S B] [inst_11 : IsScalarTower R S B] (f : A ≃ₐ[R] B) (a : B),
  (AlgEquiv.extendScalarsOfIsLocalization S M f).symm a = f.invFun a