import OAI.AlgebraicGeometry.AbelianScheme.CentralAction.Descent /-! # Tensor Kernel Pair -/ namespace OAI.AlgebraicGeometry.AbelianScheme.CentralAction.TensorKernelPair.Construction noncomputable section /-! The kernel pair of a product map with an identity factor is the product of that factor with the original kernel pair. -/ open _root_.CategoryTheory _root_.CategoryTheory.Limits open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory universe u v variable {C : Type u} [Category.{v} C] [CartesianMonoidalCategory C] [HasPullbacks C] def tensorKernelPairIso (H : C) {A B : C} (f : A โŸถ B) : pullback (๐Ÿ™ H โŠ—โ‚˜ f) (๐Ÿ™ H โŠ—โ‚˜ f) โ‰… H โŠ— pullback f f := by let r := ๐Ÿ™ H โŠ—โ‚˜ f let p := pullback.fst r r let q := pullback.snd r r have hh : p โ‰ซ fst H A = q โ‰ซ fst H A := by have h := congrArg (fun a => a โ‰ซ fst H B) (pullback.condition (f := r) (g := r)) simpa [r, p, q] using h have hf : (p โ‰ซ snd H A) โ‰ซ f = (q โ‰ซ snd H A) โ‰ซ f := by have h := congrArg (fun a => a โ‰ซ snd H B) (pullback.condition (f := r) (g := r)) simpa [r, p, q] using h let a := lift (p โ‰ซ fst H A) (pullback.lift (p โ‰ซ snd H A) (q โ‰ซ snd H A) hf) have hb : (๐Ÿ™ H โŠ—โ‚˜ pullback.fst f f) โ‰ซ r = (๐Ÿ™ H โŠ—โ‚˜ pullback.snd f f) โ‰ซ r := by simp only [r, tensorHom_comp_tensorHom, Category.id_comp, pullback.condition] let b := pullback.lift (๐Ÿ™ H โŠ—โ‚˜ pullback.fst f f) (๐Ÿ™ H โŠ—โ‚˜ pullback.snd f f) hb have hbโ‚ : b โ‰ซ p = ๐Ÿ™ H โŠ—โ‚˜ pullback.fst f f := pullback.lift_fst _ _ _ have hbโ‚‚ : b โ‰ซ q = ๐Ÿ™ H โŠ—โ‚˜ pullback.snd f f := pullback.lift_snd _ _ _ have haโ‚ : a โ‰ซ fst H (pullback f f) = p โ‰ซ fst H A := lift_fst _ _ have haโ‚‚ : a โ‰ซ snd H (pullback f f) = pullback.lift (p โ‰ซ snd H A) (q โ‰ซ snd H A) hf := lift_snd _ _ have haโ‚‚โ‚ : a โ‰ซ snd H (pullback f f) โ‰ซ pullback.fst f f = p โ‰ซ snd H A := by rw [โ† Category.assoc, haโ‚‚, pullback.lift_fst] have haโ‚‚โ‚‚ : a โ‰ซ snd H (pullback f f) โ‰ซ pullback.snd f f = q โ‰ซ snd H A := by rw [โ† Category.assoc, haโ‚‚, pullback.lift_snd] have hap : a โ‰ซ (๐Ÿ™ H โŠ—โ‚˜ pullback.fst f f) = p := by apply CartesianMonoidalCategory.hom_ext ยท rw [Category.assoc, tensorHom_fst, Category.comp_id, haโ‚] ยท rw [Category.assoc, tensorHom_snd, haโ‚‚โ‚] have haq : a โ‰ซ (๐Ÿ™ H โŠ—โ‚˜ pullback.snd f f) = q := by apply CartesianMonoidalCategory.hom_ext ยท rw [Category.assoc, tensorHom_fst, Category.comp_id, haโ‚, hh] ยท rw [Category.assoc, tensorHom_snd, haโ‚‚โ‚‚] refine โŸจa, b, ?_, ?_โŸฉ ยท apply pullback.hom_ext <;> simp only [Category.id_comp] ยท change (a โ‰ซ b) โ‰ซ p = p rw [Category.assoc, hbโ‚, hap] ยท change (a โ‰ซ b) โ‰ซ q = q rw [Category.assoc, hbโ‚‚, haq] ยท apply CartesianMonoidalCategory.hom_ext <;> simp only [Category.id_comp] ยท change (b โ‰ซ a) โ‰ซ fst H (pullback f f) = fst H (pullback f f) rw [Category.assoc, haโ‚, โ† Category.assoc, hbโ‚, tensorHom_fst, Category.comp_id] ยท apply pullback.hom_ext ยท change ((b โ‰ซ a) โ‰ซ snd H (pullback f f)) โ‰ซ pullback.fst f f = snd H (pullback f f) โ‰ซ pullback.fst f f rw [Category.assoc, Category.assoc, haโ‚‚โ‚, โ† Category.assoc, hbโ‚, tensorHom_snd] ยท change ((b โ‰ซ a) โ‰ซ snd H (pullback f f)) โ‰ซ pullback.snd f f = snd H (pullback f f) โ‰ซ pullback.snd f f rw [Category.assoc, Category.assoc, haโ‚‚โ‚‚, โ† Category.assoc, hbโ‚‚, tensorHom_snd] theorem tensorKernelPairIso_inv_fst (H : C) {A B : C} (f : A โŸถ B) : (tensorKernelPairIso H f).inv โ‰ซ pullback.fst (๐Ÿ™ H โŠ—โ‚˜ f) (๐Ÿ™ H โŠ—โ‚˜ f) = ๐Ÿ™ H โŠ—โ‚˜ pullback.fst f f := pullback.lift_fst _ _ _ theorem tensorKernelPairIso_inv_snd (H : C) {A B : C} (f : A โŸถ B) : (tensorKernelPairIso H f).inv โ‰ซ pullback.snd (๐Ÿ™ H โŠ—โ‚˜ f) (๐Ÿ™ H โŠ—โ‚˜ f) = ๐Ÿ™ H โŠ—โ‚˜ pullback.snd f f := pullback.lift_snd _ _ _ end end OAI.AlgebraicGeometry.AbelianScheme.CentralAction.TensorKernelPair.Construction