English
In the category RelCat, morphisms X ⟶ Y are determined by their relations; two arrows f and g are equal whenever their underlying relations coincide: if f.rel = g.rel then f = g.
Русский
В категории RelCat стрелы X ⟶ Y определяются своими отношениями; две стрелки f и g равны, если их соответствующие отношения совпадают: если f.rel = g.rel, то f = g.
LaTeX
$$$ f = g \quad \text{if } f.\mathrm{rel} = g.\mathrm{rel} $$$
Lean4
@[ext]
theorem ext (f g : X ⟶ Y) (h : f.rel = g.rel) : f = g := by cases f; cases g; congr