import OAI.AlgebraicGeometry.PELModuli.IntegralModel.IntegralAuxiliary.Automorphisms import OAI.AlgebraicGeometry.PELModuli.IntegralModel.IntegralAdded.ScalarChange /-! # Comparison Base Change -/ namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel noncomputable section /-! The actual auxiliary family comparison commutes with arbitrary scalar change, including when the resulting parameter is not reduced. -/ open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry variable {E R R' : Type} [Field E] [NumberField E] [Algebra ℚ E] [NumberField.IsCMField E] [CommRing R] [CommRing R'] {s L N : ℕ} [NeZero L] {P : AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum E s} {iotaO : NumberField.RingOfIntegers E →+* R} {X : Over (Spec (.of R))} [IsReduced X.left] def IntegralAdded.PELId.IntegralAddedPELLevel.auxiliaryRelabelComparison_baseChange (U : IntegralAdded.PELId.IntegralAddedPELLevel P R iotaO L N X) (hU : U.IsFine) (φ : R →+* R') (σ : AbelianModuli.HilbertConstruction.Level.Parameters.LevelLabelAut (3 * s) L) : IntegralAdded.PELId.IntegralAddedPELLevel.Iso ((U.baseChange φ).pullback ((Over.pullback (Spec.map (CommRingCat.ofHom φ))).map (U.auxiliaryRelabelMap hU σ))) ((U.baseChange φ).relabelAuxiliary (LocallyConstant.const _ σ)) := by let X' := (Over.pullback (Spec.map (CommRingCat.ofHom φ))).obj X let f := U.auxiliaryRelabelMap hU σ let f' := (Over.pullback (Spec.map (CommRingCat.ofHom φ))).map f let A := (U.baseChange φ).relabelAuxiliary (LocallyConstant.const _ σ) apply Classical.choice apply (IntegralAdded.ScalarChange.integralAddedPEL_baseChange_classifying_iff φ U X' A f').mpr let b := Spec.map (CommRingCat.ofHom φ) let g : PEL.ScalarRestriction.coefficientRestriction φ X' ⟶ X := Over.homMk (pullback.fst X.hom b) pullback.condition let k := ((Over.mapPullbackAdj b).homEquiv X' X).symm f' have hk : k = g ≫ f := by apply Over.OverMorphism.ext exact pullback.lift_fst _ _ _ exact ⟨(U.pullbackCongrIso k (g ≫ f) hk).trans (U.auxiliaryRelabelPullbackComparison hU g σ)⟩ end end OAI.AlgebraicGeometry.PELModuli.IntegralModel