fbpx
Wikipedia

Partial equivalence relation

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

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

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

  •   is an equivalence relation on the subset  .[note 1]
  • difunctional: the relation is the set   for two partial functions   and some indicator set  
  • right and left Euclidean: For  ,   and   implies   and similarly for left Euclideanness   and   imply  
  • 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

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

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

Kernels of partial functions

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

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

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

Notes

  1. ^ By construction,   is reflexive on   and therefore an equivalence relation on  .
  2. ^ This follows since if  , then   by symmetry, so   and   by transitivity. It is also a consequence of the Euclidean properties.
  3. ^ For the equivalence relation, consider the set   and the relation  .   is an equivalence relation on   but not a PER on   since it is neither symmetric ( , but not  ) nor transitive (  and  , but not  ). For Euclideanness, xRy on natural numbers, defined by 0 ≤ xy+1 ≤ 2, is right Euclidean, but neither symmetric (since e.g. 2R1, but not 1R2) nor transitive (since e.g. 2R1 and 1R0, but not 2R0).

References

  1. ^ Scott, Dana (September 1976). "Data Types as Lattices". SIAM Journal on Computing. 5 (3): 560. doi:10.1137/0205037.
  2. ^ Mitchell, John C. (1996). Foundations for programming languages. Cambridge, Mass.: MIT Press. pp. 364–365. ISBN 0585037892.
  3. ^ Encyclopaedia Britannica (EB); although EB's notion of quasi-reflexivity is Wikipedia's notion of left quasi-reflexivity, they coincide for symmetric relations.
  4. ^ Salveson, A.; Smith, J.M. (1988). "The strength of the subset type in Martin-Lof's type theory". [1988] Proceedings. Third Annual Information Symposium on Logic in Computer Science. pp. 384–391. doi:10.1109/LICS.1988.5135. ISBN 0-8186-0853-6. S2CID 15822016.
  5. ^ J. Lambek (1996). "The Butterfly and the Serpent". In Aldo Ursini; Paulo Agliano (eds.). Logic and Algebra. CRC Press. pp. 161–180. ISBN 978-0-8247-9606-8.

partial, equivalence, relation, mathematics, partial, equivalence, relation, often, abbreviated, older, literature, also, called, restricted, equivalence, relation, homogeneous, binary, relation, that, symmetric, transitive, relation, also, reflexive, then, re. 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 Contents 1 Definition 2 Properties and applications 2 1 In non set theory settings 3 Examples 3 1 Kernels of partial functions 3 2 Functions respecting equivalence relations 3 3 Equality of IEEE floating point values 4 Notes 5 ReferencesDefinition EditFormally a relation R displaystyle R on a set X displaystyle X is a PER if it holds for all a b c X displaystyle a b c in X that if a R b displaystyle aRb then b R a displaystyle bRa symmetry if a R b displaystyle aRb and b R c displaystyle bRc then a R c displaystyle aRc transitivity Another more intuitive definition is that R displaystyle R on a set X displaystyle X is a PER if there is some subset Y displaystyle Y of X displaystyle X such that R Y Y displaystyle R subseteq Y times Y and R displaystyle R is an equivalence relation on Y displaystyle Y The two definitions are seen to be equivalent by taking Y x X x R x displaystyle Y x in X mid x R x 2 Properties and applications EditThe following properties hold for a partial equivalence relation R displaystyle R on a set X displaystyle X R displaystyle R is an equivalence relation on the subset Y x X x R x X displaystyle Y x in X mid x R x subseteq X note 1 difunctional the relation is the set a b f a g b displaystyle a b mid fa gb for two partial functions f g X Y displaystyle f g X rightharpoonup Y and some indicator set Y displaystyle Y right and left Euclidean For a b c X displaystyle a b c in X a R b displaystyle aRb and a R c displaystyle aRc implies b R c displaystyle bRc and similarly for left Euclideanness b R a displaystyle bRa and c R a displaystyle cRa imply b R c displaystyle bRc quasi reflexive If x y X displaystyle x y in X and x R y displaystyle xRy then x R x displaystyle xRx and y R y displaystyle yRy 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 EditA simple example of a PER that is not an equivalence relation is the empty relation R displaystyle R emptyset if X displaystyle X is not empty Kernels of partial functions Edit If f displaystyle f is a partial function on a set A displaystyle A then the relation displaystyle approx defined by x y displaystyle x approx y if f displaystyle f is defined at x displaystyle x f displaystyle f is defined at y displaystyle y and f x f y displaystyle f x f y is a partial equivalence relation since it is clearly symmetric and transitive If f displaystyle f is undefined on some elements then displaystyle approx is not an equivalence relation It is not reflexive since if f x displaystyle f x is not defined then x x displaystyle x not approx x in fact for such an x displaystyle x there is no y A displaystyle y in A such that x y displaystyle x approx y It follows immediately that the largest subset of A displaystyle A on which displaystyle approx is an equivalence relation is precisely the subset on which f displaystyle f is defined Functions respecting equivalence relations Edit Let X and Y be sets equipped with equivalence relations or PERs X Y displaystyle approx X approx Y For f g X Y displaystyle f g X to Y define f g displaystyle f approx g to mean x 0 x 1 x 0 X x 1 f x 0 Y g x 1 displaystyle forall x 0 x 1 quad x 0 approx X x 1 Rightarrow f x 0 approx Y g x 1 then f f displaystyle f approx f means that f induces a well defined function of the quotients X X Y Y displaystyle X approx X to Y approx Y Thus the PER displaystyle approx 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 floating point standard defines an EQ relation for floating point values This predicate is symmetrical and transitive but is not reflexive because of the presence of NaN values that are not EQ to themselves Notes Edit By construction R displaystyle R is reflexive on Y displaystyle Y and therefore an equivalence relation on Y displaystyle Y This follows since if x R y displaystyle xRy then y R x displaystyle yRx by symmetry so x R x displaystyle xRx and y R y displaystyle yRy by transitivity It is also a consequence of the Euclidean properties For the equivalence relation consider the set E a b c d displaystyle E a b c d and the relation R a b c 2 d a displaystyle R a b c 2 cup d a R displaystyle R is an equivalence relation on a b c displaystyle a b c but not a PER on E displaystyle E since it is neither symmetric d R a displaystyle dRa but not a R d displaystyle aRd nor transitive d R a displaystyle dRa and a R b displaystyle aRb but not d R b displaystyle dRb For Euclideanness xRy on natural numbers defined by 0 x y 1 2 is right Euclidean but neither symmetric since e g 2R1 but not 1R2 nor transitive since e g 2R1 and 1R0 but not 2R0 References Edit Scott Dana September 1976 Data Types as Lattices SIAM Journal on Computing 5 3 560 doi 10 1137 0205037 Mitchell John C 1996 Foundations for programming languages Cambridge Mass MIT Press pp 364 365 ISBN 0585037892 Encyclopaedia Britannica EB although EB s notion of quasi reflexivity is Wikipedia s notion of left quasi reflexivity they coincide for symmetric relations Salveson A Smith J M 1988 The strength of the subset type in Martin Lof s type theory 1988 Proceedings Third Annual Information Symposium on Logic in Computer Science pp 384 391 doi 10 1109 LICS 1988 5135 ISBN 0 8186 0853 6 S2CID 15822016 J Lambek 1996 The Butterfly and the Serpent In Aldo Ursini Paulo Agliano eds Logic and Algebra CRC Press pp 161 180 ISBN 978 0 8247 9606 8 Retrieved from https en wikipedia org w index php title Partial equivalence relation amp oldid 1139055258, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.