File size: 8,007 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
import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Section.ConormalEtale
import OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.SchemeSection
import Mathlib.AlgebraicGeometry.Morphisms.Etale

/-! # Conormal Restriction -/

namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Affine.ConormalRestriction.AffineSectionConormal

noncomputable section

section

/-! Conormal maps and their restriction isomorphisms are induced by
the actual maps between affine smooth section neighborhoods. -/

open _root_.CategoryTheory _root_.AlgebraicGeometry

open OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.SchemeSection.BundleCycles

variable {X Y Z : Scheme.{0}}

def sectionAlgebraHom (p : Y ⟶ X) (s : X ⟶ Y) (hs : s ≫ p = 𝟙 X) :
    letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p
    Γ(Y, ⊤) →ₐ[Γ(X, ⊤)] Γ(X, ⊤) := by
  let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p
  exact { s.appTop.hom with
    commutes' := fun r => ConcreteCategory.congr_hom (Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.section_appTop p s hs) r }

def ambientAlgebraHom (p : Y ⟶ X) (q : Z ⟶ X) (f : Y ⟶ Z) (hf : f ≫ q = p) :
    letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p
    letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q
    Γ(Z, ⊤) →ₐ[Γ(X, ⊤)] Γ(Y, ⊤) := by
  let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p
  let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q
  refine { f.appTop.hom with commutes' := ?_ }
  intro r
  exact ConcreteCategory.congr_hom ((Scheme.Hom.comp_appTop f q).symm.trans (congrArg Scheme.Hom.appTop hf)) r

theorem section_comp (p : Y ⟶ X) (q : Z ⟶ X)
    (s : X ⟶ Y) (t : X ⟶ Z) (hs : s ≫ p = 𝟙 X) (ht : t ≫ q = 𝟙 X)
    (f : Y ⟶ Z) (hf : f ≫ q = p) (he : s ≫ f = t) :
    letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p
    letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q
    (sectionAlgebraHom p s hs).comp (ambientAlgebraHom p q f hf) = sectionAlgebraHom q t ht := by
  let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p
  let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q
  apply AlgHom.ext
  intro r
  exact ConcreteCategory.congr_hom ((Scheme.Hom.comp_appTop s f).symm.trans (congrArg Scheme.Hom.appTop he)) r

def map (p : Y ⟶ X) (q : Z ⟶ X)
    (s : X ⟶ Y) (t : X ⟶ Z) (hs : s ≫ p = 𝟙 X) (ht : t ≫ q = 𝟙 X)
    (f : Y ⟶ Z) (hf : f ≫ q = p) (he : s ≫ f = t) :
    letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p
    letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q
    (RingHom.ker t.appTop.hom).Cotangent →ₗ[Γ(X, ⊤)] (RingHom.ker s.appTop.hom).Cotangent := by
  let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p
  let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q
  exact Section.ConormalMaps.SectionConormal.map (sectionAlgebraHom q t ht) (sectionAlgebraHom p s hs)
    (ambientAlgebraHom p q f hf) (section_comp p q s t hs ht f hf he)

theorem finite_projective [IsAffine X] [IsAffine Y]
    (p : Y ⟶ X) [Smooth p] (s : X ⟶ Y) (hs : s ≫ p = 𝟙 X) :
    letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p
    Module.Finite Γ(X, ⊤) (RingHom.ker s.appTop.hom).Cotangent ∧
      Module.Projective Γ(X, ⊤) (RingHom.ker s.appTop.hom).Cotangent := by
  let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p
  let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.sectionRing_smooth p
  exact Section.ConormalMaps.SectionConormal.finite_projective (sectionAlgebraHom p s hs)

end

/-! The conormal map of an actual étale map between smooth affine
section neighborhoods is bijective. This identifies conormals on smaller charts. -/

open _root_.CategoryTheory _root_.AlgebraicGeometry

open OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.SchemeSection.BundleCycles

theorem map_bijective_of_etale {X Y Z : Scheme.{0}} [IsAffine X] [IsAffine Y] [IsAffine Z]
    (p : Y ⟶ X) (q : Z ⟶ X) [Smooth p] [Smooth q]
    (s : X ⟶ Y) (t : X ⟶ Z) (hs : s ≫ p = 𝟙 X) (ht : t ≫ q = 𝟙 X)
    (f : Y ⟶ Z) [Etale f] (hf : f ≫ q = p) (he : s ≫ f = t) :
    letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p
    letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q
    Function.Bijective (map p q s t hs ht f hf he) := by
  let R := Γ(X, ⊤)
  let B := Γ(Z, ⊤)
  let C := Γ(Y, ⊤)
  let : Algebra R B := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q
  let : Algebra R C := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p
  let : Algebra B C := f.appTop.hom.toAlgebra
  let : IsScalarTower R B C := IsScalarTower.of_algebraMap_eq fun r =>
    (ConcreteCategory.congr_hom ((Scheme.Hom.comp_appTop f q).symm.trans
      (congrArg Scheme.Hom.appTop hf)) r).symm
  let : Algebra B R := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.quotientAlgebra t
  let : Algebra C R := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.quotientAlgebra s
  let : IsScalarTower R B R := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.scalarTower q t ht
  let : IsScalarTower R C R := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.scalarTower p s hs
  let : IsScalarTower B C R := IsScalarTower.of_algebraMap_eq fun b =>
    (ConcreteCategory.congr_hom ((Scheme.Hom.comp_appTop s f).symm.trans
      (congrArg Scheme.Hom.appTop he)) b).symm
  let : Algebra.Smooth R B := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.sectionRing_smooth q
  let : Algebra.Smooth R C := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.sectionRing_smooth p
  let : Algebra.Etale B C := HasRingHomProperty.appTop (P := @Etale) f inferInstance
  have hmap : (Section.ConormalEtale.SectionConormal.etaleEquiv R B C).toLinearMap = map p q s t hs ht f hf he := by
    apply LinearMap.ext
    intro v
    obtain ⟨b, rfl⟩ := Ideal.toCotangent_surjective (RingHom.ker t.appTop.hom) v
    exact Section.ConormalEtale.SectionConormal.etaleEquiv_toCotangent R B C b
  rw [← hmap]
  exact (Section.ConormalEtale.SectionConormal.etaleEquiv R B C).bijective

def restrictionEquiv {X Y Z : Scheme.{0}} [IsAffine X] [IsAffine Y] [IsAffine Z]
    (p : Y ⟶ X) (q : Z ⟶ X) [Smooth p] [Smooth q]
    (s : X ⟶ Y) (t : X ⟶ Z) (hs : s ≫ p = 𝟙 X) (ht : t ≫ q = 𝟙 X)
    (f : Y ⟶ Z) [Etale f] (hf : f ≫ q = p) (he : s ≫ f = t) :
    letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p
    letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q
    (RingHom.ker t.appTop.hom).Cotangent ≃ₗ[Γ(X, ⊤)] (RingHom.ker s.appTop.hom).Cotangent := by
  let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p
  let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q
  exact LinearEquiv.ofBijective (map p q s t hs ht f hf he)
    (map_bijective_of_etale p q s t hs ht f hf he)

end

end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Affine.ConormalRestriction.AffineSectionConormal