Linear maps with prescribed values on a linearly independent family #
[UPSTREAM] candidate for Mathlib/LinearAlgebra/Basis/VectorSpace.lean. A linearly independent
family in a vector space can be sent to any family of values by a linear map, defined on the span
of the family by Module.Basis.constr and extended to the whole space by
LinearMap.exists_extend. Mathlib proves the case of a functional equal to 1 on the family,
Module.exists_dual_forall_apply_eq_one, which follows from this one.
theorem
LinearIndependent.exists_linearMap_forall_apply_eq
{ι : Type u_1}
{K : Type u_2}
{V : Type u_3}
{W : Type u_4}
[DivisionRing K]
[AddCommGroup V]
[Module K V]
[AddCommGroup W]
[Module K W]
{v : ι → V}
(hv : LinearIndependent K v)
(w : ι → W)
:
∃ (f : V →ₗ[K] W), ∀ (i : ι), f (v i) = w i
A linear map may take any values on a linearly independent family.