Hubbry Logo
Partial equivalence relationPartial equivalence relationMain
Open search
Partial equivalence relation
Community hub
Partial equivalence relation
logo
7 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Partial equivalence relation
Partial equivalence relation
from Wikipedia

In mathematics, a partial equivalence relation (often abbreviated as PER, in older literature also called restricted equivalence relation[1]) is a homogeneous binary relation that is symmetric and transitive. If the relation is also reflexive, then the relation is an equivalence relation.

Definition

[edit]

Formally, a relation on a set is a PER if it holds for all that:

  1. if , then (symmetry)
  2. if and , then (transitivity)

Another more intuitive definition is that on a set is a PER if there is some subset of such that and is an equivalence relation on . The two definitions are seen to be equivalent by taking .[2]

Properties and applications

[edit]

The following properties hold for a partial equivalence relation on a set :

  • is an equivalence relation on the subset .[note 1]
  • is difunctional: the relation is the set for two partial functions and some indicator set
  • is right and left Euclidean: For , and implies and similarly for left Euclideanness and imply
  • is quasi-reflexive: If and , then and .[3][note 2]

None of these properties is sufficient to imply that the relation is a PER.[note 3]

In non-set-theory settings

[edit]

In type theory, constructive mathematics and their applications to computer science, constructing analogues of subsets is often problematic[4]—in these contexts PERs are therefore more commonly used, particularly to define setoids, sometimes called partial setoids. Forming a partial setoid from a type and a PER is analogous to forming subsets and quotients in classical set-theoretic mathematics.

The algebraic notion of congruence can also be generalized to partial equivalences, yielding the notion of subcongruence, i.e. a homomorphic relation that is symmetric and transitive, but not necessarily reflexive.[5]

Examples

[edit]

A simple example of a PER that is not an equivalence relation is the empty relation , if is not empty.

Kernels of partial functions

[edit]

If is a partial function on a set , then the relation defined by

if is defined at , is defined at , and

is a partial equivalence relation, since it is clearly symmetric and transitive.

If is undefined on some elements, then is not an equivalence relation. It is not reflexive since if is not defined then — in fact, for such an there is no such that . It follows immediately that the largest subset of on which is an equivalence relation is precisely the subset on which is defined.

Functions respecting equivalence relations

[edit]

Let X and Y be sets equipped with equivalence relations (or PERs) . For , define to mean:

then means that f induces a well-defined function of the quotients . Thus, the PER captures both the idea of definedness on the quotients and of two functions inducing the same function on the quotient.

Equality of IEEE floating point values

[edit]

The IEEE 754:2008 standard for floating-point numbers defines an "EQ" relation for floating point values. This predicate is symmetric and transitive, but is not reflexive because of the presence of NaN values that are not EQ to themselves.[6]

Notes

[edit]

References

[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
A partial equivalence relation on a set is a that is symmetric (if xx is related to yy, then yy is related to xx) and transitive (if xx is related to yy and yy is related to zz, then xx is related to zz), but not necessarily reflexive (some elements may not be related to themselves). The domain of the relation can be partitioned into the where it is reflexive, on which it behaves exactly like a full , and the remaining elements that are unrelated to anything, including themselves. Partial equivalence relations, often abbreviated as PERs, arise naturally in mathematical logic and computer science, particularly in the semantics of type theories. In the PER model of intensional Martin-Löf type theory, types are interpreted as partial equivalence relations on the set of closed terms, where two terms are related if they are computationally equivalent up to a certain extent, allowing for partial definitions and undefined computations. This framework, pioneered in works like Allen's semantics for Constructive Type Theory, connects to Russell-style type definitions and supports extensional reasoning in otherwise intensional systems. Beyond type theory, PERs appear in categorical constructions, such as localizations of categories and PROPs for algebraic structures, where they model partial symmetries or equivalences in relational settings. They also relate to difunctional relations, though not all difunctional relations are partial equivalences, and find applications in formal verification and programming language semantics for handling polymorphism and computability.

Definition and Properties

Formal Definition

A partial equivalence relation on a set XX is a RX×XR \subseteq X \times X that satisfies the properties of and transitivity, but is not required to be reflexive. Specifically, means that for all x,yXx, y \in X, if xRyx \, R \, y, then yRxy \, R \, x; transitivity means that for all x,y,zXx, y, z \in X, if xRyx \, R \, y and yRzy \, R \, z, then xRzx \, R \, z. In logical notation, these axioms are expressed as xy(x[R](/page/R)yy[R](/page/R)x)\forall x \forall y \, (x \, [R](/page/R) \, y \to y \, [R](/page/R) \, x) and xyz((x[R](/page/R)yy[R](/page/R)z)x[R](/page/R)z)\forall x \forall y \forall z \, ((x \, [R](/page/R) \, y \land y \, [R](/page/R) \, z) \to x \, [R](/page/R) \, z). The domain of RR, denoted \dom(R)={xXxRx}\dom(R) = \{ x \in X \mid x \, R \, x \}, is the of XX on which RR is reflexive, and RR restricted to \dom(R)\dom(R) forms a full that partitions \dom(R)\dom(R) into equivalence classes. Partial equivalence relations are often denoted using symbols such as \sim or \equiv. This contrasts with standard equivalence relations, which additionally require reflexivity on the entire set XX.

Key Properties

A partial equivalence relation RR on a set XX is reflexive precisely on its domain D={xXxRx}D = \{ x \in X \mid x \, R \, x \}. For every xDx \in D, xRxx \, R \, x holds by , while for xDx \notin D, no self-relation exists. This reflexivity on the domain arises from the and transitivity axioms: if xRyx \, R \, y for some yXy \in X, then symmetry yields yRxy \, R \, x, and transitivity implies xRxx \, R \, x, placing xx in DD. The restriction of RR to its domain DD forms a full on DD, as it satisfies reflexivity (on DD), symmetry, and transitivity by construction. This equivalence relation partitions DD into disjoint equivalence classes R={yDxRy}_R = \{ y \in D \mid x \, R \, y \} for xDx \in D, where each class groups elements indistinguishable under RR. Under relational composition \circ, a partial equivalence relation RR is idempotent, satisfying RR=RR \circ R = R. Transitivity ensures RRRR \circ R \subseteq R, as xRyx \, R \, y and yRzy \, R \, z imply xRzx \, R \, z. For the reverse inclusion, if xRzx \, R \, z, then xDx \in D implies xRxx \, R \, x (reflexivity on domain), so there exists y=xy = x with xRyx \, R \, y and yRzy \, R \, z, yielding x(RR)zx \, (R \circ R) \, z; similarly supports this on the domain. The set D/RD / \sim_R, consisting of the equivalence classes R_R, captures the induced by RR on its domain. If the ambient set XX carries additional operations or compatible with RR, these may induce well-defined operations on the , such as in algebraic or categorical contexts.

Relation to Other Relations

Comparison with Equivalence Relations

A partial equivalence relation on a set XX is symmetric and transitive, but reflexive only on its domain, the of XX where elements are related to themselves. In contrast, an on XX is a partial equivalence relation that is total, meaning its domain equals XX and it is reflexive everywhere on the set. This totality ensures that every element is partitioned into equivalence classes, whereas a partial equivalence relation induces equivalence classes only on its domain, leaving elements outside unrelated and effectively "undefined" with respect to the relation. The partial nature of such relations allows for flexible generalizations of equivalence relations, particularly useful in scenarios involving incomplete or restricted definitions, such as when modeling partial functions or domains in logic where not all elements require classification. For instance, elements outside the domain need not participate in the or transitivity properties, enabling applications where the full set XX includes irrelevant or exceptional cases. The concept of partial equivalence relations emerged in the 1970s within the literature of logic and , notably in the development of by , as a means to generalize equivalences in constructive and . This terminology facilitated models where types are interpreted as partial equivalence relations on terms, bridging set-theoretic and computational perspectives. One key implication of this partiality is that partial equivalence relations do not necessarily extend to a total without imposing additional structure, such as choices for relating undefined elements, unlike the canonical compatibility of full equivalence relations with preorder extensions via constructions. Furthermore, partial equivalences are not inherently compatible with orders, as their restricted domain may conflict with the reflexivity required for preorders or partial orders on the entire set, necessitating supplementary conditions for such integrations.

Connection to Preorders and Partial Orders

A partial equivalence relation (PER) on a set can be derived from a by extracting its symmetric component. Specifically, given a \leq on a set XX, define the relation \sim by xyx \sim y xyx \leq y and yxy \leq x; this \sim is symmetric and transitive, and due to the reflexivity of the , xxx \sim x holds for all xXx \in X, making \sim an on the entire set. This construction highlights how equivalence relations capture the "equivalence-like" behavior inherent in the mutual comparability within , while the itself may exhibit outside these pairs. The connection extends to partial orders by considering the relaxation of antisymmetry. A partial order is an antisymmetric preorder, so its symmetric closure—defined analogously as above—yields the equality relation on the entire set, which is a total equivalence relation rather than a proper PER. However, if antisymmetry is relaxed to form a general , the resulting symmetric part becomes a non-trivial equivalence relation on the entire set. Furthermore, given such a \leq and its induced equivalence relation \sim, the quotient set X/X / \sim inherits a well-defined partial order via \leq if and only if xyx \leq y for representatives x,yx, y; this induced relation is antisymmetric because any symmetry in the quotient would contradict the preorder's structure modulo \sim. In , PERs arise as certain symmetric relations or profunctors in relational categories like Rel, where a from AA to BB is a of A×BA \times B satisfying and transitivity when A=BA = B. More abstractly, in bicategories such as the bicategory of relations PERel, objects are sets and morphisms are PERs on disjoint unions, with composition defined by the minimal PER extending the relational composition; this structure models partial maps and equivalences in a way that aligns with realizability and domain-theoretic semantics. Unlike full preorders, which permit asymmetric relations and thus directedness without reciprocity, PERs enforce , restricting them to undirected equivalence clusters within potentially larger ordered structures.

Examples

Kernels of Partial Functions

A partial equivalence relation can arise as the kernel of a partial function f:XYf: X \rightrightarrows Y between sets, defined by the relation f\sim_f on XX where xfyx \sim_f y if and only if both xx and yy are in the domain of ff (denoted f(x)f(x) \downarrow and f(y)f(y) \downarrow) and f(x)=f(y)f(x) = f(y). Formally, xfy    f(x)f(y)f(x)=f(y).x \sim_f y \iff f(x) \downarrow \land f(y) \downarrow \land f(x) = f(y). This relation holds only on the domain dom(f)={xXf(x)}\operatorname{dom}(f) = \{x \in X \mid f(x) \downarrow\}, making f\sim_f partial in the sense that it is undefined or non-reflexive outside this subset. The kernel f\sim_f is a partial equivalence relation because it satisfies symmetry and transitivity on dom(f)\operatorname{dom}(f). For symmetry, if xfyx \sim_f y, then f(x)=f(y)f(x) = f(y) with both defined, so yfxy \sim_f x follows from the symmetry of equality. For transitivity, if xfyx \sim_f y and yfzy \sim_f z, then f(x)=f(y)=f(z)f(x) = f(y) = f(z) with all defined, so xfzx \sim_f z by transitivity of equality. Reflexivity holds on dom(f)\operatorname{dom}(f) since f(x)=f(x)f(x) = f(x) whenever f(x)f(x) \downarrow. Thus, f\sim_f restricts to an equivalence relation on dom(f)\operatorname{dom}(f). Consider a partial function f:NRf: \mathbb{N} \rightrightarrows \mathbb{R} defined only on odd numbers, where f(2k+1)=2k+1f(2k+1) = \sqrt{2k+1}
Add your contribution
Related Hubs
User Avatar
No comments yet.