:: CIRCLED1 semantic presentation

Lemma1: for b1 being non empty RLSStruct
for b2, b3 being Subset of b1
for b4, b5 being VECTOR of b1 st b4 in b2 & b5 in b3 holds
b4 - b5 in b2 - b3
proof end;

theorem Th1: :: CIRCLED1:1
for b1 being RealLinearSpace
for b2, b3 being circled Subset of b1 holds b2 - b3 is circled
proof end;

registration
let c1 be RealLinearSpace;
let c2, c3 be circled Subset of c1;
cluster a2 - a3 -> circled ;
coherence
c2 - c3 is circled
by Th1;
end;

theorem Th2: :: CIRCLED1:2
for b1 being non empty RLSStruct
for b2 being Subset of b1 holds
( b2 is circled iff for b3 being VECTOR of b1
for b4 being Real st abs b4 <= 1 & b3 in b2 holds
b4 * b3 in b2 )
proof end;

definition
let c1 be non empty RLSStruct ;
let c2 be Subset of c1;
redefine attr a2 is circled means :Def1: :: CIRCLED1:def 1
for b1 being VECTOR of a1
for b2 being Real st abs b2 <= 1 & b1 in a2 holds
b2 * b1 in a2;
compatibility
( c2 is circled iff for b1 being VECTOR of c1
for b2 being Real st abs b2 <= 1 & b1 in c2 holds
b2 * b1 in c2 )
by Th2;
end;

:: deftheorem Def1 defines circled CIRCLED1:def 1 :
for b1 being non empty RLSStruct
for b2 being Subset of b1 holds
( b2 is circled iff for b3 being VECTOR of b1
for b4 being Real st abs b4 <= 1 & b3 in b2 holds
b4 * b3 in b2 );

theorem Th3: :: CIRCLED1:3
for b1 being RealLinearSpace
for b2 being Subset of b1
for b3 being Real st b2 is circled holds
b3 * b2 is circled
proof end;

theorem Th4: :: CIRCLED1:4
for b1 being RealLinearSpace
for b2, b3 being Subset of b1
for b4, b5 being Real st b2 is circled & b3 is circled holds
(b4 * b2) + (b5 * b3) is circled
proof end;

theorem Th5: :: CIRCLED1:5
for b1 being RealLinearSpace
for b2, b3, b4 being Subset of b1
for b5, b6, b7 being Real st b2 is circled & b3 is circled & b4 is circled holds
((b5 * b2) + (b6 * b3)) + (b7 * b4) is circled
proof end;

theorem Th6: :: CIRCLED1:6
for b1 being RealLinearSpace holds Up ((0). b1) is circled
proof end;

theorem Th7: :: CIRCLED1:7
for b1 being RealLinearSpace holds Up ((Omega). b1) is circled
proof end;

theorem Th8: :: CIRCLED1:8
for b1 being RealLinearSpace
for b2, b3 being circled Subset of b1 holds b2 /\ b3 is circled
proof end;

theorem Th9: :: CIRCLED1:9
for b1 being RealLinearSpace
for b2, b3 being circled Subset of b1 holds b2 \/ b3 is circled
proof end;

definition
let c1 be non empty RLSStruct ;
let c2 be Subset of c1;
func Circled-Family c2 -> Subset-Family of a1 means :Def2: :: CIRCLED1:def 2
for b1 being Subset of a1 holds
( b1 in a3 iff ( b1 is circled & a2 c= b1 ) );
existence
ex b1 being Subset-Family of c1 st
for b2 being Subset of c1 holds
( b2 in b1 iff ( b2 is circled & c2 c= b2 ) )
proof end;
uniqueness
for b1, b2 being Subset-Family of c1 st ( for b3 being Subset of c1 holds
( b3 in b1 iff ( b3 is circled & c2 c= b3 ) ) ) & ( for b3 being Subset of c1 holds
( b3 in b2 iff ( b3 is circled & c2 c= b3 ) ) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def2 defines Circled-Family CIRCLED1:def 2 :
for b1 being non empty RLSStruct
for b2 being Subset of b1
for b3 being Subset-Family of b1 holds
( b3 = Circled-Family b2 iff for b4 being Subset of b1 holds
( b4 in b3 iff ( b4 is circled & b2 c= b4 ) ) );

definition
let c1 be RealLinearSpace;
let c2 be Subset of c1;
func Cir c2 -> circled Subset of a1 equals :: CIRCLED1:def 3
meet (Circled-Family a2);
coherence
meet (Circled-Family c2) is circled Subset of c1
proof end;
end;

:: deftheorem Def3 defines Cir CIRCLED1:def 3 :
for b1 being RealLinearSpace
for b2 being Subset of b1 holds Cir b2 = meet (Circled-Family b2);

registration
let c1 be RealLinearSpace;
let c2 be Subset of c1;
cluster Circled-Family a2 -> non empty ;
coherence
not Circled-Family c2 is empty
proof end;
end;

theorem Th10: :: CIRCLED1:10
for b1 being RealLinearSpace
for b2, b3 being Subset of b1 st b2 c= b3 holds
Circled-Family b3 c= Circled-Family b2
proof end;

theorem Th11: :: CIRCLED1:11
for b1 being RealLinearSpace
for b2, b3 being Subset of b1 st b2 c= b3 holds
Cir b2 c= Cir b3
proof end;

theorem Th12: :: CIRCLED1:12
for b1 being RealLinearSpace
for b2 being Subset of b1 holds b2 c= Cir b2
proof end;

theorem Th13: :: CIRCLED1:13
for b1 being RealLinearSpace
for b2 being Subset of b1
for b3 being circled Subset of b1 st b2 c= b3 holds
Cir b2 c= b3
proof end;

theorem Th14: :: CIRCLED1:14
for b1 being RealLinearSpace
for b2 being circled Subset of b1 holds Cir b2 = b2
proof end;

theorem Th15: :: CIRCLED1:15
for b1 being RealLinearSpace holds Cir ({} b1) = {}
proof end;

theorem Th16: :: CIRCLED1:16
for b1 being RealLinearSpace
for b2 being Subset of b1
for b3 being Real holds b3 * (Cir b2) = Cir (b3 * b2)
proof end;

definition
let c1 be RealLinearSpace;
let c2 be Linear_Combination of c1;
attr a2 is circled means :Def4: :: CIRCLED1:def 4
ex b1 being FinSequence of the carrier of a1 st
( b1 is one-to-one & rng b1 = Carrier a2 & ex b2 being FinSequence of REAL st
( len b2 = len b1 & Sum b2 = 1 & ( for b3 being Nat st b3 in dom b2 holds
( b2 . b3 = a2 . (b1 . b3) & b2 . b3 >= 0 ) ) ) );
end;

:: deftheorem Def4 defines circled CIRCLED1:def 4 :
for b1 being RealLinearSpace
for b2 being Linear_Combination of b1 holds
( b2 is circled iff ex b3 being FinSequence of the carrier of b1 st
( b3 is one-to-one & rng b3 = Carrier b2 & ex b4 being FinSequence of REAL st
( len b4 = len b3 & Sum b4 = 1 & ( for b5 being Nat st b5 in dom b4 holds
( b4 . b5 = b2 . (b3 . b5) & b4 . b5 >= 0 ) ) ) ) );

theorem Th17: :: CIRCLED1:17
for b1 being RealLinearSpace
for b2 being Linear_Combination of b1 st b2 is circled holds
Carrier b2 <> {}
proof end;

theorem Th18: :: CIRCLED1:18
for b1 being RealLinearSpace
for b2 being Linear_Combination of b1
for b3 being VECTOR of b1 st b2 is circled & b2 . b3 <= 0 holds
not b3 in Carrier b2
proof end;

theorem Th19: :: CIRCLED1:19
for b1 being RealLinearSpace
for b2 being Linear_Combination of b1 st b2 is circled holds
b2 <> ZeroLC b1
proof end;

theorem Th20: :: CIRCLED1:20
for b1 being RealLinearSpace ex b2 being Linear_Combination of b1 st b2 is circled
proof end;

registration
let c1 be RealLinearSpace;
cluster circled Linear_Combination of a1;
existence
ex b1 being Linear_Combination of c1 st b1 is circled
by Th20;
end;

definition
let c1 be RealLinearSpace;
mode circled_Combination of a1 is circled Linear_Combination of a1;
end;

theorem Th21: :: CIRCLED1:21
for b1 being RealLinearSpace
for b2 being non empty Subset of b1 ex b3 being Linear_Combination of b2 st b3 is circled
proof end;

registration
let c1 be RealLinearSpace;
let c2 be non empty Subset of c1;
cluster circled Linear_Combination of a2;
existence
ex b1 being Linear_Combination of c2 st b1 is circled
by Th21;
end;

definition
let c1 be RealLinearSpace;
let c2 be non empty Subset of c1;
mode circled_Combination of a2 is circled Linear_Combination of a2;
end;

definition
let c1 be RealLinearSpace;
defpred S1[ set ] means a1 is circled_Combination of c1;
func circledComb c1 -> set means :: CIRCLED1:def 5
for b1 being set holds
( b1 in a2 iff b1 is circled_Combination of a1 );
existence
ex b1 being set st
for b2 being set holds
( b2 in b1 iff b2 is circled_Combination of c1 )
proof end;
uniqueness
for b1, b2 being set st ( for b3 being set holds
( b3 in b1 iff b3 is circled_Combination of c1 ) ) & ( for b3 being set holds
( b3 in b2 iff b3 is circled_Combination of c1 ) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def5 defines circledComb CIRCLED1:def 5 :
for b1 being RealLinearSpace
for b2 being set holds
( b2 = circledComb b1 iff for b3 being set holds
( b3 in b2 iff b3 is circled_Combination of b1 ) );

definition
let c1 be RealLinearSpace;
let c2 be non empty Subset of c1;
defpred S1[ set ] means a1 is circled_Combination of c2;
func circledComb c2 -> set means :: CIRCLED1:def 6
for b1 being set holds
( b1 in a3 iff b1 is circled_Combination of a2 );
existence
ex b1 being set st
for b2 being set holds
( b2 in b1 iff b2 is circled_Combination of c2 )
proof end;
uniqueness
for b1, b2 being set st ( for b3 being set holds
( b3 in b1 iff b3 is circled_Combination of c2 ) ) & ( for b3 being set holds
( b3 in b2 iff b3 is circled_Combination of c2 ) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def6 defines circledComb CIRCLED1:def 6 :
for b1 being RealLinearSpace
for b2 being non empty Subset of b1
for b3 being set holds
( b3 = circledComb b2 iff for b4 being set holds
( b4 in b3 iff b4 is circled_Combination of b2 ) );

theorem Th22: :: CIRCLED1:22
for b1 being RealLinearSpace
for b2 being VECTOR of b1 ex b3 being circled_Combination of b1 st
( Sum b3 = b2 & ( for b4 being non empty Subset of b1 st b2 in b4 holds
b3 is circled_Combination of b4 ) )
proof end;

theorem Th23: :: CIRCLED1:23
for b1 being RealLinearSpace
for b2, b3 being VECTOR of b1 st b2 <> b3 holds
ex b4 being circled_Combination of b1 st
for b5 being non empty Subset of b1 st {b2,b3} c= b5 holds
b4 is circled_Combination of b5
proof end;

theorem Th24: :: CIRCLED1:24
for b1 being RealLinearSpace
for b2, b3 being circled_Combination of b1
for b4, b5 being Real st b4 * b5 > 0 holds
Carrier ((b4 * b2) + (b5 * b3)) = (Carrier (b4 * b2)) \/ (Carrier (b5 * b3))
proof end;

theorem Th25: :: CIRCLED1:25
for b1 being RealLinearSpace
for b2 being VECTOR of b1
for b3 being Linear_Combination of b1 st b3 is circled & Carrier b3 = {b2} holds
( b3 . b2 = 1 & Sum b3 = (b3 . b2) * b2 )
proof end;

theorem Th26: :: CIRCLED1:26
for b1 being RealLinearSpace
for b2, b3 being VECTOR of b1
for b4 being Linear_Combination of b1 st b4 is circled & Carrier b4 = {b2,b3} & b2 <> b3 holds
( (b4 . b2) + (b4 . b3) = 1 & b4 . b2 >= 0 & b4 . b3 >= 0 & Sum b4 = ((b4 . b2) * b2) + ((b4 . b3) * b3) )
proof end;

theorem Th27: :: CIRCLED1:27
for b1 being RealLinearSpace
for b2 being VECTOR of b1
for b3 being Linear_Combination of {b2} st b3 is circled holds
( b3 . b2 = 1 & Sum b3 = (b3 . b2) * b2 )
proof end;

theorem Th28: :: CIRCLED1:28
for b1 being RealLinearSpace
for b2, b3 being VECTOR of b1
for b4 being Linear_Combination of {b2,b3} st b2 <> b3 & b4 is circled holds
( (b4 . b2) + (b4 . b3) = 1 & b4 . b2 >= 0 & b4 . b3 >= 0 & Sum b4 = ((b4 . b2) * b2) + ((b4 . b3) * b3) )
proof end;