File size: 7,550 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
import OAI.AlgebraicGeometry.Resolution.Blowups.Etale.TransverseHypersurfaceCoordinates
import Mathlib.Algebra.MvPolynomial.Derivation

/-! # Module Derivations -/

namespace OAI.AlgebraicGeometry.Resolution.Blowups.Etale.ModuleDerivations.Construction

noncomputable section

section

/-! The coordinate basis of derivations relative to the coefficient
field on an actual Γ©tale polynomial chart. -/

variable {Οƒ K S : Type*} [Field K] [CommRing S]
  [Algebra (MvPolynomial Οƒ K) S] [Algebra.Etale (MvPolynomial Οƒ K) S]
  [Algebra K S] [IsScalarTower K (MvPolynomial Οƒ K) S]

/-- A derivation relative to the coefficient field is determined by
its values on the Γ©tale coordinate functions. -/
theorem etale_relative_derivation_ext (D E : Derivation K S S)
    (h : βˆ€ i : Οƒ, D (algebraMap (MvPolynomial Οƒ K) S (MvPolynomial.X i)) =
      E (algebraMap (MvPolynomial Οƒ K) S (MvPolynomial.X i))) : D = E := by
  have he : D.compAlgebraMap (MvPolynomial Οƒ K) = E.compAlgebraMap (MvPolynomial Οƒ K) :=
    MvPolynomial.derivation_ext h
  apply Blowups.Etale.Derivation.Construction.etaleDerivation_ext (R := MvPolynomial Οƒ K)
  intro p
  exact Derivation.congr_fun he p

variable [Fintype Οƒ] [DecidableEq Οƒ]

/-- Every relative derivation is exactly the linear combination of the
coordinate partial derivatives given by its coordinate values. -/
theorem etale_relative_derivation_eq_sum (D : Derivation K S S) :
    D = βˆ‘ i : Οƒ, D (algebraMap (MvPolynomial Οƒ K) S (MvPolynomial.X i)) β€’
      DifferentialEquation.Construction.etaleRelativePartial (K := K) (S := S) i := by
  apply etale_relative_derivation_ext (Οƒ := Οƒ)
  intro j
  have hsum := congrArg
    (fun g : S β†’ S => g (algebraMap (MvPolynomial Οƒ K) S (MvPolynomial.X j)))
    (map_sum (Derivation.coeFnAddMonoidHom : Derivation K S S β†’+ S β†’ S)
      (fun i : Οƒ => D (algebraMap (MvPolynomial Οƒ K) S (MvPolynomial.X i)) β€’
        DifferentialEquation.Construction.etaleRelativePartial (K := K) (S := S) i) Finset.univ)
  simp only [Derivation.coeFnAddMonoidHom_apply, Finset.sum_apply,
    Derivation.smul_apply, smul_eq_mul, TransverseHypersurfaceCoordinates.Construction.etaleRelativePartial_X] at hsum
  rw [hsum]
  simp

/-- The same basis formula evaluated on any section, for use in
coordinate-independent differential ideal comparisons. -/
theorem etale_relative_derivation_apply (D : Derivation K S S) (p : S) :
    D p = βˆ‘ i : Οƒ, D (algebraMap (MvPolynomial Οƒ K) S (MvPolynomial.X i)) *
      DifferentialEquation.Construction.etaleRelativePartial (K := K) (S := S) i p := by
  have he := Derivation.congr_fun (etale_relative_derivation_eq_sum (Οƒ := Οƒ) D) p
  have hsum := congrArg (fun g : S β†’ S => g p)
    (map_sum (Derivation.coeFnAddMonoidHom : Derivation K S S β†’+ S β†’ S)
      (fun i : Οƒ => D (algebraMap (MvPolynomial Οƒ K) S (MvPolynomial.X i)) β€’
        DifferentialEquation.Construction.etaleRelativePartial (K := K) (S := S) i) Finset.univ)
  exact he.trans (by simpa only [Derivation.coeFnAddMonoidHom_apply, Finset.sum_apply,
    Derivation.smul_apply, smul_eq_mul] using hsum)

end

/-! Γ‰tale coordinate expansion for derivations with values in arbitrary modules. -/

variable {k A B M : Type*} [CommRing k] [CommRing A] [CommRing B]
  [Algebra k A] [Algebra k B] [Algebra A B] [IsScalarTower k A B]
  [Algebra.FormallyEtale A B] [AddCommGroup M] [Module B M] [Module k M]
  [IsScalarTower k B M] [Module A M] [IsScalarTower A B M] [IsScalarTower k A M]

/-- Γ‰tale uniqueness of module-valued derivations, including universal
KΓ€hler derivations. -/
theorem etaleModuleDerivation_ext (D E : Derivation k B M)
    (h : βˆ€ a : A, D (algebraMap A B a) = E (algebraMap A B a)) : D = E := by
  have hlin : D.liftKaehlerDifferential = E.liftKaehlerDifferential := by
    apply (KaehlerDifferential.isBaseChange_of_formallyEtale k A B).algHom_ext'
    apply Derivation.liftKaehlerDifferential_unique
    apply Derivation.ext
    intro a
    change D.liftKaehlerDifferential
        (KaehlerDifferential.map k k A B (KaehlerDifferential.D k A a)) =
      E.liftKaehlerDifferential
        (KaehlerDifferential.map k k A B (KaehlerDifferential.D k A a))
    rw [KaehlerDifferential.map_D, Derivation.liftKaehlerDifferential_comp_D,
      Derivation.liftKaehlerDifferential_comp_D]
    exact h a
  apply Derivation.ext
  intro b
  rw [← Derivation.liftKaehlerDifferential_comp_D D b,
    ← Derivation.liftKaehlerDifferential_comp_D E b, hlin]

variable {Οƒ K R N : Type*} [Field K] [CommRing R] [AddCommGroup N]
  [Algebra (MvPolynomial Οƒ K) R] [Algebra.Etale (MvPolynomial Οƒ K) R]
  [Algebra K R] [IsScalarTower K (MvPolynomial Οƒ K) R]
  [Module R N] [Module K N] [IsScalarTower K R N]

theorem etale_coordinate_module_derivation_ext (D E : Derivation K R N)
    (h : βˆ€ i : Οƒ, D (algebraMap (MvPolynomial Οƒ K) R (MvPolynomial.X i)) =
      E (algebraMap (MvPolynomial Οƒ K) R (MvPolynomial.X i))) : D = E := by
  let : Module (MvPolynomial Οƒ K) N := Module.compHom N (algebraMap (MvPolynomial Οƒ K) R)
  let : IsScalarTower (MvPolynomial Οƒ K) R N := IsScalarTower.of_algebraMap_smul fun _ _ => rfl
  let : IsScalarTower K (MvPolynomial Οƒ K) N :=
    IsScalarTower.of_algebraMap_smul (by
      intro a x
      change algebraMap (MvPolynomial Οƒ K) R (algebraMap K (MvPolynomial Οƒ K) a) β€’ x = a β€’ x
      rw [← IsScalarTower.algebraMap_apply K (MvPolynomial Οƒ K) R]
      exact IsScalarTower.algebraMap_smul R a x)
  have he : D.compAlgebraMap (MvPolynomial Οƒ K) = E.compAlgebraMap (MvPolynomial Οƒ K) :=
    MvPolynomial.derivation_ext h
  apply etaleModuleDerivation_ext (A := MvPolynomial Οƒ K)
  intro p
  exact Derivation.congr_fun he p

variable [Fintype Οƒ] [DecidableEq Οƒ]

/-- The coordinate chain rule with values in an arbitrary module. -/
theorem etale_coordinate_module_derivation_expansion (D : Derivation K R N) (x : R) :
    D x = βˆ‘ i : Οƒ, DifferentialEquation.Construction.etaleRelativePartial (K := K) (S := R) i x β€’
      D (algebraMap (MvPolynomial Οƒ K) R (MvPolynomial.X i)) := by
  let E : Οƒ β†’ Derivation K R N := fun i =>
    (LinearMap.toSpanSingleton R N
      (D (algebraMap (MvPolynomial Οƒ K) R (MvPolynomial.X i)))).compDer
        (DifferentialEquation.Construction.etaleRelativePartial (K := K) (S := R) i)
  have he : D = βˆ‘ i : Οƒ, E i := by
    apply etale_coordinate_module_derivation_ext (Οƒ := Οƒ)
    intro j
    have hsum := congrArg
      (fun f : R β†’ N => f (algebraMap (MvPolynomial Οƒ K) R (MvPolynomial.X j)))
      (map_sum (Derivation.coeFnAddMonoidHom : Derivation K R N β†’+ R β†’ N) E Finset.univ)
    simp only [Derivation.coeFnAddMonoidHom_apply, Finset.sum_apply] at hsum
    rw [hsum]
    change D (algebraMap (MvPolynomial Οƒ K) R (MvPolynomial.X j)) =
      βˆ‘ i : Οƒ, DifferentialEquation.Construction.etaleRelativePartial (K := K) (S := R) i
        (algebraMap (MvPolynomial Οƒ K) R (MvPolynomial.X j)) β€’
          D (algebraMap (MvPolynomial Οƒ K) R (MvPolynomial.X i))
    simp [TransverseHypersurfaceCoordinates.Construction.etaleRelativePartial_X]
  have hsum := congrArg (fun f : R β†’ N => f x)
    (map_sum (Derivation.coeFnAddMonoidHom : Derivation K R N β†’+ R β†’ N) E Finset.univ)
  calc
    D x = (βˆ‘ i : Οƒ, E i) x := Derivation.congr_fun he x
    _ = βˆ‘ i : Οƒ, E i x := by
      simpa only [Derivation.coeFnAddMonoidHom_apply, Finset.sum_apply] using hsum
    _ = _ := by
      apply Finset.sum_congr rfl
      intro i _
      rfl

end

end OAI.AlgebraicGeometry.Resolution.Blowups.Etale.ModuleDerivations.Construction