Template:Short description

In mathematics, a finitary relation over a sequence of sets Template:Nowrap is a subset of the Cartesian product Template:Nowrap; that is, it is a set of n-tuples Template:Nowrap, each being a sequence of elements xi in the corresponding Xi.Template:Sfn<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> Typically, the relation describes a possible connection between the elements of an n-tuple. For example, the relation "x is divisible by y and z" consists of the set of 3-tuples such that when substituted to x, y and z, respectively, make the sentence true.

The non-negative integer n that gives the number of "places" in the relation is called the arity, adicity or degree of the relation. A relation with n "places" is variously called an n-ary relation, an n-adic relation or a relation of degree n. Relations with a finite number of places are called finitary relations (or simply relations if the context is clear). It is also possible to generalize the concept to infinitary relations with infinite sequences.Template:Sfn

DefinitionsEdit

<templatestyles src="Template:Blockquote/styles.css" />

When two objects, qualities, classes, or attributes, viewed together by the mind, are seen under some connexion, that connexion is called a relation.{{#if:Augustus De MorganTemplate:Sfn|{{#if:|}}

}}

{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Blockquote with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | 4 | 5 | author | by | char | character | cite | class | content | multiline | personquoted | publication | quote | quotesource | quotetext | sign | source | style | text | title | ts }}

Definition
R is an n-ary relation on sets Template:Nowrap is given by a subset of the Cartesian product Template:Nowrap.Template:Sfn

Since the definition is predicated on the underlying sets Template:Nowrap, R may be more formally defined as the (Template:Nowrap)-tuple Template:Nowrap, where G, called the graph of R, is a subset of the Cartesian product Template:Nowrap.

As is often done in mathematics, the same symbol is used to refer to the mathematical object and an underlying set, so the statement Template:Nowrap is often used to mean Template:Nowrap is read "x1, ..., xn are R-related" and are denoted using prefix notation by Template:Nowrap and using postfix notation by Template:Nowrap. In the case where R is a binary relation, those statements are also denoted using infix notation by Template:Nowrap.

The following considerations apply:

Let a Boolean domain B be a two-element set, say, Template:Nowrap, whose elements can be interpreted as logical values, typically Template:Nowrap and Template:Nowrap. The characteristic function of R, denoted by χR, is the Boolean-valued function Template:Nowrap, defined by Template:Nowrap if Template:Nowrap and Template:Nowrap otherwise.

In applied mathematics, computer science and statistics, it is common to refer to a Boolean-valued function as an n-ary predicate. From the more abstract viewpoint of formal logic and model theory, the relation R constitutes a logical model or a relational structure, that serves as one of many possible interpretations of some n-ary predicate symbol.

Because relations arise in many scientific disciplines, as well as in many branches of mathematics and logic, there is considerable variation in terminology. Aside from the set-theoretic extension of a relational concept or term, the term "relation" can also be used to refer to the corresponding logical entity, either the logical comprehension, which is the totality of intensions or abstract properties shared by all elements in the relation, or else the symbols denoting these elements and intensions. Further, some writers of the latter persuasion introduce terms with more concrete connotations (such as "relational structure" for the set-theoretic extension of a given relational concept).

Specific values of nEdit

NullaryEdit

Template:Main article Nullary (0-ary) relations count only two members: the empty nullary relation, which never holds, and the universal nullary relation, which always holds. This is because there is only one 0-tuple, the empty tuple (), and there are exactly two subsets of the (singleton) set of all 0-tuples. They are sometimes useful for constructing the base case of an induction argument.

UnaryEdit

Unary (1-ary) relations can be viewed as a collection of members (such as the collection of Nobel laureates) having some property (such as that of having been awarded the Nobel Prize).

Every nullary function is a unary relation.

BinaryEdit

Binary (2-ary) relations are the most commonly studied form of finitary relations. Homogeneous binary relations (where Template:Nowrap) include

Heterogeneous binary relations include

TernaryEdit

Ternary (3-ary) relations include, for example, the binary functions, which relate two inputs and the output. All three of the domains of a homogeneous ternary relation are the same set.

ExampleEdit

Consider the ternary relation R "x thinks that y likes z" over the set of people Template:Nowrap, defined by:

Template:Nowrap.

R can be represented equivalently by the following table:

Relation R "x thinks that y likes z"
x y z
Alice Bob Denise
Charles Alice Bob
Charles Charles Alice
Denise Denise Denise

Here, each row represents a triple of R, that is it makes a statement of the form "x thinks that y likes z". For instance, the first row states that "Alice thinks that Bob likes Denise". All rows are distinct. The ordering of rows is insignificant but the ordering of columns is significant.Template:Sfn

The above table is also a simple example of a relational database, a field with theory rooted in relational algebra and applications in data management.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> Computer scientists, logicians, and mathematicians, however, tend to have different conceptions what a general relation is, and what it is consisted of. For example, databases are designed to deal with empirical data, which is by definition finite, whereas in mathematics, relations with infinite arity (i.e., infinitary relation) are also considered.

HistoryEdit

Template:See also

The logician Augustus De Morgan, in work published around 1860, was the first to articulate the notion of relation in anything like its present sense. He also stated the first formal results in the theory of relations (on De Morgan and relations, see Merrill 1990).

Charles Peirce, Gottlob Frege, Georg Cantor, Richard Dedekind and others advanced the theory of relations. Many of their ideas, especially on relations called orders, were summarized in The Principles of Mathematics (1903) where Bertrand Russell made free use of these results.

In 1970, Edgar Codd proposed a relational model for databases, thus anticipating the development of data base management systems.Template:Sfn

See alsoEdit

Template:Div col

Template:Div col end

ReferencesEdit

Template:Reflist

BibliographyEdit

Template:Refbegin

Template:Refend

Template:Mathematical logic Template:Authority control