# Number of linear independent subsets with cardinality 4

I have a list of vectors in the vector space Q with a dimension of 5, which I want to order in a list and use Combinations(list, 4) to get all sublists with 4 elements. I then want to check how many of those sublists are linear independent in the Vector Space with V.linear dependence(vs) == [].

I'm running into an error when running my code:

V = VectorSpace(QQ,5)

V.list = ([2, 2, 2,-3,-3],[2, 2,-3,2,-3],[2,2,-3,-3,2],[2,-3,2,2,-3],[2,-3,2,-3,2],[2,-3,-3,2,2],[-3,2,2,2,-3],[-3,2,2,-3,2],[-3,2,-3,2,2],[-3,-3,2,2,2])

C = Combinations(list, 4)

V.linear_dependence(C) == []

"ValueError: vector [[2, 2, 2, -3, -3], [2, 2, -3, 2, -3], [2, 2, -3, -3, 2], [2, -3, 2, 2, -3]] is not an element of Vector space of dimension 5 over Rational Field"

Anyone got any clues as to what im missing?

To display blocks of code or error messages, skip a line above and below, and do one of the following (all give the same result):

For instance, typing

produces:

Please edit your question to do that.

Also posted at https://stackoverflow.com/questions/5...