:: VECTSP_9 semantic presentation

registration
let c1 be non empty 1-sorted ;
cluster non empty Element of K40(the carrier of a1);
existence
not for b1 being Subset of c1 holds b1 is empty
proof end;
end;

theorem Th1: :: VECTSP_9:1
for b1 being Nat
for b2 being finite set st b1 <= card b2 holds
ex b3 being finite Subset of b2 st Card b3 = b1
proof end;

theorem Th2: :: VECTSP_9:2
for b1 being set
for b2 being Function st b2 is one-to-one & b1 in rng b2 holds
Card (b2 " {b1}) = 1
proof end;

theorem Th3: :: VECTSP_9:3
for b1 being set
for b2 being Function st not b1 in rng b2 holds
Card (b2 " {b1}) = 0 by CARD_1:78, FUNCT_1:142;

theorem Th4: :: VECTSP_9:4
for b1, b2 being Function st rng b1 = rng b2 & b1 is one-to-one & b2 is one-to-one holds
b1,b2 are_fiberwise_equipotent
proof end;

Lemma4: for b1, b2 being set st b2 in b1 holds
(b1 \ {b2}) \/ {b2} = b1
proof end;

theorem Th5: :: VECTSP_9:5
for b1 being Field
for b2 being VectSp of b1
for b3 being Linear_Combination of b2
for b4, b5 being FinSequence of the carrier of b2
for b6 being Permutation of dom b4 st b5 = b4 * b6 holds
Sum (b3 (#) b4) = Sum (b3 (#) b5)
proof end;

theorem Th6: :: VECTSP_9:6
for b1 being Field
for b2 being VectSp of b1
for b3 being Linear_Combination of b2
for b4 being FinSequence of the carrier of b2 st Carrier b3 misses rng b4 holds
Sum (b3 (#) b4) = 0. b2
proof end;

theorem Th7: :: VECTSP_9:7
for b1 being Field
for b2 being VectSp of b1
for b3 being FinSequence of the carrier of b2 st b3 is one-to-one holds
for b4 being Linear_Combination of b2 st Carrier b4 c= rng b3 holds
Sum (b4 (#) b3) = Sum b4
proof end;

theorem Th8: :: VECTSP_9:8
for b1 being Field
for b2 being VectSp of b1
for b3 being Linear_Combination of b2
for b4 being FinSequence of the carrier of b2 ex b5 being Linear_Combination of b2 st
( Carrier b5 = (rng b4) /\ (Carrier b3) & b3 (#) b4 = b5 (#) b4 )
proof end;

theorem Th9: :: VECTSP_9:9
for b1 being Field
for b2 being VectSp of b1
for b3 being Linear_Combination of b2
for b4 being Subset of b2
for b5 being FinSequence of the carrier of b2 st rng b5 c= the carrier of (Lin b4) holds
ex b6 being Linear_Combination of b4 st Sum (b3 (#) b5) = Sum b6
proof end;

theorem Th10: :: VECTSP_9:10
for b1 being Field
for b2 being VectSp of b1
for b3 being Linear_Combination of b2
for b4 being Subset of b2 st Carrier b3 c= the carrier of (Lin b4) holds
ex b5 being Linear_Combination of b4 st Sum b3 = Sum b5
proof end;

theorem Th11: :: VECTSP_9:11
for b1 being Field
for b2 being VectSp of b1
for b3 being Subspace of b2
for b4 being Linear_Combination of b2 st Carrier b4 c= the carrier of b3 holds
for b5 being Linear_Combination of b3 st b5 = b4 | the carrier of b3 holds
( Carrier b4 = Carrier b5 & Sum b4 = Sum b5 )
proof end;

theorem Th12: :: VECTSP_9:12
for b1 being Field
for b2 being VectSp of b1
for b3 being Subspace of b2
for b4 being Linear_Combination of b3 ex b5 being Linear_Combination of b2 st
( Carrier b4 = Carrier b5 & Sum b4 = Sum b5 )
proof end;

theorem Th13: :: VECTSP_9:13
for b1 being Field
for b2 being VectSp of b1
for b3 being Subspace of b2
for b4 being Linear_Combination of b2 st Carrier b4 c= the carrier of b3 holds
ex b5 being Linear_Combination of b3 st
( Carrier b5 = Carrier b4 & Sum b5 = Sum b4 )
proof end;

theorem Th14: :: VECTSP_9:14
for b1 being Field
for b2 being VectSp of b1
for b3 being Basis of b2
for b4 being Vector of b2 holds b4 in Lin b3
proof end;

theorem Th15: :: VECTSP_9:15
for b1 being Field
for b2 being VectSp of b1
for b3 being Subspace of b2
for b4 being Subset of b3 st b4 is linearly-independent holds
b4 is linearly-independent Subset of b2
proof end;

theorem Th16: :: VECTSP_9:16
for b1 being Field
for b2 being VectSp of b1
for b3 being Subspace of b2
for b4 being Subset of b2 st b4 is linearly-independent & b4 c= the carrier of b3 holds
b4 is linearly-independent Subset of b3
proof end;

theorem Th17: :: VECTSP_9:17
for b1 being Field
for b2 being VectSp of b1
for b3 being Subspace of b2
for b4 being Basis of b3 ex b5 being Basis of b2 st b4 c= b5
proof end;

theorem Th18: :: VECTSP_9:18
for b1 being Field
for b2 being VectSp of b1
for b3 being Subset of b2 st b3 is linearly-independent holds
for b4 being Vector of b2 st b4 in b3 holds
for b5 being Subset of b2 st b5 = b3 \ {b4} holds
not b4 in Lin b5
proof end;

theorem Th19: :: VECTSP_9:19
for b1 being Field
for b2 being VectSp of b1
for b3 being Basis of b2
for b4 being non empty Subset of b2 st b4 misses b3 holds
for b5 being Subset of b2 st b5 = b3 \/ b4 holds
not b5 is linearly-independent
proof end;

theorem Th20: :: VECTSP_9:20
for b1 being Field
for b2 being VectSp of b1
for b3 being Subspace of b2
for b4 being Subset of b2 st b4 c= the carrier of b3 holds
Lin b4 is Subspace of b3
proof end;

theorem Th21: :: VECTSP_9:21
for b1 being Field
for b2 being VectSp of b1
for b3 being Subspace of b2
for b4 being Subset of b2
for b5 being Subset of b3 st b4 = b5 holds
Lin b4 = Lin b5
proof end;

theorem Th22: :: VECTSP_9:22
for b1 being Field
for b2 being VectSp of b1
for b3, b4 being finite Subset of b2
for b5 being Vector of b2 st b5 in Lin (b3 \/ b4) & not b5 in Lin b4 holds
ex b6 being Vector of b2 st
( b6 in b3 & b6 in Lin (((b3 \/ b4) \ {b6}) \/ {b5}) )
proof end;

theorem Th23: :: VECTSP_9:23
for b1 being Field
for b2 being VectSp of b1
for b3, b4 being finite Subset of b2 st VectSpStr(# the carrier of b2,the add of b2,the Zero of b2,the lmult of b2 #) = Lin b3 & b4 is linearly-independent holds
( card b4 <= card b3 & ex b5 being finite Subset of b2 st
( b5 c= b3 & card b5 = (card b3) - (card b4) & VectSpStr(# the carrier of b2,the add of b2,the Zero of b2,the lmult of b2 #) = Lin (b4 \/ b5) ) )
proof end;

definition
let c1 be Field;
let c2 be VectSp of c1;
redefine attr a2 is finite-dimensional means :Def1: :: VECTSP_9:def 1
ex b1 being finite Subset of a2 st b1 is Basis of a2;
compatibility
( c2 is finite-dimensional iff ex b1 being finite Subset of c2 st b1 is Basis of c2 )
by MATRLIN:def 3;
end;

:: deftheorem Def1 defines finite-dimensional VECTSP_9:def 1 :
for b1 being Field
for b2 being VectSp of b1 holds
( b2 is finite-dimensional iff ex b3 being finite Subset of b2 st b3 is Basis of b2 );

theorem Th24: :: VECTSP_9:24
for b1 being Field
for b2 being VectSp of b1 st b2 is finite-dimensional holds
for b3 being Basis of b2 holds b3 is finite
proof end;

theorem Th25: :: VECTSP_9:25
for b1 being Field
for b2 being VectSp of b1 st b2 is finite-dimensional holds
for b3 being Subset of b2 st b3 is linearly-independent holds
b3 is finite
proof end;

theorem Th26: :: VECTSP_9:26
for b1 being Field
for b2 being VectSp of b1 st b2 is finite-dimensional holds
for b3, b4 being Basis of b2 holds Card b3 = Card b4
proof end;

theorem Th27: :: VECTSP_9:27
for b1 being Field
for b2 being VectSp of b1 holds (0). b2 is finite-dimensional
proof end;

theorem Th28: :: VECTSP_9:28
for b1 being Field
for b2 being VectSp of b1
for b3 being Subspace of b2 st b2 is finite-dimensional holds
b3 is finite-dimensional
proof end;

registration
let c1 be Field;
let c2 be VectSp of c1;
cluster strict finite-dimensional Subspace of a2;
existence
ex b1 being Subspace of c2 st
( b1 is strict & b1 is finite-dimensional )
proof end;
end;

registration
let c1 be Field;
let c2 be finite-dimensional VectSp of c1;
cluster -> finite-dimensional Subspace of a2;
correctness
coherence
for b1 being Subspace of c2 holds b1 is finite-dimensional
;
by Th28;
end;

registration
let c1 be Field;
let c2 be finite-dimensional VectSp of c1;
cluster strict finite-dimensional Subspace of a2;
existence
ex b1 being Subspace of c2 st b1 is strict
proof end;
end;

definition
let c1 be Field;
let c2 be VectSp of c1;
assume E29: c2 is finite-dimensional ;
func dim c2 -> Nat means :Def2: :: VECTSP_9:def 2
for b1 being Basis of a2 holds a3 = Card b1;
existence
ex b1 being Nat st
for b2 being Basis of c2 holds b1 = Card b2
proof end;
uniqueness
for b1, b2 being Nat st ( for b3 being Basis of c2 holds b1 = Card b3 ) & ( for b3 being Basis of c2 holds b2 = Card b3 ) holds
b1 = b2
proof end;
end;

:: deftheorem Def2 defines dim VECTSP_9:def 2 :
for b1 being Field
for b2 being VectSp of b1 st b2 is finite-dimensional holds
for b3 being Nat holds
( b3 = dim b2 iff for b4 being Basis of b2 holds b3 = Card b4 );

theorem Th29: :: VECTSP_9:29
for b1 being Field
for b2 being finite-dimensional VectSp of b1
for b3 being Subspace of b2 holds dim b3 <= dim b2
proof end;

theorem Th30: :: VECTSP_9:30
for b1 being Field
for b2 being finite-dimensional VectSp of b1
for b3 being Subset of b2 st b3 is linearly-independent holds
Card b3 = dim (Lin b3)
proof end;

theorem Th31: :: VECTSP_9:31
for b1 being Field
for b2 being finite-dimensional VectSp of b1 holds dim b2 = dim ((Omega). b2)
proof end;

theorem Th32: :: VECTSP_9:32
for b1 being Field
for b2 being finite-dimensional VectSp of b1
for b3 being Subspace of b2 holds
( dim b2 = dim b3 iff (Omega). b2 = (Omega). b3 )
proof end;

theorem Th33: :: VECTSP_9:33
for b1 being Field
for b2 being finite-dimensional VectSp of b1 holds
( dim b2 = 0 iff (Omega). b2 = (0). b2 )
proof end;

theorem Th34: :: VECTSP_9:34
for b1 being Field
for b2 being finite-dimensional VectSp of b1 holds
( dim b2 = 1 iff ex b3 being Vector of b2 st
( b3 <> 0. b2 & (Omega). b2 = Lin {b3} ) )
proof end;

theorem Th35: :: VECTSP_9:35
for b1 being Field
for b2 being finite-dimensional VectSp of b1 holds
( dim b2 = 2 iff ex b3, b4 being Vector of b2 st
( b3 <> b4 & {b3,b4} is linearly-independent & (Omega). b2 = Lin {b3,b4} ) )
proof end;

theorem Th36: :: VECTSP_9:36
for b1 being Field
for b2 being finite-dimensional VectSp of b1
for b3, b4 being Subspace of b2 holds (dim (b3 + b4)) + (dim (b3 /\ b4)) = (dim b3) + (dim b4)
proof end;

theorem Th37: :: VECTSP_9:37
for b1 being Field
for b2 being finite-dimensional VectSp of b1
for b3, b4 being Subspace of b2 holds dim (b3 /\ b4) >= ((dim b3) + (dim b4)) - (dim b2)
proof end;

theorem Th38: :: VECTSP_9:38
for b1 being Field
for b2 being finite-dimensional VectSp of b1
for b3, b4 being Subspace of b2 st b2 is_the_direct_sum_of b3,b4 holds
dim b2 = (dim b3) + (dim b4)
proof end;

Lemma35: for b1 being Field
for b2 being Nat
for b3 being finite-dimensional VectSp of b1 st b2 <= dim b3 holds
ex b4 being strict Subspace of b3 st dim b4 = b2
proof end;

theorem Th39: :: VECTSP_9:39
for b1 being Field
for b2 being Nat
for b3 being finite-dimensional VectSp of b1 holds
( b2 <= dim b3 iff ex b4 being strict Subspace of b3 st dim b4 = b2 ) by Lemma35, Th29;

definition
let c1 be Field;
let c2 be finite-dimensional VectSp of c1;
let c3 be Nat;
func c3 Subspaces_of c2 -> set means :Def3: :: VECTSP_9:def 3
for b1 being set holds
( b1 in a4 iff ex b2 being strict Subspace of a2 st
( b2 = b1 & dim b2 = a3 ) );
existence
ex b1 being set st
for b2 being set holds
( b2 in b1 iff ex b3 being strict Subspace of c2 st
( b3 = b2 & dim b3 = c3 ) )
proof end;
uniqueness
for b1, b2 being set st ( for b3 being set holds
( b3 in b1 iff ex b4 being strict Subspace of c2 st
( b4 = b3 & dim b4 = c3 ) ) ) & ( for b3 being set holds
( b3 in b2 iff ex b4 being strict Subspace of c2 st
( b4 = b3 & dim b4 = c3 ) ) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def3 defines Subspaces_of VECTSP_9:def 3 :
for b1 being Field
for b2 being finite-dimensional VectSp of b1
for b3 being Nat
for b4 being set holds
( b4 = b3 Subspaces_of b2 iff for b5 being set holds
( b5 in b4 iff ex b6 being strict Subspace of b2 st
( b6 = b5 & dim b6 = b3 ) ) );

theorem Th40: :: VECTSP_9:40
for b1 being Field
for b2 being Nat
for b3 being finite-dimensional VectSp of b1 st b2 <= dim b3 holds
not b2 Subspaces_of b3 is empty
proof end;

theorem Th41: :: VECTSP_9:41
for b1 being Field
for b2 being Nat
for b3 being finite-dimensional VectSp of b1 st dim b3 < b2 holds
b2 Subspaces_of b3 = {}
proof end;

theorem Th42: :: VECTSP_9:42
for b1 being Field
for b2 being Nat
for b3 being finite-dimensional VectSp of b1
for b4 being Subspace of b3 holds b2 Subspaces_of b4 c= b2 Subspaces_of b3
proof end;