Definition subcategory (C : category) (C' : sub_precategories C) : category. Proof. use make_category. - exact (carrier_of_sub_precategory C C'). - intros ? ?. apply is_set_sub_precategory_morphisms. Defined.
Require Import UniMath.Foundations.Sets. Require Import UniMath.MoreFoundations.PartA. Require Import UniMath.CategoryTheory.Core.Categories. Require Import UniMath.CategoryTheory.Core.Functors. Require Import UniMath.CategoryTheory.Core.Isos.