Rel,bicategory of relations,allegory
left and righteuclidean;
extensional,well-founded relations.
Apseudo-equivalence relation is like anequivalence relation, but where we allow more than one element in the relation; i.e. the underlyingdirected graph of the relation is adirected pseudograph. In the same way thatmagmoids are the raw structure used to buildsemicategories andcategories, sets with pseudo-equivalence relations are the raw structure used to builddagger categories andgroupoids (i.e. a groupoid without associativity, unital laws, and inverse laws).
Sets equipped with pseudo-equivalence relations are sometimes calledsetoids (i.e. inWilander (2012), §4;Palmgren & Wilander (2014), §2, §6;Emmenegger & Palmgren (2020), §6;Cipriano (2020), Def. 1.1.1), but the term “setoid” is also used in mathematics to refer only to the sets withequivalence relations. In this article, the term “setoid” is used in the former sense of “sets equipped with pseudo-equivalence relations”.
Using graph theoretic terminology, apseudo-equivalence relation on a set ofvertices is a family of sets ofedges for each vertex and, which comes with the following additional structure
for each vertex an element
for each vertex and a family of functions
for each vertex,, and, a family of functions
Apseuodo-equivalence relation on aset is a set and functions, (a loopdirected pseudograph), with with functions,, and
such that
We define anextensional function between two sets and with pseudo-equivalence relations and to be a function and a family of functions
Composition of extensional functions is defined as composition of the vertex function and of each edge function.
An extensional function between two sets with pseudo-equivalence relations isfull if every edge function is asurjection, and an extensional function isfaithful if every edge function is aninjection. An extensional function isinjective-on-objects? if the vertex function is aninjection,surjective-on-objects if the vertex function is asurjection, andbijective-on-objects if the vertex function is abijection.
An extensional function is adagger functor if additionally it preserves the functions,,
Anisomorphism of setoids is afull and faithfulbijective-on-objectsdagger functor.
Given a one-set-of-edges setoid, we define a family-of-sets-of-edges setoid by taking to be thepreimage of under thefunction. Conversely, given a family-of-sets-of-edges setoid we define a one-set-of-edges setoid by taking to be thedisjoint union of the families of edges.
…
Themorphisms of acategory with acontravariantendofunctor that is theidentity-on-objects is a pseudo-equivalence relation where
for every vertex,,, and and edge,, and
for every vertex, and edge
for every vertex, and edge
This includesdagger categories, where additionally
for every vertex, and edge
for every vertex,, and edge,
for every vertex
andgroupoids, where
for every vertex, and edge
for every vertex, and edge
Additionally, a pseudo-equivalence relation on a set with one vertex is equivalent to apointedmagma with anendofunction.
Recall in graph theory that a loop directed pseudograph issimple or aloop digraph if for every vertex and, the set of edges is asubsingleton: for every edge and,. In the other definition, a loop directed pseudograph is a loop digraph if the functions and arejointly monic.
A setoid isthin orsimple if its underlying loop directed pseudograph is a loop digraph. In both cases, the pseudo-equivalence relation becomes anequivalence relation. The term “thin” originates from category theory, while the term “simple” originates from graph theory.
A thin setoid is equivalently athindagger category, or a dagger categoryenriched intruth values. A thin setoid is also a thingroupoid, or a groupoid enriched in truth values.
Sometimes in the mathematical literature, setoids are thin by default.
For any pseudo-equivalence relation, thecore of is defined as the maximalsubgroupoid? of.
More specifically, a sub-pseudo-equivalence relation of a pseudo-equivalence relation is a set with a pseudo-equivalence relation and an faithful injective-on-objects dagger functor. A sub-pseudo-equivalence relation of is a subgroupoid if additionally satisfy the groupoid equational axioms:
for every vertex,,, and and edge,, and
for every vertex, and edge
for every vertex, and edge
for every vertex, and edge
for every vertex, and edge
Every pseudo-equivalence relation has at least one subgroupoid given by only theidentity morphisms of. A subgroupoid of a pseudo-equivalence relation is a maximal subgroupoid if the dagger functor is bijective-on-objects, and additionally if, for every other subgroupoid of with faithful injective-on-objects dagger functor, there is a unique faithful injective-on-objects dagger functor such that.
Let the category be defined as acategory that isfinitely complete andwell-pointed (i.e. whoseterminal object is aextremalgenerating object). This category of sets is not even aregular category, let alone anexact category, as can happen in certainfoundations of mathematics, such as bareset-levelMartin-Löf type theory, orZFC andETCS without thepowersetaxiom. The category of sets with pseudo-equivalence relations is then theex/lex completion of Set.
More specifically, using the definition of pseudo-equivalence relation with two sets: if and are two pseudo-equivalence relations, a morphism between them in is defined to be a function with functions with and. Moreover, we declare two such functions to beequal if there exists a function such that and. Because is a pseudo-equivalence relation, this defines an actualequivalence relation on the morphisms, which is compatible with composition; thus we have a well-defined category of pseudo-equivalence relations, which is the ex/lex completion of.
We have afull and faithful functor sending an object to the pseudo-equivalence relation. One can then verify directly that is exact, that this embedding preserves finite limits, and that it is universal with respect to lex functors from into exact categories.
If thepresentation axiom (a weak form of the full axiom of choice) holds in, as a subcategory of, could be thought of as the category ofcompletely presented sets, the category of sets with aprojective presentation. If theaxiom of choice holds in, then is equivalent to, as the axiom of choice implies that is its own free exact completion, and is equivalent to because the free functor from to is anequivalence of categories.
This construction could be generalized to anyfinitely complete category, from which the category ofinternal pseudo-equivalence relations of is theex/lex completion of, and denoted as. If everyepimorphism in is additionally asplit epimorphism, then is its own free exact completion.
Manyset-level type theories usetypes which are0-truncated and thush-sets by default because of the inclusion ofuniqueness of identity proofs oraxiom K to the rule system of the type theory. Sometimes, these type theories do not havequotients andimage factorizations, and as a result, setoids are used instead of the native h-sets.
Inhomotopy type theory, and more generally in anyintensional type theory where not all types areh-sets, such as in a type theory withoutuniqueness of identity proofs oraxiom K, the notion of “setoid” bifurcates into multiple distinct notions. In analogy withcategory, the definitions used above in this article could be called astrict setoid. When the vertex types are only required to be atype rather than aset, then this defines apresetoid. There is also the notion of aunivalent setoid, where equality of vertices is isomorphism of vertices in the core of a presetoid.
computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory
For setoids defined as a set with an pseudo-equivalence relation:
Olov Wilander,Constructing a small category of setoids, Mathematical Structures in Computer Science22 1 (2012) 103-121 [doi:10.1017/S0960129511000478,pdf]
Erik Palmgren,Olov Wilander,Constructing categories and setoids of setoids in type theory, Logical Methods in Computer Science,10 3 (2014) lmcs:964 [arXiv:1408.1364,doi:10.2168/LMCS-10(3:25)2014]
Jacopo Emmenegger,Erik Palmgren,Exact completion and constructive theories of sets, J. Symb. Log.85 2 (2020) [arXiv:1710.10685,doi:10.1017/jsl.2020.2]
Cioffo Cipriano Junior, Def. 1.1.1 in:Homotopy setoids and generalized quotient completion [pdf,pdf]
Last revised on July 7, 2023 at 18:15:07. See thehistory of this page for a list of all contributions to it.