File size: 2,498 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | import OAI.ArithmeticGeometry.Models.CoefficientSystem
/-! # Integer Base -/
namespace OAI.ArithmeticGeometry.Models.IntegerBase.Constructions.Foundations
/-! Passage from finite coefficient rings to localized rings of integers. -/
open scoped _root_.NumberField nonZeroDivisors
universe u
variable (K : Type u) [Field K] [NumberField K]
theorem integersAwayToField_injective (N : β) (hN : N β 0) :
Function.Injective (Models.Algebra.Constructions.Foundations.integersAwayToField K N hN) := by
apply IsLocalization.injective_of_map_algebraMap_zero
(M := Submonoid.powers (N : π K))
intro a ha
rw [Models.Algebra.Constructions.Foundations.integersAwayToField_algebraMap] at ha
have ha0 : a = 0 := (IsFractionRing.injective (π K) K) (ha.trans (map_zero _).symm)
rw [ha0, map_zero]
noncomputable def integersAwayAlgHom (N : β) (hN : N β 0) :
Localization.Away (N : π K) ββ[π K] K where
toRingHom := Models.Algebra.Constructions.Foundations.integersAwayToField K N hN
commutes' := Models.Algebra.Constructions.Foundations.integersAwayToField_algebraMap K N hN
/-- Every finite coefficient ring maps compatibly into a localization of the
ring of integers, with any previously specified denominators also inverted. -/
theorem finite_coefficient_ring_factors_through_integers
(s : Finset K) (Nβ : β) (hNβ : Nβ β 0) :
β (N : β) (hN : N β 0), Nβ β£ N β§
β Ο : CoefficientSystem.Constructions.Foundations.coefficientRing (π K) K s ββ[π K] Localization.Away (N : π K),
(Models.Algebra.Constructions.Foundations.integersAwayToField K N hN).comp Ο.toRingHom =
(CoefficientSystem.Constructions.Foundations.coefficientRing (π K) K s).val.toRingHom := by
classical
obtain β¨N, hN, hd, hcoeffβ© := Models.Algebra.Constructions.Foundations.finite_coefficients_in_localized_integers K
(fun c : s β¦ (c : K)) Nβ hNβ
let F := integersAwayAlgHom K N hN
have hs : CoefficientSystem.Constructions.Foundations.coefficientRing (π K) K s β€ F.range := by
apply Algebra.adjoin_le
intro c hc
exact hcoeff β¨c, hcβ©
let e := AlgEquiv.ofInjective F (integersAwayToField_injective K N hN)
let Ο := e.symm.toAlgHom.comp (Subalgebra.inclusion hs)
refine β¨N, hN, hd, Ο, ?_β©
ext a
change ((e (e.symm (Subalgebra.inclusion hs a))) : K) = (a : K)
rw [e.apply_symm_apply]
rfl
end OAI.ArithmeticGeometry.Models.IntegerBase.Constructions.Foundations
|