:: CSSPACE2 semantic presentation

Lemma1: for b1 being Complex_Sequence holds b1 = (b1 *' ) *'
proof end;

Lemma2: for b1 being Complex_Sequence holds Partial_Sums (b1 *' ) = (Partial_Sums b1) *'
proof end;

Lemma3: for b1, b2 being Real holds 0 <= (b1 ^2 ) + (b2 ^2 )
proof end;

Lemma4: for b1, b2 being Complex st (Re b1) * (Im b2) = (Re b2) * (Im b1) & ((Re b1) * (Re b2)) + ((Im b1) * (Im b2)) >= 0 holds
|.(b1 + b2).| = |.b1.| + |.b2.|
proof end;

Lemma5: for b1 being Complex_Sequence
for b2 being Nat st ( for b3 being Nat holds
( (Re b1) . b3 >= 0 & (Im b1) . b3 = 0 ) ) holds
|.(Partial_Sums b1).| . b2 = (Partial_Sums |.b1.|) . b2
proof end;

Lemma6: for b1 being Complex_Sequence st b1 is summable holds
Sum (b1 *' ) = (Sum b1) *'
proof end;

Lemma7: for b1 being Complex_Sequence st b1 is absolutely_summable holds
|.(Sum b1).| <= Sum |.b1.|
proof end;

Lemma8: for b1 being Complex_Sequence st b1 is summable & ( for b2 being Nat holds
( (Re b1) . b2 >= 0 & (Im b1) . b2 = 0 ) ) holds
|.(Sum b1).| = Sum |.b1.|
proof end;

Lemma9: for b1 being Complex_Sequence
for b2 being Nat holds
( (Re (b1 (#) (b1 *' ))) . b2 >= 0 & (Im (b1 (#) (b1 *' ))) . b2 = 0 )
proof end;

Lemma10: for b1 being set holds
( b1 is Element of Complex_l2_Space iff ( b1 is Complex_Sequence & |.(seq_id b1).| (#) |.(seq_id b1).| is summable ) )
proof end;

Lemma11: 0. Complex_l2_Space = CZeroseq
proof end;

Lemma12: for b1 being VECTOR of Complex_l2_Space holds b1 = seq_id b1
proof end;

Lemma13: for b1, b2 being VECTOR of Complex_l2_Space holds b1 + b2 = (seq_id b1) + (seq_id b2)
proof end;

Lemma14: for b1 being Complex
for b2 being VECTOR of Complex_l2_Space holds b1 * b2 = b1 (#) (seq_id b2)
proof end;

Lemma15: for b1 being VECTOR of Complex_l2_Space holds
( - b1 = - (seq_id b1) & seq_id (- b1) = - (seq_id b1) )
proof end;

Lemma16: for b1, b2 being VECTOR of Complex_l2_Space holds b1 - b2 = (seq_id b1) - (seq_id b2)
proof end;

Lemma17: for b1, b2 being VECTOR of Complex_l2_Space holds |.(seq_id b1).| (#) |.(seq_id b2).| is summable
proof end;

Lemma18: for b1, b2 being VECTOR of Complex_l2_Space holds b1 .|. b2 = Sum ((seq_id b1) (#) ((seq_id b2) *' ))
proof end;

Lemma19: for b1 being Complex_Sequence holds |.b1.| = |.(b1 *' ).|
proof end;

Lemma20: for b1 being set holds
( b1 is Element of Complex_l2_Space iff ( b1 is Complex_Sequence & (seq_id b1) (#) ((seq_id b1) *' ) is absolutely_summable ) )
proof end;

theorem Th1: :: CSSPACE2:1
( the carrier of Complex_l2_Space = the_set_of_l2ComplexSequences & ( for b1 being set holds
( b1 is Element of Complex_l2_Space iff ( b1 is Complex_Sequence & |.(seq_id b1).| (#) |.(seq_id b1).| is summable ) ) ) & ( for b1 being set holds
( b1 is Element of Complex_l2_Space iff ( b1 is Complex_Sequence & (seq_id b1) (#) ((seq_id b1) *' ) is absolutely_summable ) ) ) & 0. Complex_l2_Space = CZeroseq & ( for b1 being VECTOR of Complex_l2_Space holds b1 = seq_id b1 ) & ( for b1, b2 being VECTOR of Complex_l2_Space holds b1 + b2 = (seq_id b1) + (seq_id b2) ) & ( for b1 being Complex
for b2 being VECTOR of Complex_l2_Space holds b1 * b2 = b1 (#) (seq_id b2) ) & ( for b1 being VECTOR of Complex_l2_Space holds
( - b1 = - (seq_id b1) & seq_id (- b1) = - (seq_id b1) ) ) & ( for b1, b2 being VECTOR of Complex_l2_Space holds b1 - b2 = (seq_id b1) - (seq_id b2) ) & ( for b1, b2 being VECTOR of Complex_l2_Space holds
( |.(seq_id b1).| (#) |.(seq_id b2).| is summable & ( for b3, b4 being VECTOR of Complex_l2_Space holds b3 .|. b4 = Sum ((seq_id b3) (#) ((seq_id b4) *' )) ) ) ) ) by Lemma10, Lemma11, Lemma12, Lemma13, Lemma14, Lemma15, Lemma16, Lemma17, Lemma18, Lemma20, CSSPACE:def 20;

theorem Th2: :: CSSPACE2:2
for b1, b2, b3 being Point of Complex_l2_Space
for b4 being Complex holds
( ( b1 .|. b1 = 0 implies b1 = 0. Complex_l2_Space ) & ( b1 = 0. Complex_l2_Space implies b1 .|. b1 = 0 ) & Re (b1 .|. b1) >= 0 & Im (b1 .|. b1) = 0 & b1 .|. b2 = (b2 .|. b1) *' & (b1 + b2) .|. b3 = (b1 .|. b3) + (b2 .|. b3) & (b4 * b1) .|. b2 = b4 * (b1 .|. b2) )
proof end;

registration
cluster Complex_l2_Space -> ComplexUnitarySpace-like ;
coherence
Complex_l2_Space is ComplexUnitarySpace-like
by Th2, CSSPACE:def 13;
end;

Lemma22: for b1, b2 being Complex holds 2 * |.(b1 * b2).| <= (|.b1.| ^2 ) + (|.b2.| ^2 )
proof end;

Lemma23: for b1, b2 being Complex holds
( |.(b1 + b2).| * |.(b1 + b2).| <= ((2 * |.b1.|) * |.b1.|) + ((2 * |.b2.|) * |.b2.|) & |.b1.| * |.b1.| <= ((2 * |.(b1 - b2).|) * |.(b1 - b2).|) + ((2 * |.b2.|) * |.b2.|) )
proof end;

Lemma24: for b1 being Complex
for b2 being Complex_Sequence st b2 is convergent holds
for b3 being Real_Sequence st ( for b4 being Nat holds b3 . b4 = |.((b2 . b4) - b1).| * |.((b2 . b4) - b1).| ) holds
( b3 is convergent & lim b3 = |.((lim b2) - b1).| * |.((lim b2) - b1).| )
proof end;

Lemma25: for b1 being Complex
for b2 being Real_Sequence
for b3 being Complex_Sequence st b3 is convergent & b2 is convergent holds
for b4 being Real_Sequence st ( for b5 being Nat holds b4 . b5 = (|.((b3 . b5) - b1).| * |.((b3 . b5) - b1).|) + (b2 . b5) ) holds
( b4 is convergent & lim b4 = (|.((lim b3) - b1).| * |.((lim b3) - b1).|) + (lim b2) )
proof end;

theorem Th3: :: CSSPACE2:3
for b1 being sequence of Complex_l2_Space st b1 is Cauchy holds
b1 is convergent
proof end;

then Lemma26: Complex_l2_Space is complete
by CLVECT_2:def 12;

registration
cluster Complex_l2_Space -> ComplexUnitarySpace-like Hilbert ;
coherence
Complex_l2_Space is Hilbert
by Lemma26, CLVECT_2:def 13;
end;

theorem Th4: :: CSSPACE2:4
for b1, b2 being Complex st (Re b1) * (Im b2) = (Re b2) * (Im b1) & ((Re b1) * (Re b2)) + ((Im b1) * (Im b2)) >= 0 holds
|.(b1 + b2).| = |.b1.| + |.b2.| by Lemma4;

theorem Th5: :: CSSPACE2:5
for b1, b2 being Complex holds 2 * |.(b1 * b2).| <= (|.b1.| ^2 ) + (|.b2.| ^2 ) by Lemma22;

theorem Th6: :: CSSPACE2:6
for b1, b2 being Complex holds
( |.(b1 + b2).| * |.(b1 + b2).| <= ((2 * |.b1.|) * |.b1.|) + ((2 * |.b2.|) * |.b2.|) & |.b1.| * |.b1.| <= ((2 * |.(b1 - b2).|) * |.(b1 - b2).|) + ((2 * |.b2.|) * |.b2.|) ) by Lemma23;

theorem Th7: :: CSSPACE2:7
for b1 being Complex_Sequence holds b1 = (b1 *' ) *' by Lemma1;

theorem Th8: :: CSSPACE2:8
for b1 being Complex_Sequence holds Partial_Sums (b1 *' ) = (Partial_Sums b1) *' by Lemma2;

theorem Th9: :: CSSPACE2:9
for b1 being Complex_Sequence
for b2 being Nat st ( for b3 being Nat holds
( (Re b1) . b3 >= 0 & (Im b1) . b3 = 0 ) ) holds
|.(Partial_Sums b1).| . b2 = (Partial_Sums |.b1.|) . b2 by Lemma5;

theorem Th10: :: CSSPACE2:10
for b1 being Complex_Sequence st b1 is summable holds
Sum (b1 *' ) = (Sum b1) *' by Lemma6;

theorem Th11: :: CSSPACE2:11
for b1 being Complex_Sequence st b1 is absolutely_summable holds
|.(Sum b1).| <= Sum |.b1.| by Lemma7;

theorem Th12: :: CSSPACE2:12
for b1 being Complex_Sequence st b1 is summable & ( for b2 being Nat holds
( (Re b1) . b2 >= 0 & (Im b1) . b2 = 0 ) ) holds
|.(Sum b1).| = Sum |.b1.| by Lemma8;

theorem Th13: :: CSSPACE2:13
for b1 being Complex_Sequence
for b2 being Nat holds
( (Re (b1 (#) (b1 *' ))) . b2 >= 0 & (Im (b1 (#) (b1 *' ))) . b2 = 0 ) by Lemma9;

theorem Th14: :: CSSPACE2:14
for b1 being Complex_Sequence st b1 is absolutely_summable & Sum |.b1.| = 0 holds
for b2 being Nat holds b1 . b2 = 0c
proof end;

theorem Th15: :: CSSPACE2:15
for b1 being Complex_Sequence holds |.b1.| = |.(b1 *' ).| by Lemma19;

theorem Th16: :: CSSPACE2:16
for b1 being Complex
for b2 being Complex_Sequence st b2 is convergent holds
for b3 being Real_Sequence st ( for b4 being Nat holds b3 . b4 = |.((b2 . b4) - b1).| * |.((b2 . b4) - b1).| ) holds
( b3 is convergent & lim b3 = |.((lim b2) - b1).| * |.((lim b2) - b1).| ) by Lemma24;

theorem Th17: :: CSSPACE2:17
for b1 being Complex
for b2 being Real_Sequence
for b3 being Complex_Sequence st b3 is convergent & b2 is convergent holds
for b4 being Real_Sequence st ( for b5 being Nat holds b4 . b5 = (|.((b3 . b5) - b1).| * |.((b3 . b5) - b1).|) + (b2 . b5) ) holds
( b4 is convergent & lim b4 = (|.((lim b3) - b1).| * |.((lim b3) - b1).|) + (lim b2) ) by Lemma25;

theorem Th18: :: CSSPACE2:18
for b1 being Complex
for b2 being Complex_Sequence st b2 is convergent holds
for b3 being Real_Sequence st ( for b4 being Nat holds b3 . b4 = |.((b2 . b4) - b1).| * |.((b2 . b4) - b1).| ) holds
( b3 is convergent & lim b3 = |.((lim b2) - b1).| * |.((lim b2) - b1).| ) by Lemma24;

theorem Th19: :: CSSPACE2:19
for b1 being Complex
for b2 being Real_Sequence
for b3 being Complex_Sequence st b3 is convergent & b2 is convergent holds
for b4 being Real_Sequence st ( for b5 being Nat holds b4 . b5 = (|.((b3 . b5) - b1).| * |.((b3 . b5) - b1).|) + (b2 . b5) ) holds
( b4 is convergent & lim b4 = (|.((lim b3) - b1).| * |.((lim b3) - b1).|) + (lim b2) ) by Lemma25;