File size: 2,178 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.SpreadingOut.FiniteTypeCoefficientBase
import Mathlib.RingTheory.DedekindDomain.Dvr

/-! # Dedekind Coefficient -/

namespace OAI.ArithmeticGeometry.Models.SpreadingOut.DedekindCoefficient.Construction

noncomputable section

/-! A finite coefficient base is dominated by a finite type Dedekind base
with the same generic number field. -/

open _root_.CategoryTheory _root_.AlgebraicGeometry
open scoped _root_.NumberField

universe u

structure DedekindCoefficientBase (K : Type u) [Field K] [NumberField K] (s : Finset K) where
  carrier : Type u
  [commRing : CommRing carrier]
  [algebra : Algebra (π“ž K) carrier]
  [dedekind : IsDedekindDomain carrier]
  [finiteType : Algebra.FiniteType (π“ž K) carrier]
  genericMap : carrier →ₐ[π“ž K] K
  injective : Function.Injective genericMap
  baseMap : Spec (.of carrier) ⟢ CoefficientSystem.Constructions.Foundations.coefficientBase (π“ž K) K s
  generic_comp : Spec.map (CommRingCat.ofHom genericMap.toRingHom) ≫ baseMap =
    CoefficientSystem.Constructions.Foundations.genericBaseMap (π“ž K) K s

attribute [instance] DedekindCoefficientBase.commRing DedekindCoefficientBase.algebra
  DedekindCoefficientBase.dedekind DedekindCoefficientBase.finiteType

theorem coefficient_has_dedekind_base
    {K : Type u} [Field K] [NumberField K] (s : Finset K) :
    Nonempty (DedekindCoefficientBase K s) := by
  let A := CoefficientSystem.Constructions.Foundations.coefficientRing (π“ž K) K s
  obtain ⟨d, _, hpow, hle⟩ := Fg.Construction.fg_subalgebra_le_localization A ⟨s, rfl⟩
  let R := Localization.subalgebra.ofField K (Submonoid.powers d) hpow
  have : IsDedekindDomain R := IsLocalization.isDedekindDomain (π“ž K) hpow R
  have : Algebra.FinitePresentation (π“ž K) R := IsLocalization.Away.finitePresentation d
  let ψ : A →ₐ[π“ž K] R := Subalgebra.inclusion hle
  refine ⟨{
    carrier := R
    genericMap := R.val
    injective := Subtype.val_injective
    baseMap := Spec.map (CommRingCat.ofHom ψ.toRingHom)
    generic_comp := ?_ }⟩
  rw [← Spec.map_comp]
  rfl

end

end OAI.ArithmeticGeometry.Models.SpreadingOut.DedekindCoefficient.Construction