Fact-checked by Grok 2 weeks ago

Tuple

A tuple is a finite ordered sequence of elements, typically denoted in parentheses, that generalizes mathematical structures like the (x, y) used in coordinate geometry. In , an n-tuple consists of n objects with a specified order, distinguishing it from unordered sets, and equality between tuples requires both matching lengths and corresponding elements. This concept extends to , where a tuple is implemented as an immutable that groups multiple values—often of heterogeneous types—into a single unit, similar to a list but unchangeable after creation to ensure . In relational databases, a tuple represents a single row in a (), encapsulating values for a set of attributes that describe a specific instance or , forming the foundational unit of data storage and query operations. Tuples play a central role across disciplines due to their emphasis on order and immutability. In , they underpin s, functions, and spaces; for instance, the of sets A and B yields the set of all 2-tuples (a, b) where a \in A and b \in B. Higher-dimensional tuples, such as 3-tuples for points in space, are essential in geometry, physics, and statistics. In programming languages like and , tuples facilitate efficient packing of data for return values, keys, and parallel assignments, with operations like unpacking allowing direct access to elements by index (starting from 0). Their immutability prevents accidental modifications, making them ideal for hashable structures in sets and mappings. Database tuples, by contrast, support operations like selection, projection, and joins, enabling declarative querying via languages such as SQL, where each tuple must adhere to the relation's to maintain consistency. Notable extensions include named tuples in , which add field labels for readability without sacrificing performance, and tuple calculus in for formal query specification. Overall, the tuple's versatility stems from its simple yet powerful abstraction of ordered collections, influencing fields from theoretical foundations to practical .

Fundamentals

Basic Concept

A tuple is defined as a finite ordered of elements drawn from a specified or set. It consists of a fixed number of components, denoted in parentheses with elements separated by commas, such as the 2-tuple (a, b) or more generally the k-tuple (a_1, a_2, \dots, a_k). The order of the elements is essential, meaning that (a, b) is distinct from (b, a) unless a = b, and repetitions of elements are permitted. This contrasts sharply with unordered collections like sets, where \{1, 2\} = \{2, 1\} and duplicates are ignored; for instance, the tuple (1, 2) differs from (2, 1), while the corresponding sets are identical. This intuitive concept positions tuples as basic sequences that underpin many mathematical structures, providing a prerequisite for understanding more advanced formalizations without requiring proofs or constructions at this stage. In practice, tuples appear in everyday mathematical reasoning, such as representing points or data points where sequence matters. The notion of tuples draws historical intuition from , where ordered coordinates specify locations in space—pioneered by in his 1637 , which used ordered pairs of real numbers to map geometric figures algebraically. Similarly, in , tuples capture ordered arguments supplied to functions or relations, ensuring the sequence aligns with the intended or .

Etymology

The term "tuple" derives from the suffix "-uple" found in words denoting ordered collections of a specific cardinality, such as "double" (2-tuple), "triple" (3-tuple), "quadruple" (4-tuple), "quintuple" (5-tuple), and higher analogs like "sextuple" or "septuple," generalizing the pattern to arbitrary n without specifying the number explicitly. In mathematical literature, the term "n-tuple" first appeared in the 1940s to describe ordered structures in algebra and related fields. By the 1950s, it had become more common in abstract algebra and geometry texts for denoting ordered n-ary relations or sequences, as seen in John L. Kelley's "General Topology" (1955), a seminal work that employs the term for ordered collections in topological contexts, such as defining functions via tuples of points and neighborhoods. The adoption of "tuple" in emerged in the 1960s alongside the development of languages, where it standardized the representation of fixed-size ordered data aggregates. This shift is evident in the design of (finalized in 1968), which explicitly defined modes (data types) using n-tuples, such as trims as ordered sequences of integers for bounds, influencing subsequent languages in handling composite data. Similarly, early implementations and documentation from the late 1950s and 1960s referenced tuples for argument sequences and list-like structures, bridging mathematical notation to computational practice.

Formal Definitions

As Nested Ordered Pairs

In set theory, the ordered pair (a, b) is defined as the set \{\{a\}, \{a, b\}\}, known as the Kuratowski definition. This construction encodes order within the unordered nature of sets by distinguishing the first component through a singleton set \{a\}, which is the unique singleton in the pair, while the second component b is incorporated into the doubleton \{a, b\} alongside a. This definition extends recursively to finite n-tuples for n \geq 2, where an n-tuple (a_1, a_2, \dots, a_n) is constructed as the right-nested ordered pair \langle \langle a_1, \dots, a_{n-1} \rangle, a_n \rangle. For example, the 3-tuple (a, b, c) is \langle (a, b), c \rangle = \{\{\{(a)\}, \{a, b\}\}, \{\{\{a\}, \{a, b\}\}, c\}\}. The 1-tuple is simply the element itself, (a) = a. This nesting preserves the sequential order of components through successive applications of the ordered pair construction. The order preservation follows from the structural distinction in the Kuratowski encoding: assuming a \neq b, the pair (a, b) = \{\{a\}, \{a, b\}\} differs from (b, a) = \{\{b\}, \{b, a\}\} under set equality, as the singleton \{a\} belongs to the first but not the second (since \{a\} \neq \{b\} and \{a\} \neq \{a, b\}, the latter having two elements by the axiom of pairing). For n-tuples, the recursive nesting ensures that any permutation altering the sequence yields a distinct set, as the depth and composition of singletons and doubletons uniquely reflect the original order. Under the with the (ZFC), every finite tuple admits a unique set-theoretic representation via this nested construction, guaranteed by the (which equates sets with identical elements) and the explicit, deterministic that precludes alternative encodings for the same .

As Functions

In , an n-tuple (a_1, \dots, a_n) can be formally defined as a f: \{1, \dots, n\} \to D, where D is the of the components, such that f(i) = a_i for each i \in \{1, \dots, n\}, and the \{1, \dots, n\} is equipped with the standard . This perspective treats the tuple as a from ordered positions to values, providing a structured way to encode within . Within the context of Cartesian products, n-tuples arise naturally as elements of the product space \prod_{i=1}^n D_i, where each D_i may be the same or distinct domains, and the tuple corresponds to selecting one from each factor via the function's values at successive indices. This functional representation unifies finite ordered collections under the broader theory of functions, facilitating operations like and restriction without relying on recursive set constructions. This view of tuples proves particularly advantageous in relational mathematics, where they model in as ordered assemblies of attribute values, with positions labeled by ordinal indices to ensure positional significance and enable efficient querying and joining. For instance, a 2-tuple can be expressed as a function f: \{1, 2\} \to \{a, b\} with f(1) = a and f(2) = b, representing an that preserves the distinction between components based on their indexed locations.

As Nested Sets

One alternative set-theoretic construction of ordered pairs, proposed by Norbert Wiener in 1914, encodes the pair (a, b) as the nested set \{\{\{a\}, \emptyset\}, \{\{b\}\}\}, where \emptyset serves as the base empty set and the nesting distinguishes the positions through membership levels without relying on explicit pairing primitives. This approach leverages the empty set as a foundational element, akin to the zero ordinal in von Neumann's construction, to impose order via hierarchical inclusion: the first component a is embedded in a singleton within a singleton, while b occupies a parallel but distinct nesting depth. For n-tuples, this Wiener-style encoding can be generalized recursively by treating an n-tuple as an ordered pair of an (n-1)-tuple and the nth element, yielding deeply nested sets that avoid primitive ordered pairs altogether. For instance, the 2-tuple (a, b) becomes the above form, and a 3-tuple (a, b, c) is then \{\{\{(a, b)_W\}, \emptyset\}, \{\{c\}\}\}, where (a, b)_W denotes the Wiener encoding of the initial pair; this process embeds finite von Neumann ordinals (e.g., \emptyset for position 0, \{\emptyset\} for 1) as structural markers within the sets to track positions without external ordering mechanisms. A variant, akin to Kuratowski's 1921 refinement but emphasizing pure inclusion chains, represents the 2-tuple as \{\{a\}, \{a, b\}\}, where order arises from the proper subset relation \{a\} \subset \{a, b\}, and extends recursively to n-tuples through successive nestings that build membership hierarchies. The adequacy of these constructions is established by proving a between the class of n-tuples under the standard equational definition—where (a_1, \dots, a_n) = (b_1, \dots, b_n) a_i = b_i for all i—and the class of these nested sets, with order preserved through recovery via membership chains. Specifically, functions can be defined set-theoretically: for a Wiener-encoded pair, the first is the object at the innermost nesting excluding \emptyset, and the second is extracted from the branch; recursively, this unpacks the hierarchy to match the tuple components exactly. Such encodings ensure foundational purity in , as all structures are built from the using and operations. However, these nested set representations are less intuitive for practitioners outside pure set theory, as the resulting objects—highly irregular sets with complex membership relations—obscure the linear order of a tuple compared to the more direct recursive pairing in other formalisms.

Properties

Equality and Comparison

In , two finite tuples of the same length are equal their corresponding components are equal; that is, (a_1, \dots, a_n) = (b_1, \dots, b_n) precisely when a_i = b_i for every i = 1, \dots, n. This component-wise follows from the set-theoretic construction of tuples, typically via recursive s, where the of an (a, b) = (c, d) holds a = c and b = d, ensuring the uniqueness of components through . In the functional representation of tuples as functions from \{1, \dots, n\} to a set, is likewise . Tuples over ordered domains admit natural comparison relations, including the product order and the . The product order on the X_1 \times \cdots \times X_n, where each X_i carries a partial order \leq_i, is defined component-wise: (x_1, \dots, x_n) \leq (y_1, \dots, y_n) if and only if x_i \leq_i y_i for all i = 1, \dots, n./01:_Foundations/1.04:_Partial_Orders) This induces a partial order on the , which becomes a if each \leq_i is . The coordinate projections \pi_i: X_1 \times \cdots \times X_n \to X_i, defined by \pi_i(x_1, \dots, x_n) = x_i, are surjective and collectively injective in the sense that a tuple is uniquely determined by its images under all projections, underscoring the structure's fidelity to components. Alternatively, the provides a on tuples over totally ordered domains by comparing components sequentially from left to right: (a_1, \dots, a_n) < (b_1, \dots, b_n) if there exists k \leq n such that a_i = b_i for all i < k and a_k < b_k. For example, over the reals, (1, 2) < (1, 3) in since the first components match and the second satisfies $2 < 3. In \mathbb{R}^2 under the product order, tuples are compared component-wise, so (1, 2) < (1, 3) holds as well, but (1, 3) and (2, 2) are incomparable unless additional structure is imposed.

Operations and Composition

Tuples support several algebraic operations that enable their formation, manipulation, and decomposition within mathematical structures. One fundamental operation is , which combines two tuples into a single longer tuple by appending the elements of the second to the end of the first. Formally, for tuples w = (w_1, \dots, w_m) and w' = (w'_1, \dots, w'_n) over a set S, their w \Vert w' is the ordered tuple (w_1, \dots, w_m, w'_1, \dots, w'_n) of length m + n. This operation is commonly denoted by * or simple in algebraic contexts and extends the intuitive joining of finite sequences. Another key operation is projection, which extracts a specific component from a tuple. The i-th projection \pi_i^n: S^n \to S applied to an n-tuple (a_1, \dots, a_n) yields a_i, where $1 \leq i \leq n. For nested tuples, such as those constructed via recursive pairing (e.g., a 3-tuple as ((a_1, a_2), a_3)), projections compose naturally: \pi_j^m \circ \pi_i^n retrieves subcomponents by first projecting to an inner tuple and then to the desired element. This composition preserves the ordered structure, allowing systematic access to elements in hierarchically defined tuples. Tuples are formed from through the , where the product S_1 \times \cdots \times S_n consists of all possible n-tuples with components from each S_i, and a is any thereof. Selecting from this product yields specific tuples or collections thereof, underpinning tuple construction in set-theoretic frameworks. These operations exhibit important algebraic properties. is associative: for tuples u, v, w, (u \Vert v) \Vert w = u \Vert (v \Vert w), as the resulting sequence matches element-wise regardless of grouping. Projections are injective in the sense that their joint application on the full family distinguishes distinct tuples, ensuring unique reconstruction from components via the universal property of the product.

Generalizations

Finite n-Tuples

A finite n-tuple, where n is a non-negative , is an ordered of n elements drawn from a domain set D, typically denoted as (d_1, d_2, \dots, d_n) with each d_i \in D. This structure generalizes the concept of ordered pairs to arbitrary finite lengths, emphasizing the positional order of components. The collection of all such n-tuples forms the Cartesian power D^n, defined as the n-fold D \times D \times \cdots \times D (n times). For n \geq 1, the length is fixed, providing a rigid suitable for representing multidimensional with uniform dimensionality. The case n=0 corresponds to the empty tuple (), whose space D^0 is the , a singleton set containing only this unique empty element. If D is a with |D| = k, then the cardinality of the n-tuple space satisfies |D^n| = k^n, reflecting the in the number of possible ordered sequences. Furthermore, if D is countable (finite or countably infinite), then D^n remains countable for any finite n, preserving countability under finite powering. In mathematical applications, finite n-tuples often model vectors in ; for instance, elements of \mathbb{R}^n are n-tuples of real numbers, such as (x_1, x_2, \dots, x_n) where each x_i \in \mathbb{R}, forming the for n-dimensional spaces. This representation underpins linear algebra, where operations like and are defined componentwise on these tuples.

n-Tuples of m-Sets

In , an n-tuple of m-sets over a universe U is defined as an ordered sequence (S_1, S_2, \dots, S_n), where each S_i \subseteq U is a set with exactly |S_i| = m elements. Let v = |U|. The number of possible m-sets from U is given by the \binom{v}{m}, which counts the ways to choose m elements from v without regard to order. By the multiplicative principle, since each of the n positions in the tuple independently selects one such m-set (with repetitions permitted), the total number of n-tuples of m-sets is \left( \binom{v}{m} \right)^n. Such enumerations arise in , where m-sets serve as elements in ordered collections for analyzing properties like unions and intersections. If repetitions among the S_i are allowed, the underlying collection corresponds to a of m-sets with possible multiplicities up to n. Conversely, requiring all S_i to be distinct yields the number of injections from an n-element set to the collection of all m-subsets of U, which is the falling factorial \binom{v}{m} \left( \binom{v}{m} - 1 \right) \cdots \left( \binom{v}{m} - n + 1 \right). These structures appear in combinatorial constructions, where ordered selections of uniform subsets facilitate the study of configurations, such as in systems of distinct representatives.

Theoretical Contexts

In

In , tuples are formalized as , which provide a means to combine multiple types into a single structured type. For pairs, the product type \sigma \times \tau consists of elements that are ordered pairs (a, b) where a : \sigma and b : \tau, allowing the simultaneous inhabitation of both component types. This construction generalizes to n-tuples via the n-fold product \prod_{i=1}^n \sigma_i, whose elements are sequences (a_1, \dots, a_n) with a_i : \sigma_i for each i. Associated with these products are \pi_i : \prod_{i=1}^n \sigma_i \to \sigma_i, which extract the i-th component from a tuple, ensuring that the structure supports decomposition. In the , tuples are encoded using pairing and projection constructs, often represented as closures or record-like terms to facilitate . The for formation states that if \Gamma \vdash e_1 : \sigma_1 and \Gamma \vdash e_2 : \sigma_2, then \Gamma \vdash \langle e_1, e_2 \rangle : \sigma_1 \times \sigma_2, with to n-tuples following inductively. Elimination rules for projections, such as \Gamma \vdash \pi_1 \langle e_1, e_2 \rangle : \sigma_1 and \Gamma \vdash \pi_2 \langle e_1, e_2 \rangle : \sigma_2 provided the pair is well-typed, enable the recovery of components while preserving through and preservation properties. Under the Curry-Howard isomorphism, which equates proofs in with programs in , product types correspond directly to logical s, where a term of type \sigma \times \tau serves as a proof of \sigma \land \tau. The pairing \langle e_1, e_2 \rangle acts as an introduction rule for conjunction, while projections \pi_1 and \pi_2 correspond to the elimination rules (left and right projection), bridging computation and proof construction. Dependent variants of tuples arise in dependent type theory through \Sigma-types, which generalize products to allow the second component's type to depend on the first. Formally, a \Sigma-type \Sigma_{x : A} B(x) consists of pairs (a, b) where a : A and b : B(a), supporting indexed families of types. A canonical example is the type of vectors, defined as \Sigma_{n : \mathbb{N}} \mathsf{Vec}(n), where \mathsf{Vec}(n) is the type of lists of length n, and the dependent pair includes both the length n and a proof of that length via the list structure. Projections for \Sigma-types, such as \mathsf{fst} : \Sigma_{x : A} B(x) \to A and \mathsf{snd} : \Sigma_{x : A} B(x) \to B(\mathsf{fst}(p)), ensure dependent elimination while maintaining the theory's consistency.

In Category Theory

In , an n-tuple of objects X_1, \dots, X_n in a \mathcal{C} is formalized as the product object \prod_{i=1}^n X_i, equipped with morphisms p_i: \prod_{i=1}^n X_i \to X_i for each i, satisfying a : for any object Q in \mathcal{C} with morphisms q_i: Q \to X_i, there exists a unique q: Q \to \prod_{i=1}^n X_i such that p_i \circ q = q_i for all i. This universal characterization ensures that the product, if it exists, is unique up to and captures the essence of simultaneous mapping into each component, abstracting the notion of tuples beyond specific structures like sets. In the \mathbf{Set}, the categorical product \prod_{i=1}^n X_i coincides with the classical , where elements are precisely the ordered n-tuples (x_1, \dots, x_n) with x_i \in X_i, and the projections p_i select the i-th component. This recovers the standard set-theoretic definition of tuples as functions from \{1, \dots, n\} to the of the X_i, with the universal property ensuring that any compatible family of functions factors uniquely through the product. Pullbacks provide a generalization of tuples to relational contexts, where the fiber product A \times_C B of morphisms f: A \to C and g: B \to C is the pullback object P with projections p_A: P \to A and p_B: P \to B such that f \circ p_A = g \circ p_B, satisfying the universal property that any commutative square factors uniquely through P. In \mathbf{Set}, this yields the subset of A \times B consisting of pairs (a, b) where f(a) = g(b), thus generalizing tuples to those constrained by a relation over C. Fiber products extend this to fibered categories, such as bundles over a base, where tuples are taken fiberwise. Cartesian closed categories guarantee the existence of finite products as part of their structure, with the product monoidal structure being closed under exponentials. Moreover, the product functor \Pi: \mathcal{C}^n \to \mathcal{C}, which maps a tuple of objects to their product, is left to the diagonal functor \Delta: \mathcal{C} \to \mathcal{C}^n that sends an object X to the constant n-tuple (X, \dots, X), with the unit of the adjunction providing the projections. This adjunction underscores the universal role of products in preserving limits and structuring categorical compositions.

Applications

In Mathematics

In algebra, tuples play a central role in the study of multilinear forms and tensor components. A multilinear form on vector spaces V_1, \dots, V_k is a function T: V_1 \times \cdots \times V_k \to \mathbb{F} that is linear in each argument separately, where the domain V_1 \times \cdots \times V_k consists of k-tuples (v_1, \dots, v_k) with v_i \in V_i. These forms generalize linear functionals to multiple variables, enabling the analysis of structures like determinants and inner products on products of spaces. In tensor algebra, the components of a tensor T \in V_1^* \otimes \cdots \otimes V_k^* are specified by a multi-index (i_1, \dots, i_k), forming a tuple of indices that indexes the entries in a multi-dimensional array, with the tensor product space having dimension \prod \dim V_i. This representation allows tensors to encode multilinear relationships, such as contractions and symmetries, essential for algebraic manipulations in representation theory and invariant theory. In , tuples represent coordinates of points in n-dimensional \mathbb{R}^n, where each point is identified with an ordered n-tuple (x_1, \dots, x_n) of real numbers, generalizing the Cartesian plane (n=2) and (n=3). This coordinate system facilitates the description of geometric objects, such as lines as tuples and subspaces as spans of basis tuples. Affine transformations, defined by F(\mathbf{p}) = A\mathbf{p} + \mathbf{b} where A is an invertible and \mathbf{b} a fixed tuple ( vector), preserve the affine structure of \mathbb{R}^n by maintaining and ratios along lines, though not necessarily distances or angles. For instance, rotations and shears map coordinate tuples to new tuples while keeping parallel lines parallel, underpinning applications in and . In , tuples model ordered selections, with of a often represented as tuples that rearrange elements, such as the six permutations of \{1,2,3\} as (1,2,3), (1,3,2), etc. A [k](/page/K)- of an [n](/page/N+)-element set is precisely a tuple of [k](/page/K) distinct elements from the set, counted by P(n,k) = n! / (n-k)!, distinguishing order from combinations. provide a powerful tool for enumerating such tuples; the exponential generating function for the number of of [n](/page/N+) elements is \sum_{n \geq 0} [n!](/page/Factorial) \frac{x^n}{n!} = \frac{1}{1-x}, capturing the growth, while ordinary generating functions like \sum 2^n x^n = 1/(1-2x) count tuples (sequences) of length [n](/page/N+). These functions extend to derangements and structures, aiding in the of enumerations. In , sequences of tuples in \mathbb{R}^n are studied for properties, where a sequence \{ \mathbf{x}_k = (x_k^1, \dots, x_k^n) \} converges to \mathbf{L} = (L_1, \dots, L_n) it converges componentwise, meaning each scalar \{x_k^i\} converges to L_i for i=1,\dots,n. This equivalence holds because the Euclidean \| \mathbf{x}_k - \mathbf{L} \| = \sqrt{\sum (x_k^i - L_i)^2 } is bounded by the maximum component deviation, and conversely, componentwise limits imply norm convergence via the finite . Such componentwise convergence underpins theorems on and differentiability in multiple variables, as seen in the extension of one-dimensional limits to vector-valued functions.

In Computer Science

In computer science, tuples serve as fundamental data structures for grouping a fixed number of heterogeneous values into an ordered sequence, often emphasizing immutability for efficiency and safety in operations. In programming languages, tuples are commonly implemented as immutable sequences, distinguishing them from mutable lists by their fixed size and inability to be modified after creation, which enables optimizations like use as dictionary keys. For example, in Python, a tuple is defined with comma-separated values enclosed in parentheses, such as (1, "a"), and supports indexing and slicing while prohibiting in-place changes to prevent unintended side effects. Similarly, in Haskell, tuples represent product types that combine values of different types, like (Float, Float) for a 2D point, with built-in syntax and functions for accessing components via pattern matching, reinforcing their role in functional programming paradigms. These features trace back to the 1960s, when languages like PL/I introduced structured aggregates for organizing data, evolving into modern tuple implementations for reliable composition of values. In relational databases, tuples represent individual rows in a , encapsulating a complete record as an ordered n-tuple of attribute values drawn from predefined domains. This concept originates from Edgar F. Codd's , where a is defined as a set of such tuples, with each tuple corresponding to a row in an representation and ensuring uniqueness without inherent ordering. In SQL, operations like SELECT with allow extraction of specific tuple components (attributes), producing a new by selecting columns and eliminating duplicates, as in projecting supplier and project from a supply to yield a of tuples. This structure facilitates declarative querying and in systems like those built on Codd's framework. Tuples also play a key role in algorithms, particularly for multi-dimensional processing where enables by comparing components sequentially from left to right, akin to dictionary ordering of words. For instance, in algorithms, tuples of keys (e.g., (name, )) are ordered first by name, then by if names match, supporting efficient multi-criteria arrangements as detailed in foundational texts on . In hashing, tuples are processed component-wise to compute a combined value, often via iterative mixing (e.g., XOR or of individual element hashes), allowing immutable tuples to serve as keys in hash tables for constant-time lookups in applications like caching or indexing. This component-wise approach ensures and , leveraging tuple immutability for consistency.

References

  1. [1]
    [PDF] Sets and Tuples, COMP 283 - UNC Computer Science
    The most common tuple seen in math is the coordinate pair (x, y) on a graph. A 2-tuple is commonly called an ordered pair. Definition 16. Two tuples are equal ...
  2. [2]
    Definition of n-ary Relation
    Definition (ordered n-tuple): An ordered n-tuple is a set of n objects with an order associated with them. If n objects are represented by x1, x2, ..., xn, then ...
  3. [3]
    Lecture 7 — Tuples, Modules, Images - Computer Science
    A tuple is a simple data type that puts together multiple values as a single unit. · A Tuple allows you to access individual elements: first value starts at zero ...
  4. [4]
    11. Recursion and exceptions - Computer Science
    A data type that contains a sequence of elements of any type, like a list, but is immutable. Tuples can be used wherever an immutable type is required, such as ...
  5. [5]
    Relational Databases
    The theory of relations states that data is arranged as various sets of tuples, called relations, where a tuple is collection of values for attributes.
  6. [6]
    Relational Model
    The rows are also called tuples, which represent an occurrence of the relation. The columns are the attributes of the relation. Each attribute is associated ...
  7. [7]
    [PPT] Ordered n-tuple
    2-tuples are called ordered pairs. Cartesian Product of A and B. Let A and B be sets. The Cartesian product of A and B, denoted A x B is ...
  8. [8]
    N-Tuple - World Web Math: Vector Calculus - MIT
    Nov 19, 1998 · An N-tuple is just a sequence of N real numbers: ( x 1 , x 2 , ..., x N ). For example, here is a 12-tuple which stores how many days each month has in aMissing: definition | Show results with:definition
  9. [9]
    [PDF] Elements of Computers and Programming - Tuples, Sets, Dictionaries
    Aug 29, 2024 · Tuples, like strings and list, are sequences and inherit various functions from sequences. Like strings, but unlike lists, they are.
  10. [10]
    Lists, Tuples, Dictionaries, and Sets - Computer Science Department
    Tuples are used to hold together multiple objects. Think of them as similar to lists, but without the extensive functionality that the list class gives you. One ...
  11. [11]
    [PDF] CSC 261/461 – Database Systems Lecture 13
    The tuple relational calculus is based on specifying a number of tuple variables. • Each tuple variable usually ranges over a particular database.
  12. [12]
    Named tuples – Clayton Cafiero
    To define a named tuple we need to import from the collections module. The collections module is full of useful varieties of collections. Collections are ...
  13. [13]
    [PDF] Tuple Relational Calculus Formula defines relation - cs.Princeton
    Tuples T in result have values for (name, rank, name2) that satisfy the formula. • What is the resulting relation? E E. Formal definition: formula. • A tuple ...
  14. [14]
    [PDF] Chapter 5 Sets
    And there's no such thing in mathematics as a 0-tuple. So a tuple is simply a way of grouping two or more values into a single object. By contrast, a set is ...
  15. [15]
    [PDF] Set Theory – An Overview
    assigned coordinates, which are simply ordered-pairs of real numbers. Beginning with this observation, Descartes showed how the Euclidean plane can be ...
  16. [16]
    -tuple - Etymology & Meaning of the Suffix
    "fivefold, containing five times the number or amount," 1560s, from French quintuple (15c.), from Late Latin quintuplex, from Latin quintus "fifth" (related ...
  17. [17]
    General Topology - John L. Kelley - Google Books
    Aimed at graduate math students, this classic work is a systematic exposition of general topology and is intended to be a reference and a text.
  18. [18]
    [PDF] Algol 68 - Software Preservation Group
    ALGOL 68 has not been designed as an expansion of ALGOL 60 but rather as a ... A "trim" is an n-tuple, each element of which is either an integer.
  19. [19]
    [PDF] The History of LISP - Software Preservation Group
    Generally, only one argument appears, but for convenience, instead of an argument of type tuple, the sequence of tuple elements can be directly noted.
  20. [20]
    Sur la notion de l'ordre dans la Théorie des Ensembles - EuDML
    Kuratowski, Casimir. "Sur la notion de l'ordre dans la Théorie des Ensembles." Fundamenta Mathematicae 2.1 (1921): 161-171. <http://eudml.org/doc/212966> ...
  21. [21]
    None
    Below is a merged summary of ordered pairs and n-tuples from Enderton’s *Elements of Set Theory* (1977), combining all the information from the provided segments into a concise yet comprehensive response. To maximize detail and clarity, I will use a table in CSV format for key details, followed by a narrative summary that integrates additional context and explanations. The response retains all mentioned information, including definitions, theorems, examples, and URLs.
  22. [22]
    None
    ### Summary of Definitions and Examples from Set Theory, Chapter 3 (Functions)
  23. [23]
    Functions
    Sequences and generalized Cartesian products​​ Sequences also give us a way to define order tuples with more than two elements: (a,b,c) is the sequence ...
  24. [24]
    [PDF] A Relational Model of Data for Large Shared Data Banks
    The relational view (or model) of data described in. Section 1 appears to be superior in several respects to the graph or network model [3,4] presently in vogue ...
  25. [25]
    Intrepreting tuples as functions - Math Stack Exchange
    Dec 29, 2015 · Intrepreting tuples as functions ... This would mean we have a domain with two elements and a codomain with |R| elements(which doesn't make sense ...
  26. [26]
  27. [27]
    [PDF] Naive set theory. - Whitman People
    Halmos —Naive Set Theory. John L. Kelley—Introduction to Modern Algebra. R ... equal, then the ordered pair (a, b) is the same as the singleton {{a}}. If ...
  28. [28]
    Lexicographic Order -- from Wolfram MathWorld
    An ordering for the Cartesian product of any two sets and with order relations and , respectively, such that if and both belong to , then iff either.
  29. [29]
    Definition:Concatenation of Ordered Tuples - ProofWiki
    Aug 19, 2024 · Definition. Let S be a set. Let w,w′ be ordered tuples in S of lengths n and n′, respectively. Then the concatenation of w and w′, ...
  30. [30]
    $$n$-Tuples - Ozaner's Notes
    Apr 23, 2018 · Using the 2-tuple, we can define all n-tuples recursively as an ordered pair of an (n−1)-tuple and another element.
  31. [31]
  32. [32]
    Set Operations
    The fourth set operation is the Cartesian product We first define an ordered pair and Cartesian product of two sets using it. Then the Cartesian product of ...
  33. [33]
    Proof of associativity for concatenation operation
    Aug 8, 2015 · The question asks us to prove that the operation of concatenation is associative on A∗, the set of all sequences of symbols in the alphabet A.Associativity of concatenation - Math Stack ExchangeAssociativity on concatenation and removal - Math Stack ExchangeMore results from math.stackexchange.comMissing: projection | Show results with:projection
  34. [34]
    [PDF] Concurrent Hyland-Ong games - HAL
    Sep 26, 2014 · ... product is (A × B, FA×B), where x ⊆ A × B is in FA×B iff it satisfies: (1) Projections: 71x ∈ FA and 72x ∈ FB. (2) Injectivity of projections ...
  35. [35]
    [PDF] Sets and Functions - UC Davis Math
    The set. X on which f is defined is called the domain of f and the set Y in which it takes its values is called the codomain. We write f : x 7→ f(x) to ...
  36. [36]
    [PDF] Handout Section 2.1, Intro Advanced Math
    (This is the set of all n-tuples over A (an n-tuple is a list with n entries)). An is the cartesian product of n copies of A. So A2 = A × A and A3 = A × A ...Missing: definition | Show results with:definition
  37. [37]
    Recitation 2: Tuples, Records, Datatypes - CS@Cornell
    In general, an n-tuple is an ordered sequence of n values written in parenthesis and separated by commas as (expr, expr, ..., expr).
  38. [38]
    [PDF] Lecture 7 1 Overview 2 Sequences and Cartesian Products
    Feb 4, 2019 · Suppose A and B are finite sets. Recall that the cardinality of set A, denoted |A|, is the number of elements in A; similarly, |B| is the ...
  39. [39]
    [PDF] 4. Countability
    Finite and countably infinite unions of countable sets are countable. • Finite Cartesian products of countable sets are countable. 6 Are all sets countable!?
  40. [40]
    [PDF] 1. Vectors. - Duke Math
    An n-vector is an ordered n-tuple of scalars. When it is clear from the context what n is we will frequently say “vector” instead of. “n-vector”. If (x1 ...
  41. [41]
    [PDF] Vectors in 2-Space, 3-Space, and n-Space - UC Davis Math
    The set of all ordered n-tuples is called n-space and is denoted by Rn. Definition. Two vectors v = (v1, v2, … , vn) and w = (w1, w2, … , wn) in ...Missing: mathematics | Show results with:mathematics
  42. [42]
    [PDF] Notes on binomial coefficients
    Dec 13, 2010 · The binomial coefficient “n choose k”, written n k. = (n)k k! = n! k! · (n − k)!. , counts the number of k-element subsets of an n-element set.<|control11|><|separator|>
  43. [43]
    4.3.2: The Multiplication Rule for Counting - Mathematics LibreTexts
    Aug 31, 2023 · So, mathematicians have developed short cuts to counting big numbers. These techniques fall under the mathematical discipline of combinatorics, ...
  44. [44]
    [PDF] Rank bounds for design matrices with block entries and geometric ...
    Mar 12, 2018 · That is, the second item in the definition of a design matrix is satisfies by k-tuples of blocks that are row-disjoint in A. Claim 3.2. Let A ∈ ...
  45. [45]
    Type Theory - Stanford Encyclopedia of Philosophy
    Feb 8, 2006 · For building the free cartesian closed category, we extend simple type theory with the type 1 (unit type) and the product type \(A \times B\), ...
  46. [46]
    [PDF] Principles of Dependent Type Theory - Daniel Gratzer
    Apr 14, 2024 · Given types 𝐴 and 𝐵, expressions of product type 𝐴 × 𝐵 are pairs (𝑎,𝑏) of 𝑎 : 𝐴 and 𝑏 : 𝐵. Logically, product types 𝐴 × 𝐵 correspond to.
  47. [47]
    [PDF] Lesson 5 Simple extensions of the typed lambda calculus
    Jan 31, 2002 · Evaluation and typing rules are the natural generalizations of those for tuples. • Evaluation is left-to-right. • Tuples are fully evaluated ...
  48. [48]
    [PDF] Lecture Notes on The Curry-Howard Isomorphism
    Dec 4, 2003 · Under this interpretation, propositions become types. It was first observed by the logicians Haskell. Curry [˜1960] and William Howard [˜1969] ...
  49. [49]
    [PDF] The Significance of the Curry-Howard Isomorphism | Richard Zach
    Nov 26, 2019 · Abstract: The Curry-Howard isomorphism is a proof-theoretic result that estab- lishes a connection between derivations in natural deduction ...
  50. [50]
    [PDF] Dependent types
    Now we come to the heart of the matter: dependent types. This was the main insight of Per Martin-Löf when he started to develop Type Theory in 1972. Per.
  51. [51]
    product type in nLab
    Jan 1, 2024 · In type theory a product type of two types A A and B B is the type whose terms are ordered pairs ( a , b ) (a,b) with a : A a\colon A and b : B ...
  52. [52]
    cartesian product in nLab
    Mar 6, 2024 · In material set theory, the existence of binary cartesian products follows from the axiom of pairing and the axiom of weak replacement?
  53. [53]
    pullback in nLab
    Sep 19, 2025 · A pullback is a limit of a diagram like this: Such a diagram is also called a pullback diagram or a cospan. If the limit exists, we obtain a commutative square.Missing: tuples | Show results with:tuples
  54. [54]
    cartesian closed category in nLab
    Oct 7, 2023 · A cartesian closed category (sometimes: ccc) is a category with finite products which is closed with respect to its cartesian monoidal structure.
  55. [55]
    diagonal functor in nLab
    Aug 20, 2018 · The (binary) diagonal functor of C C is the functor Δ : C → C × C \Delta\colon C \to C \times C given by Δ ( x ) = ( x , x ) \Delta(x) = (x,x) , ...
  56. [56]
    [PDF] MULTILINEAR ALGEBRA 1.1 Background
    Feb 1, 2011 · We will list below some definitions and theorems that are part of the curriculum of a standard theory-based sophomore level course.
  57. [57]
    [PDF] Chapter 9 Multilinear Algebra - Math@LSU
    Multilinear algebra is a generalization of linear algebra since a linear function is also multilinear in one variable. If V1,V2, ททท ,Vk and W are vector spaces ...
  58. [58]
    [PDF] 3.1 Euclidean Space
    Continuing further, an “n-tuple” is n real numbers, in a specific order; each n-tuple can be thought of as representing a point in n-dimensional space.
  59. [59]
    Affine Transformation -- from Wolfram MathWorld
    An affine transformation is any transformation that preserves collinearity (ie, all points lying on a line initially still lie on a line after transformation)
  60. [60]
    [PDF] Probability: Tuples, Permutations, Combinations - myweb
    Feb 5, 2016 · A k-permutation of an n-element set is a finite sequence (i.e. tuple) with k distinct elements such that order matters. For instance, given the ...<|separator|>
  61. [61]
    [PDF] Generating Functions
    Mar 1, 2015 · We are going to discuss enumeration problems, and how to solve them using a powerful tool: generating functions.
  62. [62]
    [PDF] Minimal analysis II - Arizona Math
    Aug 7, 2025 · The sequence {xk} converges to L ∈ Rn if, for every open rectangle R containing L, there exists N such that, for k ≥ N, xk ∈ R. However, in ...
  63. [63]
    5. Data Structures — Python 3.14.0 documentation
    Tuples can be used as keys if they contain only strings, numbers, or tuples; if a tuple contains any mutable object either directly or indirectly, it cannot be ...
  64. [64]
    Data.Tuple - Hackage - Haskell.org
    Solo is the canonical lifted 1-tuple, just like (,) is the canonical lifted 2-tuple (pair) and (,,) is the canonical lifted 3-tuple (triple).
  65. [65]
    [PDF] Evolution of the Major Programming Languages
    • Used for CGI programming and form processing. • Dynamically typed, but type checked. • Supports lists, tuples, and hashes, all with its single data structure,.
  66. [66]
    Tuple Objects — Python 3.14.0 documentation
    This instance of PyTypeObject represents the Python tuple type; it is the same object as tuple in the Python layer.