Relationship theory in mathematics and in a number of subject areas (decision making, knowledge and data bases, mathematical linguistics, process modeling, etc.) plays a very noticeable role, but is still far from complete. As in other branches of mathematical knowledge, her well-known results relate to a greater extent to questions and problems of the existence of certain of its objects than to the problems of enumerating them. It would seem that any researcher in a specific branch of the theory should be interested in the general and complete picture of the objects of interest and their dependencies, to observe the full panorama. But alas, it is very problematic to do this, since no one has created or offers such a panorama (picture). Even the catalog of relations proposed in the work does not close the problem.
A simple example. Many years ago in the book [1 p. 207] I came across such a paragraph.
The theory of partially ordered sets still contains many unsolved problems. Even the question of the number of such sets that can be built from a given number n of elements does not yet exist if nโฅ6. Direct calculations only succeeded in establishing that if S (n) is the number of partially ordered sets, then S (2) = 3, S (3) = 19, S (4) = 219, S (5) = 4231, and the numbers S (n) for non-isomorphic sets were found only for n = 4 and n = 5 elements: Sn (4) = 16 and Sn (5) = 63.
About this writes the head of the department of Moscow State University Rybnikov K.A. I wanted to understand this deeper and it seemed that I could try to look for a solution, at least somehow expand the list, and most importantly - list the partial orders, see their scattering in reality with their properties. Just to hang the results on the wall. I confess that a lot of effort was expended, to develop a research program, create a workable model of partial order, write a program and debug it, computers were spinning the programmed algorithms for tens of hours. Someone's (from the greats) remark came to my mind that the basis of mathematics should have been not a number, but an order, then supposedly many theorems would have received simpler and more transparent proofs.
We have learned to calculate the number of relations over large sets-carriers and to enumerate the relations, but we failed to obtain strict formulas even for the number S (n). I remember this time as a period of intensive creative growth of my own and my colleagues, when after almost every output of the computer results and their analysis, ideas arose for modifying, improving the model, algorithms, corrections were made to test new hypotheses, but something significant (
What I managed to open (get) I give below in the text. By the way, the results of other foreign researchers coincided with ours, but they reported only the number S (n) and did not mention the enumeration of partial orders.
We started small. The complete list of binary relations for any n-carrier set is known and can be easily obtained. An answer was sought to the questions: how many, for a given n, there are relations with a fixed one property, with a pair of properties, with a triple, etc. The fact is that having this data, it was possible to build not enumeration, but direct algorithms for enumerating such relations that by following the Occam's Razor Rule, they do not produce extra essences.
Here we will talk about obtaining such results for binary relations (BR).
So, there is an n-set-carrier of BO and a complete list of all BOs, as well as a list of BO properties:
- reflexivity; antireflexivity; partial reflexivity;
- symmetry; antisymmetry; asymmetry; asymmetry;
- transitivity; anti-transitivity;
- weak order; strict order; partial order; perfect (linear);
- tolerance;
- equivalence;
- cyclicality;
- completeness.
Quantitative characteristics of the types of binary relations
Relationships can have not only one specific property, but also sets of pairs, triplets, etc. of properties. The use of such relationships in practice is a common situation. So, for example, each attitude of tolerance (indifference) has two properties: symmetry and reflexivity. This set of properties determines the type of tolerance relationship.
Another type of relationship arises from tolerance relations, if we require from such relations the feasibility of an extended list of properties: symmetry, reflexivity and transitivity. It is clear that perhaps not all tolerance relations will turn out to be transitive, but those that will have a set of the three named properties will form a new type of relations called equivalences.
The set of equivalence relations turns out to be nested in the set of tolerance relations. For example, in the catalog, these types of relations are highlighted by filling (8 tolerances and only 5 of them are equivalences). The question arises about the number of BOs with a set of properties or one of them.
Reflexivity
The relation ฮฑ = <, A> on the set A = {} is reflexive (has the property of reflexivity) if each pair () satisfies this relation. Here M is a graph (not a graph) of the relationship...
In other words, the main diagonal of the graph matrix, the ratio, is filled with ones. On a reflexive relation graph, all vertices have loops. The attitude is anti-reflective if for no not performed ... In this case, the matrix of the antireflexive relation ฮฑ on the main diagonal does not have a single unit, i.e. there are zeros, and the corresponding graph has no loops at any vertex.
Finally, a relation ฮฑ is non-reflective if for someis executed, but for others it is not. We will consider such relations to be partially reflexive. The matrix of non-reflective relation on the main diagonal contains partly ones, partly - zeros. The graph of such a non-reflective relation does not have loops at all vertices.
A classic example of a reflexive relation is the main diagonal of a matrix representation, the unit (E = ฮ) ratio, i.e. equality relation (in catalog no. 68). The graph of this ratio is formed by points (pairs) lying on the main diagonal of the matrix and the corresponding pairs, the graph does not contain any other points.
The matrix representation of this ratio corresponds to the identity matrix (E). The diagonal relation graph is formed by the vertices corresponding to the elements from the set A to which the loops are assigned. The diagonal relationship is often denoted by...
In the case of a reflexive relation, the corresponding graph is also reflexive, in the case of an antireflexive relation, its graph is antireflexive. If for some relation ฮฑ it is known that it is reflexive, then the complement แพฑ is always antireflexive, and...
For the antireflexive relation ฮฒ, it is true
Example 1 . The relation โค (no more) on the set N is reflexive, and the relation <(less) on the same set is antireflexive.
The attitude โbeing a sonโ is anti-reflective, since no one is his own son.
For practical purposes, it is sometimes necessary to count the number of reflexive relations available in the complete set of relations given on the set A with cardinality | A | = n.
Let us show how such a calculation can be performed. We will consider on the plane the matrix of the binary reflexive relation ฮฑ. It always contains all diagonal points.
Other points corresponding to pairs (i, j), the number of n ร n - n = n (n โ 1) of which, can be included in different composition and number k, k = 0 (1) (n ร n - n)into possible relationships, which, of course, will be reflective. By summing over k combinations from n (n-1) over k , the total number of reflexive relations is determined
where K = n (n-1) / 2 is the number of arcs (edges) in an n- vertex graph without loops.
The number of non-reflective relationships is defined as the difference between the total number of relationships on A and the number of reflexive ones.
It follows from this expression that the set of non-reflective relations contains in
The number of antireflexive relations from the set of nonreflexive ones is exactly equal to the number of reflexive ones, i.e.
Symmetry
By the property of symmetry, the entire set of relations is not divided into four classes: symmetric, asymmetric. The latter, in turn, fall into three classes: antisymmetric, asymmetric, and the remaining asymmetric.
The relation ฮฑ = <, A> on the set A is symmetric (it has the property of symmetry with respect to the line coinciding with the main diagonal of the graph ) if for some pair
On the graph of a symmetric relation, if a pair of vertices i and j is connected by an arc (i, j), then it is necessarily connected by an arc (j, i). A symmetric relation graph is a symmetric oriented, or simply undirected, ordinary graph.
The ratio ฮฑ is antisymmetric if from
The antisymmetric ratio matrix does not necessarily contain all ones on the main diagonal and contains ones in one of two positions symmetric with respect to the main diagonal: above the diagonal or below the diagonal. The graph of this relation is formed by vertices with loops for all or some of them, and if a pair of vertices (i, j) in the graph is connected, then it is always an arc of only one direction. Note that for a symmetric and antisymmetric relationship, some diagonal points can either be included in it or not.
If an antisymmetric relation does not contain a single diagonal point, then they say that such a relation is asymmetric , i.e. it is always anti-reflective.
Example 2... The relation (โค) on the set N is antisymmetric, and the relation (<) on the same set is asymmetric. Indeed, in the first case from
For any symmetric ratio ฮฑ, it is always true
The property of symmetry is also manifested in n-ary relations. The relation R on the set
Note also that the asymmetric relation is always antireflexive; A non-reflective and transitive binary relation is always asymmetric. For practice and for performing calculations, the number of relations that have a certain property related to the symmetry of the graph is of interest. Let us calculate such ratios for an arbitrary set A of cardinality | A | = n.
In our reasoning we will rely on the property of reflexivity, which, like many others, has not yet been studied deeply enough. Even a superficial analysis of the set of all relationships allows us to conclude that it can always be divided into
The sets of relations in all classes have the same structure, differ only in the number and composition of diagonal points, the whole variety of which is determined by the number
Thus, in the theory of relations, only two extreme states have traditionally been considered and studied: either all points of the diagonal are included in the relation and it is reflexive, or the relation does not contain any diagonal point, and then it is anti-reflective.
We will call all intermediate states with one diagonal point, with two, and so on, partial reflexivity of the kth order k = 0 (1) n, and relations of this kind are partially reflexive. So a partly reflexive relation of order zero is an antireflexive relation, and partly a reflexive relation of order n is just a reflexive relation.
Note that all states can be ordered as elements of the Boolean of the set โ. The proposed approach allows us to outline the way of analyzing various properties and counting the number of relations with individual properties or their aggregates.
Let the relationship be considered reflexive and symmetrical. The symmetry of the ratio is determined by the presence of pairs of points in it, which are located in the ratio matrix symmetrically to the relative diagonal. For an arbitrary n such pairs, there are
Then the whole variety of symmetric and reflexive relations will be determined by the Boolean
Below in table. 1 shows the values โโof the number of tolerance ratios for the initial values โโn from a segment of natural numbers.
Table 1 . The number of tolerant BOs
It is now easy to calculate the cardinality of all symmetric relations, since the presence or absence of diagonal points does not change the symmetry properties. The set of symmetric relations is denoted by the symbol SM. Then the cardinality of this set for a fixed n is determined by the formula
Table 2 . The number of symmetric BOs
Now let's move on to calculating asymmetric relations, the set of which will be denoted by AS. These relations are characterized by the fact that all points of the diagonal are absent in them and none of the cells of the matrix of the relation lying outside the diagonal has a symmetric one. In other words, it is a set of anti-reflective and antisymmetric relationships.
The cardinality of this set can be determined from the expressions
We obtain the reduced formula for calculating the cardinality of the set AS - asymmetric relations for a given cardinality of the carrier | A | = n. By definition, all relations of the set AS are antireflexive; therefore, the main diagonal in the matrix of relations is empty, and the unit elements can be located only in half of the remaining positions of the matrix, i.e. at
So, suppose an asymmetric relation contains k-elements (points, ordered pairs) 0 โค k โค
In this case, with each of the k elements we associate a pair of symmetric positions: one above the main diagonal of the matrix, the other below the diagonal. Since in each pair an element can be in one of two positions, then a boolean appears to accommodate k elements
In this way,
The total number of relations in the set AS is obtained by summing the obtained products over all values โโof k from zero to the maximum allowable K =
Example 3. Let the cardinality of the set of the support | A | = 5. Calculate the number of asymmetric relations using the formula found. Let us determine the value of the upper limit K in the sum, K =
Table 3 . BO characteristics
There is another way to calculate the cardinality of a set AS. It is based on counting the number of mappings of a set of pairs of symmetric positions into a set of states, in which each such pair can be. In an asymmetric relation, there is
Each position in a pair of cells can be occupied by 0 or 1, but for a pair of positions there are S = 3 states, which we denote as follows:
- 1, if element (1) is placed above the diagonal;
- 2, if element (1) is placed under the diagonal;
- 3 if both positions are empty (occupied by zeros).
Thus, a pair of symmetric positions (in the relationship matrix) can be in each
relationship in one of three states. The formula for calculating all possible mappings of the set of pairs of positions (denoted by the symbol K) into the set S of states we have:
Example 4 . For the conditions of the previous example has the form | A | = 5, K = | K | =
The calculation results in two different ways coincide, which once again convinces of the correctness of the formulas obtained. Thus, we have obtained the relation
Let's give in table. 4 numbers of asymmetric relations | AS | for small values โโof n.
Table 4. The number of asymmetric BOs
Having a formula for determining the number of asymmetric relations, one can get another - for calculating the number of antisymmetric relations, since the presence or absence of diagonal points does not change the properties of antisymmetry of the relation.
So, we denote the set of antisymmetric relations by the symbol ANS, then the cardinality of this set will be determined by the formula
Below is a table. 5 containing the (ANS) values โโfor n = 3 (1) 5.
Table 5 . The number of antisymmetric BOs
In what follows, we need concepts that are convenient to introduce here.
The symmetric part of the binary relation ฮฑ is called (and is denoted
Transitivity (Latin Transitivus - transitional, from transitus - transition)
- one of the properties of relationships. A relation = <M, A> defined on the set A is transitive if for anyIn other words, for a transitive relation from the presence of elements in its composition (
The definition of the transitivity property for binary relations assumes that the relation contains at least three elements (ordered pairs). And how does this property manifest itself in a relationship of one-element, empty, or containing only two elements?
All singleton and empty relations are transitive. A two-element relation can be transitive and nontransitive if the pairs included in it contain a common element j. The graph arcs corresponding to ordered pairs are directed in one direction (form an oriented non-transitivity route).
For example, let (
If, as before, the relation contains only two pairs with a common element
(
A transitive relation will also be in the case when two pairs have no common elements. Examples of transitive relations are: "equality" (=), since i = k, k = j implies i = j; "I is greater than j"; in geometry - "parallelism of straight lines". Examples of non-transitive relations: "perpendicularity of straight lines" in geometry; "I is not equal to j".
In the literature on relations, you can find various concepts that characterize transitivity: weak transitivity, strong transitivity, negative transitivity, anti-transitivity, weak anti-transitivity, generalized transitivity, transitive closureand some others. An attempt is made here to systematize the diverse shades of manifestation of the property of transitivity in relationships.
For a transitive relation ฮฑ, the relation
The transitive closure แพฐ can be constructed for any relation ฮฑ in accordance with the rule from
The relation แพฐ is the smallest transitive relation containing ฮฑ. If ฮฑ is transitive, then it coincides with its transitive closure ฮฑ = แพฐ and vice versa.
When representing a transitive binary relation by a directed graph, it is possible to represent not the entire digraph, but only its transitive skeleton, i.e. arcs connecting the beginning and end of each route longer than one are not drawn. In this case, we say that the transitive skeleton of the graph is taken for the relation ฮฑ . This operation is essentially the reverse of the transitive closure operation , in which the beginning and end of each net are connected by an arc.
In the general case, the transitivity property is not satisfied with respect to the operation of combining relations. Combining two transitive relations
So
1) from
2) from
In the case when
The following statement is known about the properties of transitivity, symmetry, and asymmetry of a relation. If a binary relation is transitive, then its symmetric part
The opposite is true only if
The composition of the transitive relation ฮฑ with itself satisfies the relation ฮฑ ยท ฮฑ โ ฮฑ. A relation ฮฑ is negatively transitive (nontransitive) if its complement is transitive, i.e. แพฑ. In the matrix of such a relation [
In this case, ฮฑ is said to be a strongly transitive relation. Matrix elements [
Along with strongly transitive relations, we consider weakly transitive (pseudotransitive) relations, which include those relations where the conditions from
A relation ฮฑ is transitively complete if for any ฮด from
comparability follows
Cyclicity
Relationships defined on the set A can be viewed from the point of view of the presence of cycles in them. It is convenient to carry out such a consideration on graphs of relations. A cyclic relation graph always contains at least one closed contour (route). Ignoring the arrows turns the path into a loop. A graph of an acyclic relation does not contain cycles and is called acyclic or uncontrolled .
The relation = <ร , A> is cyclic if at least one chain of the form can be formed from the elements of the set A
The relation = <ร , A> is acyclic if, for any ฮดโฅ1, the condition from
are classic examples of graphs with this property . The vertices of such graphs can be renumbered, under which for any arc (
If ฮฑ is an antireflexive transitive binary relation, then it is acyclic. The acyclicity and transitive completeness of the relation implies its transitivity.
Completeness
Completeness property (perfection, linearity). The whole set of relationships is divided into incomplete and complete , among which, in turn, strongly complete ones stand out. We will illustrate the property of completeness of relations by considering graphs of relations.
The graph of a complete relation is complete, i.e. any two of its vertices are directly connected by at least one arc, i.e. are adjacent. Since each arc in the graph corresponds to a point (element, pair) of the graph of the relationship, then on the basis of the above, a definition can be formulated.
The relation = <ร , A> is complete (perfect, linear) if and only if all elements of the set A are comparable or equal to each other. Thus, the overall attitude is reflective. In other words, for any two elements
If in relation ฮฑ there is at least one pair
A binary relation ฮฑ is strongly complete when its graph coincides with A ร A. A graph of this relation is a complete graph in which each pair of vertices is connected by an edge, and each vertex has a loop. Such a graph is called a strongly complete graph. The total ratio ฮฑ always satisfies the relations
If
In the matrix [
Let's count the number of complete relationships. First, consider the line problem. A line in a ratio matrix is โโa straight line segment perpendicular to the main diagonal of the ratio matrix, connecting the centers of two cells (cells) of the matrix symmetrically located relative to this diagonal.
If two or more pairs of symmetric positions fall on one line (straight line) in the ratio matrix, then the number of lines, nevertheless, remains equal to the number of such pairs of positions. The total number of pairs of positions for an arbitrary n is defined as
So, in the matrix for an arbitrary relation over the set A, there is a set L of parallel segments (lines). Let us designate the end positions of the segments (lines) by the symbols L - left and P - right. Also available | L | chips that can be placed in positions at the ends of the lines. The challenge is to determine the number of ways in which it would be possible to arrange | L | chips so that there is at least one chip on each line.
It is clear that the problem can be reduced to determining the number F of mappings f: L โ ฯ of the set L of lines into the set of ฯ positions (n โโ= {A, P}). It is known that the number of such mappings is determined by the formula
From the definition of the total ratio it follows that its graph contains at least K points, K =
For each fixed number of k points, the set of choices of positions in which they can be placed is determined by the value
The choice of positions for k additional points and the methods of filling K-k lines with chips are independent. Therefore, the total number of possibilities for placing K + k points in 2 โ K positions so that all lines are occupied by at least one point is determined by the expression
If we sum this expression over, then we get the number of complete relations, which does not depend on the situation with the placement of diagonal points. In other words, it is the number of partially reflexive complete relationships, for example, anti-reflective and full reflexive and complete, etc.
Example 5 . The variety of situations for placing diagonal points is determined by the number
For relations with three required properties
For equivalence relations with three required properties. There is a remarkable result: each equivalence relation over a set of n elements is in one-to-one correspondence with a partition of this set. The number of such relations is determined by the formula
Bell number, or in recurrent form
For ordered sets (partial orders), such formulas are not open and their number is determined by direct calculations, i.e. modeling. For small values โโof n, the data are given in
Table 6 . Quantitative characteristics of binary relations
Table 6. shows: n = | A | - the cardinality of the set-carrier;
| In (n) | - the number of classes of non-isomorphic relations;
| (n) | - the number of relations of partial order;
| Gn (n) | - the number of classes are non-isomorphic relations of partial order;
| Gl (n) | = n! - the number of linear order relations.
Conclusion
In this work, a detailed analysis of the main properties and structure of the binary ratio was carried out, on the basis of which it was possible to obtain quantitative characteristics for BO with one or more properties. Found and presented original ratios for the number of some types of relations with two and three required properties. These results open up the possibility of modeling and studying BO and relations of higher arity.
List of used literature
- Aigner M. Combinatorial Theory. - M .: Mir, 1982.
- Birkhoff G. Theory of structures. - M .: IL, 1952.-408 p.
- Noden P., Kitte K. Algebraic Algorithmics. - M .: Mir, 1999. - 720 p.
- Rybnikov K.A. An introduction to combinatorial analysis. -M .: Ed. Moscow State University, 1972. -256s.
- Stanley R. Enumerative Combinatorics. Vol. 1.- M .: Mir, 1990 .-- 440p.
- Stanley R. Enumerative Combinatorics. T.2.- M .: Mir, 2005. - 767s.
- Shikhanovich Yu.A. Introduction to modern mathematics. Initial concepts.-M .: Nauka, 1965. - 376p.