Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Composition of relations

From Wikipedia, the free encyclopedia
Mathematical operation

In themathematics ofbinary relations, thecomposition of relations is the forming of a new binary relationR ;S from two given binary relationsR andS. In thecalculus of relations, the composition of relations is calledrelative multiplication,[1] and its result is called arelative product.[2]: 40 Function composition is the special case of composition of relations where all relations involved arefunctions.

The worduncle indicates a compound relation: for a person to be an uncle, he must be the brother of a parent. Inalgebraic logic it is said that the relation of Uncle (xUz{\displaystyle xUz}) is the composition of relations "is a brother of" (xBy{\displaystyle xBy}) and "is a parent of" (yPz{\displaystyle yPz}).U=BP is equivalent to: xUz if and only if y xByPz.{\displaystyle U=BP\quad {\text{ is equivalent to: }}\quad xUz{\text{ if and only if }}\exists y\ xByPz.}

Beginning withAugustus De Morgan,[3] the traditional form of reasoning bysyllogism has been subsumed by relational logical expressions and their composition.[4]

Definition

[edit]

IfRX×Y{\displaystyle R\subseteq X\times Y} andSY×Z{\displaystyle S\subseteq Y\times Z} are two binary relations, thentheir compositionR;S{\displaystyle R\mathbin {;} S} is the relationR;S={(x,z)X×Z: there exists yY such that (x,y)R and (y,z)S}.{\displaystyle R\mathbin {;} S=\{(x,z)\in X\times Z:{\text{ there exists }}y\in Y{\text{ such that }}(x,y)\in R{\text{ and }}(y,z)\in S\}.}

In other words,R;SX×Z{\displaystyle R\mathbin {;} S\subseteq X\times Z} is defined by the rule that says(x,z)R;S{\displaystyle (x,z)\in R\mathbin {;} S} if and only if there is an elementyY{\displaystyle y\in Y} such thatxRySz{\displaystyle x\,R\,y\,S\,z} (that is,(x,y)R{\displaystyle (x,y)\in R} and(y,z)S{\displaystyle (y,z)\in S}).[5]: 13 

Notational variations

[edit]

Thesemicolon as aninfix notation for composition of relations dates back toErnst Schröder's textbook of 1895.[6]Gunther Schmidt has renewed the use of the semicolon, particularly inRelational Mathematics (2011).[2]: 40 [7] The use of the semicoloncoincides with the notation for function composition used (mostly by computer scientists) incategory theory,[8] as well as the notation for dynamic conjunction within linguisticdynamic semantics.[9]

A small circle(RS){\displaystyle (R\circ S)} has been used for the infix notation of composition of relations byJohn M. Howie in his books consideringsemigroups of relations.[10] However, the small circle is widely used to representcomposition of functionsg(f(x))=(gf)(x){\displaystyle g(f(x))=(g\circ f)(x)}, whichreverses the text sequence from the operation sequence. The small circle was used in the introductory pages ofGraphs and Relations[5]: 18  until it was dropped in favor of juxtaposition (no infix notation).Juxtaposition(RS){\displaystyle (RS)} is commonly used in algebra to signify multiplication, so too, it can signify relative multiplication.

Further with the circle notation, subscripts may be used. Some authors[11] prefer to writel{\displaystyle \circ _{l}} andr{\displaystyle \circ _{r}} explicitly when necessary, depending whether the left or the right relation is the first one applied. A further variation encountered in computer science is theZ notation:{\displaystyle \circ } is used to denote the traditional (right) composition, while left composition is denoted by a fat semicolon. The unicode symbols are ⨾ and ⨟.[12][13]

Mathematical generalizations

[edit]

Binary relationsRX×Y{\displaystyle R\subseteq X\times Y} are morphismsR:XY{\displaystyle R:X\to Y} in thecategoryRel{\displaystyle {\mathsf {Rel}}}. InRel the objects aresets, the morphisms are binary relations and the composition of morphisms is exactly composition of relations as defined above. The categorySet of sets and functions is asubcategory ofRel{\displaystyle {\mathsf {Rel}}} where the mapsXY{\displaystyle X\to Y} are functionsf:XY{\displaystyle f:X\to Y}.

Given aregular categoryX{\displaystyle \mathbb {X} }, its category of internal relationsRel(X){\displaystyle {\mathsf {Rel}}(\mathbb {X} )} has the same objects asX{\displaystyle \mathbb {X} }, but now the morphismsXY{\displaystyle X\to Y} are given by subobjectsRX×Y{\displaystyle R\subseteq X\times Y} inX{\displaystyle \mathbb {X} }.[14] Formally, these arejointly monicspans betweenX{\displaystyle X} andY{\displaystyle Y}. Categories of internal relations areallegories. In particularRel(Set)Rel{\displaystyle {\mathsf {Rel}}({\mathsf {Set}})\cong {\mathsf {Rel}}}. Given afieldk{\displaystyle k} (or more generally aprincipal ideal domain), the category of relations internal tomatrices overk{\displaystyle k},Rel(Mat(k)),{\displaystyle {\mathsf {Rel}}({\mathsf {Mat}}(k)),} has morphismsnm{\displaystyle n\to m} thelinear subspacesRknkm{\displaystyle R\subseteq k^{n}\oplus k^{m}}. The category of linear relations over thefinite fieldF2{\displaystyle \mathbb {F} _{2}} is isomorphic to the phase-free qubitZX-calculus modulo scalars.

Properties

[edit]

Composition in terms of matrices

[edit]

Finite binary relations are represented bylogical matrices. The entries of these matrices are either zero or one, depending on whether the relation represented is false or true for the row and column corresponding to compared objects. Working with such matrices involves the Boolean arithmetic with1+1=1{\displaystyle 1+1=1} and1×1=1.{\displaystyle 1\times 1=1.} An entry in thematrix product of two logical matrices will be 1, then, only if the row and column multiplied have a corresponding 1. Thus the logical matrix of a composition of relations can be found by computing the matrix product of the matrices representing the factors of the composition. "Matrices constitute a method forcomputing the conclusions traditionally drawn by means of hypothetical syllogisms andsorites."[15]

Heterogeneous relations

[edit]

Consider a heterogeneous relationRA×B;{\displaystyle R\subseteq A\times B;} that is, whereA{\displaystyle A} andB{\displaystyle B} are distinct sets. Then using composition of relationR{\displaystyle R} with itsconverseRT,{\displaystyle R^{\textsf {T}},} there are homogeneous relationsRRT{\displaystyle RR^{\textsf {T}}} (onA{\displaystyle A}) andRTR{\displaystyle R^{\textsf {T}}R} (onB{\displaystyle B}).

If for allxA{\displaystyle x\in A} there exists someyB,{\displaystyle y\in B,} such thatxRy{\displaystyle xRy} (that is,R{\displaystyle R} is a(left-)total relation), then for allx,xRRTx{\displaystyle x,xRR^{\textsf {T}}x} so thatRRT{\displaystyle RR^{\textsf {T}}} is areflexive relation orIRRT{\displaystyle \mathrm {I} \subseteq RR^{\textsf {T}}} where I is the identity relation{(x,x):xA}.{\displaystyle \{(x,x):x\in A\}.} Similarly, ifR{\displaystyle R} is asurjective relation thenRTRI={(x,x):xB}.{\displaystyle R^{\textsf {T}}R\supseteq \mathrm {I} =\{(x,x):x\in B\}.} In this caseRRRTR.{\displaystyle R\subseteq RR^{\textsf {T}}R.} The opposite inclusion occurs for adifunctional relation.

The compositionR¯TR{\displaystyle {\bar {R}}^{\textsf {T}}R} is used to distinguish relations of Ferrer's type, which satisfyRR¯TR=R.{\displaystyle R{\bar {R}}^{\textsf {T}}R=R.}

Example

[edit]

LetA={\displaystyle A=} { France, Germany, Italy, Switzerland } andB={\displaystyle B=} { French, German, Italian } with the relationR{\displaystyle R} given byaRb{\displaystyle aRb} whenb{\displaystyle b} is anational language ofa.{\displaystyle a.}Since bothA{\displaystyle A} andB{\displaystyle B} is finite,R{\displaystyle R} can be represented by alogical matrix, assuming rows (top to bottom) and columns (left to right) are ordered alphabetically:(100010001111).{\displaystyle {\begin{pmatrix}1&0&0\\0&1&0\\0&0&1\\1&1&1\end{pmatrix}}.}

Theconverse relationRT{\displaystyle R^{\textsf {T}}} corresponds to thetransposed matrix, and the relation compositionRT;R{\displaystyle R^{\textsf {T}};R} corresponds to thematrix productRTR{\displaystyle R^{\textsf {T}}R} when summation is implemented bylogical disjunction. It turns out that the3×3{\displaystyle 3\times 3} matrixRTR{\displaystyle R^{\textsf {T}}R} contains a 1 at every position, while the reversed matrix product computes as:RRT=(1001010100111111).{\displaystyle RR^{\textsf {T}}={\begin{pmatrix}1&0&0&1\\0&1&0&1\\0&0&1&1\\1&1&1&1\end{pmatrix}}.}This matrix is symmetric, and represents a homogeneous relation onA.{\displaystyle A.}

Correspondingly,RT;R{\displaystyle R^{\textsf {T}}\,;R} is theuniversal relation onB,{\displaystyle B,} hence any two languages share a nation where they both are spoken (in fact: Switzerland).Vice versa, the question whether two given nations share a language can be answered usingR;RT.{\displaystyle R\,;R^{\textsf {T}}.}

Schröder rules

[edit]

For a given setV,{\displaystyle V,} the collection of allbinary relations onV{\displaystyle V} forms aBoolean lattice ordered byinclusion().{\displaystyle (\subseteq ).} Recall thatcomplementation reverses inclusion:AB implies BA.{\displaystyle A\subseteq B{\text{ implies }}B^{\complement }\subseteq A^{\complement }.} In thecalculus of relations[16] it is common to represent the complement of a set by an overbar:A¯=A.{\displaystyle {\bar {A}}=A^{\complement }.}

IfS{\displaystyle S} is a binary relation, letST{\displaystyle S^{\textsf {T}}} represent theconverse relation, also called thetranspose. Then the Schröder rules areQRS is equivalent to QTS¯R¯ is equivalent to S¯RTQ¯.{\displaystyle QR\subseteq S\quad {\text{ is equivalent to }}\quad Q^{\textsf {T}}{\bar {S}}\subseteq {\bar {R}}\quad {\text{ is equivalent to }}\quad {\bar {S}}R^{\textsf {T}}\subseteq {\bar {Q}}.}Verbally, one equivalence can be obtained from another: select the first or second factor and transpose it; then complement the other two relations and permute them.[5]: 15–19 

Though this transformation of an inclusion of a composition of relations was detailed byErnst Schröder, in factAugustus De Morgan first articulated the transformation as Theorem K in 1860.[4] He wrote[17]LMN implies N¯MTL¯.{\displaystyle LM\subseteq N{\text{ implies }}{\bar {N}}M^{\textsf {T}}\subseteq {\bar {L}}.}

With Schröder rules and complementation one can solve for an unknown relationX{\displaystyle X} in relation inclusions such asRXSandXRS.{\displaystyle RX\subseteq S\quad {\text{and}}\quad XR\subseteq S.}For instance, by Schröder ruleRXS implies RTS¯X¯,{\displaystyle RX\subseteq S{\text{ implies }}R^{\textsf {T}}{\bar {S}}\subseteq {\bar {X}},} and complementation givesXRTS¯¯,{\displaystyle X\subseteq {\overline {R^{\textsf {T}}{\bar {S}}}},} which is called theleft residual ofS{\displaystyle S} byR{\displaystyle R}.

Quotients

[edit]

Just as composition of relations is a type of multiplication resulting in a product, so someoperations compare to division and produce quotients. Three quotients are exhibited here: left residual, right residual, and symmetric quotient. The left residual of two relations is defined presuming that they have the same domain (source), and the right residual presumes the same codomain (range, target). The symmetric quotient presumes two relations share a domain and a codomain.

Definitions:

Using Schröder's rules,AXB{\displaystyle AX\subseteq B} is equivalent toXAB.{\displaystyle X\subseteq A\backslash B.} Thus the left residual is the greatest relation satisfyingAXB.{\displaystyle AX\subseteq B.} Similarly, the inclusionYCD{\displaystyle YC\subseteq D} is equivalent toYD/C,{\displaystyle Y\subseteq D/C,} and the right residual is the greatest relation satisfyingYCD.{\displaystyle YC\subseteq D.}[2]: 43–6 

One can practice the logic of residuals withSudoku.[further explanation needed]

Join: another form of composition

[edit]

A fork operator(<){\displaystyle (<)} has been introduced to fuse two relationsc:HA{\displaystyle c:H\to A} andd:HB{\displaystyle d:H\to B} intoc(<)d:HA×B.{\displaystyle c\,(<)\,d:H\to A\times B.} The construction depends on projectionsa:A×BA{\displaystyle a:A\times B\to A} andb:A×BB,{\displaystyle b:A\times B\to B,} understood as relations, meaning that there are converse relationsaT{\displaystyle a^{\textsf {T}}} andbT.{\displaystyle b^{\textsf {T}}.} Then thefork ofc{\displaystyle c} andd{\displaystyle d} is given by[18]c(<)d := c;aT d;bT.{\displaystyle c\,(<)\,d~\mathrel {:=} ~c\mathbin {;} a^{\textsf {T}}\cap \ d\mathbin {;} b^{\textsf {T}}.}

Another form of composition of relations, which applies to generaln{\displaystyle n}-place relations forn2,{\displaystyle n\geq 2,} is thejoin operation ofrelational algebra. The usual composition of two binary relations as defined here can be obtained by taking their join, leading to a ternary relation, followed by a projection that removes the middle component. For example, in thequery languageSQL there is the operationjoin (SQL).

See also

[edit]

Notes

[edit]
  1. ^Bjarni Jónsson (1984) "Maximal Algebras of Binary Relations", inContributions to Group Theory, K.I. Appel editorAmerican Mathematical SocietyISBN 978-0-8218-5035-0
  2. ^abcGunther Schmidt (2011)Relational Mathematics, Encyclopedia of Mathematics and its Applications, vol. 132,Cambridge University PressISBN 978-0-521-76268-7
  3. ^A. De Morgan (1860) "On the Syllogism: IV and on the Logic of Relations"
  4. ^abDaniel D. Merrill (1990)Augustus De Morgan and the Logic of Relations, page 121,Kluwer AcademicISBN 9789400920477
  5. ^abcGunther Schmidt & Thomas Ströhlein (1993)Relations and Graphs,Springer books
  6. ^Ernst Schröder (1895)Algebra und Logik der Relative
  7. ^Paul Taylor (1999).Practical Foundations of Mathematics. Cambridge University Press. p. 24.ISBN 978-0-521-63107-5. A free HTML version of the book is available athttp://www.cs.man.ac.uk/~pt/Practical_Foundations/
  8. ^Michael Barr & Charles Wells (1998)Category Theory for Computer ScientistsArchived 2016-03-04 at theWayback Machine, page 6, fromMcGill University
  9. ^Rick Nouwen and others (2016)Dynamic Semantics §2.2, fromStanford Encyclopedia of Philosophy
  10. ^John M. Howie(1995)Fundamentals of Semigroup Theory, page 16, LMS Monograph #12,Clarendon PressISBN 0-19-851194-9
  11. ^Kilp, Knauer & Mikhalev, p. 7
  12. ^ISO/IEC 13568:2002(E), p. 23
  13. ^SeeU+2A3E andU+2A1F on FileFormat.info
  14. ^"internal relations".nlab. Retrieved26 September 2023.
  15. ^Irving Copilowish (December 1948) "Matrix development of the calculus of relations",Journal of Symbolic Logic 13(4): 193–203Jstor link, quote from page 203
  16. ^Vaughn PrattThe Origins of the Calculus of Relations, fromStanford University
  17. ^De Morgan indicated contraries by lower case, conversion as M−1, and inclusion with )), so his notation wasnM1)) l.{\displaystyle nM^{-1}))\ l.}
  18. ^Gunther Schmidt and Michael Winter (2018):Relational Topology, page 26,Lecture Notes in Mathematics vol. 2208,Springer books,ISBN 978-3-319-74451-3

References

[edit]
  • M. Kilp, U. Knauer, A.V. Mikhalev (2000)Monoids, Acts and Categories with Applications to Wreath Products and Graphs, De Gruyter Expositions in Mathematics vol. 29,Walter de Gruyter,ISBN 3-11-015248-7.
Key concepts
Results
Properties & Types (list)
Constructions
Topology & Orders
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=Composition_of_relations&oldid=1271196823"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp