File size: 2,934 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
import OAI.AlgebraicGeometry.CycleClass.Thom.ProperImage.EtaleFiberDegree
import OAI.AlgebraicGeometry.Foundations.Scheme.AffineComplexPoints
import Mathlib.AlgebraicGeometry.Morphisms.FlatRank
import Mathlib.AlgebraicGeometry.Morphisms.Etale

/-! # Etale Geometric Cardinality -/

namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.EtaleGeometricCardinality

noncomputable section

/-! The number of actual rational points of a finite etale scheme over an
algebraically closed field equals its scheme-theoretic rank. -/

set_option backward.isDefEq.respectTransparency false
set_option backward.isDefEq.respectTransparency.types false
open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite

open OAI.AlgebraicGeometry.Foundations.Scheme.AffineComplexPoints

def affineFieldBaseIso (K : Type) [Field K] :
    Foundations.Scheme.AffineComplexPoints.affineSchemeOver K K β‰… Over.mk (πŸ™ (Spec (.of K))) :=
  Over.isoMk (Iso.refl _) (by
    change πŸ™ (Spec (.of K)) ≫ πŸ™ (Spec (.of K)) = Spec.map (CommRingCat.ofHom (algebraMap K K))
    simp)

theorem finiteEtale_geometric_point_card {K : Type} [Field K] [IsAlgClosed K]
    (H : Over (Spec (.of K))) [IsFinite H.hom] [Etale H.hom] (z : Spec (.of K)) :
    Nat.card (Over.mk (πŸ™ (Spec (.of K))) ⟢ H) = H.hom.finrank z := by
  have : IsAffine H.left := isAffine_of_isAffineHom H.hom
  obtain ⟨B, ⟨e⟩⟩ := (essImage_algSpec (R := CommRingCat.of K) (G := H)).mpr
    (inferInstanceAs (IsAffine H.left))
  let A := B.unop
  let Q := Foundations.Scheme.AffineComplexPoints.affineSchemeOver K A
  change Q β‰… H at e
  have : IsFinite Q.hom := by
    rw [← e.hom.w]
    infer_instance
  have : Etale Q.hom := by
    rw [← e.hom.w]
    infer_instance
  have hfin : (algebraMap K A).Finite := (IsFinite.SpecMap_iff
    (CommRingCat.ofHom (algebraMap K A))).mp (inferInstanceAs (IsFinite Q.hom))
  have : Module.Finite K A := (RingHom.finite_algebraMap).mp hfin
  have het : (algebraMap K A).Etale := (HasRingHomProperty.Spec_iff (P := @Etale)
    (Ο† := CommRingCat.ofHom (algebraMap K A))).mp (inferInstanceAs (Etale Q.hom))
  have : Algebra.Etale K A := (RingHom.etale_algebraMap).mp het
  let ep := (Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv K A K).trans ((affineFieldBaseIso K).homCongr e)
  have hc : Nat.card (Over.mk (πŸ™ (Spec (.of K))) ⟢ H) = Module.finrank K A :=
    (Nat.card_congr ep).symm.trans
      (CycleClass.Thom.ProperImage.EtaleFiberDegree.Constructions.Construction.card_characters_eq_finrank_of_etale K A)
  have hr : Q.hom.finrank z = H.hom.finrank z := by
    rw [← e.hom.w, Scheme.Hom.finrank_comp_left_of_isIso]
  rw [hc, ← hr]
  change Module.finrank K A = (Spec.map (CommRingCat.ofHom (algebraMap K A))).finrank z
  rw [Scheme.Hom.finrank_SpecMap_algebraMap, Module.rankAtStalk_eq_finrank_of_free]
  rfl

end

end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.EtaleGeometricCardinality