Download data/lean/OAI/ArithmeticGeometry/Models/ModelMorphisms.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 12.4 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/ArithmeticGeometry/Models/ModelMorphisms.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/ArithmeticGeometry/Models/ModelMorphisms.lean
-
curl -L -o ModelMorphisms.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/ArithmeticGeometry/Models/ModelMorphisms.lean
12.4 kB
| import OAI.ArithmeticGeometry.Models.Descent | |
| /-! # Model Morphisms -/ | |
| namespace OAI.ArithmeticGeometry.Models.ModelMorphisms.Constructions.Foundations | |
| /-! Descent of morphisms between schemes with specified coefficient models. -/ | |
| open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite | |
| open scoped _root_.NumberField | |
| universe u | |
| variable {K : Type u} [Field K] | |
| variable {s t : Finset K} {X : Over (Spec (CommRingCat.of K))} | |
| /-- The generic-fiber map into a base-changed model. -/ | |
| noncomputable def genericModelLift | |
| (Xβ : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (π K) K s)) (p : X.left βΆ Xβ.left) | |
| (hp : p β« Xβ.hom = X.hom β« CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K s) (h : s β t) : | |
| X.left βΆ ((Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h)).obj Xβ).left := | |
| pullback.lift p (X.hom β« CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K t) (by | |
| erw [hp, Category.assoc, CoefficientSystem.Constructions.Foundations.genericBaseMap_comp]) | |
| @[reassoc] | |
| theorem genericModelLift_fst | |
| (Xβ : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (π K) K s)) (p : X.left βΆ Xβ.left) | |
| (hp : p β« Xβ.hom = X.hom β« CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K s) (h : s β t) : | |
| genericModelLift Xβ p hp h β« pullback.fst Xβ.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h) = p := | |
| pullback.lift_fst _ _ _ | |
| @[reassoc] | |
| theorem genericModelLift_snd | |
| (Xβ : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (π K) K s)) (p : X.left βΆ Xβ.left) | |
| (hp : p β« Xβ.hom = X.hom β« CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K s) (h : s β t) : | |
| genericModelLift Xβ p hp h β« pullback.snd Xβ.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h) = | |
| X.hom β« CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K t := | |
| pullback.lift_snd _ _ _ | |
| theorem genericModelLift_cartesian | |
| (Xβ : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (π K) K s)) (p : X.left βΆ Xβ.left) | |
| (hp : IsPullback p X.hom Xβ.hom (CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K s)) (h : s β t) : | |
| IsPullback (genericModelLift Xβ p hp.w h) X.hom | |
| ((Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h)).obj Xβ).hom | |
| (CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K t) := by | |
| apply IsPullback.of_right ?_ (genericModelLift_snd Xβ p hp.w h) | |
| (IsPullback.of_hasPullback Xβ.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h)) | |
| erw [genericModelLift_fst, CoefficientSystem.Constructions.Foundations.genericBaseMap_comp] | |
| exact hp | |
| /-- Relate the two orders of pullback used by canonical base change and the limit cone. -/ | |
| theorem genericModelLift_to_expansion | |
| (Xβ : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (π K) K s)) (p : X.left βΆ Xβ.left) | |
| (hp : IsPullback p X.hom Xβ.hom (CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K s)) | |
| (i : Over (op s)) : | |
| genericModelLift Xβ p hp.w (leOfHom i.hom.unop) β« | |
| (pullbackSymmetry Xβ.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K (leOfHom i.hom.unop))).hom = | |
| hp.flip.isoPullback.hom β« (Descent.Constructions.Foundations.expansionCone (π K) K s Xβ).Ο.app i := by | |
| apply pullback.hom_ext | |
| Β· erw [Category.assoc, pullbackSymmetry_hom_comp_fst, genericModelLift_snd] | |
| change X.hom β« CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K i.left.unop = | |
| hp.flip.isoPullback.hom β« | |
| (pullback.lift _ _ _ β« pullback.fst _ _) | |
| erw [pullback.lift_fst, β Category.assoc, hp.flip.isoPullback_hom_fst] | |
| rfl | |
| Β· erw [Category.assoc, pullbackSymmetry_hom_comp_snd, genericModelLift_fst] | |
| change p = hp.flip.isoPullback.hom β« | |
| (pullback.lift _ _ _ β« pullback.snd _ _) | |
| erw [pullback.lift_snd, hp.flip.isoPullback_hom_snd] | |
| /-- Extend a generic morphism to a larger model of its source, keeping the | |
| map to the original target model. -/ | |
| theorem morphism_to_model_descends | |
| {Y : Over (Spec (CommRingCat.of K))} | |
| (Xβ Yβ : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (π K) K s)) | |
| (hXβ : Scheme.Constructions.Foundations.FinitePresentationMorphism Xβ.hom) | |
| (hYβ : Scheme.Constructions.Foundations.FinitePresentationMorphism Yβ.hom) | |
| (pX : X.left βΆ Xβ.left) (pY : Y.left βΆ Yβ.left) | |
| (hX : IsPullback pX X.hom Xβ.hom (CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K s)) | |
| (hY : IsPullback pY Y.hom Yβ.hom (CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K s)) | |
| (a : X βΆ Y) : | |
| β (t : Finset K) (h : s β t) | |
| (b : ((Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h)).obj Xβ).left βΆ Yβ.left), | |
| genericModelLift Xβ pX hX.w h β« b = a.left β« pY β§ | |
| b β« Yβ.hom = pullback.snd Xβ.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h) β« | |
| CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h := by | |
| let : QuasiCompact Xβ.hom := hXβ.2.1 | |
| let : QuasiSeparated Xβ.hom := hXβ.2.2 | |
| let : LocallyOfFinitePresentation Yβ.hom := hYβ.1 | |
| let e : X.left β (Descent.Constructions.Foundations.expansionCone (π K) K s Xβ).pt := hX.flip.isoPullback | |
| let aβ := e.inv β« a.left β« pY | |
| have haβ : aβ β« Yβ.hom = (Descent.Constructions.Foundations.expansionOverCone (π K) K s Xβ).pt.hom β« Xβ.hom := by | |
| dsimp [aβ] | |
| erw [Category.assoc, Category.assoc, hY.w, β Category.assoc a.left, a.w, | |
| β Category.assoc, hX.flip.isoPullback_inv_fst] | |
| exact pullback.condition | |
| obtain β¨i, g, hg, hgbaseβ© := Descent.Constructions.Foundations.generic_morphism_descends (π K) K s Xβ Yβ aβ haβ | |
| let h : s β i.left.unop := leOfHom i.hom.unop | |
| let Ο := pullbackSymmetry Xβ.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h) | |
| refine β¨i.left.unop, h, Ο.hom β« g, ?_, ?_β© | |
| Β· erw [β Category.assoc, genericModelLift_to_expansion Xβ pX hX i, Category.assoc, hg] | |
| change e.hom β« e.inv β« a.left β« pY = a.left β« pY | |
| erw [Iso.hom_inv_id_assoc] | |
| Β· erw [Category.assoc, hgbase] | |
| change Ο.hom β« pullback.snd _ Xβ.hom β« Xβ.hom = | |
| pullback.snd Xβ.hom _ β« CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h | |
| erw [β Category.assoc, pullbackSymmetry_hom_comp_snd] | |
| exact pullback.condition | |
| /-- Both source and target may be enlarged together so the descended morphism | |
| is a morphism over one common finite coefficient ring. -/ | |
| theorem morphism_between_models_descends | |
| {Y : Over (Spec (CommRingCat.of K))} | |
| (Xβ Yβ : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (π K) K s)) | |
| (hXβ : Scheme.Constructions.Foundations.FinitePresentationMorphism Xβ.hom) | |
| (hYβ : Scheme.Constructions.Foundations.FinitePresentationMorphism Yβ.hom) | |
| (pX : X.left βΆ Xβ.left) (pY : Y.left βΆ Yβ.left) | |
| (hX : IsPullback pX X.hom Xβ.hom (CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K s)) | |
| (hY : IsPullback pY Y.hom Yβ.hom (CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K s)) | |
| (a : X βΆ Y) : | |
| β (t : Finset K) (h : s β t) | |
| (b : (Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h)).obj Xβ βΆ | |
| (Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h)).obj Yβ), | |
| genericModelLift Xβ pX hX.w h β« b.left = | |
| a.left β« genericModelLift Yβ pY hY.w h := by | |
| obtain β¨t, h, b, hb, hbbaseβ© := | |
| morphism_to_model_descends Xβ Yβ hXβ hYβ pX pY hX hY a | |
| let f := CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h | |
| let b' : (Over.pullback f).obj Xβ βΆ (Over.pullback f).obj Yβ := | |
| Over.homMk (pullback.lift b (pullback.snd Xβ.hom f) hbbase) | |
| (pullback.lift_snd b (pullback.snd Xβ.hom f) hbbase) | |
| refine β¨t, h, b', ?_β© | |
| apply pullback.hom_ext | |
| Β· change genericModelLift Xβ pX hX.w h β« b'.left β« pullback.fst Yβ.hom f = | |
| (a.left β« genericModelLift Yβ pY hY.w h) β« pullback.fst Yβ.hom f | |
| erw [pullback.lift_fst, hb, Category.assoc, genericModelLift_fst] | |
| Β· change genericModelLift Xβ pX hX.w h β« b'.left β« pullback.snd Yβ.hom f = | |
| (a.left β« genericModelLift Yβ pY hY.w h) β« pullback.snd Yβ.hom f | |
| erw [pullback.lift_snd, genericModelLift_snd, Category.assoc, | |
| genericModelLift_snd, β Category.assoc, a.w] | |
| /-- An equality of two model morphisms that holds on the generic fiber holds | |
| after a further common enlargement of the coefficient ring. -/ | |
| theorem equation_between_models_descends | |
| (Xβ Yβ : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (π K) K s)) | |
| (hXβ : Scheme.Constructions.Foundations.FinitePresentationMorphism Xβ.hom) | |
| (hYβ : Scheme.Constructions.Foundations.FinitePresentationMorphism Yβ.hom) | |
| (p : X.left βΆ Xβ.left) | |
| (hp : IsPullback p X.hom Xβ.hom (CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K s)) | |
| (a b : Xβ βΆ Yβ) (hab : p β« a.left = p β« b.left) : | |
| β (t : Finset K) (h : s β t), | |
| pullback.fst Xβ.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h) β« a.left = | |
| pullback.fst Xβ.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h) β« b.left := by | |
| let : QuasiCompact Xβ.hom := hXβ.2.1 | |
| let : LocallyOfFinitePresentation Yβ.hom := hYβ.1 | |
| let i : Over (op s) := Over.mk (π (op s)) | |
| let q := ((Descent.Constructions.Foundations.expansionOverDiagram (π K) K s Xβ).obj i).hom | |
| have ha : (Descent.Constructions.Foundations.expansionToBase (π K) K s Xβ).app i = (q β« a.left) β« Yβ.hom := by | |
| change q β« Xβ.hom = (q β« a.left) β« Yβ.hom | |
| rw [Category.assoc, a.w] | |
| have hb : (Descent.Constructions.Foundations.expansionToBase (π K) K s Xβ).app i = (q β« b.left) β« Yβ.hom := by | |
| change q β« Xβ.hom = (q β« b.left) β« Yβ.hom | |
| rw [Category.assoc, b.w] | |
| have hc : (Descent.Constructions.Foundations.expansionCone (π K) K s Xβ).Ο.app i β« (q β« a.left) = | |
| (Descent.Constructions.Foundations.expansionCone (π K) K s Xβ).Ο.app i β« (q β« b.left) := by | |
| have H := congrArg (fun z β¦ hp.flip.isoPullback.inv β« z) hab | |
| erw [β Category.assoc, hp.flip.isoPullback_inv_snd, | |
| β Category.assoc, hp.flip.isoPullback_inv_snd] at H | |
| erw [β Category.assoc, ((Descent.Constructions.Foundations.expansionOverCone (π K) K s Xβ).Ο.app i).w, | |
| β Category.assoc, ((Descent.Constructions.Foundations.expansionOverCone (π K) K s Xβ).Ο.app i).w] | |
| exact H | |
| obtain β¨j, hji, hjβ© := Descent.Constructions.Foundations.generic_equation_descends (π K) K s Xβ Yβ (q β« a.left) (q β« b.left) | |
| ha hb hc | |
| have H : ((Descent.Constructions.Foundations.expansionOverDiagram (π K) K s Xβ).obj j).hom β« a.left = | |
| ((Descent.Constructions.Foundations.expansionOverDiagram (π K) K s Xβ).obj j).hom β« b.left := by | |
| erw [β Category.assoc, ((Descent.Constructions.Foundations.expansionOverDiagram (π K) K s Xβ).map hji).w, | |
| β Category.assoc, ((Descent.Constructions.Foundations.expansionOverDiagram (π K) K s Xβ).map hji).w] at hj | |
| exact hj | |
| let h : s β j.left.unop := leOfHom j.hom.unop | |
| refine β¨j.left.unop, h, ?_β© | |
| have H' := congrArg (fun z β¦ (pullbackSymmetry Xβ.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π K) K h)).hom β« z) H | |
| erw [β Category.assoc, pullbackSymmetry_hom_comp_snd, | |
| β Category.assoc, pullbackSymmetry_hom_comp_snd] at H' | |
| exact H' | |
| end OAI.ArithmeticGeometry.Models.ModelMorphisms.Constructions.Foundations | |