math / data /lean /OAI /ArithmeticGeometry /Models /Isomorphisms.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
4.95 kB
import OAI.ArithmeticGeometry.Models.CommonStage
import OAI.ArithmeticGeometry.Models.FiniteEquations
import OAI.ArithmeticGeometry.Models.ModelFiniteness
/-! # Isomorphisms -/
namespace OAI.ArithmeticGeometry.Models.Isomorphisms.Constructions.Foundations
/-! Isomorphisms of generic fibers descend with their inverse identities. -/
open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry
open scoped _root_.NumberField
universe u
theorem isomorphism_between_models_descends
{K : Type u} [Field K] {s : Finset K}
{X 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))
(e : X β‰… Y) :
βˆƒ (t : Finset K) (h : s βŠ† t)
(eβ‚€ : (Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π“ž K) K h)).obj Xβ‚€ β‰…
(Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π“ž K) K h)).obj Yβ‚€),
ModelMorphisms.Constructions.Foundations.genericModelLift Xβ‚€ pX hX.w h ≫ eβ‚€.hom.left =
e.hom.left ≫ ModelMorphisms.Constructions.Foundations.genericModelLift Yβ‚€ pY hY.w h := by
let Z : Bool β†’ Over (Spec (CommRingCat.of K)) | false => X | true => Y
let Zβ‚€ : Bool β†’ Over (CoefficientSystem.Constructions.Foundations.coefficientBase (π“ž K) K s) | false => Xβ‚€ | true => Yβ‚€
let p : βˆ€ i, (Z i).left ⟢ (Zβ‚€ i).left | false => pX | true => pY
have hZβ‚€ : βˆ€ i, Scheme.Constructions.Foundations.FinitePresentationMorphism (Zβ‚€ i).hom
| false => hXβ‚€ | true => hYβ‚€
have hp : βˆ€ i, IsPullback (p i) (Z i).hom (Zβ‚€ i).hom (CoefficientSystem.Constructions.Foundations.genericBaseMap (π“ž K) K s)
| false => hX | true => hY
let a : βˆ€ i, Z i ⟢ Z (!i) | false => e.hom | true => e.inv
obtain ⟨t, hst, b, hb⟩ := CommonStage.Constructions.Foundations.finite_morphisms_descend id Bool.not Z Zβ‚€ hZβ‚€ p hp a
let B := Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π“ž K) K hst)
let Z₁ : Bool β†’ Over (CoefficientSystem.Constructions.Foundations.coefficientBase (π“ž K) K t) := fun i ↦ B.obj (Zβ‚€ i)
let p₁ : βˆ€ i, (Z i).left ⟢ (Z₁ i).left :=
fun i ↦ ModelMorphisms.Constructions.Foundations.genericModelLift (Zβ‚€ i) (p i) (hp i).w hst
have hZ₁ : βˆ€ i, Scheme.Constructions.Foundations.FinitePresentationMorphism (Z₁ i).hom :=
fun i ↦ ModelFiniteness.Constructions.Foundations.baseChange_finitePresentation _ _ (hZβ‚€ i)
have hp₁ : βˆ€ i, IsPullback (p₁ i) (Z i).hom (Z₁ i).hom (CoefficientSystem.Constructions.Foundations.genericBaseMap (π“ž K) K t) :=
fun i ↦ ModelMorphisms.Constructions.Foundations.genericModelLift_cartesian (Zβ‚€ i) (p i) (hp i) hst
let c : βˆ€ i, Z₁ i ⟢ Z₁ i
| false => b false ≫ b true
| true => b true ≫ b false
let d : βˆ€ i, Z₁ i ⟢ Z₁ i := fun i ↦ πŸ™ _
have hc : βˆ€ i, p₁ i ≫ (c i).left = p₁ i ≫ (d i).left := by
intro i
cases i
Β· change p₁ false ≫ ((b false).left ≫ (b true).left) = p₁ false ≫ πŸ™ _
erw [← Category.assoc, hb false, Category.assoc, hb true,
← Category.assoc, Over.hom_left_inv_left, Category.id_comp]
Β· change p₁ true ≫ ((b true).left ≫ (b false).left) = p₁ true ≫ πŸ™ _
erw [← Category.assoc, hb true, Category.assoc, hb false,
← Category.assoc, Over.inv_left_hom_left, Category.id_comp]
obtain ⟨z, htz, hz⟩ := FiniteEquations.Constructions.Foundations.finite_equations_descend id id Z Z₁ hZ₁ p₁ hp₁ c d hc
let C := Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π“ž K) K htz)
let e₁ : C.obj (Z₁ false) β‰… C.obj (Z₁ true) :=
{ hom := C.map (b false)
inv := C.map (b true)
hom_inv_id := by
rw [← C.map_comp]
exact (hz false).trans (C.map_id _)
inv_hom_id := by
rw [← C.map_comp]
exact (hz true).trans (C.map_id _) }
let eβ‚€ := (BaseChange.Constructions.Foundations.coefficientBaseChangeTrans hst htz Xβ‚€).symm β‰ͺ≫ e₁ β‰ͺ≫
BaseChange.Constructions.Foundations.coefficientBaseChangeTrans hst htz Yβ‚€
refine ⟨z, hst.trans htz, eβ‚€, ?_⟩
exact CommonStage.Constructions.Foundations.descendedMorphismAtLargerBase_compatibility Xβ‚€ Yβ‚€ pX pY hX.w hY.w e.hom
hst htz (b false) (hb false)
end OAI.ArithmeticGeometry.Models.Isomorphisms.Constructions.Foundations