let K be Field; :: thesis: for V1 being finite-dimensional VectSp of K
for b1 being OrdBasis of V1
for d being FinSequence of K st len d = len b1 holds
d = (Sum (lmlt d,b1)) |-- b1

let V1 be finite-dimensional VectSp of K; :: thesis: for b1 being OrdBasis of V1
for d being FinSequence of K st len d = len b1 holds
d = (Sum (lmlt d,b1)) |-- b1

let b1 be OrdBasis of V1; :: thesis: for d being FinSequence of K st len d = len b1 holds
d = (Sum (lmlt d,b1)) |-- b1

let d be FinSequence of K; :: thesis: ( len d = len b1 implies d = (Sum (lmlt d,b1)) |-- b1 )
assume A1: len d = len b1 ; :: thesis: d = (Sum (lmlt d,b1)) |-- b1
defpred S1[ Element of V1, Element of K] means ( ( $1 in rng b1 implies for k being Nat st k in dom b1 & b1 /. k = $1 holds
$2 = d /. k ) & ( not $1 in rng b1 implies $2 = 0. K ) );
A2: for v being Element of V1 ex u being Element of K st S1[v,u]
proof
let v be Element of V1; :: thesis: ex u being Element of K st S1[v,u]
per cases ( v in rng b1 or not v in rng b1 ) ;
suppose A3: v in rng b1 ; :: thesis: ex u being Element of K st S1[v,u]
then consider k being Element of NAT such that
A4: ( k in dom b1 & b1 /. k = v ) by PARTFUN2:4;
take u = d /. k; :: thesis: S1[v,u]
now
let i be Nat; :: thesis: ( i in dom b1 & b1 /. i = v implies u = d /. i )
assume A5: ( i in dom b1 & b1 /. i = v ) ; :: thesis: u = d /. i
A6: b1 is one-to-one by Def4;
b1 . i = b1 /. k by A4, A5, PARTFUN1:def 8
.= b1 . k by A4, PARTFUN1:def 8 ;
hence u = d /. i by A4, A5, A6, FUNCT_1:def 8; :: thesis: verum
end;
hence S1[v,u] by A3; :: thesis: verum
end;
suppose A7: not v in rng b1 ; :: thesis: ex u being Element of K st S1[v,u]
take 0. K ; :: thesis: S1[v, 0. K]
thus S1[v, 0. K] by A7; :: thesis: verum
end;
end;
end;
consider KL being Function of V1,K such that
A8: for v being Element of V1 holds S1[v,KL . v] from FUNCT_2:sch 3(A2);
now
take f = KL; :: thesis: ( KL = f & dom f = the carrier of V1 & rng f c= the carrier of K )
thus ( KL = f & dom f = the carrier of V1 & rng f c= the carrier of K ) by FUNCT_2:def 1, RELAT_1:def 19; :: thesis: verum
end;
then A9: KL in Funcs the carrier of V1,the carrier of K by FUNCT_2:def 2;
reconsider T = rng b1 as finite Subset of V1 by Def4;
now
take T = T; :: thesis: for v being Element of V1 st not v in T holds
KL . v = 0. K

let v be Element of V1; :: thesis: ( not v in T implies KL . v = 0. K )
assume not v in T ; :: thesis: KL . v = 0. K
hence KL . v = 0. K by A8; :: thesis: verum
end;
then reconsider KL1 = KL as Linear_Combination of V1 by A9, VECTSP_6:def 4;
now
take KL1 = KL1; :: thesis: ( ( for k being Nat st 1 <= k & k <= len d holds
d /. k = KL1 . (b1 /. k) ) & Carrier KL1 c= rng b1 & Sum (lmlt d,b1) = Sum KL1 )

thus A10: for k being Nat st 1 <= k & k <= len d holds
d /. k = KL1 . (b1 /. k) :: thesis: ( Carrier KL1 c= rng b1 & Sum (lmlt d,b1) = Sum KL1 )
proof
let k be Nat; :: thesis: ( 1 <= k & k <= len d implies d /. k = KL1 . (b1 /. k) )
assume ( 1 <= k & k <= len d ) ; :: thesis: d /. k = KL1 . (b1 /. k)
then A11: k in dom b1 by A1, FINSEQ_3:27;
then b1 . k = b1 /. k by PARTFUN1:def 8;
then b1 /. k in rng b1 by A11, FUNCT_1:def 5;
hence d /. k = KL1 . (b1 /. k) by A8, A11; :: thesis: verum
end;
for x being set st x in Carrier KL1 holds
x in rng b1
proof
let x be set ; :: thesis: ( x in Carrier KL1 implies x in rng b1 )
assume A12: x in Carrier KL1 ; :: thesis: x in rng b1
assume A13: not x in rng b1 ; :: thesis: contradiction
consider v being Element of V1 such that
A14: ( x = v & KL1 . v <> 0. K ) by A12, VECTSP_6:19;
thus contradiction by A8, A13, A14; :: thesis: verum
end;
hence A15: Carrier KL1 c= rng b1 by TARSKI:def 3; :: thesis: Sum (lmlt d,b1) = Sum KL1
A16: b1 is one-to-one by Def4;
A17: dom d = dom b1 by A1, FINSEQ_3:31;
then A18: dom (lmlt d,b1) = dom b1 by Th16;
then A19: len (lmlt d,b1) = len b1 by FINSEQ_3:31
.= len (KL1 (#) b1) by VECTSP_6:def 8 ;
now
let k be Nat; :: thesis: ( k in dom (lmlt d,b1) implies (lmlt d,b1) . k = (KL1 (#) b1) . k )
assume A20: k in dom (lmlt d,b1) ; :: thesis: (lmlt d,b1) . k = (KL1 (#) b1) . k
then A21: d /. k = d . k by A17, A18, PARTFUN1:def 8;
A22: b1 /. k = b1 . k by A18, A20, PARTFUN1:def 8;
A23: k in dom (KL1 (#) b1) by A19, A20, FINSEQ_3:31;
A24: ( 1 <= k & k <= len d ) by A1, A18, A20, FINSEQ_3:27;
thus (lmlt d,b1) . k = the lmult of V1 . (d . k),(b1 . k) by A20, FUNCOP_1:28
.= (d /. k) * (b1 /. k) by A21, A22, VECTSP_1:def 24
.= (KL1 . (b1 /. k)) * (b1 /. k) by A10, A24
.= (KL1 (#) b1) . k by A23, VECTSP_6:def 8 ; :: thesis: verum
end;
hence Sum (lmlt d,b1) = Sum (KL1 (#) b1) by A19, NEWTON:3
.= Sum KL1 by A15, A16, Th24 ;
:: thesis: verum
end;
hence d = (Sum (lmlt d,b1)) |-- b1 by A1, Def9; :: thesis: verum