Finite dimension of vector spaces #
Definition of the rank of a module, or dimension of a vector space, as a natural number.
Main definitions #
Defined is FiniteDimensional.finrank, the dimension of a finite dimensional space, returning a
Nat, as opposed to Module.rank, which returns a Cardinal. When the space has infinite
dimension, its finrank is by convention set to 0.
The definition of finrank does not assume a FiniteDimensional instance, but lemmas might.
Import LinearAlgebra.FiniteDimensional to get access to these additional lemmas.
Formulas for the dimension are given for linear equivs, in LinearEquiv.finrank_eq.
Implementation notes #
Most results are deduced from the corresponding results for the general dimension (as a cardinal),
in Dimension.lean. Not all results have been ported yet.
You should not assume that there has been any effort to state lemmas as generally as possible.
The rank of a module as a natural number.
Defined by convention to be 0 if the space has infinite rank.
For a vector space V over a field K, this is the same as the finite dimension
of V over K.
Equations
- FiniteDimensional.finrank R V = ↑Cardinal.toNat (Module.rank R V)
Instances For
This is like rank_eq_one_iff_finrank_eq_one but works for 2, 3, 4, ...
A finite dimensional space is nontrivial if it has positive finrank.
A finite dimensional space is nontrivial if it has finrank equal to the successor of a
natural number.
A (finite dimensional) space that is a subsingleton has zero finrank.
If a vector space (or module) has a finite basis, then its dimension (or rank) is equal to the cardinality of the basis.
If a vector space (or module) has a finite basis, then its dimension (or rank) is equal to the
cardinality of the basis. This lemma uses a Finset instead of indexed types.
A ring satisfying StrongRankCondition (such as a DivisionRing) is one-dimensional as a
module over itself.
The vector space of functions on a Fintype ι has finrank equal to the cardinality of ι.
The vector space of functions on Fin n has finrank equal to n.
The dimension of a finite dimensional space is preserved under linear equivalence.
Pushforwards of finite-dimensional submodules along a LinearEquiv have the same finrank.
The dimensions of the domain and range of an injective linear map are equal.
The rank of a set of vectors as a natural number.
Equations
- Set.finrank K s = FiniteDimensional.finrank K { x // x ∈ Submodule.span K s }
Instances For
Given a family of n linearly independent vectors in a finite-dimensional space of
dimension > n, one may extend the family by another vector while retaining linear independence.
Given a family of n linearly independent vectors in a finite-dimensional space of
dimension > n, one may extend the family by another vector while retaining linear independence.
Given a nonzero vector in a finite-dimensional space of dimension > 1, one may find another
vector linearly independent of the first one.
A finite family of vectors is linearly independent if and only if its cardinality equals the dimension of its span.
A family of finrank K V vectors forms a basis if they span the whole space.
Equations
- basisOfTopLeSpanOfCardEqFinrank b le_span card_eq = Basis.mk (_ : LinearIndependent K b) le_span
Instances For
A finset of finrank K V vectors forms a basis if they span the whole space.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A set of finrank K V vectors forms a basis if they span the whole space.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If there is a nonzero vector and every other vector is a multiple of it, then the module has dimension one.
If every vector is a multiple of some v : V, then V has dimension at most one.