X-Git-Url: http://git.megacz.com/?p=coq-categories.git;a=blobdiff_plain;f=src%2FProductCategories_ch1_6_1.v;h=29d73d421a66b18d5209ce769e108b7f464049e8;hp=697641c3e3b0c5298d7a8259d2f037b3aaf81555;hb=06467b1762fe54767eb1d64e7b7f1798eea8cc27;hpb=4a45ee99fb19018cf30a34e361816c8ba960d638 diff --git a/src/ProductCategories_ch1_6_1.v b/src/ProductCategories_ch1_6_1.v index 697641c..29d73d4 100644 --- a/src/ProductCategories_ch1_6_1.v +++ b/src/ProductCategories_ch1_6_1.v @@ -126,6 +126,12 @@ Section ProductCategoryFunctors. case g as [ [g11 g12] g2]; intros; reflexivity). Defined. + Definition func_diagonal : Functor C (C ×× C) (fun c => (pair_obj c c)). + refine {| fmor := fun a b f => @pair_mor _ _ C _ _ C (pair_obj a a) (pair_obj b b) f f |}. + abstract (intros; simpl; repeat split; simpl; auto). + abstract (intros; simpl; repeat split; simpl; auto). + abstract (intros; simpl; repeat split; simpl; auto). + Defined. End ProductCategoryFunctors. Section func_prod.