HOME

TheInfoList



OR:

In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
and
abstract algebra In mathematics, more specifically algebra, abstract algebra or modern algebra is the study of algebraic structures, which are set (mathematics), sets with specific operation (mathematics), operations acting on their elements. Algebraic structur ...
, a relation algebra is a residuated Boolean algebra expanded with an
involution Involution may refer to: Mathematics * Involution (mathematics), a function that is its own inverse * Involution algebra, a *-algebra: a type of algebraic structure * Involute, a construction in the differential geometry of curves * Exponentiati ...
called converse, a
unary operation In mathematics, a unary operation is an operation with only one operand, i.e. a single input. This is in contrast to ''binary operations'', which use two operands. An example is any function , where is a set; the function is a unary operation ...
. The motivating example of a relation algebra is the algebra 2''X'' 2 of all
binary relation In mathematics, a binary relation associates some elements of one Set (mathematics), set called the ''domain'' with some elements of another set called the ''codomain''. Precisely, a binary relation over sets X and Y is a set of ordered pairs ...
s on a set ''X'', that is, subsets of the cartesian square ''X''2, with ''R''•''S'' interpreted as the usual composition of binary relations ''R'' and ''S'', and with the converse of ''R'' as the
converse relation In mathematics, the converse of a binary relation is the relation that occurs when the order of the elements is switched in the relation. For example, the converse of the relation 'child of' is the relation 'parent of'. In formal terms ...
. Relation algebra emerged in the 19th-century work of
Augustus De Morgan Augustus De Morgan (27 June 1806 – 18 March 1871) was a British mathematician and logician. He is best known for De Morgan's laws, relating logical conjunction, disjunction, and negation, and for coining the term "mathematical induction", the ...
and Charles Peirce, which culminated in the
algebraic logic In mathematical logic, algebraic logic is the reasoning obtained by manipulating equations with Free variables and bound variables, free variables. What is now usually called classical algebraic logic focuses on the identification and algebraic de ...
of Ernst Schröder. The equational form of relation algebra treated here was developed by
Alfred Tarski Alfred Tarski (; ; born Alfred Teitelbaum;School of Mathematics and Statistics, University of St Andrews ''School of Mathematics and Statistics, University of St Andrews''. January 14, 1901 – October 26, 1983) was a Polish-American logician ...
and his students, starting in the 1940s. Tarski and Givant (1987) applied relation algebra to a variable-free treatment of
axiomatic set theory Set theory is the branch of mathematical logic that studies Set (mathematics), sets, which can be informally described as collections of objects. Although objects of any kind can be collected into a set, set theory – as a branch of mathema ...
, with the implication that mathematics founded on set theory could itself be conducted without variables.


Definition

A relation algebra is an
algebraic structure In mathematics, an algebraic structure or algebraic system consists of a nonempty set ''A'' (called the underlying set, carrier set or domain), a collection of operations on ''A'' (typically binary operations such as addition and multiplicatio ...
equipped with the Boolean operations of conjunction ''x''∧''y'', disjunction ''x''∨''y'', and negation ''x'', the Boolean constants 0 and 1, the relational operations of
composition Composition or Compositions may refer to: Arts and literature *Composition (dance), practice and teaching of choreography * Composition (language), in literature and rhetoric, producing a work in spoken tradition and written discourse, to include ...
''x''•''y'' and converse ''x''˘, and the relational constant , such that these operations and constants satisfy certain equations constituting an axiomatization of a calculus of relations. Roughly, a relation algebra is to a system of binary relations on a set containing the empty (0), universal (1), and identity relations and closed under these five operations as a group is to a system of
permutation In mathematics, a permutation of a set can mean one of two different things: * an arrangement of its members in a sequence or linear order, or * the act or process of changing the linear order of an ordered set. An example of the first mean ...
s of a set containing the identity permutation and closed under
composition Composition or Compositions may refer to: Arts and literature *Composition (dance), practice and teaching of choreography * Composition (language), in literature and rhetoric, producing a work in spoken tradition and written discourse, to include ...
and inverse. However, the first-order
theory A theory is a systematic and rational form of abstract thinking about a phenomenon, or the conclusions derived from such thinking. It involves contemplative and logical reasoning, often supported by processes such as observation, experimentation, ...
of relation algebras is not complete for such systems of binary relations. Following Jónsson and Tsinakis (1993) it is convenient to define additional operations ''x'' ◁ ''y'' = ''x'' • ''y''˘, and, dually, ''x'' ▷ ''y'' = ''x''˘ • ''y''. Jónsson and Tsinakis showed that , and that both were equal to ''x''˘. Hence a relation algebra can equally well be defined as an algebraic structure . The advantage of this
signature A signature (; from , "to sign") is a depiction of someone's name, nickname, or even a simple "X" or other mark that a person writes on documents as a proof of identity and intent. Signatures are often, but not always, Handwriting, handwritt ...
over the usual one is that a relation algebra can then be defined in full simply as a residuated Boolean algebra for which is an involution, that is, . The latter condition can be thought of as the relational counterpart of the equation 1/(1/''x'') = ''x'' for ordinary arithmetic reciprocal, and some authors use reciprocal as a synonym for converse. Since residuated Boolean algebras are axiomatized with finitely many identities, so are relation algebras. Hence the latter form a variety, the variety RA of relation algebras. Expanding the above definition as equations yields the following finite axiomatization.


Axioms

The axioms B1-B10 below are adapted from Givant (2006: 283), and were first set out by Tarski in 1948. ''L'' is a
Boolean algebra In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variable (mathematics), variables are the truth values ''true'' and ''false'', usually denot ...
under binary
disjunction In logic, disjunction (also known as logical disjunction, logical or, logical addition, or inclusive disjunction) is a logical connective typically notated as \lor and read aloud as "or". For instance, the English language sentence "it is ...
, ∨, and unary complementation (): :B1: :B2: :B3: This axiomatization of Boolean algebra is due to Huntington (1933). Note that the meet of the implied Boolean algebra is ''not'' the • operator (even though it distributes over ∨ like a meet does), nor is the 1 of the Boolean algebra the constant. ''L'' is a
monoid In abstract algebra, a monoid is a set equipped with an associative binary operation and an identity element. For example, the nonnegative integers with addition form a monoid, the identity element being . Monoids are semigroups with identity ...
under binary
composition Composition or Compositions may refer to: Arts and literature *Composition (dance), practice and teaching of choreography * Composition (language), in literature and rhetoric, producing a work in spoken tradition and written discourse, to include ...
(•) and
nullary In logic Logic is the study of correct reasoning. It includes both formal and informal logic. Formal logic is the study of deductively valid inferences or logical truths. It examines how conclusions follow from premises based on the ...
identity : :B4: :B5: Unary converse ()˘ is an involution with respect to composition: :B6: :B7: Axiom B6 defines conversion as an
involution Involution may refer to: Mathematics * Involution (mathematics), a function that is its own inverse * Involution algebra, a *-algebra: a type of algebraic structure * Involute, a construction in the differential geometry of curves * Exponentiati ...
, whereas B7 expresses the antidistributive property of conversion relative to composition. Converse and composition distribute over disjunction: :B8: :B9: B10 is Tarski's equational form of the fact, discovered by
Augustus De Morgan Augustus De Morgan (27 June 1806 – 18 March 1871) was a British mathematician and logician. He is best known for De Morgan's laws, relating logical conjunction, disjunction, and negation, and for coining the term "mathematical induction", the ...
, that ''A'' • ''B'' ≤ ''C'' ''A''˘ • ''C'' ≤ ''B'' ''C'' • ''B''˘ ≤ ''A''. :B10: These axioms are ZFC theorems; for the purely Boolean B1-B3, this fact is trivial. After each of the following axioms is shown the number of the corresponding theorem in Chapter 3 of Suppes (1960), an exposition of ZFC: B4 27, B5 45, B6 14, B7 26, B8 16, B9 23.


Expressing properties of binary relations in RA

The following table shows how many of the usual properties of
binary relation In mathematics, a binary relation associates some elements of one Set (mathematics), set called the ''domain'' with some elements of another set called the ''codomain''. Precisely, a binary relation over sets X and Y is a set of ordered pairs ...
s can be expressed as succinct RA equalities or inequalities. Below, an inequality of the form is shorthand for the Boolean equation . The most complete set of results of this nature is Chapter C of Carnap (1958), where the notation is rather distant from that of this entry. Chapter 3.2 of Suppes (1960) contains fewer results, presented as ZFC theorems and using a notation that more resembles that of this entry. Neither Carnap nor Suppes formulated their results using the RA of this entry, or in an equational manner.


Expressive power

The
metamathematics Metamathematics is the study of mathematics itself using mathematical methods. This study produces metatheory, metatheories, which are Mathematical theory, mathematical theories about other mathematical theories. Emphasis on metamathematics (and ...
of RA are discussed at length in Tarski and Givant (1987), and more briefly in Givant (2006). RA consists entirely of equations manipulated using nothing more than uniform replacement and the substitution of equals for equals. Both rules are wholly familiar from school mathematics and from
abstract algebra In mathematics, more specifically algebra, abstract algebra or modern algebra is the study of algebraic structures, which are set (mathematics), sets with specific operation (mathematics), operations acting on their elements. Algebraic structur ...
generally. Hence RA proofs are carried out in a manner familiar to all mathematicians, unlike the case in
mathematical logic Mathematical logic is the study of Logic#Formal logic, formal logic within mathematics. Major subareas include model theory, proof theory, set theory, and recursion theory (also known as computability theory). Research in mathematical logic com ...
generally. RA can express any (and up to
logical equivalence In logic and mathematics, statements p and q are said to be logically equivalent if they have the same truth value in every model. The logical equivalence of p and q is sometimes expressed as p \equiv q, p :: q, \textsfpq, or p \iff q, depending ...
, exactly the)
first-order logic First-order logic, also called predicate logic, predicate calculus, or quantificational logic, is a collection of formal systems used in mathematics, philosophy, linguistics, and computer science. First-order logic uses quantified variables over ...
(FOL) formulas containing no more than three variables. (A given variable can be quantified multiple times and hence quantifiers can be nested arbitrarily deeply by "reusing" variables.) Surprisingly, this fragment of FOL suffices to express Peano arithmetic and almost all
axiomatic set theories Set theory is the branch of mathematical logic that studies sets, which can be informally described as collections of objects. Although objects of any kind can be collected into a set, set theory – as a branch of mathematics – is mostly ...
ever proposed. Hence RA is, in effect, a way of algebraizing nearly all mathematics, while dispensing with FOL and its connectives, quantifiers, turnstiles, and
modus ponens In propositional logic, (; MP), also known as (), implication elimination, or affirming the antecedent, is a deductive argument form and rule of inference. It can be summarized as "''P'' implies ''Q.'' ''P'' is true. Therefore, ''Q'' must ...
. Because RA can express Peano arithmetic and set theory,
Gödel's incompleteness theorems Gödel's incompleteness theorems are two theorems of mathematical logic that are concerned with the limits of in formal axiomatic theories. These results, published by Kurt Gödel in 1931, are important both in mathematical logic and in the phi ...
apply to it; RA is incomplete, incompletable, and undecidable. (N.B. The Boolean algebra fragment of RA is complete and decidable.) The representable relation algebras, forming the class RRA, are those relation algebras
isomorphic In mathematics, an isomorphism is a structure-preserving mapping or morphism between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between the ...
to some relation algebra consisting of binary relations on some set, and closed under the intended interpretation of the RA operations. It is easily shown, e.g. using the method of pseudoelementary classes, that RRA is a quasivariety, that is, axiomatizable by a universal Horn theory. In 1950, Roger Lyndon proved the existence of equations holding in RRA that did not hold in RA. Hence the variety generated by RRA is a proper subvariety of the variety RA. In 1955,
Alfred Tarski Alfred Tarski (; ; born Alfred Teitelbaum;School of Mathematics and Statistics, University of St Andrews ''School of Mathematics and Statistics, University of St Andrews''. January 14, 1901 – October 26, 1983) was a Polish-American logician ...
showed that RRA is itself a variety. In 1964, Donald Monk showed that RRA has no finite axiomatization, unlike RA which is finitely axiomatized by definition.


Q-relation algebras

An RA is a Q-relation algebra (QRA) if, in addition to B1-B10, there exist some and such that (Tarski and Givant 1987: §8.4): :Q0: :Q1: :Q2: Essentially these axioms imply that the universe has a (non-surjective) pairing relation whose projections are and . It is a theorem that every QRA is a RRA (Proof by Maddux, see Tarski & Givant 1987: 8.4(iii)). Every QRA is representable (Tarski and Givant 1987). That not every relation algebra is representable is a fundamental way RA differs from QRA and Boolean algebras, which, by
Stone's representation theorem for Boolean algebras In mathematics, Stone's representation theorem for Boolean algebras states that every Boolean algebra is isomorphic to a certain field of sets. The theorem is fundamental to the deeper understanding of Boolean algebra that emerged in the first ha ...
, are always representable as sets of subsets of some set, closed under union,
intersection In mathematics, the intersection of two or more objects is another object consisting of everything that is contained in all of the objects simultaneously. For example, in Euclidean geometry, when two lines in a plane are not parallel, their ...
, and complement.


Examples

# Any Boolean algebra can be turned into a RA by interpreting conjunction as composition (the monoid multiplication •), i.e. ''x'' • ''y'' is defined as ''x''∧''y''. This interpretation requires that converse interpret identity (''ў'' = ''y''), and that both residuals ''y''\''x'' and ''x''/''y'' interpret the conditional ''y'' → ''x'' (i.e., ¬''y'' ∨ ''x''). # The motivating example of a relation algebra depends on the definition of a binary relation ''R'' on a set ''X'' as any subset , where is the cartesian square of ''X''. The
power set In mathematics, the power set (or powerset) of a set is the set of all subsets of , including the empty set and itself. In axiomatic set theory (as developed, for example, in the ZFC axioms), the existence of the power set of any set is po ...
2''X'' 2 consisting of all binary relations on ''X'' is a Boolean algebra. While 2''X'' 2 can be made a relation algebra by taking , as per example (1) above, the standard interpretation of • is instead . That is, the
ordered pair In mathematics, an ordered pair, denoted (''a'', ''b''), is a pair of objects in which their order is significant. The ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a''), unless ''a'' = ''b''. In contrast, the '' unord ...
belongs to the relation ''R'' • ''S'' just when there exists in such that and . This interpretation uniquely determines ''R'' \''S'' as consisting of all pairs such that for all , if ''xRy'' then ''xSz''. Dually, ''S''/''R'' consists of all pairs such that for all ''z'' in ''X'', if ''yRz'' then ''xSz''. The translation then establishes the converse ''R''˘ of ''R'' as consisting of all pairs such that . # An important generalization of the previous example is the power set 2''E'' where is any
equivalence relation In mathematics, an equivalence relation is a binary relation that is reflexive, symmetric, and transitive. The equipollence relation between line segments in geometry is a common example of an equivalence relation. A simpler example is equ ...
on the set ''X''. This is a generalization because is itself an equivalence relation, namely the complete relation consisting of all pairs. While 2''E'' is not a subalgebra of 2''X'' 2 when (since in that case it does not contain the relation , the top element 1 being ''E'' instead of ), it is nevertheless turned into a relation algebra using the same definitions of the operations. Its importance resides in the definition of a ''representable relation algebra'' as any relation algebra isomorphic to a subalgebra of the relation algebra 2''E'' for some equivalence relation ''E'' on some set. The previous section says more about the relevant metamathematics. # Let be a group. Then the power set 2^G is a relation algebra with the obvious Boolean algebra operations, composition given by the product of group subsets, the converse by the inverse subset (A^ = \), and the identity by the singleton subset \. There is a relation algebra homomorphism embedding 2^G in 2^ which sends each subset A \subset G to the relation R_A = \. The image of this homomorphism is the set of all right-invariant relations on . # If group sum or product interprets composition, group inverse interprets converse, group identity interprets , and if ''R'' is a
one-to-one correspondence In mathematics, a bijection, bijective function, or one-to-one correspondence is a function between two sets such that each element of the second set (the codomain) is the image of exactly one element of the first set (the domain). Equivale ...
, so that , then ''L'' is a group as well as a
monoid In abstract algebra, a monoid is a set equipped with an associative binary operation and an identity element. For example, the nonnegative integers with addition form a monoid, the identity element being . Monoids are semigroups with identity ...
. B4-B7 become well-known theorems of
group theory In abstract algebra, group theory studies the algebraic structures known as group (mathematics), groups. The concept of a group is central to abstract algebra: other well-known algebraic structures, such as ring (mathematics), rings, field ( ...
, so that RA becomes a proper extension of
group theory In abstract algebra, group theory studies the algebraic structures known as group (mathematics), groups. The concept of a group is central to abstract algebra: other well-known algebraic structures, such as ring (mathematics), rings, field ( ...
as well as of Boolean algebra.


Historical remarks

De Morgan founded RA in 1860, but C. S. Peirce took it much further and became fascinated with its philosophical power. The work of DeMorgan and Peirce came to be known mainly in the extended and definitive form Ernst Schröder gave it in Vol. 3 of his ''Vorlesungen'' (1890–1905). ''
Principia Mathematica The ''Principia Mathematica'' (often abbreviated ''PM'') is a three-volume work on the foundations of mathematics written by the mathematician–philosophers Alfred North Whitehead and Bertrand Russell and published in 1910, 1912, and 1 ...
'' drew strongly on Schröder's RA, but acknowledged him only as the inventor of the notation. In 1912, Alwin Korselt proved that a particular formula in which the quantifiers were nested four deep had no RA equivalent.Korselt did not publish his finding. It was first published in Leopold Loewenheim (1915) "Über Möglichkeiten im Relativkalkül," '' Mathematische Annalen'' 76: 447–470. Translated as "On possibilities in the calculus of relatives" in Jean van Heijenoort, 1967. ''A Source Book in Mathematical Logic, 1879–1931''. Harvard Univ. Press: 228–251. This fact led to a loss of interest in RA until Tarski (1941) began writing about it. His students have continued to develop RA down to the present day. Tarski returned to RA in the 1970s with the help of Steven Givant; this collaboration resulted in the monograph by Tarski and Givant (1987), the definitive reference for this subject. For more on the history of RA, see Maddux (1991, 2006).


Software


RelMICS / Relational Methods in Computer Science
maintained b
Wolfram Kahl
* Carsten Sinz
ARA / An Automatic Theorem Prover for Relation Algebras

Stef Joosten
Relation Algebra as programming language using the Ampersand compiler
Journal of Logical and Algebraic Methods in Programming
Volume 100, April 2018, Pages 113–129. (see also https://ampersandtarski.github.io/)


See also

*
Algebraic logic In mathematical logic, algebraic logic is the reasoning obtained by manipulating equations with Free variables and bound variables, free variables. What is now usually called classical algebraic logic focuses on the identification and algebraic de ...
*
Allegory (category theory) In the mathematical field of category theory, an allegory is a category (mathematics), category that has some of the structure of the category Rel of Set (mathematics), sets and binary relations between them. Allegories can be used as an abstraction ...
*
Binary relation In mathematics, a binary relation associates some elements of one Set (mathematics), set called the ''domain'' with some elements of another set called the ''codomain''. Precisely, a binary relation over sets X and Y is a set of ordered pairs ...
*
Cartesian product In mathematics, specifically set theory, the Cartesian product of two sets and , denoted , is the set of all ordered pairs where is an element of and is an element of . In terms of set-builder notation, that is A\times B = \. A table c ...
* Cartesian square *
Cylindric algebra In mathematics, the notion of cylindric algebra, developed by Alfred Tarski, arises naturally in the Algebraic logic, algebraization of first-order logic with equality. This is comparable to the role Boolean algebra (structure), Boolean algebras pl ...
s * Extension in logic *
Involution Involution may refer to: Mathematics * Involution (mathematics), a function that is its own inverse * Involution algebra, a *-algebra: a type of algebraic structure * Involute, a construction in the differential geometry of curves * Exponentiati ...
* Logic of relatives *
Logical matrix A logical matrix, binary matrix, relation matrix, Boolean matrix, or (0, 1)-matrix is a matrix with entries from the Boolean domain Such a matrix can be used to represent a binary relation between a pair of finite sets. It is an important tool in ...
* Predicate functor logic * Quantale * Relation * Relation construction *
Relational calculus The relational calculus consists of two calculi, the tuple relational calculus and the domain relational calculus, that is part of the relational model for databases and provide a declarative way to specify database queries. The raison d'être ...
*
Relational algebra In database theory, relational algebra is a theory that uses algebraic structures for modeling data and defining queries on it with well founded semantics (computer science), semantics. The theory was introduced by Edgar F. Codd. The main applica ...
* Residuated Boolean algebra * Spatial-temporal reasoning * Theory of relations * Triadic relation


Footnotes


References

* * * * * * * * * * Schein, Boris M. (1970) "Relation algebras and function semigroups", Semigroup Forum 1: 1–62 * * * * {{cite book, last1=Tarski , first1=Alfred , last2=Givant, first2=Steven, year=1987, title=A Formalization of Set Theory without Variables, location=Providence RI, publisher=American Mathematical Society, isbn=9780821810415 , url=https://books.google.com/books?id=BgviDgAAQBAJ&q=%22A+Formalization+of+Set+Theory+without+Variables%22&pg=PP1


External links

*Yohji AKAMA, Yasuo Kawahara, and Hitoshi Furusawa,
Constructing Allegory from Relation Algebra and Representation Theorems.
*Richard Bird, Oege de Moor, Paul Hoogendijk,

* R.P. de Freitas and Viana,
A Completeness Result for Relation Algebra with Binders.

Peter Jipsen

Relation algebras
!
Relation algebras
I
Mathematical structures.
If there are problems with LaTeX, see an old HTML versio
here.
broken links--> **
Foundations of Relations and Kleene Algebra.
**
Computer Aided Investigations of Relation Algebras.
**

*
Vaughan Pratt Vaughan Pratt (born April 12, 1944) is a Professor, Professor Emeritus at Stanford University, who was an early pioneer in the field of computer science. Since 1969, Pratt has made several contributions to foundational areas such as search algorit ...
: **
Origins of the Calculus of Binary Relations.
A historical treatment. **
The Second Calculus of Binary Relations.
* Priss, Uta: **
An FCA interpretation of Relation Algebra.
**

Links to publications and software
Kahl, Wolfram
and
Gunther Schmidt Gunther Schmidt (born 1939, Rüdersdorf) is a Germans, German mathematician who works also in informatics. Life Schmidt began studying Mathematics in 1957 at Göttingen University. His academic teachers were in particular Kurt Reidemeister, W ...

Exploring (Finite) Relation Algebras Using Tools Written in Haskell.
an

from
McMaster University McMaster University (McMaster or Mac) is a public research university in Hamilton, Ontario, Canada. The main McMaster campus is on of land near the residential neighbourhoods of Ainslie Wood, Ontario, Ainslie Wood and Westdale, Ontario, Westd ...
. Boolean algebra Algebraic logic Mathematical axioms Mathematical logic Mathematical relations