1 Definition and notation
1.1 Index sets and universal index domains
In many mathematical settings, one fixes a “universal” index domain \(I\) (for example, \(I=\{1,\dots,n\}\) in finite-dimensional problems, or \(I=\mathbb{N}\) in infinite-dimensional ones). An *index set* is any subset \(S\subseteq I\) used to select specific components—such as coordinates of a vector, entries of a matrix, or terms of a sum.
The role of \(I\) is that it provides a reference frame: complements, selections, and related operations are understood relative to the chosen universal domain.
1.2 Complementary index set
A *complementary index set* associated with a given index set \(S\subseteq I\) is the collection of indices in \(I\) that are not in \(S\). It is commonly written as \(S^{c}\) or \(I\setminus S\).
1.2.1 Set-theoretic complement
In a general set-theoretic sense, the complement of \(S\) in \(I\) is \[ S^{c} = I\setminus S=\{i\in I:\; i\notin S\}. \] This definition applies whether \(I\) is finite or infinite.
1.2.2 Relative complement in a finite index range
When the index domain is explicitly finite, such as \(I=\{1,2,\dots,n\}\), the complementary indices have a concrete description: \[ S^{c} = \{1,\dots,n\}\setminus S. \] For instance, if \(S=\{2,4,7\}\) within \(I=\{1,\dots,10\}\), then \(S^{c}=\{1,3,5,6,8,9,10\}\). This relative viewpoint matters because different choices of \(I\) lead to different complements.
1.3 Common notation
Common notations include:
- \(S^{c}\) for the complement of \(S\) in \(I\).
- \(I\setminus S\) (or \(S^{\complement}\) in some texts) for the same operation.
- When used for component selection, one often couples \(S\) and \(S^{c}\) with notational conventions like \(x_S\) for the subvector of components indexed by \(S\), leaving \(x_{S^c}\) as the remaining components.
2 Basic properties
2.1 Cardinality relations
If \(I\) is finite, the sizes of complementary index sets satisfy \[
| S | + | S^{c} | = | I | . |
|---|
\] More generally, in infinite settings one uses cardinal arithmetic, but the guiding principle remains: the complement partitions the universal domain into chosen and unchosen indices.
2.2 Disjointness and union
By construction, \[ S\cap S^{c}=\varnothing,\qquad S\cup S^{c}=I. \] These two identities express that the index sets “split” the universal index domain without overlap.
2.3 Double complement
Taking complements twice returns the original set: \[ (S^{c})^{c}=S. \] This is a direct consequence of the underlying set-theoretic definitions.
2.4 Ordering conventions
When indices inherit an order from \(I\), selections typically preserve that order. For example, if \(I=\{1,\dots,n\}\) and \(S=\{3,1\}\) is not typically treated as ordered (since sets are unordered), one usually instead works with the increasing sequence of indices in \(S\). In practice, subvector or submatrix extraction routines use the natural ascending order of indices from \(I\).
3 Examples
3.1 Finite sequences
Let \(I=\{1,2,3,4,5\}\) and \(S=\{1,3,5\}\). Then the complementary index set is \[ S^{c}=\{2,4\}. \] If a sequence \(a_1,\dots,a_5\) is given, the “selected” part is \(a_S=(a_1,a_3,a_5)\) and the remaining part is \(a_{S^{c}}=(a_2,a_4)\).
3.2 Matrix row and column indexing
Consider an \(m\times n\) matrix \(A\) with row index set \(R=\{1,\dots,m\}\) and column index set \(C=\{1,\dots,n\}\). If \(S\subseteq R\) specifies a set of rows, then \(S^{c}=R\setminus S\) specifies the rows not included.
Similarly, if \(T\subseteq C\) selects columns, the complementary columns are \(T^{c}\). Extracting submatrices often uses pairs of index sets, such as \(A_{S,T}\) for the submatrix with rows in \(S\) and columns in \(T\), together with \(A_{S^{c},T}\), \(A_{S,T^{c}}\), and \(A_{S^{c},T^{c}}\).
3.3 Vector component selection
For a vector \(x\in\mathbb{R}^n\) with indices \(I=\{1,\dots,n\}\), let \(S\subseteq I\). The complementary index set \(S^{c}\) indexes the remaining components. The partition \[ x \quad \text{is decomposed into} \quad (x_S, x_{S^{c}}) \] is a common step in analyses that separate variables, enforce constraints, or reduce systems.
3.4 Partition of summation indices
Suppose \(f(i)\) is defined for \(i\in I\) and \(S\subseteq I\). Then the sum over the whole domain splits as \[ \sum_{i\in I} f(i) \;=\; \sum_{i\in S} f(i) \;+\; \sum_{i\in S^{c}} f(i), \] using disjointness of \(S\) and \(S^{c}\). This identity is frequently used to reorganize algebraic expressions and to focus computation on a subset of terms.
4 Applications in applied mathematics
4.1 Linear algebra
4.1.1 Principal submatrices
In contexts involving symmetric matrices, one often chooses an index set \(S\subseteq\{1,\dots,n\}\) and forms the corresponding principal submatrix \(A_{S,S}\). The complementary indices \(S^{c}\) provide the complementary principal submatrix \(A_{S^{c},S^{c}}\). Together with cross blocks \(A_{S,S^{c}}\) and \(A_{S^{c},S}\), these parts assemble a full block partition of \(A\).
This partitioning supports tasks such as analyzing spectra, deriving Schur-complement relationships, and isolating subsets of degrees of freedom.
4.1.2 Block matrix notation
A matrix \(A\in\mathbb{R}^{n\times n}\) can be written in block form when indices are split into \(S\) and \(S^{c}\). Schematically, \[ A=\begin{pmatrix} A_{S,S} & A_{S,S^{c}}\\ A_{S^{c},S} & A_{S^{c},S^{c}} \end{pmatrix}. \] This representation makes it straightforward to express linear systems \(Ax=b\) in terms of the variables indexed by \(S\) and by \(S^{c}\).
4.2 Numerical methods
4.2.1 Reduced systems
Numerical algorithms frequently reduce a problem by eliminating or temporarily setting aside certain variables. If \(x\) is partitioned into \((x_S,x_{S^{c}})\), then the equations can be arranged so that one solves a smaller system involving either the \(S\)-indexed unknowns or the \(S^{c}\)-indexed unknowns, depending on the method.
The complementary index set is what formally identifies the “leftover” variables after reduction.
4.2.2 Elimination of variables
In Gaussian elimination and related procedures, variable elimination corresponds to selecting pivot indices and treating the remaining indices as complementary. Although implementations use permutations and pivoting strategies, the underlying conceptual step is a partition of index sets that distinguishes eliminated variables from those retained for the reduced system.
This view clarifies why reduced matrices depend on complements: the coefficients affecting eliminated variables come from blocks indexed by \(S\) and \(S^{c}\).
4.3 Combinatorics
4.3.1 Subset enumeration
When counting objects indexed by a ground set \(I\), complementary index sets naturally arise. If a configuration is specified by including indices from \(S\) and excluding those from \(S^{c}\), then counting configurations often requires understanding how subsets of \(I\) relate to their complements.
| For finite \(I\), there are \(\binom{ | I | }{k}\) subsets of size \(k\), and complements convert such subsets into subsets of size \( | I | -k\). |
|---|
4.3.2 Complement-based counting
Many counting identities rely on splitting cases based on membership in a subset. Writing conditions in terms of membership in \(S\) and \(S^{c}\) allows one to rewrite sums, apply inclusion–exclusion arguments, or express restricted counts. Even when not explicitly stated as “complementary index sets,” the mechanism is the same: membership in the chosen indices versus membership in the remaining indices partitions the space of possibilities.
5 Related concepts
5.1 Set complement
Complementary index sets are a specialized application of the general notion of set complement. The central difference is that the universal domain \(I\) is often interpreted as an index set governing vectors, matrices, or summation ranges, so complement operations become a bookkeeping tool for selection.
5.2 Complementary subsets
The phrase “complementary subsets” is often used informally to mean \(S\) and \(S^{c}\). In combinatorics and discrete mathematics, it highlights that the two subsets form a partition of the universal set.
5.3 Index masking
In computational contexts, “index masking” refers to using a boolean mask (or indicator array) to select components. The indices where the mask is true correspond to a set \(S\), while those where the mask is false correspond to \(S^{c}\). Thus, complement index sets correspond to the complementary mask.
5.4 Permutations and reindexing
Permutation and reindexing change the labeling of components but do not alter the underlying partition logic. When indices are permuted, the complementary set of a chosen index set is taken with respect to the permuted universal domain. In practice, algorithms may reorder variables and then apply the same complement-based block partitioning to the permuted index sets.