:: RLVECT_3 semantic presentation

Lemma1: for b1 being RealLinearSpace
for b2, b3 being FinSequence of the carrier of b1
for b4 being Function of the carrier of b1, REAL holds b4 (#) (b2 ^ b3) = (b4 (#) b2) ^ (b4 (#) b3)
proof end;

theorem Th1: :: RLVECT_3:1
for b1 being RealLinearSpace
for b2, b3 being Linear_Combination of b1 holds Sum (b2 + b3) = (Sum b2) + (Sum b3)
proof end;

theorem Th2: :: RLVECT_3:2
for b1 being Real
for b2 being RealLinearSpace
for b3 being Linear_Combination of b2 holds Sum (b1 * b3) = b1 * (Sum b3)
proof end;

theorem Th3: :: RLVECT_3:3
for b1 being RealLinearSpace
for b2 being Linear_Combination of b1 holds Sum (- b2) = - (Sum b2)
proof end;

theorem Th4: :: RLVECT_3:4
for b1 being RealLinearSpace
for b2, b3 being Linear_Combination of b1 holds Sum (b2 - b3) = (Sum b2) - (Sum b3)
proof end;

definition
let c1 be RealLinearSpace;
let c2 be Subset of c1;
attr a2 is linearly-independent means :Def1: :: RLVECT_3:def 1
for b1 being Linear_Combination of a2 st Sum b1 = 0. a1 holds
Carrier b1 = {} ;
end;

:: deftheorem Def1 defines linearly-independent RLVECT_3:def 1 :
for b1 being RealLinearSpace
for b2 being Subset of b1 holds
( b2 is linearly-independent iff for b3 being Linear_Combination of b2 st Sum b3 = 0. b1 holds
Carrier b3 = {} );

notation
let c1 be RealLinearSpace;
let c2 be Subset of c1;
antonym linearly-dependent c2 for linearly-independent c2;
end;

theorem Th5: :: RLVECT_3:5
canceled;

theorem Th6: :: RLVECT_3:6
for b1 being RealLinearSpace
for b2, b3 being Subset of b1 st b2 c= b3 & b3 is linearly-independent holds
b2 is linearly-independent
proof end;

theorem Th7: :: RLVECT_3:7
for b1 being RealLinearSpace
for b2 being Subset of b1 st b2 is linearly-independent holds
not 0. b1 in b2
proof end;

theorem Th8: :: RLVECT_3:8
for b1 being RealLinearSpace holds {} the carrier of b1 is linearly-independent
proof end;

registration
let c1 be RealLinearSpace;
cluster linearly-independent Element of bool the carrier of a1;
existence
ex b1 being Subset of c1 st b1 is linearly-independent
proof end;
end;

theorem Th9: :: RLVECT_3:9
for b1 being RealLinearSpace
for b2 being VECTOR of b1 holds
( {b2} is linearly-independent iff b2 <> 0. b1 )
proof end;

theorem Th10: :: RLVECT_3:10
for b1 being RealLinearSpace holds not {(0. b1)} is linearly-independent by Th9;

theorem Th11: :: RLVECT_3:11
for b1 being RealLinearSpace
for b2, b3 being VECTOR of b1 st {b2,b3} is linearly-independent holds
( b2 <> 0. b1 & b3 <> 0. b1 )
proof end;

theorem Th12: :: RLVECT_3:12
for b1 being RealLinearSpace
for b2 being VECTOR of b1 holds
( not {b2,(0. b1)} is linearly-independent & not {(0. b1),b2} is linearly-independent ) by Th11;

theorem Th13: :: RLVECT_3:13
for b1 being RealLinearSpace
for b2, b3 being VECTOR of b1 holds
( b2 <> b3 & {b2,b3} is linearly-independent iff ( b3 <> 0. b1 & ( for b4 being Real holds b2 <> b4 * b3 ) ) )
proof end;

theorem Th14: :: RLVECT_3:14
for b1 being RealLinearSpace
for b2, b3 being VECTOR of b1 holds
( ( b2 <> b3 & {b2,b3} is linearly-independent ) iff for b4, b5 being Real st (b4 * b2) + (b5 * b3) = 0. b1 holds
( b4 = 0 & b5 = 0 ) )
proof end;

definition
let c1 be RealLinearSpace;
let c2 be Subset of c1;
func Lin c2 -> strict Subspace of a1 means :Def2: :: RLVECT_3:def 2
the carrier of a3 = { (Sum b1) where B is Linear_Combination of a2 : verum } ;
existence
ex b1 being strict Subspace of c1 st the carrier of b1 = { (Sum b2) where B is Linear_Combination of c2 : verum }
proof end;
uniqueness
for b1, b2 being strict Subspace of c1 st the carrier of b1 = { (Sum b3) where B is Linear_Combination of c2 : verum } & the carrier of b2 = { (Sum b3) where B is Linear_Combination of c2 : verum } holds
b1 = b2
by RLSUB_1:38;
end;

:: deftheorem Def2 defines Lin RLVECT_3:def 2 :
for b1 being RealLinearSpace
for b2 being Subset of b1
for b3 being strict Subspace of b1 holds
( b3 = Lin b2 iff the carrier of b3 = { (Sum b4) where B is Linear_Combination of b2 : verum } );

theorem Th15: :: RLVECT_3:15
canceled;

theorem Th16: :: RLVECT_3:16
canceled;

theorem Th17: :: RLVECT_3:17
for b1 being set
for b2 being RealLinearSpace
for b3 being Subset of b2 holds
( b1 in Lin b3 iff ex b4 being Linear_Combination of b3 st b1 = Sum b4 )
proof end;

theorem Th18: :: RLVECT_3:18
for b1 being set
for b2 being RealLinearSpace
for b3 being Subset of b2 st b1 in b3 holds
b1 in Lin b3
proof end;

Lemma15: for b1 being set
for b2 being RealLinearSpace holds
( b1 in (0). b2 iff b1 = 0. b2 )
proof end;

theorem Th19: :: RLVECT_3:19
for b1 being RealLinearSpace holds Lin ({} the carrier of b1) = (0). b1
proof end;

theorem Th20: :: RLVECT_3:20
for b1 being RealLinearSpace
for b2 being Subset of b1 holds
( not Lin b2 = (0). b1 or b2 = {} or b2 = {(0. b1)} )
proof end;

theorem Th21: :: RLVECT_3:21
for b1 being RealLinearSpace
for b2 being Subset of b1
for b3 being strict Subspace of b1 st b2 = the carrier of b3 holds
Lin b2 = b3
proof end;

theorem Th22: :: RLVECT_3:22
for b1 being strict RealLinearSpace
for b2 being Subset of b1 st b2 = the carrier of b1 holds
Lin b2 = b1
proof end;

Lemma17: for b1 being RealLinearSpace
for b2, b3, b4 being Subspace of b1 st b2 is Subspace of b3 holds
b2 /\ b4 is Subspace of b3
proof end;

Lemma18: for b1 being RealLinearSpace
for b2, b3, b4 being Subspace of b1 st b2 is Subspace of b3 & b2 is Subspace of b4 holds
b2 is Subspace of b3 /\ b4
proof end;

Lemma19: for b1 being RealLinearSpace
for b2, b3, b4 being Subspace of b1 st b2 is Subspace of b3 holds
b2 is Subspace of b3 + b4
proof end;

Lemma20: for b1 being RealLinearSpace
for b2, b3, b4 being Subspace of b1 st b2 is Subspace of b3 & b4 is Subspace of b3 holds
b2 + b4 is Subspace of b3
proof end;

theorem Th23: :: RLVECT_3:23
for b1 being RealLinearSpace
for b2, b3 being Subset of b1 st b2 c= b3 holds
Lin b2 is Subspace of Lin b3
proof end;

theorem Th24: :: RLVECT_3:24
for b1 being strict RealLinearSpace
for b2, b3 being Subset of b1 st Lin b2 = b1 & b2 c= b3 holds
Lin b3 = b1
proof end;

theorem Th25: :: RLVECT_3:25
for b1 being RealLinearSpace
for b2, b3 being Subset of b1 holds Lin (b2 \/ b3) = (Lin b2) + (Lin b3)
proof end;

theorem Th26: :: RLVECT_3:26
for b1 being RealLinearSpace
for b2, b3 being Subset of b1 holds Lin (b2 /\ b3) is Subspace of (Lin b2) /\ (Lin b3)
proof end;

Lemma22: for b1 being non empty set
for b2 being Choice_Function of b1 st not {} in b1 holds
( dom b2 = b1 & rng b2 c= union b1 )
proof end;

theorem Th27: :: RLVECT_3:27
for b1 being RealLinearSpace
for b2 being Subset of b1 st b2 is linearly-independent holds
ex b3 being Subset of b1 st
( b2 c= b3 & b3 is linearly-independent & Lin b3 = RLSStruct(# the carrier of b1,the Zero of b1,the add of b1,the Mult of b1 #) )
proof end;

theorem Th28: :: RLVECT_3:28
for b1 being RealLinearSpace
for b2 being Subset of b1 st Lin b2 = b1 holds
ex b3 being Subset of b1 st
( b3 c= b2 & b3 is linearly-independent & Lin b3 = b1 )
proof end;

definition
let c1 be RealLinearSpace;
mode Basis of c1 -> Subset of a1 means :Def3: :: RLVECT_3:def 3
( a2 is linearly-independent & Lin a2 = RLSStruct(# the carrier of a1,the Zero of a1,the add of a1,the Mult of a1 #) );
existence
ex b1 being Subset of c1 st
( b1 is linearly-independent & Lin b1 = RLSStruct(# the carrier of c1,the Zero of c1,the add of c1,the Mult of c1 #) )
proof end;
end;

:: deftheorem Def3 defines Basis RLVECT_3:def 3 :
for b1 being RealLinearSpace
for b2 being Subset of b1 holds
( b2 is Basis of b1 iff ( b2 is linearly-independent & Lin b2 = RLSStruct(# the carrier of b1,the Zero of b1,the add of b1,the Mult of b1 #) ) );

theorem Th29: :: RLVECT_3:29
canceled;

theorem Th30: :: RLVECT_3:30
canceled;

theorem Th31: :: RLVECT_3:31
canceled;

theorem Th32: :: RLVECT_3:32
for b1 being strict RealLinearSpace
for b2 being Subset of b1 st b2 is linearly-independent holds
ex b3 being Basis of b1 st b2 c= b3
proof end;

theorem Th33: :: RLVECT_3:33
for b1 being RealLinearSpace
for b2 being Subset of b1 st Lin b2 = b1 holds
ex b3 being Basis of b1 st b3 c= b2
proof end;

theorem Th34: :: RLVECT_3:34
canceled;

theorem Th35: :: RLVECT_3:35
for b1 being non empty set
for b2 being Choice_Function of b1 st not {} in b1 holds
( dom b2 = b1 & rng b2 c= union b1 ) by Lemma22;

theorem Th36: :: RLVECT_3:36
for b1 being set
for b2 being RealLinearSpace holds
( b1 in (0). b2 iff b1 = 0. b2 ) by Lemma15;

theorem Th37: :: RLVECT_3:37
for b1 being RealLinearSpace
for b2, b3, b4 being Subspace of b1 st b2 is Subspace of b3 holds
b2 /\ b4 is Subspace of b3 by Lemma17;

theorem Th38: :: RLVECT_3:38
for b1 being RealLinearSpace
for b2, b3, b4 being Subspace of b1 st b2 is Subspace of b3 & b2 is Subspace of b4 holds
b2 is Subspace of b3 /\ b4 by Lemma18;

theorem Th39: :: RLVECT_3:39
for b1 being RealLinearSpace
for b2, b3, b4 being Subspace of b1 st b2 is Subspace of b3 & b4 is Subspace of b3 holds
b2 + b4 is Subspace of b3 by Lemma20;

theorem Th40: :: RLVECT_3:40
for b1 being RealLinearSpace
for b2, b3, b4 being Subspace of b1 st b2 is Subspace of b3 holds
b2 is Subspace of b3 + b4 by Lemma19;

theorem Th41: :: RLVECT_3:41
for b1 being RealLinearSpace
for b2, b3 being FinSequence of the carrier of b1
for b4 being Function of the carrier of b1, REAL holds b4 (#) (b2 ^ b3) = (b4 (#) b2) ^ (b4 (#) b3) by Lemma1;