math / data /lean /OAI /ArithmeticGeometry /Models /ModelMorphisms.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
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