File size: 3,829 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import OAI.AlgebraicGeometry.CycleClass.Thom.Finite.Colength
import OAI.AlgebraicGeometry.CycleClass.Thom.SemilocalLength
import OAI.AlgebraicGeometry.CycleClass.Thom.Finite.Normalization

/-! # Local -/

namespace OAI

noncomputable section

namespace AlgebraicGeometry.CycleClass.Thom.Normalization.Local.Constructions.Divisor

/-!
# ThomClass: local divisor multiplicities under finite normalization

The original local domain may be singular and its normalization may have
several branches. Quotient lengths express the original order as the sum
of the residue degrees of the prime factors in the normalization.
-/

open UniqueFactorizationMonoid

variable {R S K : Type*} [CommRing R] [CommRing S] [IsDomain R]
  [IsLocalRing R] [IsNoetherianRing R] [Ring.KrullDimLE 1 R]
  [IsDedekindDomain S] [Field K] [Algebra R S] [Module.Finite R S]
  [Algebra R K] [Algebra S K] [IsScalarTower R S K]
  [IsFractionRing R K] [IsFractionRing S K]

/-- The prime factors are taken in the normalization, with multiplicity. -/
def branchMultiplicity (R S : Type*) [CommRing R] [CommRing S]
    [IsDedekindDomain S] [Algebra R S] (a : R) : ℕ :=
  ((normalizedFactors (Ideal.span ({algebraMap R S a} : Set S))).map
    (fun P => P.inertiaDeg R)).sum

include K in
theorem ord_eq_branchMultiplicity (a : R) (ha : a ≠ 0) :
    Ring.ord R a = (branchMultiplicity R S a : ℕ∞) := by
  have hi : Function.Injective (algebraMap R S) := by
    apply Function.Injective.of_comp (f := algebraMap S K)
    simpa only [← RingHom.coe_comp, ← IsScalarTower.algebraMap_eq] using
      IsFractionRing.injective R K
  rw [Thom.Finite.Colength.Constructions.ord_eq_length_birational_extension R S K a ha]
  exact SemilocalLength.Constructions.length_quotient_eq_sum _
    (fun h => ha (hi (by simpa using Ideal.span_singleton_eq_bot.mp h)))

/-- The corresponding equality for a rational function includes both zeros
and poles, using the same integer-valued order as the geometric divisor. -/
theorem log_ordFrac_div (a b : R) (ha : a ≠ 0) (hb : b ≠ 0) :
    WithZero.log (Ring.ordFrac R (algebraMap R K a / algebraMap R K b)) =
      (branchMultiplicity R S a : ℤ) - (branchMultiplicity R S b : ℤ) := by
  rw [map_div₀, Ring.ordFrac_eq_ord R ha, Ring.ordFrac_eq_ord R hb,
    Ring.ordMonoidWithZeroHom_eq_coe R (mem_nonZeroDivisors_of_ne_zero ha)
      (ord_eq_branchMultiplicity (S := S) (K := K) a ha),
    Ring.ordMonoidWithZeroHom_eq_coe R (mem_nonZeroDivisors_of_ne_zero hb)
      (ord_eq_branchMultiplicity (S := S) (K := K) b hb)]
  exact WithZero.log_div (by simp) (by simp)

end AlgebraicGeometry.CycleClass.Thom.Normalization.Local.Constructions.Divisor

namespace AlgebraicGeometry.CycleClass.Thom.Normalization.Local.Constructions

/-!
# ThomClass: normalization at codimension-one affine local rings

The normal ring and the finite-colength hypothesis are obtained from the
actual integral closure. No regularity of the original local ring is used.
-/

theorem isDedekindDomain_integralClosure
    (R K : Type*) [CommRing R] [IsDomain R] [IsNoetherianRing R]
    [Ring.KrullDimLE 1 R] [Field K] [Algebra R K] [IsFractionRing R K]
    [Module.Finite R (integralClosure R K)] :
    IsDedekindDomain (integralClosure R K) := by
  let : Ring.DimensionLEOne R :=
    ⟨fun hn hp => hp.isMaximal_of_ne_bot hn⟩
  let : IsNoetherianRing (integralClosure R K) :=
    IsNoetherianRing.of_finite R (integralClosure R K)
  let : IsIntegrallyClosed (integralClosure R K) :=
    integralClosure.isIntegrallyClosedOfFiniteExtension (R := R) K
  exact
    { toIsDomain := inferInstance
      toIsDedekindRing :=
        { toIsNoetherian := inferInstance
          toDimensionLEOne := inferInstance
          toIsIntegralClosure := inferInstance } }

end AlgebraicGeometry.CycleClass.Thom.Normalization.Local.Constructions

end

end OAI