fbpx
Wikipedia

Binary relation

Transitive binary relations
Symmetric Antisymmetric Connected Well-founded Has joins Has meets Reflexive Irreflexive Asymmetric
Total, Semiconnex Anti-
reflexive
Equivalence relation Y Y
Preorder (Quasiorder) Y
Partial order Y Y
Total preorder Y Y
Total order Y Y Y
Prewellordering Y Y Y
Well-quasi-ordering Y Y
Well-ordering Y Y Y Y
Lattice Y Y Y Y
Join-semilattice Y Y Y
Meet-semilattice Y Y Y
Strict partial order Y Y Y
Strict weak order Y Y Y
Strict total order Y Y Y Y
Symmetric Antisymmetric Connected Well-founded Has joins Has meets Reflexive Irreflexive Asymmetric
Definitions, for all and
Y indicates that the column's property is always true the row's term (at the very left), while indicates that the property is not guaranteed in general (it might, or might not, hold). For example, that every equivalence relation is symmetric, but not necessarily antisymmetric, is indicated by Y in the "Symmetric" column and in the "Antisymmetric" column, respectively.

All definitions tacitly require the homogeneous relation be transitive: for all if and then
A term's definition may require additional properties that are not listed in this table.

In mathematics, a binary relation associates elements of one set, called the domain, with elements of another set, called the codomain.[1] A binary relation over sets and is a set of ordered pairs consisting of elements from and from .[2] It is a generalization of the more widely understood idea of a unary function. It encodes the common concept of relation: an element is related to an element , if and only if the pair belongs to the set of ordered pairs that defines the binary relation. A binary relation is the most studied special case of an -ary relation over sets , which is a subset of the Cartesian product [2]

An example of a binary relation is the "divides" relation over the set of prime numbers and the set of integers , in which each prime is related to each integer that is a multiple of , but not to an integer that is not a multiple of . In this relation, for instance, the prime number is related to numbers such as , , , , but not to or , just as the prime number is related to , , and , but not to or .

Binary relations are used in many branches of mathematics to model a wide variety of concepts. These include, among others:

A function may be defined as a binary relation that meets additional constraints.[3] Binary relations are also heavily used in computer science.

A binary relation over sets and is an element of the power set of Since the latter set is ordered by inclusion (), each relation has a place in the lattice of subsets of A binary relation is called a homogeneous relation when . A binary relation is also called a heterogeneous relation when it is not necessary that .

Since relations are sets, they can be manipulated using set operations, including union, intersection, and complementation, and satisfying the laws of an algebra of sets. Beyond that, operations like the converse of a relation and the composition of relations are available, satisfying the laws of a calculus of relations, for which there are textbooks by Ernst Schröder,[4] Clarence Lewis,[5] and Gunther Schmidt.[6] A deeper analysis of relations involves decomposing them into subsets called concepts, and placing them in a complete lattice.

In some systems of axiomatic set theory, relations are extended to classes, which are generalizations of sets. This extension is needed for, among other things, modeling the concepts of "is an element of" or "is a subset of" in set theory, without running into logical inconsistencies such as Russell's paradox.

The terms correspondence,[7] dyadic relation and two-place relation are synonyms for binary relation, though some authors use the term "binary relation" for any subset of a Cartesian product without reference to and , and reserve the term "correspondence" for a binary relation with reference to and .[citation needed]

Definition edit

Given sets   and  , the Cartesian product   is defined as   and its elements are called ordered pairs.

A binary relation   over sets   and   is a subset of  [2][8] The set   is called the domain[2] or set of departure of  , and the set   the codomain or set of destination of  . In order to specify the choices of the sets   and  , some authors define a binary relation or correspondence as an ordered triple  , where   is a subset of   called the graph of the binary relation. The statement   reads "  is  -related to  " and is denoted by  .[4][5][6][note 1] The domain of definition or active domain[2] of   is the set of all   such that   for at least one  . The codomain of definition, active codomain,[2] image or range of   is the set of all   such that   for at least one  . The field of   is the union of its domain of definition and its codomain of definition.[10][11][12]

When   a binary relation is called a homogeneous relation (or endorelation). To emphasize the fact that   and   are allowed to be different, a binary relation is also called a heterogeneous relation.[13][14][15]

In a binary relation, the order of the elements is important; if   then   can be true or false independently of  . For example,   divides  , but   does not divide  .

Operations edit

Union edit

If   and   are binary relations over sets   and   then   is the union relation of   and   over   and  .

The identity element is the empty relation. For example,   is the union of < and =, and   is the union of > and =.

Intersection edit

If   and   are binary relations over sets   and   then   is the intersection relation of   and   over   and  .

The identity element is the universal relation. For example, the relation "is divisible by 6" is the intersection of the relations "is divisible by 3" and "is divisible by 2".

Composition edit

If   is a binary relation over sets   and  , and   is a binary relation over sets   and   then   (also denoted by  ) is the composition relation of   and   over   and  .

The identity element is the identity relation. The order of   and   in the notation   used here agrees with the standard notational order for composition of functions. For example, the composition (is parent of) (is mother of) yields (is maternal grandparent of), while the composition (is mother of) (is parent of) yields (is grandmother of). For the former case, if   is the parent of   and   is the mother of  , then   is the maternal grandparent of  .

Converse edit

If   is a binary relation over sets   and   then   is the converse relation,[16] also called inverse relation,[17] of   over   and  .

For example,   is the converse of itself, as is   and   and   are each other's converse, as are   and  . A binary relation is equal to its converse if and only if it is symmetric.

Complement edit

If   is a binary relation over sets   and   then   (also denoted by  ) is the complementary relation of   over   and  .

For example,   and   are each other's complement, as are   and  ,   and  ,   and  , and for total orders also   and  , and   and  .

The complement of the converse relation   is the converse of the complement:  

If   the complement has the following properties:

  • If a relation is symmetric, then so is the complement.
  • The complement of a reflexive relation is irreflexive—and vice versa.
  • The complement of a strict weak order is a total preorder—and vice versa.

Restriction edit

If   is a binary homogeneous relation over a set   and   is a subset of   then   is the restriction relation of   to   over  .

If   is a binary relation over sets   and   and if   is a subset of   then   is the left-restriction relation of   to   over   and  .[clarification needed]

If   is a binary relation over sets   and   and if   is a subset of   then   is the right-restriction relation of   to   over   and  .

If a relation is reflexive, irreflexive, symmetric, antisymmetric, asymmetric, transitive, total, trichotomous, a partial order, total order, strict weak order, total preorder (weak order), or an equivalence relation, then so too are its restrictions.

However, the transitive closure of a restriction is a subset of the restriction of the transitive closure, i.e., in general not equal. For example, restricting the relation "  is parent of  " to females yields the relation "  is mother of the woman  "; its transitive closure does not relate a woman with her paternal grandmother. On the other hand, the transitive closure of "is parent of" is "is ancestor of"; its restriction to females does relate a woman with her paternal grandmother.

Also, the various concepts of completeness (not to be confused with being "total") do not carry over to restrictions. For example, over the real numbers a property of the relation   is that every non-empty subset   with an upper bound in   has a least upper bound (also called supremum) in   However, for the rational numbers this supremum is not necessarily rational, so the same property does not hold on the restriction of the relation   to the rational numbers.

A binary relation   over sets   and   is said to be contained in a relation   over   and  , written   if   is a subset of  , that is, for all   and   if  , then  . If   is contained in   and   is contained in  , then   and   are called equal written  . If   is contained in   but   is not contained in  , then   is said to be smaller than  , written   For example, on the rational numbers, the relation   is smaller than  , and equal to the composition  .

Matrix representation edit

Binary relations over sets   and   can be represented algebraically by logical matrices indexed by   and   with entries in the Boolean semiring (addition corresponds to OR and multiplication to AND) where matrix addition corresponds to union of relations, matrix multiplication corresponds to composition of relations (of a relation over   and   and a relation over   and  ),[18] the Hadamard product corresponds to intersection of relations, the zero matrix corresponds to the empty relation, and the matrix of ones corresponds to the universal relation. Homogeneous relations (when  ) form a matrix semiring (indeed, a matrix semialgebra over the Boolean semiring) where the identity matrix corresponds to the identity relation.[19]

Examples edit

2nd example relation
 
 
ball car doll cup
John +
Mary +
Venus +
1st example relation
 
 
ball car doll cup
John +
Mary +
Ian
Venus +
  1. The following example shows that the choice of codomain is important. Suppose there are four objects   and four people   A possible relation on   and   is the relation "is owned by", given by   That is, John owns the ball, Mary owns the doll, and Venus owns the car. Nobody owns the cup and Ian owns nothing; see the 1st example. As a set,   does not involve Ian, and therefore   could have been viewed as a subset of   i.e. a relation over   and   see the 2nd example. While the 2nd example relation is surjective (see below), the 1st is not.
     
    Oceans and continents (islands omitted)
    Ocean borders continent
    NA SA AF EU AS AU AA
    Indian 0 0 1 0 1 1 1
    Arctic 1 0 0 1 1 0 0
    Atlantic 1 1 1 1 0 0 1
    Pacific 1 1 0 0 1 1 1
  2. Let  , the oceans of the globe, and  , the continents. Let   represent that ocean   borders continent  . Then the logical matrix for this relation is:
     
    The connectivity of the planet Earth can be viewed through   and  , the former being a   relation on  , which is the universal relation (  or a logical matrix of all ones). This universal relation reflects the fact that every ocean is separated from the others by at most one continent. On the other hand,   is a relation on   which fails to be universal because at least two oceans must be traversed to voyage from Europe to Australia.
  3. Visualization of relations leans on graph theory: For relations on a set (homogeneous relations), a directed graph illustrates a relation and a graph a symmetric relation. For heterogeneous relations a hypergraph has edges possibly with more than two nodes, and can be illustrated by a bipartite graph. Just as the clique is integral to relations on a set, so bicliques are used to describe heterogeneous relations; indeed, they are the "concepts" that generate a lattice associated with a relation.
     
    The various   axes represent time for observers in motion, the corresponding   axes are their lines of simultaneity
  4. Hyperbolic orthogonality: Time and space are different categories, and temporal properties are separate from spatial properties. The idea of simultaneous events is simple in absolute time and space since each time   determines a simultaneous hyperplane in that cosmology. Herman Minkowski changed that when he articulated the notion of relative simultaneity, which exists when spatial events are "normal" to a time characterized by a velocity. He used an indefinite inner product, and specified that a time vector is normal to a space vector when that product is zero. The indefinite inner product in a composition algebra is given by
      where the overbar denotes conjugation.
    As a relation between some temporal events and some spatial events, hyperbolic orthogonality (as found in split-complex numbers) is a heterogeneous relation.[20]
  5. A geometric configuration can be considered a relation between its points and its lines. The relation is expressed as incidence. Finite and infinite projective and affine planes are included. Jakob Steiner pioneered the cataloguing of configurations with the Steiner systems   which have an n-element set   and a set of k-element subsets called blocks, such that a subset with   elements lies in just one block. These incidence structures have been generalized with block designs. The incidence matrix used in these geometrical contexts corresponds to the logical matrix used generally with binary relations.
    An incidence structure is a triple   where   and   are any two disjoint sets and   is a binary relation between   and  , i.e.   The elements of   will be called points, those of   blocks, and those of   flags.[21]

Types of binary relations edit

 
Examples of four types of binary relations over the real numbers: one-to-one (in green), one-to-many (in blue), many-to-one (in red), many-to-many (in black).

Some important types of binary relations   over sets   and   are listed below.

Uniqueness properties:

  • Injective[22] (also called left-unique[23]): for all   and all   if   and   then  . In other words, every element of the codomain has at most one preimage element. For such a relation,   is called a primary key of  .[2] For example, the green and blue binary relations in the diagram are injective, but the red one is not (as it relates both   and   to  ), nor the black one (as it relates both   and   to  ).
  • Functional[22] (also called right-unique[23] or univalent[24]): for all   and all   if   and   then  . In other words, every element of the domain has at most one image element. Such a binary relation is called a partial function or partial mapping.[25] For such a relation,   is called a primary key of  .[2] For example, the red and green binary relations in the diagram are univalent, but the blue one is not (as it relates   to both   and  ), nor the black one (as it relates   to both   and  ).
  • One-to-one: injective and functional. For example, the green binary relation in the diagram is one-to-one, but the red, blue and black ones are not.
  • One-to-many: injective and not functional. For example, the blue binary relation in the diagram is one-to-many, but the red, green and black ones are not.
  • Many-to-one: functional and not injective. For example, the red binary relation in the diagram is many-to-one, but the green, blue and black ones are not.
  • Many-to-many: not injective nor functional. For example, the black binary relation in the diagram is many-to-many, but the red, green and blue ones are not.

Totality properties (only definable if the domain   and codomain   are specified):

  • Total[22] (also called left-total[23]): for all   there exists a   such that  . In other words, every element of the domain has at least one image element. In other words, the domain of definition of   is equal to  . This property, is different from the definition of connected (also called total by some authors)[citation needed] in Properties. Such a binary relation is called a multivalued function. For example, the red and green binary relations in the diagram are total, but the blue one is not (as it does not relate   to any real number), nor the black one (as it does not relate   to any real number). As another example,   is a total relation over the integers. But it is not a total relation over the positive integers, because there is no   in the positive integers such that  .[26] However,   is a total relation over the positive integers, the rational numbers and the real numbers. Every reflexive relation is total: for a given  , choose  .
  • Surjective[22] (also called right-total[23]): for all  , there exists an   such that  . In other words, every element of the codomain has at least one preimage element. In other words, the codomain of definition of   is equal to  . For example, the green and blue binary relations in the diagram are surjective, but the red one is not (as it does not relate any real number to  ), nor the black one (as it does not relate any real number to  ).

Uniqueness and totality properties (only definable if the domain   and codomain   are specified):

  • A function (also called mapping[23]): a binary relation that is functional and total. In other words, every element of the domain has exactly one image element. For example, the red and green binary relations in the diagram are functions, but the blue and black ones are not.
  • An injection: a function that is injective. For example, the green binary relation in the diagram is an injection, but the red, blue and black ones are not.
  • A surjection: a function that is surjective. For example, the green binary relation in the diagram is a surjection, but the red, blue and black ones are not.
  • A bijection: a function that is injective and surjective. In other words, every element of the domain has exactly one image element and every element of the codomain has exactly one preimage element. For example, the green binary relation in the diagram is a bijection, but the red, blue and black ones are not.

If relations over proper classes are allowed:

  • Set-like (also called local): for all  , the class of all   such that  , i.e.  , is a set. For example, the relation   is set-like, and every relation on two sets is set-like.[27] The usual ordering < over the class of ordinal numbers is a set-like relation, while its inverse > is not.[citation needed]

Sets versus classes edit

Certain mathematical "relations", such as "equal to", "subset of", and "member of", cannot be understood to be binary relations as defined above, because their domains and codomains cannot be taken to be sets in the usual systems of axiomatic set theory. For example, to model the general concept of "equality" as a binary relation  , take the domain and codomain to be the "class of all sets", which is not a set in the usual set theory.

In most mathematical contexts, references to the relations of equality, membership and subset are harmless because they can be understood implicitly to be restricted to some set in the context. The usual work-around to this problem is to select a "large enough" set  , that contains all the objects of interest, and work with the restriction   instead of  . Similarly, the "subset of" relation   needs to be restricted to have domain and codomain   (the power set of a specific set  ): the resulting set relation can be denoted by   Also, the "member of" relation needs to be restricted to have domain   and codomain   to obtain a binary relation   that is a set. Bertrand Russell has shown that assuming   to be defined over all sets leads to a contradiction in naive set theory, see Russell's paradox.

Another solution to this problem is to use a set theory with proper classes, such as NBG or Morse–Kelley set theory, and allow the domain and codomain (and so the graph) to be proper classes: in such a theory, equality, membership, and subset are binary relations without special comment. (A minor modification needs to be made to the concept of the ordered triple  , as normally a proper class cannot be a member of an ordered tuple; or of course one can identify the binary relation with its graph in this context.)[28] With this definition one can for instance define a binary relation over every set and its power set.

Homogeneous relation edit

A homogeneous relation over a set   is a binary relation over   and itself, i.e. it is a subset of the Cartesian product  [15][29][30] It is also simply called a (binary) relation over  .

A homogeneous relation   over a set   may be identified with a directed simple graph permitting loops, where   is the vertex set and   is the edge set (there is an edge from a vertex   to a vertex   if and only if  ). The set of all homogeneous relations   over a set   is the power set   which is a Boolean algebra augmented with the involution of mapping of a relation to its converse relation. Considering composition of relations as a binary operation on  , it forms a semigroup with involution.

Some important properties that a homogeneous relation   over a set   may have are:

  • Reflexive: for all    . For example,   is a reflexive relation but > is not.
  • Irreflexive: for all   not  . For example,   is an irreflexive relation, but   is not.
  • Symmetric: for all   if   then  . For example, "is a blood relative of" is a symmetric relation.
  • Antisymmetric: for all   if   and   then   For example,   is an antisymmetric relation.[31]
  • Asymmetric: for all   if   then not  . A relation is asymmetric if and only if it is both antisymmetric and irreflexive.[32] For example, > is an asymmetric relation, but   is not.
  • Transitive: for all   if   and   then  . A transitive relation is irreflexive if and only if it is asymmetric.[33] For example, "is ancestor of" is a transitive relation, while "is parent of" is not.
  • Connected: for all   if   then   or  .
  • Strongly connected: for all     or  .
  • Dense: for all   if   then some   exists such that   and  .

A partial order is a relation that is reflexive, antisymmetric, and transitive. A strict partial order is a relation that is irreflexive, asymmetric, and transitive. A total order is a relation that is reflexive, antisymmetric, transitive and connected.[34] A strict total order is a relation that is irreflexive, asymmetric, transitive and connected. An equivalence relation is a relation that is reflexive, symmetric, and transitive. For example, "  divides  " is a partial, but not a total order on natural numbers   " " is a strict total order on

binary, relation, this, article, covers, advanced, notions, basic, topics, relation, mathematics, transitive, binary, relations, symmetricantisymmetricconnectedwell, foundedhas, joinshas, meetsreflexiveirreflexiveasymmetrictotal, semiconnexanti, reflexiveequiv. This article covers advanced notions For basic topics see Relation mathematics Transitive binary relations vte SymmetricAntisymmetricConnectedWell foundedHas joinsHas meetsReflexiveIrreflexiveAsymmetricTotal SemiconnexAnti reflexiveEquivalence relationY Y Preorder Quasiorder Y Partial order Y Y Total preorder Y Y Total order YY Y Prewellordering YY Y Well quasi ordering Y Y Well ordering YYY Y Lattice Y YYY Join semilattice Y Y Y Meet semilattice Y YY Strict partial order Y YYStrict weak order Y YYStrict total order YY YYSymmetricAntisymmetricConnectedWell foundedHas joinsHas meetsReflexiveIrreflexiveAsymmetricDefinitions for all a b displaystyle a b and S displaystyle S neq varnothing a R b b R a displaystyle begin aligned amp aRb Rightarrow amp bRa end aligned a R b and b R a a b displaystyle begin aligned aRb text and amp bRa Rightarrow a amp b end aligned a b a R b or b R a displaystyle begin aligned a neq amp b Rightarrow aRb text or amp bRa end aligned min S exists displaystyle begin aligned min S text exists end aligned a b exists displaystyle begin aligned a vee b text exists end aligned a b exists displaystyle begin aligned a wedge b text exists end aligned a R a displaystyle aRa not a R a displaystyle text not aRa a R b not b R a displaystyle begin aligned aRb Rightarrow text not bRa end aligned Y indicates that the column s property is always true the row s term at the very left while indicates that the property is not guaranteed in general it might or might not hold For example that every equivalence relation is symmetric but not necessarily antisymmetric is indicated by Y in the Symmetric column and in the Antisymmetric column respectively All definitions tacitly require the homogeneous relation R displaystyle R be transitive for all a b c displaystyle a b c if a R b displaystyle aRb and b R c displaystyle bRc then a R c displaystyle aRc A term s definition may require additional properties that are not listed in this table In mathematics a binary relation associates elements of one set called the domain with elements of another set called the codomain 1 A binary relation over sets X displaystyle X and Y displaystyle Y is a set of ordered pairs x y displaystyle x y consisting of elements x displaystyle x from X displaystyle X and y displaystyle y from Y displaystyle Y 2 It is a generalization of the more widely understood idea of a unary function It encodes the common concept of relation an element x displaystyle x is related to an element y displaystyle y if and only if the pair x y displaystyle x y belongs to the set of ordered pairs that defines the binary relation A binary relation is the most studied special case n 2 displaystyle n 2 of an n displaystyle n ary relation over sets X 1 X n displaystyle X 1 dots X n which is a subset of the Cartesian product X 1 X n displaystyle X 1 times cdots times X n 2 An example of a binary relation is the divides relation over the set of prime numbers P displaystyle mathbb P and the set of integers Z displaystyle mathbb Z in which each prime p displaystyle p is related to each integer z displaystyle z that is a multiple of p displaystyle p but not to an integer that is not a multiple of p displaystyle p In this relation for instance the prime number 2 displaystyle 2 is related to numbers such as 4 displaystyle 4 0 displaystyle 0 6 displaystyle 6 10 displaystyle 10 but not to 1 displaystyle 1 or 9 displaystyle 9 just as the prime number 3 displaystyle 3 is related to 0 displaystyle 0 6 displaystyle 6 and 9 displaystyle 9 but not to 4 displaystyle 4 or 13 displaystyle 13 Binary relations are used in many branches of mathematics to model a wide variety of concepts These include among others the is greater than is equal to and divides relations in arithmetic the is congruent to relation in geometry the is adjacent to relation in graph theory the is orthogonal to relation in linear algebra A function may be defined as a binary relation that meets additional constraints 3 Binary relations are also heavily used in computer science A binary relation over sets X displaystyle X and Y displaystyle Y is an element of the power set of X Y displaystyle X times Y Since the latter set is ordered by inclusion displaystyle subseteq each relation has a place in the lattice of subsets of X Y displaystyle X times Y A binary relation is called a homogeneous relation when X Y displaystyle X Y A binary relation is also called a heterogeneous relation when it is not necessary that X Y displaystyle X Y Since relations are sets they can be manipulated using set operations including union intersection and complementation and satisfying the laws of an algebra of sets Beyond that operations like the converse of a relation and the composition of relations are available satisfying the laws of a calculus of relations for which there are textbooks by Ernst Schroder 4 Clarence Lewis 5 and Gunther Schmidt 6 A deeper analysis of relations involves decomposing them into subsets called concepts and placing them in a complete lattice In some systems of axiomatic set theory relations are extended to classes which are generalizations of sets This extension is needed for among other things modeling the concepts of is an element of or is a subset of in set theory without running into logical inconsistencies such as Russell s paradox The terms correspondence 7 dyadic relation and two place relation are synonyms for binary relation though some authors use the term binary relation for any subset of a Cartesian product X Y displaystyle X times Y without reference to X displaystyle X and Y displaystyle Y and reserve the term correspondence for a binary relation with reference to X displaystyle X and Y displaystyle Y citation needed Contents 1 Definition 2 Operations 2 1 Union 2 2 Intersection 2 3 Composition 2 4 Converse 2 5 Complement 2 6 Restriction 2 7 Matrix representation 3 Examples 4 Types of binary relations 5 Sets versus classes 6 Homogeneous relation 7 Heterogeneous relation 8 Calculus of relations 9 Induced concept lattice 10 Particular relations 10 1 Difunctional 10 2 Ferrers type 10 3 Contact 11 Preorder R R 12 Fringe of a relation 13 Mathematical heaps 14 See also 15 Notes 16 References 17 Bibliography 18 External linksDefinition editGiven sets X displaystyle X nbsp and Y displaystyle Y nbsp the Cartesian product X Y displaystyle X times Y nbsp is defined as x y x X and y Y displaystyle x y mid x in X text and y in Y nbsp and its elements are called ordered pairs A binary relation R displaystyle R nbsp over sets X displaystyle X nbsp and Y displaystyle Y nbsp is a subset of X Y displaystyle X times Y nbsp 2 8 The set X displaystyle X nbsp is called the domain 2 or set of departure of R displaystyle R nbsp and the set Y displaystyle Y nbsp the codomain or set of destination of R displaystyle R nbsp In order to specify the choices of the sets X displaystyle X nbsp and Y displaystyle Y nbsp some authors define a binary relation or correspondence as an ordered triple X Y G displaystyle X Y G nbsp where G displaystyle G nbsp is a subset of X Y displaystyle X times Y nbsp called the graph of the binary relation The statement x y R displaystyle x y in R nbsp reads x displaystyle x nbsp is R displaystyle R nbsp related to y displaystyle y nbsp and is denoted by x R y displaystyle xRy nbsp 4 5 6 note 1 The domain of definition or active domain 2 of R displaystyle R nbsp is the set of all x displaystyle x nbsp such that x R y displaystyle xRy nbsp for at least one y displaystyle y nbsp The codomain of definition active codomain 2 image or range of R displaystyle R nbsp is the set of all y displaystyle y nbsp such that x R y displaystyle xRy nbsp for at least one x displaystyle x nbsp The field of R displaystyle R nbsp is the union of its domain of definition and its codomain of definition 10 11 12 When X Y displaystyle X Y nbsp a binary relation is called a homogeneous relation or endorelation To emphasize the fact that X displaystyle X nbsp and Y displaystyle Y nbsp are allowed to be different a binary relation is also called a heterogeneous relation 13 14 15 In a binary relation the order of the elements is important if x y displaystyle x neq y nbsp then y R x displaystyle yRx nbsp can be true or false independently of x R y displaystyle xRy nbsp For example 3 displaystyle 3 nbsp divides 9 displaystyle 9 nbsp but 9 displaystyle 9 nbsp does not divide 3 displaystyle 3 nbsp Operations editUnion edit If R displaystyle R nbsp and S displaystyle S nbsp are binary relations over sets X displaystyle X nbsp and Y displaystyle Y nbsp then R S x y x R y or x S y displaystyle R cup S x y mid xRy text or xSy nbsp is the union relation of R displaystyle R nbsp and S displaystyle S nbsp over X displaystyle X nbsp and Y displaystyle Y nbsp The identity element is the empty relation For example displaystyle leq nbsp is the union of lt and and displaystyle geq nbsp is the union of gt and Intersection edit If R displaystyle R nbsp and S displaystyle S nbsp are binary relations over sets X displaystyle X nbsp and Y displaystyle Y nbsp then R S x y x R y and x S y displaystyle R cap S x y mid xRy text and xSy nbsp is the intersection relation of R displaystyle R nbsp and S displaystyle S nbsp over X displaystyle X nbsp and Y displaystyle Y nbsp The identity element is the universal relation For example the relation is divisible by 6 is the intersection of the relations is divisible by 3 and is divisible by 2 Composition edit Main article Composition of relations If R displaystyle R nbsp is a binary relation over sets X displaystyle X nbsp and Y displaystyle Y nbsp and S displaystyle S nbsp is a binary relation over sets Y displaystyle Y nbsp and Z displaystyle Z nbsp then S R x z there exists y Y such that x R y and y S z displaystyle S circ R x z mid text there exists y in Y text such that xRy text and ySz nbsp also denoted by R S displaystyle R S nbsp is the composition relation of R displaystyle R nbsp and S displaystyle S nbsp over X displaystyle X nbsp and Z displaystyle Z nbsp The identity element is the identity relation The order of R displaystyle R nbsp and S displaystyle S nbsp in the notation S R displaystyle S circ R nbsp used here agrees with the standard notational order for composition of functions For example the composition is parent of displaystyle circ nbsp is mother of yields is maternal grandparent of while the composition is mother of displaystyle circ nbsp is parent of yields is grandmother of For the former case if x displaystyle x nbsp is the parent of y displaystyle y nbsp and y displaystyle y nbsp is the mother of z displaystyle z nbsp then x displaystyle x nbsp is the maternal grandparent of z displaystyle z nbsp Converse edit Main article Converse relation See also Duality order theory If R displaystyle R nbsp is a binary relation over sets X displaystyle X nbsp and Y displaystyle Y nbsp then R T y x x R y displaystyle R textsf T y x mid xRy nbsp is the converse relation 16 also called inverse relation 17 of R displaystyle R nbsp over Y displaystyle Y nbsp and X displaystyle X nbsp For example displaystyle nbsp is the converse of itself as is displaystyle neq nbsp and lt displaystyle lt nbsp and gt displaystyle gt nbsp are each other s converse as are displaystyle leq nbsp and displaystyle geq nbsp A binary relation is equal to its converse if and only if it is symmetric Complement edit Main article Complementary relation If R displaystyle R nbsp is a binary relation over sets X displaystyle X nbsp and Y displaystyle Y nbsp then R x y x R y displaystyle bar R x y mid neg xRy nbsp also denoted by R displaystyle neg R nbsp is the complementary relation of R displaystyle R nbsp over X displaystyle X nbsp and Y displaystyle Y nbsp For example displaystyle nbsp and displaystyle neq nbsp are each other s complement as are displaystyle subseteq nbsp and displaystyle not subseteq nbsp displaystyle supseteq nbsp and displaystyle not supseteq nbsp displaystyle in nbsp and displaystyle not in nbsp and for total orders also lt displaystyle lt nbsp and displaystyle geq nbsp and gt displaystyle gt nbsp and displaystyle leq nbsp The complement of the converse relation R T displaystyle R textsf T nbsp is the converse of the complement R T R T displaystyle overline R mathsf T bar R mathsf T nbsp If X Y displaystyle X Y nbsp the complement has the following properties If a relation is symmetric then so is the complement The complement of a reflexive relation is irreflexive and vice versa The complement of a strict weak order is a total preorder and vice versa Restriction edit Main article Restriction mathematics If R displaystyle R nbsp is a binary homogeneous relation over a set X displaystyle X nbsp and S displaystyle S nbsp is a subset of X displaystyle X nbsp then R S x y x R y and x S and y S displaystyle R vert S x y mid xRy text and x in S text and y in S nbsp is the restriction relation of R displaystyle R nbsp to S displaystyle S nbsp over X displaystyle X nbsp If R displaystyle R nbsp is a binary relation over sets X displaystyle X nbsp and Y displaystyle Y nbsp and if S displaystyle S nbsp is a subset of X displaystyle X nbsp then R S x y x R y and x S displaystyle R vert S x y mid xRy text and x in S nbsp is the left restriction relation of R displaystyle R nbsp to S displaystyle S nbsp over X displaystyle X nbsp and Y displaystyle Y nbsp clarification needed If R displaystyle R nbsp is a binary relation over sets X displaystyle X nbsp and Y displaystyle Y nbsp and if S displaystyle S nbsp is a subset of Y displaystyle Y nbsp then R S x y x R y and y S displaystyle R vert S x y mid xRy text and y in S nbsp is the right restriction relation of R displaystyle R nbsp to S displaystyle S nbsp over X displaystyle X nbsp and Y displaystyle Y nbsp If a relation is reflexive irreflexive symmetric antisymmetric asymmetric transitive total trichotomous a partial order total order strict weak order total preorder weak order or an equivalence relation then so too are its restrictions However the transitive closure of a restriction is a subset of the restriction of the transitive closure i e in general not equal For example restricting the relation x displaystyle x nbsp is parent of y displaystyle y nbsp to females yields the relation x displaystyle x nbsp is mother of the woman y displaystyle y nbsp its transitive closure does not relate a woman with her paternal grandmother On the other hand the transitive closure of is parent of is is ancestor of its restriction to females does relate a woman with her paternal grandmother Also the various concepts of completeness not to be confused with being total do not carry over to restrictions For example over the real numbers a property of the relation displaystyle leq nbsp is that every non empty subset S R displaystyle S subseteq mathbb R nbsp with an upper bound in R displaystyle mathbb R nbsp has a least upper bound also called supremum in R displaystyle mathbb R nbsp However for the rational numbers this supremum is not necessarily rational so the same property does not hold on the restriction of the relation displaystyle leq nbsp to the rational numbers A binary relation R displaystyle R nbsp over sets X displaystyle X nbsp and Y displaystyle Y nbsp is said to be contained in a relation S displaystyle S nbsp over X displaystyle X nbsp and Y displaystyle Y nbsp written R S displaystyle R subseteq S nbsp if R displaystyle R nbsp is a subset of S displaystyle S nbsp that is for all x X displaystyle x in X nbsp and y Y displaystyle y in Y nbsp if x R y displaystyle xRy nbsp then x S y displaystyle xSy nbsp If R displaystyle R nbsp is contained in S displaystyle S nbsp and S displaystyle S nbsp is contained in R displaystyle R nbsp then R displaystyle R nbsp and S displaystyle S nbsp are called equal written R S displaystyle R S nbsp If R displaystyle R nbsp is contained in S displaystyle S nbsp but S displaystyle S nbsp is not contained in R displaystyle R nbsp then R displaystyle R nbsp is said to be smaller than S displaystyle S nbsp written R S displaystyle R subsetneq S nbsp For example on the rational numbers the relation gt displaystyle gt nbsp is smaller than displaystyle geq nbsp and equal to the composition gt gt displaystyle gt circ gt nbsp Matrix representation edit Binary relations over sets X displaystyle X nbsp and Y displaystyle Y nbsp can be represented algebraically by logical matrices indexed by X displaystyle X nbsp and Y displaystyle Y nbsp with entries in the Boolean semiring addition corresponds to OR and multiplication to AND where matrix addition corresponds to union of relations matrix multiplication corresponds to composition of relations of a relation over X displaystyle X nbsp and Y displaystyle Y nbsp and a relation over Y displaystyle Y nbsp and Z displaystyle Z nbsp 18 the Hadamard product corresponds to intersection of relations the zero matrix corresponds to the empty relation and the matrix of ones corresponds to the universal relation Homogeneous relations when X Y displaystyle X Y nbsp form a matrix semiring indeed a matrix semialgebra over the Boolean semiring where the identity matrix corresponds to the identity relation 19 Examples edit2nd example relation A displaystyle A nbsp B displaystyle B nbsp ball car doll cup John Mary Venus 1st example relation A displaystyle A nbsp B displaystyle B nbsp ball car doll cup John Mary Ian Venus The following example shows that the choice of codomain is important Suppose there are four objects A ball car doll cup displaystyle A text ball car doll cup nbsp and four people B John Mary Ian Venus displaystyle B text John Mary Ian Venus nbsp A possible relation on A displaystyle A nbsp and B displaystyle B nbsp is the relation is owned by given by R ball John doll Mary car Venus displaystyle R text ball John text doll Mary text car Venus nbsp That is John owns the ball Mary owns the doll and Venus owns the car Nobody owns the cup and Ian owns nothing see the 1st example As a set R displaystyle R nbsp does not involve Ian and therefore R displaystyle R nbsp could have been viewed as a subset of A John Mary Venus displaystyle A times text John Mary Venus nbsp i e a relation over A displaystyle A nbsp and John Mary Venus displaystyle text John Mary Venus nbsp see the 2nd example While the 2nd example relation is surjective see below the 1st is not nbsp Oceans and continents islands omitted Ocean borders continent NA SA AF EU AS AU AA Indian 0 0 1 0 1 1 1 Arctic 1 0 0 1 1 0 0 Atlantic 1 1 1 1 0 0 1 Pacific 1 1 0 0 1 1 1Let A Indian Arctic Atlantic Pacific displaystyle A text Indian text Arctic text Atlantic text Pacific nbsp the oceans of the globe and B NA SA AF EU AS AU AA displaystyle B text NA text SA text AF text EU text AS text AU text AA nbsp the continents Let a R b displaystyle aRb nbsp represent that ocean a displaystyle a nbsp borders continent b displaystyle b nbsp Then the logical matrix for this relation is R 0 0 1 0 1 1 1 1 0 0 1 1 0 0 1 1 1 1 0 0 1 1 1 0 0 1 1 1 displaystyle R begin pmatrix 0 amp 0 amp 1 amp 0 amp 1 amp 1 amp 1 1 amp 0 amp 0 amp 1 amp 1 amp 0 amp 0 1 amp 1 amp 1 amp 1 amp 0 amp 0 amp 1 1 amp 1 amp 0 amp 0 amp 1 amp 1 amp 1 end pmatrix nbsp The connectivity of the planet Earth can be viewed through R R T displaystyle RR mathsf T nbsp and R T R displaystyle R mathsf T R nbsp the former being a 4 4 displaystyle 4 times 4 nbsp relation on A displaystyle A nbsp which is the universal relation A A displaystyle A times A nbsp or a logical matrix of all ones This universal relation reflects the fact that every ocean is separated from the others by at most one continent On the other hand R T R displaystyle R mathsf T R nbsp is a relation on B B displaystyle B times B nbsp which fails to be universal because at least two oceans must be traversed to voyage from Europe to Australia Visualization of relations leans on graph theory For relations on a set homogeneous relations a directed graph illustrates a relation and a graph a symmetric relation For heterogeneous relations a hypergraph has edges possibly with more than two nodes and can be illustrated by a bipartite graph Just as the clique is integral to relations on a set so bicliques are used to describe heterogeneous relations indeed they are the concepts that generate a lattice associated with a relation nbsp The various t displaystyle t nbsp axes represent time for observers in motion the corresponding x displaystyle x nbsp axes are their lines of simultaneityHyperbolic orthogonality Time and space are different categories and temporal properties are separate from spatial properties The idea of simultaneous events is simple in absolute time and space since each time t displaystyle t nbsp determines a simultaneous hyperplane in that cosmology Herman Minkowski changed that when he articulated the notion of relative simultaneity which exists when spatial events are normal to a time characterized by a velocity He used an indefinite inner product and specified that a time vector is normal to a space vector when that product is zero The indefinite inner product in a composition algebra is given by x z x z x z displaystyle langle x z rangle x bar z bar x z nbsp where the overbar denotes conjugation As a relation between some temporal events and some spatial events hyperbolic orthogonality as found in split complex numbers is a heterogeneous relation 20 A geometric configuration can be considered a relation between its points and its lines The relation is expressed as incidence Finite and infinite projective and affine planes are included Jakob Steiner pioneered the cataloguing of configurations with the Steiner systems S t k n displaystyle operatorname S t k n nbsp which have an n element set S displaystyle operatorname S nbsp and a set of k element subsets called blocks such that a subset with t displaystyle t nbsp elements lies in just one block These incidence structures have been generalized with block designs The incidence matrix used in these geometrical contexts corresponds to the logical matrix used generally with binary relations An incidence structure is a triple D V B I displaystyle mathbf D V mathbf B I nbsp where V displaystyle V nbsp and B displaystyle mathbf B nbsp are any two disjoint sets and I displaystyle I nbsp is a binary relation between V displaystyle V nbsp and B displaystyle mathbf B nbsp i e I V B displaystyle I subseteq V times mathbf B nbsp The elements of V displaystyle V nbsp will be called points those of B displaystyle mathbf B nbsp blocks and those of I displaystyle I nbsp flags 21 Types of binary relations edit nbsp Examples of four types of binary relations over the real numbers one to one in green one to many in blue many to one in red many to many in black Some important types of binary relations R displaystyle R nbsp over sets X displaystyle X nbsp and Y displaystyle Y nbsp are listed below Uniqueness properties Injective 22 also called left unique 23 for all x y X displaystyle x y in X nbsp and all z Y displaystyle z in Y nbsp if x R z displaystyle xRz nbsp and y R z displaystyle yRz nbsp then x y displaystyle x y nbsp In other words every element of the codomain has at most one preimage element For such a relation Y displaystyle Y nbsp is called a primary key of R displaystyle R nbsp 2 For example the green and blue binary relations in the diagram are injective but the red one is not as it relates both 1 displaystyle 1 nbsp and 1 displaystyle 1 nbsp to 1 displaystyle 1 nbsp nor the black one as it relates both 1 displaystyle 1 nbsp and 1 displaystyle 1 nbsp to 0 displaystyle 0 nbsp Functional 22 also called right unique 23 or univalent 24 for all x X displaystyle x in X nbsp and all y z Y displaystyle y z in Y nbsp if x R y displaystyle xRy nbsp and x R z displaystyle xRz nbsp then y z displaystyle y z nbsp In other words every element of the domain has at most one image element Such a binary relation is called a partial function or partial mapping 25 For such a relation X displaystyle X nbsp is called a primary key of R displaystyle R nbsp 2 For example the red and green binary relations in the diagram are univalent but the blue one is not as it relates 1 displaystyle 1 nbsp to both 1 displaystyle 1 nbsp and 1 displaystyle 1 nbsp nor the black one as it relates 0 displaystyle 0 nbsp to both 1 displaystyle 1 nbsp and 1 displaystyle 1 nbsp One to one injective and functional For example the green binary relation in the diagram is one to one but the red blue and black ones are not One to many injective and not functional For example the blue binary relation in the diagram is one to many but the red green and black ones are not Many to one functional and not injective For example the red binary relation in the diagram is many to one but the green blue and black ones are not Many to many not injective nor functional For example the black binary relation in the diagram is many to many but the red green and blue ones are not Totality properties only definable if the domain X displaystyle X nbsp and codomain Y displaystyle Y nbsp are specified Total 22 also called left total 23 for all x X displaystyle x in X nbsp there exists a y Y displaystyle y in Y nbsp such that x R y displaystyle xRy nbsp In other words every element of the domain has at least one image element In other words the domain of definition of R displaystyle R nbsp is equal to X displaystyle X nbsp This property is different from the definition of connected also called total by some authors citation needed in Properties Such a binary relation is called a multivalued function For example the red and green binary relations in the diagram are total but the blue one is not as it does not relate 1 displaystyle 1 nbsp to any real number nor the black one as it does not relate 2 displaystyle 2 nbsp to any real number As another example gt displaystyle gt nbsp is a total relation over the integers But it is not a total relation over the positive integers because there is no y displaystyle y nbsp in the positive integers such that 1 gt y displaystyle 1 gt y nbsp 26 However lt displaystyle lt nbsp is a total relation over the positive integers the rational numbers and the real numbers Every reflexive relation is total for a given x displaystyle x nbsp choose y x displaystyle y x nbsp Surjective 22 also called right total 23 for all y Y displaystyle y in Y nbsp there exists an x X displaystyle x in X nbsp such that x R y displaystyle xRy nbsp In other words every element of the codomain has at least one preimage element In other words the codomain of definition of R displaystyle R nbsp is equal to Y displaystyle Y nbsp For example the green and blue binary relations in the diagram are surjective but the red one is not as it does not relate any real number to 1 displaystyle 1 nbsp nor the black one as it does not relate any real number to 2 displaystyle 2 nbsp Uniqueness and totality properties only definable if the domain X displaystyle X nbsp and codomain Y displaystyle Y nbsp are specified A function also called mapping 23 a binary relation that is functional and total In other words every element of the domain has exactly one image element For example the red and green binary relations in the diagram are functions but the blue and black ones are not An injection a function that is injective For example the green binary relation in the diagram is an injection but the red blue and black ones are not A surjection a function that is surjective For example the green binary relation in the diagram is a surjection but the red blue and black ones are not A bijection a function that is injective and surjective In other words every element of the domain has exactly one image element and every element of the codomain has exactly one preimage element For example the green binary relation in the diagram is a bijection but the red blue and black ones are not If relations over proper classes are allowed Set like also called local for all x X displaystyle x in X nbsp the class of all y Y displaystyle y in Y nbsp such that y R x displaystyle yRx nbsp i e y Y y R x displaystyle y in Y yRx nbsp is a set For example the relation displaystyle in nbsp is set like and every relation on two sets is set like 27 The usual ordering lt over the class of ordinal numbers is a set like relation while its inverse gt is not citation needed Sets versus classes editCertain mathematical relations such as equal to subset of and member of cannot be understood to be binary relations as defined above because their domains and codomains cannot be taken to be sets in the usual systems of axiomatic set theory For example to model the general concept of equality as a binary relation displaystyle nbsp take the domain and codomain to be the class of all sets which is not a set in the usual set theory In most mathematical contexts references to the relations of equality membership and subset are harmless because they can be understood implicitly to be restricted to some set in the context The usual work around to this problem is to select a large enough set A displaystyle A nbsp that contains all the objects of interest and work with the restriction A displaystyle A nbsp instead of displaystyle nbsp Similarly the subset of relation displaystyle subseteq nbsp needs to be restricted to have domain and codomain P A displaystyle P A nbsp the power set of a specific set A displaystyle A nbsp the resulting set relation can be denoted by A displaystyle subseteq A nbsp Also the member of relation needs to be restricted to have domain A displaystyle A nbsp and codomain P A displaystyle P A nbsp to obtain a binary relation A displaystyle in A nbsp that is a set Bertrand Russell has shown that assuming displaystyle in nbsp to be defined over all sets leads to a contradiction in naive set theory see Russell s paradox Another solution to this problem is to use a set theory with proper classes such as NBG or Morse Kelley set theory and allow the domain and codomain and so the graph to be proper classes in such a theory equality membership and subset are binary relations without special comment A minor modification needs to be made to the concept of the ordered triple X Y G displaystyle X Y G nbsp as normally a proper class cannot be a member of an ordered tuple or of course one can identify the binary relation with its graph in this context 28 With this definition one can for instance define a binary relation over every set and its power set Homogeneous relation editMain article Homogeneous relation A homogeneous relation over a set X displaystyle X nbsp is a binary relation over X displaystyle X nbsp and itself i e it is a subset of the Cartesian product X X displaystyle X times X nbsp 15 29 30 It is also simply called a binary relation over X displaystyle X nbsp A homogeneous relation R displaystyle R nbsp over a set X displaystyle X nbsp may be identified with a directed simple graph permitting loops where X displaystyle X nbsp is the vertex set and R displaystyle R nbsp is the edge set there is an edge from a vertex x displaystyle x nbsp to a vertex y displaystyle y nbsp if and only if x R y displaystyle xRy nbsp The set of all homogeneous relations B X displaystyle mathcal B X nbsp over a set X displaystyle X nbsp is the power set 2 X X displaystyle 2 X times X nbsp which is a Boolean algebra augmented with the involution of mapping of a relation to its converse relation Considering composition of relations as a binary operation on B X displaystyle mathcal B X nbsp it forms a semigroup with involution Some important properties that a homogeneous relation R displaystyle R nbsp over a set X displaystyle X nbsp may have are Reflexive for all x X displaystyle x in X nbsp x R x displaystyle xRx nbsp For example displaystyle geq nbsp is a reflexive relation but gt is not Irreflexive for all x X displaystyle x in X nbsp not x R x displaystyle xRx nbsp For example gt displaystyle gt nbsp is an irreflexive relation but displaystyle geq nbsp is not Symmetric for all x y X displaystyle x y in X nbsp if x R y displaystyle xRy nbsp then y R x displaystyle yRx nbsp For example is a blood relative of is a symmetric relation Antisymmetric for all x y X displaystyle x y in X nbsp if x R y displaystyle xRy nbsp and y R x displaystyle yRx nbsp then x y displaystyle x y nbsp For example displaystyle geq nbsp is an antisymmetric relation 31 Asymmetric for all x y X displaystyle x y in X nbsp if x R y displaystyle xRy nbsp then not y R x displaystyle yRx nbsp A relation is asymmetric if and only if it is both antisymmetric and irreflexive 32 For example gt is an asymmetric relation but displaystyle geq nbsp is not Transitive for all x y z X displaystyle x y z in X nbsp if x R y displaystyle xRy nbsp and y R z displaystyle yRz nbsp then x R z displaystyle xRz nbsp A transitive relation is irreflexive if and only if it is asymmetric 33 For example is ancestor of is a transitive relation while is parent of is not Connected for all x y X displaystyle x y in X nbsp if x y displaystyle x neq y nbsp then x R y displaystyle xRy nbsp or y R x displaystyle yRx nbsp Strongly connected for all x y X displaystyle x y in X nbsp x R y displaystyle xRy nbsp or y R x displaystyle yRx nbsp Dense for all x y X displaystyle x y in X nbsp if x R y displaystyle xRy nbsp then some z X displaystyle z in X nbsp exists such that x R z displaystyle xRz nbsp and z R y displaystyle zRy nbsp A partial order is a relation that is reflexive antisymmetric and transitive A strict partial order is a relation that is irreflexive asymmetric and transitive A total order is a relation that is reflexive antisymmetric transitive and connected 34 A strict total order is a relation that is irreflexive asymmetric transitive and connected An equivalence relation is a relation that is reflexive symmetric and transitive For example x displaystyle x nbsp divides y displaystyle y nbsp is a partial but not a total order on natural numbers N displaystyle mathbb N nbsp x lt y displaystyle x lt y nbsp is a strict total order on N displaystyle mathbb N span, 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.