import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Cartesian.FamilyCover import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Coefficient.CoverCoequalizer /-! # Family Relation -/ namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Cartesian.FamilyRelation noncomputable section /-! A generic cartesian family and its actual fixed relation descend together to one finite coefficient ring. -/ set_option backward.isDefEq.respectTransparency false set_option backward.isDefEq.respectTransparency.types false open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry namespace Coefficients theorem generic_cartesian_family_relation_has_coefficient_model {R K : Type} [CommRing R] [IsNoetherianRing R] [Field K] [Algebra R K] {Z W T X : Over (Spec (.of R))} (hZ : ArithmeticGeometry.Models.Scheme.Constructions.Foundations.FinitePresentationMorphism Z.hom) (hW : ArithmeticGeometry.Models.Scheme.Constructions.Foundations.FinitePresentationMorphism W.hom) (hT : ArithmeticGeometry.Models.Scheme.Constructions.Foundations.FinitePresentationMorphism T.hom) (hX : ArithmeticGeometry.Models.Scheme.Constructions.Foundations.FinitePresentationMorphism X.hom) (v w : Z ⟶ W) (a : W ⟶ T) (u : T ⟶ X) (Y : Over (Spec (.of K))) (hY : ArithmeticGeometry.Models.Scheme.Constructions.Foundations.FinitePresentationMorphism Y.hom) (q : (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R K)))).obj W ⟶ Y) (b : Y ⟶ (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R K)))).obj X) (hc : IsPullback ((Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R K)))).map a) q ((Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R K)))).map u) b) (he : (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R K)))).map v ≫ q = (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R K)))).map w ≫ q) : ∃ M : Coefficient.Models.Coefficients.CoefficientModel R K Y, let P := Over.pullback (Fixed.CoefficientModels.Coefficients.parameterBaseMap R K M.coefficients) ∃ (b₀ : M.model ⟶ P.obj X) (q₀ : P.obj W ⟶ M.model), M.specialization ≫ b₀.left = b.left ≫ (Fixed.CoefficientModels.Coefficients.fixedSourceModel R K M.coefficients X hX).specialization ∧ (Fixed.CoefficientModels.Coefficients.fixedSourceModel R K M.coefficients W hW).specialization ≫ q₀.left = q.left ≫ M.specialization ∧ IsPullback (P.map a) q₀ (P.map u) b₀ ∧ P.map v ≫ q₀ = P.map w ≫ q₀ := by obtain ⟨M, b₀, q₀, hb, hq, hcart⟩ := FamilyCover.Coefficients.generic_cartesian_family_has_coefficient_model hW hT hX a u Y hY q b hc obtain ⟨t, hst, hcoeq⟩ := Coefficient.CoverCoequalizer.Coefficients.coefficient_cover_coequalizes_after_enlargement Z W hZ hW M q v w he q₀ hq let s := M.coefficients let P := Over.pullback (Fixed.CoefficientModels.Coefficients.parameterBaseMap R K s) let F := Over.pullback (ArithmeticGeometry.Models.CoefficientSystem.Constructions.Foundations.coefficientBaseMap R K hst) let P' := Over.pullback (Fixed.CoefficientModels.Coefficients.parameterBaseMap R K t) let eW := Fixed.SourceEnlargement.Coefficients.fixedSourceEnlargementIso hst W let eT := Fixed.SourceEnlargement.Coefficients.fixedSourceEnlargementIso hst T let eX := Fixed.SourceEnlargement.Coefficients.fixedSourceEnlargementIso hst X let e := Group.BaseChangeComparisons.GroupBaseChange.iteratedNatIso (Fixed.CoefficientModels.Coefficients.parameterBaseMap R K s) (ArithmeticGeometry.Models.CoefficientSystem.Constructions.Foundations.coefficientBaseMap R K hst) (Fixed.CoefficientModels.Coefficients.parameterBaseMap R K t) (Fixed.CoefficientModels.Coefficients.coefficient_parameterBaseMap R K hst) let b₁ := F.map b₀ ≫ eX.hom let q₁ := eW.inv ≫ F.map q₀ have ha : F.map (P.map a) ≫ eT.hom = eW.hom ≫ P'.map a := e.hom.naturality a have hu : F.map (P.map u) ≫ eX.hom = eT.hom ≫ P'.map u := e.hom.naturality u have hcart₁ : IsPullback (P'.map a) q₁ (P'.map u) b₁ := by exact (hcart.map F).of_iso eW eT (Iso.refl (F.obj M.model)) eX ha (by change F.map q₀ ≫ 𝟙 _ = eW.hom ≫ (eW.inv ≫ F.map q₀) rw [Category.comp_id, Iso.hom_inv_id_assoc]) hu (by change F.map b₀ ≫ eX.hom = 𝟙 _ ≫ (F.map b₀ ≫ eX.hom) exact (Category.id_comp _).symm) let p := Coefficient.Morphisms.Coefficients.genericModelLift M.model M.specialization M.cartesian.w hst have hf : ArithmeticGeometry.Models.Scheme.Constructions.Foundations.FinitePresentationMorphism (F.obj M.model).hom := Coefficient.Finiteness.Coefficients.baseChange_finitePresentation _ _ M.finitePresentation have hp : IsPullback p Y.hom (F.obj M.model).hom (ArithmeticGeometry.Models.CoefficientSystem.Constructions.Foundations.genericBaseMap R K t) := Coefficient.Morphisms.Coefficients.genericModelLift_cartesian M.model M.specialization M.cartesian hst let M₁ := Coefficient.Models.Coefficients.CoefficientModel.ofCartesian t (F.obj M.model) hf p hp have hM₁ : M₁.specialization = p := Coefficient.Models.Coefficients.CoefficientModel.ofCartesian_specialization _ _ _ _ _ have hb₁ : p ≫ b₁.left = b.left ≫ (Fixed.CoefficientModels.Coefficients.fixedSourceModel R K t X hX).specialization := Relative.CoverEnlargement.Coefficients.relative_target_comparison_enlargement M hst X hX b b₀ hb have hq₁ : (Fixed.CoefficientModels.Coefficients.fixedSourceModel R K t W hW).specialization ≫ q₁.left = q.left ≫ p := Relative.CoverEnlargement.Coefficients.relative_cover_comparison_enlargement M hst W hW q q₀ hq exact ⟨M₁, b₁, q₁, (congrArg (fun k => k ≫ b₁.left) hM₁).trans hb₁, hq₁.trans (congrArg (fun k => q.left ≫ k) hM₁.symm), hcart₁, hcoeq⟩ end Coefficients end end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Cartesian.FamilyRelation