math / data /lean /OAI /AlgebraicGeometry /PELModuli /IntegralModel /Finite /EtaleGeometricCardinality.lean
Download data/lean/OAI/AlgebraicGeometry/PELModuli/IntegralModel/Finite/EtaleGeometricCardinality.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.93 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/PELModuli/IntegralModel/Finite/EtaleGeometricCardinality.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/AlgebraicGeometry/PELModuli/IntegralModel/Finite/EtaleGeometricCardinality.lean
-
curl -L -o EtaleGeometricCardinality.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/PELModuli/IntegralModel/Finite/EtaleGeometricCardinality.lean
2.93 kB
| 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 | |