math / data /lean /OAI /ArithmeticGeometry /Models /FiniteEquations.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
4.24 kB
import OAI.ArithmeticGeometry.Models.BaseChange
/-! # Finite Equations -/
namespace OAI.ArithmeticGeometry.Models.FiniteEquations.Constructions.Foundations
/-! Simultaneous preservation of finitely many generic equations. -/
open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry
open scoped _root_.NumberField
universe u v w
variable {K : Type u} [Field K] {s t z : Finset K}
theorem equation_survives_enlargement
(hst : s βŠ† t) (htz : t βŠ† z)
(Xβ‚€ Yβ‚€ : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (π“ž K) K s)) (a b : Xβ‚€ ⟢ Yβ‚€)
(hab : pullback.fst Xβ‚€.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π“ž K) K hst) ≫ a.left =
pullback.fst Xβ‚€.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π“ž K) K hst) ≫ b.left) :
pullback.fst Xβ‚€.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π“ž K) K (hst.trans htz)) ≫ a.left =
pullback.fst Xβ‚€.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π“ž K) K (hst.trans htz)) ≫ b.left := by
let : Epi (BaseChange.Constructions.Foundations.coefficientBaseChangeTrans hst htz Xβ‚€).hom.left := by
change Epi (BaseChange.Constructions.Foundations.coefficientBaseChangeTransSquare hst htz Xβ‚€).isoPullback.hom
infer_instance
apply (cancel_epi (BaseChange.Constructions.Foundations.coefficientBaseChangeTrans hst htz Xβ‚€).hom.left).mp
erw [← Category.assoc, BaseChange.Constructions.Foundations.coefficientBaseChangeTrans_hom_fst,
← Category.assoc, BaseChange.Constructions.Foundations.coefficientBaseChangeTrans_hom_fst, Category.assoc, Category.assoc, hab]
theorem baseChange_map_eq_of_fst_eq
(hst : s βŠ† t) (Xβ‚€ Yβ‚€ : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (π“ž K) K s)) (a b : Xβ‚€ ⟢ Yβ‚€)
(hab : pullback.fst Xβ‚€.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π“ž K) K hst) ≫ a.left =
pullback.fst Xβ‚€.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π“ž K) K hst) ≫ b.left) :
(Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π“ž K) K hst)).map a =
(Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π“ž K) K hst)).map b := by
apply Over.OverMorphism.ext
apply pullback.hom_ext
Β· erw [pullback.lift_fst, pullback.lift_fst]
exact hab
Β· erw [pullback.lift_snd, pullback.lift_snd]
/-- Finitely many equations holding on the generic fiber hold at one common stage. -/
theorem finite_equations_descend
{I : Type v} {E : Type w} [Finite E]
(src dst : E β†’ I)
(X : I β†’ Over (Spec (CommRingCat.of K)))
(Xβ‚€ : I β†’ Over (CoefficientSystem.Constructions.Foundations.coefficientBase (π“ž K) K s))
(hXβ‚€ : βˆ€ i, Scheme.Constructions.Foundations.FinitePresentationMorphism (Xβ‚€ i).hom)
(p : βˆ€ i, (X i).left ⟢ (Xβ‚€ i).left)
(hp : βˆ€ i, IsPullback (p i) (X i).hom (Xβ‚€ i).hom (CoefficientSystem.Constructions.Foundations.genericBaseMap (π“ž K) K s))
(a b : βˆ€ e, Xβ‚€ (src e) ⟢ Xβ‚€ (dst e))
(hab : βˆ€ e, p (src e) ≫ (a e).left = p (src e) ≫ (b e).left) :
βˆƒ (t : Finset K) (hst : s βŠ† t),
βˆ€ e, (Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π“ž K) K hst)).map (a e) =
(Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (π“ž K) K hst)).map (b e) := by
classical
let : Fintype E := Fintype.ofFinite E
choose t ht heq using fun e ↦ ModelMorphisms.Constructions.Foundations.equation_between_models_descends
(Xβ‚€ (src e)) (Xβ‚€ (dst e)) (hXβ‚€ (src e)) (hXβ‚€ (dst e))
(p (src e)) (hp (src e)) (a e) (b e) (hab e)
let z := s βˆͺ Finset.univ.biUnion t
have htz (e : E) : t e βŠ† z :=
(Finset.subset_biUnion_of_mem t (Finset.mem_univ e)).trans Finset.subset_union_right
refine ⟨z, Finset.subset_union_left, fun e ↦ ?_⟩
apply baseChange_map_eq_of_fst_eq
exact equation_survives_enlargement (ht e) (htz e) (Xβ‚€ (src e)) (Xβ‚€ (dst e))
(a e) (b e) (heq e)
end OAI.ArithmeticGeometry.Models.FiniteEquations.Constructions.Foundations