English
If R is a gcd-domain and a localization holds, then R is integrally closed in its fraction field.
Русский
Если R — gcd-домен и существует локализация, то R интегрально замкнутое внутри своего дробного поля.
LaTeX
$$IsIntegrallyClosed R$$
Lean4
instance (priority := 100) toIsIntegrallyClosed [h : Nonempty (GCDMonoid R)] : IsIntegrallyClosed R :=
(isIntegrallyClosed_iff (FractionRing R)).mpr fun {X} ⟨p, hp₁, hp₂⟩ =>
by
cases h
obtain ⟨x, y, hg, he⟩ := IsLocalization.surj_of_gcd_domain (nonZeroDivisors R) X
have :=
Polynomial.dvd_pow_natDegree_of_eval₂_eq_zero (IsFractionRing.injective R <| FractionRing R) hp₁ y x _ hp₂
(by rw [mul_comm, he])
have : IsUnit y := by
rw [isUnit_iff_dvd_one, ← one_pow]
exact
(dvd_gcd this <| dvd_refl y).trans
(gcd_pow_left_dvd_pow_gcd.trans <| pow_dvd_pow_of_dvd (isUnit_iff_dvd_one.1 hg) _)
use x * (this.unit⁻¹ :)
rw [map_mul]
have coe_map_inv := Units.coe_map_inv ((algebraMap R (FractionRing R) : R →* FractionRing R)) this.unit
simp only [MonoidHom.coe_coe] at coe_map_inv
rw [← coe_map_inv, eq_comm, Units.eq_mul_inv_iff_mul_eq]
exact he