let F be Field; :: thesis: for V being VectSp of F
for W being Subspace of V
for l1 being Linear_Combination of W ex l2 being Linear_Combination of V st
( Carrier l2 = Carrier l1 & ( for v being Element of V st v in Carrier l2 holds
l2 . v = l1 . v ) )

let V be VectSp of F; :: thesis: for W being Subspace of V
for l1 being Linear_Combination of W ex l2 being Linear_Combination of V st
( Carrier l2 = Carrier l1 & ( for v being Element of V st v in Carrier l2 holds
l2 . v = l1 . v ) )

let W be Subspace of V; :: thesis: for l1 being Linear_Combination of W ex l2 being Linear_Combination of V st
( Carrier l2 = Carrier l1 & ( for v being Element of V st v in Carrier l2 holds
l2 . v = l1 . v ) )

let l1 be Linear_Combination of W; :: thesis: ex l2 being Linear_Combination of V st
( Carrier l2 = Carrier l1 & ( for v being Element of V st v in Carrier l2 holds
l2 . v = l1 . v ) )

H: the carrier of W c= the carrier of V by VECTSP_4:def 2;
consider f being Function such that
L1: ( l1 = f & dom f = the carrier of W & rng f c= the carrier of F ) by FUNCT_2:def 2;
reconsider f = f as Function of W,F by L1;
defpred S1[ Element of V, Element of F] means ( ( $1 in Carrier l1 & $2 = f . $1 ) or ( not $1 in Carrier l1 & $2 = 0. F ) );
A: for x being Element of the carrier of V ex y being Element of the carrier of F st S1[x,y]
proof
let v be Element of the carrier of V; :: thesis: ex y being Element of the carrier of F st S1[v,y]
per cases ( v in Carrier l1 or not v in Carrier l1 ) ;
suppose A1: v in Carrier l1 ; :: thesis: ex y being Element of the carrier of F st S1[v,y]
then reconsider v1 = v as Element of W ;
reconsider y = f . v1 as Element of F ;
take y ; :: thesis: S1[v,y]
thus S1[v,y] by A1; :: thesis: verum
end;
suppose A1: not v in Carrier l1 ; :: thesis: ex y being Element of the carrier of F st S1[v,y]
take 0. F ; :: thesis: S1[v, 0. F]
thus S1[v, 0. F] by A1; :: thesis: verum
end;
end;
end;
consider g being Function of V,F such that
B: for x being Element of V holds S1[x,g . x] from FUNCT_2:sch 3(A);
( dom g = the carrier of V & rng g c= the carrier of F ) by FUNCT_2:def 1;
then C: g is Element of Funcs ( the carrier of V, the carrier of F) by FUNCT_2:def 2;
for o being object st o in Carrier l1 holds
o in the carrier of V by H;
then reconsider C = Carrier l1 as finite Subset of V by TARSKI:def 3;
for v being Element of V st not v in C holds
g . v = 0. F by B;
then reconsider l2 = g as Linear_Combination of V by C, VECTSP_6:def 1;
take l2 ; :: thesis: ( Carrier l2 = Carrier l1 & ( for v being Element of V st v in Carrier l2 holds
l2 . v = l1 . v ) )

G: now :: thesis: for o being object st o in Carrier l2 holds
o in Carrier l1
let o be object ; :: thesis: ( o in Carrier l2 implies o in Carrier l1 )
assume o in Carrier l2 ; :: thesis: o in Carrier l1
then consider v being Element of V such that
G1: ( o = v & l2 . v <> 0. F ) by VECTSP_6:1;
thus o in Carrier l1 by B, G1; :: thesis: verum
end;
now :: thesis: for o being object st o in Carrier l1 holds
o in Carrier l2
let o be object ; :: thesis: ( o in Carrier l1 implies o in Carrier l2 )
assume G0: o in Carrier l1 ; :: thesis: o in Carrier l2
then consider v being Element of W such that
G1: ( o = v & l1 . v <> 0. F ) by VECTSP_6:1;
reconsider v1 = v as Element of V by H;
( v1 in Carrier l1 & g . v1 = f . v1 ) by B, G1, G0;
hence o in Carrier l2 by L1, G1, VECTSP_6:2; :: thesis: verum
end;
hence Carrier l2 = Carrier l1 by G, TARSKI:2; :: thesis: for v being Element of V st v in Carrier l2 holds
l2 . v = l1 . v

hence for v being Element of V st v in Carrier l2 holds
l2 . v = l1 . v by B, L1; :: thesis: verum