article

In mathematics, relation algebra (RA) is an algebraic structure, a proper extension of the two-element Boolean algebra 2 intended to capture the mathematical properties of binary relations. RA consists of two binary operations, juxtaposition and relative product, two unary operations, complementation and converse, and the constant 1. Given any set, RA stands to its Cartesian square as Boolean algebra stands to its power set.

Relational algebra is a distinct concept mainly of interest to computer science.

Definition


For an introduction to RA, see Maddux (2006); for a more advanced treatement; see Tarski and Givant (1987). In what follows, Greek letters are part of the metalanguage and denote syntactical variables ranging over formulae. Upper case Latin letters from the start of the alphabet denote sets. Lower case Latin letters from the end of the alphabet range over the members of the universal set A. A may, of course, be coextensive with the universe in first-order logic.

The ordered pair (x, y) has first element x and second element y. Let B be the Cartesian square of A, namely the set of all possible ordered pairs constructible from the members of A, i.e., B = A × A. R and S denote arbitrary binary relations, and E denotes the set membership relation, namely if xB, then (x,B)∈E. Just as Boolean algebra is the algebra of the power set of any set, RA is the algebra of the Cartesian square of that set. Because all members of B are ordered pairs, the scope of RA is limited to binary relations but this is not a serious limitation, simply because a single binary relation E suffices for set theory, whose enormous expressive power is beyond question.

Syntax: The notation described here for the binary and unary operations of RA is not the conventional one. The syntax of 2 is:

() is often written as 1, and (()) as 0.

To this Boolean syntax, we add syntax peculiar to RA:

  • 1 is an atom;
  • If φ, δ, and γ are formulae, so are 〈φ〉, *.
This syntax shares with Polish notation the advantage of not requiring any bracketing to establish the order of operands. In the terminology of universal algebra, RA is a <B,--,*,(-),〈-〉,1> algebra of type <2,2,1,1,0>, with B being any set that is the Cartesian square of another set.

Boolean Semantics: The intended interpretation of (-) is Boolean complementation; that of juxtaposition is one of Boolean meet or join. If φδ denotes the meet of φ and δ, ((φ)(δ)) denotes their join, and vice versa. Complementation with nothing in its scope denotes one of the two lattice bounds Boolean algebra requires. On the Boolean syntax and semantics employed here, see laws of form.

RA Semantics: 1 denotes the identity relation, consisting of all ordered pairs whose left and right members are identical. 0=(1) denotes the diversity relation, namely all ordered pairs whose left and right members are not identical. If (x,y)∈R, then (y,x)∈〈R〉. If, additionally, (y,z)∈S, then (x,z)∈Hence the intended interpretations of 〈-〉 and converse and relative product, for which the customary notations are L\breve{} and R|S, respectively. The period serves to eliminate ambiguities that would otherwise arise when juxtaposition and relative product interact, as in RA6 below. The notation [φγ.δ" target="_blank" >* denotes the relative product of δ with the juxtaposition of φ and γ.

Axioms


The axioms RA1-RA7 are those of Tarski and Givant (1987: 235), translated into the notation set out above. BA1-BA3 are a basis for 2 set out in two-element Boolean algebra.

LabelAxiomRemarks
Axioms for the Boolean algebra 2
BA1φδγ=δγφJuxtaposition commutes, associates.
BA2(φ)φ=()2 is a bounded lattice.
BA3φ(φδ) = φ(δ)
Axioms Peculiar to RA.Converse :
RA1 〈〈φ〉〉=φ* Involution. ((φ)) = φ is a theorem of 2.
RA2〈φδ〉=〈φ〉〈δ〉* Preserves juxtaposition. Contrast with RA5 below.
Relative Product :
RA3φδγ=φδγ* Associates.
RA4*=** Has 1 as identity element.
RA5*〉=** Is preserved by converse, except transposed. Contrast with RA2.
RA6*=*** Distributes over juxtaposition.
RA7*)]〈δ〉=〈δ〉* Is residuated.
BA1-BA3 define a Boolean lattice; ()=(1)1, an instance of BA2, and (()) are the associated lattice bounds. BA1-BA3 may be replaced by any set of axioms for Boolean algebra. By 〈x〉≤x and 〈()〉=(), both easy theorems, and by RA1 and RA2, converse is an interior operator. It then follows that 〈B,--,(-),〈-〉,()〉 is an interior algebra.

That juxtaposition commutes and associates are easy consequences of BA1 and the theorem φφ=φ. Relative product likewise associates (RA1), but commutes if (RA4) and only if one of the operands is 1. Hence 'and '' can bracket any number of operands, as long as it is understood that the order of operands (except, trivially, 1) cannot be altered. Note that φ and δ in RA2 may be freely interchanged on either side of '=', while the order of φ and δ in RA5 cannot be altered in this way.

RA is a semiring:

  • (())φ=φ is a theorem of 2. Hence juxtaposition and (()) form a commutative monoid;
  • By RA3 and RA4, <B,*,1> is a monoid;
  • By RA6, relative product distributes over juxtaposition. Moreover, δ.φγ]=** is an RA theorem (Tarski and Givant 1987: 49 v);
  • *=*=(()) is an RA theorem (xiii).
By virtue of RA7:
  • RA is a residuated lattice, except that the usual definition of such lattices posits two binary operations in addition to meet and join, rather than one binary and one unary, as here;
  • Relative product interacts with the other 3 operations via the cyclic law: = *φ. Contrast with the Jacobi identity.

The unary operation 〈-〉 can be defined in terms of 1 and as follows. Redefine *" target="_blank" >or 1δ" target="_blank" >*" target="_blank" >⇔ 〈δ〉 and [φ1δ ⇔ [φδ.

Recall that E is the set membership relation, so that ER. If at least one of the following two axioms applies to E:

then 1 and () can be defined in terms of E, and (-) as follows: 1=([E(E)) and ()=(E)E, the latter being a consequence of BA2. On these and other reductions in the primitives of RA, see Tarski and Givant (1987: §§5.2-3).

Expressive power


The metamathematics of RA are discussed at length in Tarski and Givant (1987). 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 generally. Hence RA proofs are carried out in a manner familiar to all mathematicians, unlike the case in mathematical logic generally. RA can express any (and in fact, up to logical equivalence, exactly the) first-order logic (FOL) formulas containing no more than three variables (note that the latter may be reused by different, nested, quantifiers). Surprisingly, this fragment of FOL suffices to express Peano arithmetic and almost all axiomatic set theories 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.

Because RA has the expressive power of Peano arithmetic and set theory, the classic theorems of Gödel apply to it. (N.B. The Boolean algebra fragment of RA is decidable.) In 1950, Roger Lyndon proved that there are statements true in every RA that cannot be proved from the above axioms. In 1964, Donald Monk further proved that there cannot exist a finite set of axioms from which all true equations of RA can be derived.

Historical Remarks


DeMorgan founded RA in 1860, but Charles 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 his Vorlesungen (1890-1905). Principia Mathematica drew strongly on Schröder's RA, but acknowledged him only as the inventor of the notation. The foundational paper for RA as presented here is Tarski (1941); he devised the above axioms, and he and his students have continued to write on RA down to the present day. Much of the content of Tarski and Givant (1987) was worked out by Tarski alone in the 1940s, who returned to the subject in the 1970s with the help of Steven Givant. For more on the history of RA, see Maddux (2006).

The computer science formalism relational algebra was pioneered around 1970 by Edgar F. Codd. His name appears nowhere in Tarski and Givant (1987).

See also


References


  • Carnap, Rudolf, 1958. Introduction to Symbolic Logic with Applications, Dover.
  • Halmos, P. R., 1960. Naive Set Theory. Van Nostrand.
  • Lucas, John Randolph, 1999. Conceptual Roots of Mathematics. Routledge.
  • Maddux, Roger D., 2006. Relation Algebras, vol. 150 in Studies in Logic and the Foundations of Mathematics. Elsevier Science.
  • Alfred Tarski,1941, "On the calculus of relations," Journal of Symbolic Logic 6: 73-89.

  • --, and Givant, Steven, 1987. A Formalization of Set Theory without Variables. Providence RI: American Mathematical Society.

External links


Algebra | Mathematical logic | Set theory

 

This article is licensed under the GNU Free Documentation License. It uses material from the "Relation algebra".

Home Pageartsbusinesscomputersgameshealthhospitalshomekids & teensnewsphysiciansrecreationreferenceregionalscienceshoppingsocietysportsworld