Quantifier elimination has a bit of a magical feel to it.
– Arnab Bhattacharyya (2011)
We would like to decide whether a given (finite) set of vectors is linearly independent. Let us first recall the definition of linear independence. From Dym’s book [1], we have:
Definition: A set of vectors in a vector space
over
is said to be linearly independent over
if the only scalars
for which
are . This is just another way of saying that you cannot express one of these vectors in terms of the others.
_____
In this post we are interested in sets of real vectors and, thus, we shall restrict our attention to the case where . Asserting that a given (finite) set of vectors is linearly independent is the same as stating that the set of vectors under study is not linearly dependent. Therefore, we now recall Dym’s definition [1] of linear dependence:
Definition: A set of vectors in a vector space
over
is said to be linearly dependent over
if there exists a set of scalars
, not all of which are zero, such that
.
Notice that this permits you to express one or more of the given vectors in terms of the others.
_____
From this definition it follows that saying that a given (finite) set of vectors is linearly dependent is the same as stating that the following existentially quantified formula
evaluates to . Please do note that
is a vector equation encapsulating
scalar equations of the form
where is the
-th component of vector
. Finally, we conclude that a given (finite) set of vectors
being linearly independent is equivalent to the following formula
evaluating to . We can determine the truth value of the formula above using quantifier elimination.
__________
Example
Consider the three following vectors in
,
,
.
Is the set of vectors linearly independent (over
)? It is not, as
. However, we would like to arrive at this conclusion using quantifier elimination. Note that in this example we have
(number of vectors), and
(dimensionality).
The vector equation then becomes
which yields two (scalar) equations: and
. Note that the vector equation above also yields two redundant equations of the form
, which we happily discard.
The set of vectors is linearly independent (over
) if and only if the following existentially quantified formula
evaluates to . Using the following REDUCE + REDLOG script, we can determine the truth value of the formula above:
% decide the linear independence of a set of vectors
load_package redlog;
rlset ofsf;
% define linear functions
f1 := alpha1;
f2 := alpha2;
f3 := alpha3;
f4 := alpha1 + alpha3;
f5 := alpha2 + alpha3;
% define existentially quantified formula
phi := not ex({alpha1,alpha2,alpha3},
not (f1=0 and f2=0 and f3=0) and f4=0 and f5=0);
% perform quantifier elimination
rlqe phi;
end;
This script returns , which allows us to conclude that the set of vectors
is, indeed, not linearly independent.
__________
Acknowledgements
This post was inspired by Arnab Bhattacharyya’s recent blog post on quantifier elimination.
__________
References
[1] Harry Dym, Linear algebra in action, American Mathematical Society, 2006.
Tags: Decision Problems, Linear Algebra, Linear Independence, Quantifier Elimination, REDLOG, REDUCE
March 6, 2012 at 14:15 |
Reblogged this on Guzman's Mathematics Weblog and commented:
Have to reblog this post! I love linear algebra and programming. I am very interested in learning more about REDUCE and REDLOG.