linalg2: prove that S is basis iff maximal independent iff minimal spanning