Duodecuple
   HOME

TheInfoList



OR:

In
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, a tuple is a finite ordered list ( sequence) of
elements Element or elements may refer to: Science * Chemical element, a pure substance of one type of atom * Heating element, a device that generates heat by electrical resistance * Orbital elements, parameters required to identify a specific orbit of ...
. An -tuple is a sequence (or ordered list) of elements, where is a non-negative integer. There is only one 0-tuple, referred to as ''the empty tuple''. An -tuple is defined inductively using the construction of an
ordered pair In mathematics, an ordered pair (''a'', ''b'') is a pair of objects. The order in which the objects appear in the pair is significant: the ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a'') unless ''a'' = ''b''. (In con ...
. Mathematicians usually write tuples by listing the elements within parentheses "" and separated by a comma and a space; for example, denotes a 5-tuple. Sometimes other symbols are used to surround the elements, such as square brackets "
nbsp; In word processing and digital typesetting, a non-breaking space, , also called NBSP, required space, hard space, or fixed space (though it is not of fixed width), is a space character that prevents an automatic line break at its position. In ...
or angle brackets "⟨ ⟩". Braces "" are used to specify arrays in some programming languages but not in mathematical expressions, as they are the standard notation for sets. The term ''tuple'' can often occur when discussing other mathematical objects, such as vectors. In computer science, tuples come in many forms. Most typed functional programming languages implement tuples directly as
product type In programming languages and type theory, a product of ''types'' is another, compounded, type in a structure. The "operands" of the product are types, and the structure of a product type is determined by the fixed order of the operands in the prod ...
s, tightly associated with algebraic data types, pattern matching, and
destructuring assignment In computer programming, an assignment statement sets and/or re-sets the value stored in the storage location(s) denoted by a variable name; in other words, it copies a value into the variable. In most imperative programming languages, the assi ...
. Many programming languages offer an alternative to tuples, known as record types, featuring unordered elements accessed by label. A few programming languages combine ordered tuple product types and unordered record types into a single construct, as in C structs and Haskell records.
Relational database A relational database is a (most commonly digital) database based on the relational model of data, as proposed by E. F. Codd in 1970. A system used to maintain relational databases is a relational database management system (RDBMS). Many relatio ...
s may formally identify their rows (records) as ''tuples''. Tuples also occur in relational algebra; when programming the semantic web with the
Resource Description Framework The Resource Description Framework (RDF) is a World Wide Web Consortium (W3C) standard originally designed as a data model for metadata. It has come to be used as a general method for description and exchange of graph data. RDF provides a variety of ...
(RDF); in linguistics; and in
philosophy Philosophy (from , ) is the systematized study of general and fundamental questions, such as those about existence, reason, knowledge, values, mind, and language. Such questions are often posed as problems to be studied or resolved. Some ...
.


Etymology

The term originated as an abstraction of the sequence: single, couple/double, triple, quadruple, quintuple, sextuple, septuple, octuple, ..., ‑tuple, ..., where the prefixes are taken from the Latin names of the numerals. The unique 0-tuple is called the ''null tuple'' or ''empty tuple''. A 1‑tuple is called a ''single'' (or ''singleton''), a 2‑tuple is called an ''ordered pair'' or ''couple'', and a 3‑tuple is called a ''triple'' (or ''triplet''). The number can be any nonnegative integer. For example, a complex number can be represented as a 2‑tuple of reals, a
quaternion In mathematics, the quaternion number system extends the complex numbers. Quaternions were first described by the Irish mathematician William Rowan Hamilton in 1843 and applied to mechanics in three-dimensional space. Hamilton defined a quatern ...
can be represented as a 4‑tuple, an octonion can be represented as an 8‑tuple, and a sedenion can be represented as a 16‑tuple. Although these uses treat ''‑uple'' as the suffix, the original suffix was ''‑ple'' as in "triple" (three-fold) or "decuple" (ten‑fold). This originates from medieval Latin ''plus'' (meaning "more") related to Greek ‑πλοῦς, which replaced the classical and late antique ''‑plex'' (meaning "folded"), as in "duplex".


Names for tuples of specific lengths

Note that for n \geq 3, the tuple name in the table above can also function as a verb meaning "to multiply he direct objectby n"; for example, "to quintuple" means "to multiply by 5". If n = 2, then the associated verb is "to double". There is also a verb "sesquiple", meaning "to multiply by 3/2". Theoretically, "monuple" could be used in this way too.


Properties

The general rule for the identity of two -tuples is : (a_1, a_2, \ldots, a_n) = (b_1, b_2, \ldots, b_n) if and only if a_1=b_1,\texta_2=b_2,\text\ldots,\texta_n=b_n. Thus a tuple has properties that distinguish it from a
set Set, The Set, SET or SETS may refer to: Science, technology, and mathematics Mathematics *Set (mathematics), a collection of elements *Category of sets, the category whose objects and morphisms are sets and total functions, respectively Electro ...
: # A tuple may contain multiple instances of the same element, so
tuple (1,2,2,3) \neq (1,2,3); but set \ = \. # Tuple elements are ordered: tuple (1,2,3) \neq (3,2,1), but set \ = \. # A tuple has a finite number of elements, while a set or a multiset may have an infinite number of elements.


Definitions

There are several definitions of tuples that give them the properties described in the previous section.


Tuples as functions

The 0-tuple may be identified as the empty function. For n \geq 1, the n-tuple \left(a_1, \ldots, a_n\right) may be identified with the (
surjective In mathematics, a surjective function (also known as surjection, or onto function) is a function that every element can be mapped from element so that . In other words, every element of the function's codomain is the image of one element of i ...
) function :F ~:~ \left\ ~\to~ \left\ with
domain Domain may refer to: Mathematics *Domain of a function, the set of input values for which the (total) function is defined **Domain of definition of a partial function **Natural domain of a partial function **Domain of holomorphy of a function * Do ...
:\operatorname F = \left\ = \left\ and with codomain :\operatorname F = \left\, that is defined at i \in \operatorname F = \left\ by :F(i) := a_i. That is, F is the function defined by :\begin 1 \;&\mapsto&&\; a_1 \\ \;&\;\;\vdots&&\; \\ n \;&\mapsto&&\; a_n \\ \end in which case the equality :\left(a_1, a_2, \dots, a_n\right) = \left(F(1), F(2), \dots, F(n)\right) necessarily holds. ;Tuples as sets of ordered pairs Functions are commonly identified with their
graphs Graph may refer to: Mathematics *Graph (discrete mathematics), a structure made of vertices and edges **Graph theory, the study of such graphs and their properties *Graph (topology), a topological space resembling a graph in the sense of discre ...
, which is a certain set of ordered pairs. Indeed, many authors use graphs as the definition of a function. Using this definition of "function", the above function F can be defined as: :F ~:=~ \left\.


Tuples as nested ordered pairs

Another way of modeling tuples in Set Theory is as nested
ordered pair In mathematics, an ordered pair (''a'', ''b'') is a pair of objects. The order in which the objects appear in the pair is significant: the ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a'') unless ''a'' = ''b''. (In con ...
s. This approach assumes that the notion of ordered pair has already been defined. # The 0-tuple (i.e. the empty tuple) is represented by the empty set \emptyset. # An -tuple, with , can be defined as an ordered pair of its first entry and an -tuple (which contains the remaining entries when : #: (a_1, a_2, a_3, \ldots, a_n) = (a_1, (a_2, a_3, \ldots, a_n)) This definition can be applied recursively to the -tuple: : (a_1, a_2, a_3, \ldots, a_n) = (a_1, (a_2, (a_3, (\ldots, (a_n, \emptyset)\ldots)))) Thus, for example: : \begin (1, 2, 3) & = (1, (2, (3, \emptyset))) \\ (1, 2, 3, 4) & = (1, (2, (3, (4, \emptyset)))) \\ \end A variant of this definition starts "peeling off" elements from the other end: # The 0-tuple is the empty set \emptyset. # For : #: (a_1, a_2, a_3, \ldots, a_n) = ((a_1, a_2, a_3, \ldots, a_), a_n) This definition can be applied recursively: : (a_1, a_2, a_3, \ldots, a_n) = ((\ldots(((\emptyset, a_1), a_2), a_3), \ldots), a_n) Thus, for example: : \begin (1, 2, 3) & = (((\emptyset, 1), 2), 3) \\ (1, 2, 3, 4) & = ((((\emptyset, 1), 2), 3), 4) \\ \end


Tuples as nested sets

Using Kuratowski's representation for an ordered pair, the second definition above can be reformulated in terms of pure set theory: # The 0-tuple (i.e. the empty tuple) is represented by the empty set \emptyset; # Let x be an -tuple (a_1, a_2, \ldots, a_n), and let x \rightarrow b \equiv (a_1, a_2, \ldots, a_n, b). Then, x \rightarrow b \equiv \. (The right arrow, \rightarrow, could be read as "adjoined with".) In this formulation: : \begin () & & &=& \emptyset \\ & & & & \\ (1) &=& () \rightarrow 1 &=& \ \\ & & &=& \ \\ & & & & \\ (1,2) &=& (1) \rightarrow 2 &=& \ \\ & & &=& \ \\ & & & & \\ (1,2,3) &=& (1,2) \rightarrow 3 &=& \ \\ & & &=& \ \\ \end


-tuples of -sets

In
discrete mathematics Discrete mathematics is the study of mathematical structures that can be considered "discrete" (in a way analogous to discrete variables, having a bijection with the set of natural numbers) rather than "continuous" (analogously to continuous f ...
, especially
combinatorics Combinatorics is an area of mathematics primarily concerned with counting, both as a means and an end in obtaining results, and certain properties of finite structures. It is closely related to many other areas of mathematics and has many appl ...
and finite probability theory, -tuples arise in the context of various counting problems and are treated more informally as ordered lists of length . -tuples whose entries come from a set of elements are also called ''arrangements with repetition'', '' permutations of a multiset'' and, in some non-English literature, ''variations with repetition''. The number of -tuples of an -set is . This follows from the combinatorial rule of product. If is a finite set of
cardinality In mathematics, the cardinality of a set is a measure of the number of elements of the set. For example, the set A = \ contains 3 elements, and therefore A has a cardinality of 3. Beginning in the late 19th century, this concept was generalized ...
, this number is the cardinality of the -fold
Cartesian power In mathematics, specifically set theory, the Cartesian product of two sets ''A'' and ''B'', denoted ''A''×''B'', is the set of all ordered pairs where ''a'' is in ''A'' and ''b'' is in ''B''. In terms of set-builder notation, that is : A\tim ...
. Tuples are elements of this product set.


Type theory

In type theory, commonly used in programming languages, a tuple has a
product type In programming languages and type theory, a product of ''types'' is another, compounded, type in a structure. The "operands" of the product are types, and the structure of a product type is determined by the fixed order of the operands in the prod ...
; this fixes not only the length, but also the underlying types of each component. Formally: : (x_1, x_2, \ldots, x_n) : \mathsf_1 \times \mathsf_2 \times \ldots \times \mathsf_n and the
projection Projection, projections or projective may refer to: Physics * Projection (physics), the action/process of light, heat, or sound reflecting from a surface to another in a different direction * The display of images by a projector Optics, graphic ...
s are term constructors: : \pi_1(x) : \mathsf_1,~\pi_2(x) : \mathsf_2,~\ldots,~\pi_n(x) : \mathsf_n The tuple with labeled elements used in the
relational model The relational model (RM) is an approach to managing data using a Structure (mathematical logic), structure and language consistent with first-order logic, first-order predicate logic, first described in 1969 by English computer scientist Edgar F. ...
has a
record type Record type is a family of typefaces designed to allow medieval manuscripts (specifically those from England) to be published as near-facsimiles of the originals. The typefaces include many special characters intended to replicate the various s ...
. Both of these types can be defined as simple extensions of the simply typed lambda calculus. The notion of a tuple in type theory and that in set theory are related in the following way: If we consider the natural model of a type theory, and use the Scott brackets to indicate the semantic interpretation, then the model consists of some sets S_1, S_2, \ldots, S_n (note: the use of italics here that distinguishes sets from types) such that: : ![\mathsf_1!">mathsf_1.html" ;"title="![\mathsf_1">![\mathsf_1!= S_1,~[\![\mathsf_2">mathsf_1">![\mathsf_1<_a>!.html" ;"title="mathsf_1.html" ;"title="![\mathsf_1">![\mathsf_1!">mathsf_1.html" ;"title="![\mathsf_1">![\mathsf_1!= S_1,~[\![\mathsf_2!] = S_2,~\ldots,~[\![\mathsf_n]\!] = S_n and the interpretation of the basic terms is: : [\![x_1]\!] \in ! mathsf_1!~ ![x_2!">_2.html" ;"title="![x_2">![x_2!\in [\![\mathsf_2">_2">![x_2<_a>!.html" ;"title="_2.html" ;"title="![x_2">![x_2!">_2.html" ;"title="![x_2">![x_2!\in [\![\mathsf_2!],~\ldots,~[\![x_n]\!] \in [\![\mathsf_n]\!]. The -tuple of type theory has the natural interpretation as an -tuple of set theory:Steve Awodey
''From sets, to types, to categories, to sets''
2009,
preprint In academic publishing, a preprint is a version of a scholarly or scientific paper that precedes formal peer review and publication in a peer-reviewed scholarly or scientific journal. The preprint may be available, often as a non-typeset versio ...
: ![(x_1, x_2, \ldots, x_n)!">x_1,_x_2,_\ldots,_x_n).html" ;"title="![(x_1, x_2, \ldots, x_n)">![(x_1, x_2, \ldots, x_n)!= (\,[\![x_1]\!], ![x_2!], \ldots, [\![x_n]\!]\,) The unit type has as semantic interpretation the 0-tuple.


See also

*
Arity Arity () is the number of arguments or operands taken by a function, operation or relation in logic, mathematics, and computer science. In mathematics, arity may also be named ''rank'', but this word can have many other meanings in mathematics. In ...
*
Coordinate vector In linear algebra, a coordinate vector is a representation of a vector as an ordered list of numbers (a tuple) that describes the vector in terms of a particular ordered basis. An easy example may be a position such as (5, 2, 1) in a 3-dimensiona ...
* Exponential object * Formal language * OLAP: Multidimensional Expressions * Prime ''k''-tuple * Relation (mathematics) * Sequence *
Tuplespace A tuple space is an implementation of the content-addressable memory, associative memory paradigm for parallel/distributed computing. It provides a repository of tuples that can be accessed concurrently. As an illustrative example, consider that t ...


Notes


References


Sources

* * Keith Devlin, ''The Joy of Sets''. Springer Verlag, 2nd ed., 1993, , pp. 7–8 * Abraham Adolf Fraenkel,
Yehoshua Bar-Hillel Yehoshua Bar-Hillel ( he, יהושע בר-הלל; 8 September 1915, in Vienna – 25 September 1975, in Jerusalem) was an Israeli philosopher, mathematician, and linguist. He was a pioneer in the fields of machine translation and formal linguisti ...
,
Azriel Lévy Azriel Lévy (Hebrew: עזריאל לוי; born c. 1934) is an Israeli mathematician, logician, and a professor emeritus at the Hebrew University of Jerusalem. Biography Lévy obtained his Ph.D. at the Hebrew University of Jerusalem in 1958, und ...
,
Foundations of school Set Theory
', Elsevier Studies in Logic Vol. 67, 2nd Edition, revised, 1973, , p. 33 * Gaisi Takeuti, W. M. Zaring, ''Introduction to Axiomatic Set Theory'', Springer GTM 1, 1971, , p. 14 * George J. Tourlakis,
Lecture Notes in Logic and Set Theory. Volume 2: Set Theory
', Cambridge University Press, 2003, , pp. 182–193


External links

* {{Authority control Data management Mathematical notation Sequences and series Basic concepts in set theory Type theory