For , the independent vectors lie in the coordinate subspace supported on
which has dimension . Hence , and the stated form of Hall marriage theorem gives an injection with .
Let be the matrix whose th column is . Its column rank is . By equality of row and column rank, it has linearly independent rows. Let be their indices. The submatrix is invertible, so its columns are independent. Those columns are exactly the nonzero coordinates of , and therefore these truncated vectors are linearly independent.
Expanding gives a permutation for which
Thus . Finally, order the coordinates with first. The matrix whose columns are the together with the for is block triangular, with diagonal blocks and an identity matrix. Its determinant is nonzero. Consequently
is a basis of . This is the simultaneous basis exchange from a nonzero minor.
A matching from to is a set of pairwise vertex-disjoint edges that covers every vertex of . Equivalently, it chooses for each a distinct neighbour in .
Hall marriage theorem says that such a matching exists if and only if
Necessity is immediate: the distinct partners of the vertices in all belong to .
For sufficiency, induct on . The claim is clear when . First suppose every nonempty proper satisfies the strict inequality . Choose an edge and delete and . For , deletion removes at most one neighbour, so
Induction gives a matching of , and adding completes it.
Otherwise there is a nonempty proper with . Hall's condition holds in the bipartite graph induced by , so induction matches onto . For ,
and hence has at least neighbours outside . Induction therefore matches into . The two matchings are disjoint and together cover .
A matching from to consists of disjoint edges saturating every vertex of . The criterion is Hall marriage theorem.
For sufficiency, induct on . If a nonempty proper is tight, , apply induction to and to the graph left after deleting them. If no proper set is tight, choose any edge , delete its endpoints, and Hall still holds because every nonempty proper subset formerly had at least one spare neighbour. Induction completes the matching. Necessity is immediate.
For , count with reciprocal degrees. On every edge , , so
Hall's condition holds, so Hall marriage theorem supplies the matching.