Download lean/OAI/AlgebraicGeometry/SectionFields/NormalBaseChange.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 8.85 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/0aba1cd41414e6bcbc4f3bf823e08849f9affc19/lean/OAI/AlgebraicGeometry/SectionFields/NormalBaseChange.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset@0aba1cd41414e6bcbc4f3bf823e08849f9affc19/lean/OAI/AlgebraicGeometry/SectionFields/NormalBaseChange.lean
-
curl -L -o NormalBaseChange.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/0aba1cd41414e6bcbc4f3bf823e08849f9affc19/lean/OAI/AlgebraicGeometry/SectionFields/NormalBaseChange.lean
8.85 kB
Lean 4 · 17
declarations statementsfull
lemma integrallyClosed_of_affine_open_immersion
{X : Scheme.{u}} (hNormal : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x))
(A : Type u) [CommRing A] [IsDomain A]
(j : Spec (.of A) ⟶ X) [IsOpenImmersion j] : IsIntegrallyClosed A := by proof · 8 lines
apply IsIntegrallyClosed.of_localization_maximal
intro p hp hpmax
let x : Spec (.of A) := (⟨p, inferInstance⟩ : PrimeSpectrum A)
let := hNormal (j x)
have hs : IsIntegrallyClosed ((Spec (.of A)).presheaf.stalk x) :=
IsIntegrallyClosed.of_equiv (asIso (j.stalkMap x)).commRingCatIsoToRingEquiv
exact IsIntegrallyClosed.of_equiv (h := hs)
(StructureSheaf.stalkIso A (⟨p, inferInstance⟩ : PrimeSpectrum A)).toRingEquiv.symmlemma integrallyClosed_spec_stalk (A : Type u) [CommRing A] [IsDomain A]
[IsIntegrallyClosed A] (x : Spec (.of A)) :
IsIntegrallyClosed ((Spec (.of A)).presheaf.stalk x) := by proof · 5 lines
change PrimeSpectrum A at x
let : IsIntegrallyClosed (Localization.AtPrime x.asIdeal) :=
isIntegrallyClosed_of_isLocalization _ x.asIdeal.primeCompl
x.asIdeal.primeCompl_le_nonZeroDivisors
exact IsIntegrallyClosed.of_equiv (StructureSheaf.stalkIso A x).toRingEquivlemma scalarExtensionChart_range
(K A L : Type u) [Field K] [CommRing A] [Field L]
[Algebra K A] [Algebra K L]
{X : Scheme.{u}} (f : X ⟶ Spec (.of K))
(j : Spec (.of A) ⟶ X)
(hj : Spec.map (CommRingCat.ofHom (algebraMap K A)) = j ≫ f) :
Set.range (scalarExtensionChart K A L f j hj) =
pullback.fst f (Spec.map (CommRingCat.ofHom (algebraMap K L))) ⁻¹' Set.range j := by proof · 6 lines
have hs : Set.range (pullbackSpecIso K A L).inv = Set.univ := by
simp
unfold scalarExtensionChart
rw [Scheme.Hom.comp_base, TopCat.coe_comp, Set.range_comp, hs,
Set.image_univ, AlgebraicGeometry.Scheme.Pullback.range_map]
simplemma scalarExtensionChart_normal_stalk
(K A L : Type u) [Field K] [CommRing A] [IsDomain A] [Field L]
[Algebra K A] [Algebra K L] [IsGalois K L] [Module.Finite K L]
{X : Scheme.{u}} (f : X ⟶ Spec (.of K)) [GeometricallyIntegral f]
(hNormal : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x))
(j : Spec (.of A) ⟶ X) [IsOpenImmersion j]
(hj : Spec.map (CommRingCat.ofHom (algebraMap K A)) = j ≫ f)
(x : Spec (.of (A ⊗[K] L))) :
IsIntegrallyClosed ((pullback f (Spec.map (CommRingCat.ofHom (algebraMap K L)))).presheaf.stalk
(scalarExtensionChart K A L f j hj x)) := by proof · 6 lines
let := integrallyClosed_of_affine_open_immersion hNormal A j
let := scalarExtensionChart_domain K A L f j hj
let := tensor_isIntegrallyClosed_of_galois K A L (FractionRing A)
let := integrallyClosed_spec_stalk (A ⊗[K] L) x
exact IsIntegrallyClosed.of_equiv
(asIso ((scalarExtensionChart K A L f j hj).stalkMap x)).commRingCatIsoToRingEquiv.symmtheorem galois_baseChange_normal
(K L : Type u) [Field K] [Field L] [Algebra K L] [IsGalois K L]
[Module.Finite K L] {X : Scheme.{u}} [IsIntegral X]
(f : X ⟶ Spec (.of K)) [GeometricallyIntegral f]
(hNormal : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x))
(y : (pullback f (Spec.map (CommRingCat.ofHom (algebraMap K L))) : Scheme)) :
IsIntegrallyClosed ((pullback f
(Spec.map (CommRingCat.ofHom (algebraMap K L)))).presheaf.stalk y) := by proof · 21 lines
let z := pullback.fst f (Spec.map (CommRingCat.ofHom (algebraMap K L))) y
let i := X.affineOpenCover.idx z
let A := X.affineOpenCover.X i
let j : Spec A ⟶ X := X.affineOpenCover.f i
let : IsOpenImmersion j := X.affineOpenCover.map_prop i
have hc : z ∈ Set.range j := X.affineOpenCover.covers z
let : Nonempty (Spec A) := ⟨hc.choose⟩
let : IsIntegral (Spec A) := isIntegral_of_isOpenImmersion j
have hA : IsDomain A := (affine_isIntegral_iff A).mp inferInstance
let := hA
let b : CommRingCat.of K ⟶ A := (Spec.map_surjective (j ≫ f)).choose
let : Algebra K A := b.hom.toAlgebra
have hj : Spec.map (CommRingCat.ofHom (algebraMap K A)) = j ≫ f :=
(Spec.map_surjective (j ≫ f)).choose_spec
have hy : y ∈ Set.range (scalarExtensionChart K A L f j hj) := by
rw [scalarExtensionChart_range]
exact hc
obtain ⟨x, hx⟩ := hy
have hn := @scalarExtensionChart_normal_stalk K A L _ A.commRing hA _ _ _ _ _
X f _ hNormal j _ hj x
exact hx ▸ hnnoncomputable def fieldAffineChartRing (X : Scheme.{u}) [IsIntegral X] : CommRingCat.{u} := body · 1 line
X.affineOpenCover.X (X.affineOpenCover.idx (genericPoint X))noncomputable def fieldAffineChartMap (X : Scheme.{u}) [IsIntegral X] :
Spec (fieldAffineChartRing X) ⟶ X := body · 1 line
X.affineOpenCover.f (X.affineOpenCover.idx (genericPoint X))instance (X : Scheme.{u}) [IsIntegral X] : IsOpenImmersion (fieldAffineChartMap X) := by body · 1 line
exact X.affineOpenCover.map_prop _instance (X : Scheme.{u}) [IsIntegral X] : Nonempty (Spec (fieldAffineChartRing X)) := by body · 2 lines
obtain ⟨x, _⟩ := X.affineOpenCover.covers (genericPoint X)
exact ⟨x⟩instance fieldAffineChartRing_isDomain (X : Scheme.{u}) [IsIntegral X] : IsDomain (fieldAffineChartRing X) := by body · 2 lines
apply (affine_isIntegral_iff _).mp
exact isIntegral_of_isOpenImmersion (fieldAffineChartMap X)instance (X : Scheme.{u}) [IsIntegral X] : IsDominant (fieldAffineChartMap X) := body · 1 line
isDominant_of_openIntegral _
noncomputable def fieldAffineChartHom (K : Type u) [Field K]
{X : Scheme.{u}} [IsIntegral X] (f : X ⟶ Spec (.of K)) :
CommRingCat.of K ⟶ fieldAffineChartRing X := body · 1 line
(Spec.map_surjective (fieldAffineChartMap X ≫ f)).chooselemma fieldAffineChartHom_spec (K : Type u) [Field K]
{X : Scheme.{u}} [IsIntegral X] (f : X ⟶ Spec (.of K)) :
Spec.map (fieldAffineChartHom K f) = fieldAffineChartMap X ≫ f := proof · 1 line
(Spec.map_surjective (fieldAffineChartMap X ≫ f)).choose_spec@[instance_reducible] noncomputable def fieldAffineChartAlgebra (K : Type u) [Field K]
{X : Scheme.{u}} [IsIntegral X] (f : X ⟶ Spec (.of K)) :
Algebra K (fieldAffineChartRing X) := body · 1 line
(fieldAffineChartHom K f).hom.toAlgebralemma fieldAffineChart_algebraMap_spec (K : Type u) [Field K]
{X : Scheme.{u}} [IsIntegral X] (f : X ⟶ Spec (.of K)) :
letI := fieldAffineChartAlgebra K f proof · 3 lines
Spec.map (CommRingCat.ofHom (algebraMap K (fieldAffineChartRing X))) =
fieldAffineChartMap X ≫ f :=
fieldAffineChartHom_spec K f@[instance_reducible] noncomputable def schemeBaseChangeGaloisAction
(K L : Type u) [Field K] [Field L] [Algebra K L] [Module.Finite K L]
{X : Scheme.{u}} [IsIntegral X]
(f : X ⟶ Spec (.of K)) [GeometricallyIntegral f] :
MulSemiringAction (Gal(L/K))
(pullback f (Spec.map (CommRingCat.ofHom (algebraMap K L)))).functionField := by body · 4 lines
letI := fieldAffineChartAlgebra K f
exact scalarExtensionGaloisAction K (fieldAffineChartRing X) L
(FractionRing (fieldAffineChartRing X)) f (fieldAffineChartMap X)
(fieldAffineChart_algebraMap_spec K f)theorem same_divisor_descends_from_galois_extension
(K L : Type u) [Field K] [Field L] [Algebra K L] [IsGalois K L]
[Module.Finite K L] {X : Scheme.{u}} [IsIntegral X]
(f : X ⟶ Spec (.of K)) [GeometricallyIntegral f] [IsProper f]
(hNormal : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x))
(u : (pullback f (Spec.map (CommRingCat.ofHom (algebraMap K L)))).functionFieldˣ)
(hdiv : letI := schemeBaseChangeGaloisAction K L f
letI : IsNoetherian (pullback f
(Spec.map (CommRingCat.ofHom (algebraMap K L)))) := {}
∀ σ : Gal(L/K), principalDivisor _ (σ • u) = principalDivisor _ u) :
letI : IsNoetherian (pullback f
(Spec.map (CommRingCat.ofHom (algebraMap K L)))) := {} proof · 11 lines
∃ v : X.functionFieldˣ,
principalDivisor _ (Units.map (functionFieldPullback (pullback.fst f
(Spec.map (CommRingCat.ofHom (algebraMap K L))))).toMonoidHom v) =
principalDivisor _ u := by
let := fieldAffineChartAlgebra K f
let := fieldAffineChartRing_isDomain X
have hmain := @same_divisor_descends_from_galois_baseChange K (fieldAffineChartRing X) L
(FractionRing (fieldAffineChartRing X)) _ _ (fieldAffineChartRing_isDomain X)
_ _ _ _ _ _ _ _ _ _ X _ f _ _ (fieldAffineChartMap X) _ _
(fieldAffineChart_algebraMap_spec K f) (galois_baseChange_normal K L f hNormal) u
exact hmain hdivOutline
- lemma
integrallyClosed_of_affine_open_immersion19 - lemma
integrallyClosed_spec_stalk32 - lemma
scalarExtensionChart_range42 - lemma
scalarExtensionChart_normal_stalk59 - theorem
galois_baseChange_normal78 - def
fieldAffineChartRing115 - def
fieldAffineChartMap118 - instance
122 - instance
125 - instance
fieldAffineChartRing_isDomain129 - instance
133 - def
fieldAffineChartHom136 - lemma
fieldAffineChartHom_spec141 - def
fieldAffineChartAlgebra146 - lemma
fieldAffineChart_algebraMap_spec151 - def
schemeBaseChangeGaloisAction159 - theorem
same_divisor_descends_from_galois_extension172