math / data /lean /OAI /AlgebraicGeometry /IntersectionTheory /ProjectionFormula /BirationalLocalSection.lean
Download data/lean/OAI/AlgebraicGeometry/IntersectionTheory/ProjectionFormula/BirationalLocalSection.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.89 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/IntersectionTheory/ProjectionFormula/BirationalLocalSection.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/AlgebraicGeometry/IntersectionTheory/ProjectionFormula/BirationalLocalSection.lean
-
curl -L -o BirationalLocalSection.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/IntersectionTheory/ProjectionFormula/BirationalLocalSection.lean
6.89 kB
| import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BirationalStalk | |
| import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Scheme | |
| /-! # Birational Local Section -/ | |
| namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BirationalLocalSection | |
| noncomputable section | |
| /-! Above a valuation-ring point, the actual inverse stalk isomorphism | |
| constructs a local section of a birational scheme map. Separatedness will | |
| compare these sections through their common generic restriction. -/ | |
| set_option backward.isDefEq.respectTransparency false | |
| open _root_.CategoryTheory _root_.AlgebraicGeometry | |
| universe u | |
| variable {X Y : Scheme.{u}} [IsIntegral X] [IsIntegral Y] | |
| (f : X ⟶ Y) (hη : f (genericPoint X) = genericPoint Y) | |
| [IsIso (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)] (y : Y) (x : X) (hx : f x = y) | |
| def pointStalkMap : Y.presheaf.stalk y ⟶ X.presheaf.stalk x := | |
| (Y.presheaf.stalkCongr (Inseparable.of_eq hx.symm)).hom ≫ f.stalkMap x | |
| include hη in | |
| theorem pointStalkMap_isIso [ValuationRing (Y.presheaf.stalk y)] : | |
| IsIso (pointStalkMap f y x hx) := by | |
| let : ValuationRing (Y.presheaf.stalk (f x)) := by rw [hx]; infer_instance | |
| let := BirationalStalk.stalkMap_isIso_of_valuation f hη x | |
| unfold pointStalkMap | |
| infer_instance | |
| omit [IsIso (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)] in | |
| theorem pointStalkMap_functionField : | |
| pointStalkMap f y x hx ≫ CommRingCat.ofHom (algebraMap (X.presheaf.stalk x) X.functionField) = | |
| CommRingCat.ofHom (algebraMap (Y.presheaf.stalk y) Y.functionField) ≫ | |
| Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη := by | |
| have hc : f.stalkMap x ≫ CommRingCat.ofHom (algebraMap (X.presheaf.stalk x) X.functionField) = | |
| CommRingCat.ofHom (algebraMap (Y.presheaf.stalk (f x)) Y.functionField) ≫ | |
| Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη := by | |
| ext a | |
| exact (Divisor.DivisorRestriction.genericFieldMap_stalk f hη x a).symm | |
| rw [pointStalkMap, Category.assoc, hc, ← Category.assoc] | |
| congr 1 | |
| change (Y.presheaf.stalkCongr (Inseparable.of_eq hx.symm)).hom ≫ | |
| Y.presheaf.stalkSpecializes ((genericPoint_spec Y).specializes trivial) = | |
| Y.presheaf.stalkSpecializes ((genericPoint_spec Y).specializes trivial) | |
| rw [TopCat.Presheaf.stalkCongr_hom, TopCat.Presheaf.stalkSpecializes_comp] | |
| def localSection [ValuationRing (Y.presheaf.stalk y)] : Spec (Y.presheaf.stalk y) ⟶ X := | |
| letI := pointStalkMap_isIso f hη y x hx | |
| Spec.map (asIso (pointStalkMap f y x hx)).inv ≫ X.fromSpecStalk x | |
| theorem localSection_comp [ValuationRing (Y.presheaf.stalk y)] : | |
| localSection f hη y x hx ≫ f = Y.fromSpecStalk y := by | |
| let := pointStalkMap_isIso f hη y x hx | |
| have he : f.stalkMap x ≫ (asIso (pointStalkMap f y x hx)).inv = | |
| (Y.presheaf.stalkCongr (Inseparable.of_eq hx.symm)).inv := by | |
| apply (cancel_epi (Y.presheaf.stalkCongr (Inseparable.of_eq hx.symm)).hom).mp | |
| rw [← Category.assoc] | |
| change pointStalkMap f y x hx ≫ (asIso (pointStalkMap f y x hx)).inv = _ | |
| simp | |
| rw [localSection, Category.assoc, ← Scheme.SpecMap_stalkMap_fromSpecStalk, | |
| ← Spec.map_comp_assoc, he, TopCat.Presheaf.stalkCongr_inv, | |
| Scheme.SpecMap_stalkSpecializes_fromSpecStalk] | |
| theorem localSection_closedPoint [ValuationRing (Y.presheaf.stalk y)] : | |
| localSection f hη y x hx (IsLocalRing.closedPoint (Y.presheaf.stalk y)) = x := by | |
| let := pointStalkMap_isIso f hη y x hx | |
| rw [localSection, Scheme.Hom.comp_apply, Spec_closedPoint, | |
| Scheme.fromSpecStalk_closedPoint] | |
| def genericApproachMap : Spec X.functionField ⟶ Spec (Y.presheaf.stalk y) := | |
| Spec.map (CommRingCat.ofHom (algebraMap (Y.presheaf.stalk y) Y.functionField) ≫ | |
| Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη) | |
| omit [IsIso (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)] in | |
| instance genericApproachMap_isDominant : IsDominant (genericApproachMap f hη y) := by | |
| refine ⟨?_⟩ | |
| change DenseRange (PrimeSpectrum.comap | |
| ((Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom.comp (algebraMap (Y.presheaf.stalk y) Y.functionField))) | |
| have hi : Function.Injective ((Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom.comp | |
| (algebraMap (Y.presheaf.stalk y) Y.functionField)) := | |
| (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom.injective.comp | |
| (IsFractionRing.injective (Y.presheaf.stalk y) Y.functionField) | |
| rw [PrimeSpectrum.denseRange_comap_iff_ker_le_nilRadical, | |
| (RingHom.injective_iff_ker_eq_bot _).mp hi] | |
| exact bot_le | |
| theorem genericApproach_localSection [ValuationRing (Y.presheaf.stalk y)] : | |
| genericApproachMap f hη y ≫ localSection f hη y x hx = Normalization.Scheme.genericMap X := by | |
| let := pointStalkMap_isIso f hη y x hx | |
| rw [genericApproachMap, localSection, ← Spec.map_comp_assoc, | |
| ← pointStalkMap_functionField f hη y x hx, ← Category.assoc] | |
| change Spec.map ((asIso (pointStalkMap f y x hx)).inv ≫ | |
| (asIso (pointStalkMap f y x hx)).hom ≫ | |
| CommRingCat.ofHom (algebraMap (X.presheaf.stalk x) X.functionField)) ≫ _ = _ | |
| rw [Iso.inv_hom_id_assoc] | |
| change Spec.map (X.presheaf.stalkSpecializes ((genericPoint_spec X).specializes trivial)) ≫ | |
| X.fromSpecStalk x = _ | |
| rw [Scheme.SpecMap_stalkSpecializes_fromSpecStalk] | |
| rfl | |
| include hη in | |
| theorem valuationFiber_unique [IsSeparated f] [ValuationRing (Y.presheaf.stalk y)] | |
| (x₁ x₂ : X) (h₁ : f x₁ = y) (h₂ : f x₂ = y) : x₁ = x₂ := by | |
| have hs : localSection f hη y x₁ h₁ = localSection f hη y x₂ h₂ := | |
| ext_of_isDominant_of_isSeparated f | |
| ((localSection_comp f hη y x₁ h₁).trans (localSection_comp f hη y x₂ h₂).symm) | |
| (genericApproachMap f hη y) | |
| ((genericApproach_localSection f hη y x₁ h₁).trans | |
| (genericApproach_localSection f hη y x₂ h₂).symm) | |
| have h := congrArg (fun s : Spec (Y.presheaf.stalk y) ⟶ X => | |
| s (IsLocalRing.closedPoint (Y.presheaf.stalk y))) hs | |
| simpa only [localSection_closedPoint] using h | |
| include hη in | |
| theorem proper_valuationFiber_unique [IsProper f] [ValuationRing (Y.presheaf.stalk y)] : | |
| ∃! x : X, f x = y := by | |
| let : IsDominant f := by | |
| refine ⟨?_⟩ | |
| rw [denseRange_iff_closure_range] | |
| apply Set.eq_univ_of_univ_subset | |
| rw [← genericPoint_spec Y] | |
| apply closure_mono | |
| exact Set.singleton_subset_iff.mpr ⟨genericPoint X, hη⟩ | |
| let : Surjective f := surjective_of_isDominant_of_isClosed_range f | |
| (f.isClosedMap.isClosed_range) | |
| obtain ⟨a, ha⟩ := f.surjective y | |
| exact ⟨a, ha, fun b hb => valuationFiber_unique f hη y b a hb ha⟩ | |
| end | |
| end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BirationalLocalSection | |