Definition internal_isrefl_mor {C : category} {x : C} (R : internal_relation x) : UU := ∑ (r : x --> R), (r · internal_relation_src R = identity _) × (r · internal_relation_tar R = identity _).
Require Import UniMath.Foundations.All. Require Import UniMath.MoreFoundations.All. Require Import UniMath.CategoryTheory.Core.Prelude. Require Import UniMath.CategoryTheory.Limits.Pullbacks. Require Import UniMath.CategoryTheory.Limits.Coequalizers. Require Import UniMath.CategoryTheory.RegularAndExact.RegularCategory.