let n, m be Nat; :: thesis: for M being Matrix of n,m,F_Real
for A being affinely-independent Subset of (TOP-REAL m) st the_rank_of M = n holds
(Mx2Tran M) " A is affinely-independent

let M be Matrix of n,m,F_Real; :: thesis: for A being affinely-independent Subset of (TOP-REAL m) st the_rank_of M = n holds
(Mx2Tran M) " A is affinely-independent

set MT = Mx2Tran M;
set TRn = TOP-REAL n;
set TRm = TOP-REAL m;
let A be affinely-independent Subset of (TOP-REAL m); :: thesis: ( the_rank_of M = n implies (Mx2Tran M) " A is affinely-independent )
assume A1: the_rank_of M = n ; :: thesis: (Mx2Tran M) " A is affinely-independent
reconsider R = A /\ (rng (Mx2Tran M)) as affinely-independent Subset of (TOP-REAL m) by RLAFFIN1:43, XBOOLE_1:17;
A2: (Mx2Tran M) " A = (Mx2Tran M) " (A /\ (rng (Mx2Tran M))) by RELAT_1:133;
per cases ( R is empty or not R is empty ) ;
suppose R is empty ; :: thesis: (Mx2Tran M) " A is affinely-independent
end;
suppose not R is empty ; :: thesis: (Mx2Tran M) " A is affinely-independent
then consider v being Element of (TOP-REAL m) such that
A3: v in R and
A4: ((- v) + R) \ {(0. (TOP-REAL m))} is linearly-independent by RLAFFIN1:def 4;
v in rng (Mx2Tran M) by A3, XBOOLE_0:def 4;
then consider x being object such that
A5: x in dom (Mx2Tran M) and
A6: (Mx2Tran M) . x = v by FUNCT_1:def 3;
reconsider x = x as Element of (TOP-REAL n) by A5;
- x = (0. (TOP-REAL n)) - x by RLVECT_1:14;
then A7: (Mx2Tran M) . (- x) = ((Mx2Tran M) . (0. (TOP-REAL n))) - ((Mx2Tran M) . x) by MATRTOP1:28
.= (0. (TOP-REAL m)) - ((Mx2Tran M) . x) by MATRTOP1:29
.= - v by A6, RLVECT_1:14 ;
A8: dom (Mx2Tran M) = [#] (TOP-REAL n) by FUNCT_2:def 1;
(Mx2Tran M) . (0. (TOP-REAL n)) = 0. (TOP-REAL m) by MATRTOP1:29;
then A9: {(0. (TOP-REAL m))} = Im ((Mx2Tran M),(0. (TOP-REAL n))) by A8, FUNCT_1:59
.= (Mx2Tran M) .: {(0. (TOP-REAL n))} by RELAT_1:def 16 ;
Mx2Tran M is one-to-one by A1, MATRTOP1:39;
then A10: (Mx2Tran M) " {(0. (TOP-REAL m))} c= {(0. (TOP-REAL n))} by A9, FUNCT_1:82;
{(0. (TOP-REAL n))} c= [#] (TOP-REAL n) by ZFMISC_1:31;
then {(0. (TOP-REAL n))} c= (Mx2Tran M) " {(0. (TOP-REAL m))} by A8, A9, FUNCT_1:76;
then (Mx2Tran M) " {(0. (TOP-REAL m))} = {(0. (TOP-REAL n))} by A10;
then (Mx2Tran M) " (((- v) + R) \ {(0. (TOP-REAL m))}) = ((Mx2Tran M) " ((- v) + R)) \ {(0. (TOP-REAL n))} by FUNCT_1:69
.= ((- x) + ((Mx2Tran M) " R)) \ {(0. (TOP-REAL n))} by A7, MATRTOP1:31 ;
then A11: ((- x) + ((Mx2Tran M) " R)) \ {(0. (TOP-REAL n))} is linearly-independent by A1, A4, Th26;
x in (Mx2Tran M) " R by A3, A5, A6, FUNCT_1:def 7;
hence (Mx2Tran M) " A is affinely-independent by A2, A11, RLAFFIN1:def 4; :: thesis: verum
end;
end;