# Indexed family

__: Collection of objects, each associated with an element from some index set__

**Short description**In mathematics, a **family**, or **indexed family**, is informally a collection of objects, each associated with an index from some index set. For example, a family of real numbers, indexed by the set of integers, is a collection of real numbers, where a given function selects one real number for each integer (possibly the same) as indexing.

More formally, an indexed family is a mathematical function together with its domain [math]\displaystyle{ I }[/math] and image [math]\displaystyle{ X }[/math] (that is, indexed families and mathematical functions are technically identical, just point of views are different). Often the elements of the set [math]\displaystyle{ X }[/math] are referred to as making up the family. In this view, indexed families are interpreted as collections of indexed elements instead of functions. The set [math]\displaystyle{ I }[/math] is called the *index set* of the family, and [math]\displaystyle{ X }[/math] is the *indexed set*.

Sequences are one type of families indexed by natural numbers. In general, the index set [math]\displaystyle{ I }[/math] is not restricted to be countable. For example, one could consider an uncountable family of subsets of the natural numbers indexed by the real numbers.

## Formal definition

Let [math]\displaystyle{ I }[/math] and [math]\displaystyle{ X }[/math] be sets and [math]\displaystyle{ f }[/math] a function such that
[math]\displaystyle{ \begin{align}
f ~:~ &I \to X \\
&i \mapsto x_i = f(i),
\end{align} }[/math]
where [math]\displaystyle{ i }[/math] is an element of [math]\displaystyle{ I }[/math] and the image [math]\displaystyle{ f(i) }[/math] of [math]\displaystyle{ i }[/math] under the function [math]\displaystyle{ f }[/math] is denoted by [math]\displaystyle{ x_i }[/math]. For example, [math]\displaystyle{ f(3) }[/math] is denoted by [math]\displaystyle{ x_3. }[/math] The symbol [math]\displaystyle{ x_i }[/math] is used to indicate that [math]\displaystyle{ x_i }[/math] is the element of [math]\displaystyle{ X }[/math] indexed by [math]\displaystyle{ i \in I. }[/math] The function [math]\displaystyle{ f }[/math] thus establishes a **family of elements in** [math]\displaystyle{ X }[/math] **indexed by** [math]\displaystyle{ I, }[/math] which is denoted by [math]\displaystyle{ \left(x_i\right)_{i \in I}, }[/math] or simply [math]\displaystyle{ \left(x_i\right) }[/math] if the index set is assumed to be known. Sometimes angle brackets or braces are used instead of parentheses, although the use of braces risks confusing indexed families with sets.

Functions and indexed families are formally equivalent, since any function [math]\displaystyle{ f }[/math] with a domain [math]\displaystyle{ I }[/math] induces a family [math]\displaystyle{ (f(i))_{i \in I} }[/math] and conversely. Being an element of a family is equivalent to being in the range of the corresponding function. In practice, however, a family is viewed as a collection, rather than a function.

Any set [math]\displaystyle{ X }[/math] gives rise to a family [math]\displaystyle{ \left(x_x\right)_{x \in X}, }[/math] where [math]\displaystyle{ X }[/math] is indexed by itself (meaning that [math]\displaystyle{ f }[/math] is the identity function). However, families differ from sets in that the same object can appear multiple times with different indices in a family, whereas a set is a collection of distinct objects. A family contains any element exactly once if and only if the corresponding function is injective.

An indexed family [math]\displaystyle{ \left(x_i\right)_{i \in I} }[/math] defines a set [math]\displaystyle{ \mathcal{X} = \{x_i : i \in I\}, }[/math] that is, the image of [math]\displaystyle{ I }[/math] under [math]\displaystyle{ f. }[/math] Since the mapping [math]\displaystyle{ f }[/math] is not required to be injective, there may exist [math]\displaystyle{ i, j \in I }[/math] with [math]\displaystyle{ i \neq j }[/math] such that [math]\displaystyle{ x_i = x_j. }[/math] Thus, [math]\displaystyle{ | \mathcal{X}| \leq |I| }[/math], where [math]\displaystyle{ |A| }[/math] denotes the cardinality of the set [math]\displaystyle{ A. }[/math] For example, the sequence [math]\displaystyle{ \left( (-1)^i \right)_{i\in \N} }[/math] indexed by the natural numbers [math]\displaystyle{ \N = \{1, 2, 3, \ldots\} }[/math] has image set [math]\displaystyle{ \left\{(-1)^i : i \in \N\right\} = \{-1,1\}. }[/math] In addition, the set [math]\displaystyle{ \{ x_i : i \in I \} }[/math] does not carry information about any structures on [math]\displaystyle{ I. }[/math] Hence, by using a set instead of the family, some information might be lost. For example, an ordering on the index set of a family induces an ordering on the family, but no ordering on the corresponding image set.

### Indexed subfamily

An indexed family [math]\displaystyle{ \left(B_i\right)_{i \in J} }[/math] is a **subfamily** of an indexed family [math]\displaystyle{ \left(A_i\right)_{i \in I}, }[/math] if and only if [math]\displaystyle{ J }[/math] is a subset of [math]\displaystyle{ I }[/math] and [math]\displaystyle{ B_i = A_i }[/math] holds for all [math]\displaystyle{ i \in J. }[/math]

## Examples

### Indexed vectors

For example, consider the following sentence:

The vectors [math]\displaystyle{ v_1, \ldots, v_n }[/math] are linearly independent.

Here [math]\displaystyle{ \left(v_i\right)_{i \in \{1, \ldots, n\}} }[/math] denotes a family of vectors. The [math]\displaystyle{ i }[/math]-th vector [math]\displaystyle{ v_i }[/math] only makes sense with respect to this family, as sets are unordered so there is no [math]\displaystyle{ i }[/math]-th vector of a set. Furthermore, linear independence is defined as a property of a collection; it therefore is important if those vectors are linearly independent as a set or as a family. For example, if we consider [math]\displaystyle{ n = 2 }[/math] and [math]\displaystyle{ v_1 = v_2 = (1, 0) }[/math] as the same vector, then the *set* of them consists of only one element (as a set is a collection of unordered distinct elements) and is linearly independent, but the family contains the same element twice (since indexed differently) and is linearly dependent (same vectors are linearly dependent).

### Matrices

Suppose a text states the following:

A square matrix [math]\displaystyle{ A }[/math] is invertible, if and only if the rows of [math]\displaystyle{ A }[/math] are linearly independent.

As in the previous example, it is important that the rows of [math]\displaystyle{ A }[/math] are linearly independent as a family, not as a set. For example, consider the matrix
[math]\displaystyle{ A = \begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix}. }[/math]
The *set* of the rows consists of a single element [math]\displaystyle{ (1, 1) }[/math] as a set is made of unique elements so it is linearly independent, but the matrix is not invertible as the matrix determinant is 0. On the other hands, the *family* of the rows contains two elements indexed differently such as the 1st row [math]\displaystyle{ (1, 1) }[/math] and the 2nd row [math]\displaystyle{ (1, 1) }[/math] so it is linearly dependent. The statement is therefore correct if it refers to the family of rows, but wrong if it refers to the set of rows. (The statement is also correct when "the rows" is interpreted as referring to a multiset, in which the elements are also kept distinct but which lacks some of the structure of an indexed family.)

### Other examples

Let [math]\displaystyle{ \mathbf{n} }[/math] be the finite set [math]\displaystyle{ \{1, 2, \ldots n\}, }[/math] where [math]\displaystyle{ n }[/math] is a positive integer.

- An ordered pair (2-tuple) is a family indexed by the set of two elements, [math]\displaystyle{ \mathbf{2} = \{1, 2\}; }[/math] each element of the ordered pair is indexed by each element of the set [math]\displaystyle{ \mathbf{2}. }[/math]
- An [math]\displaystyle{ n }[/math]-tuple is a family indexed by the set [math]\displaystyle{ \mathbf{n}. }[/math]
- An infinite sequence is a family indexed by the natural numbers.
- A list is an [math]\displaystyle{ n }[/math]-tuple for an unspecified [math]\displaystyle{ n, }[/math] or an infinite sequence.
- An [math]\displaystyle{ n \times m }[/math] matrix is a family indexed by the Cartesian product [math]\displaystyle{ \mathbf{n} \times \mathbf{m} }[/math] which elements are ordered pairs; for example, [math]\displaystyle{ (2, 5) }[/math] indexing the matrix element at the 2nd row and the 5th column.
- A net is a family indexed by a directed set.

## Operations on indexed families

Index sets are often used in sums and other similar operations. For example, if [math]\displaystyle{ \left(a_i\right)_{i \in I} }[/math] is an indexed family of numbers, the sum of all those numbers is denoted by [math]\displaystyle{ \sum_{i \in I} a_i. }[/math]

When [math]\displaystyle{ \left(A_i\right)_{i \in I} }[/math] is a family of sets, the union of all those sets is denoted by [math]\displaystyle{ \bigcup_{i \in I} A_i. }[/math]

Likewise for intersections and Cartesian products.

## Usage in category theory

The analogous concept in category theory is called a **diagram**. A diagram is a functor giving rise to an indexed family of objects in a category * C*, indexed by another category

*, and related by morphisms depending on two indices.*

**J**## See also

- Array data type – Data type that represents a collection of elements (values or variables)
- Coproduct – Category-theoretic construction
- Diagram (category theory) – Indexed collection of objects and morphisms in a category
- Disjoint union – In mathematics, operation on sets
- Family of sets – Any collection of sets, or subsets of a set
- Index notation – Manner of referring to elements of arrays or tensors
- Net (mathematics) – A generalization of a sequence of points
- Parametric family
- Sequence – Finite or infinite ordered list of elements
- Tagged union – Data structure used to hold a value that could take on several different, but fixed, types

## References

- Mathematical Society of Japan,
*Encyclopedic Dictionary of Mathematics*, 2nd edition, 2 vols., Kiyosi ItÃ´ (ed.), MIT Press, Cambridge, MA, 1993. Cited as EDM (volume).

Original source: https://en.wikipedia.org/wiki/Indexed family.
Read more |