In mathematics, particularly in linear algebra, a flag is an increasing sequence of subspaces of a finite-dimensional vector space V. Here "increasing" means each is a proper subspace of the next (see filtration):
If we write the dim Vi = di then we have
where n is the dimension of V (assumed to be finite-dimensional). Hence, we must have k ≤ n. A flag is called a complete flag if di = i, otherwise it is called a partial flag.
A partial flag can be obtained from a complete flag by deleting some of the subspaces. Conversely, any partial flag can be completed (in many different ways) by inserting suitable subspaces.
The signature of the flag is the sequence (d1, … dk).
Under certain conditions the resulting sequence resembles a flag with a point connected to a line connected to a surface.
An ordered basis for V is said to be adapted to a flag if the first di basis vectors form a basis for Vi for each 0 ≤ i ≤ k. Standard arguments from linear algebra can show that any flag has an adapted basis.
Any ordered basis gives rise to a complete flag by letting the Vi be the span of the first i basis vectors. For example, the standard flag in Rn is induced from the standard basis (e1, ..., en) where ei denotes the vector with a 1 in the ith slot and 0's elsewhere. Concretely, the standard flag is the subspaces:
An adapted basis is almost never unique (trivial counterexamples); see below.
A complete flag on an inner product space has an essentially unique orthonormal basis: it is unique up to multiplying each vector by a unit (scalar of unit length, like 1, -1, i). This is easiest to prove inductively, by noting that , which defines it uniquely up to unit.