:: SPPOL_2 semantic presentation

theorem Th1: :: SPPOL_2:1
for b1, b2, b3, b4 being real number st |[b1,b2]| = |[b3,b4]| holds
( b1 = b3 & b2 = b4 )
proof end;

theorem Th2: :: SPPOL_2:2
for b1 being FinSequence of (TOP-REAL 2)
for b2, b3 being Nat st b2 + b3 = len b1 holds
LSeg b1,b2 = LSeg (Rev b1),b3
proof end;

theorem Th3: :: SPPOL_2:3
for b1 being FinSequence of (TOP-REAL 2)
for b2, b3 being Nat st b2 + 1 <= len (b1 | b3) holds
LSeg (b1 | b3),b2 = LSeg b1,b2
proof end;

theorem Th4: :: SPPOL_2:4
for b1 being FinSequence of (TOP-REAL 2)
for b2, b3 being Nat st b2 <= len b1 & 1 <= b3 holds
LSeg (b1 /^ b2),b3 = LSeg b1,(b2 + b3)
proof end;

theorem Th5: :: SPPOL_2:5
for b1 being FinSequence of (TOP-REAL 2)
for b2, b3 being Nat st 1 <= b2 & b2 + 1 <= (len b1) - b3 holds
LSeg (b1 /^ b3),b2 = LSeg b1,(b3 + b2)
proof end;

theorem Th6: :: SPPOL_2:6
for b1, b2 being FinSequence of (TOP-REAL 2)
for b3 being Nat st b3 + 1 <= len b1 holds
LSeg (b1 ^ b2),b3 = LSeg b1,b3
proof end;

theorem Th7: :: SPPOL_2:7
for b1, b2 being FinSequence of (TOP-REAL 2)
for b3 being Nat st 1 <= b3 holds
LSeg (b1 ^ b2),((len b1) + b3) = LSeg b2,b3
proof end;

theorem Th8: :: SPPOL_2:8
for b1, b2 being FinSequence of (TOP-REAL 2) st not b1 is empty & not b2 is empty holds
LSeg (b1 ^ b2),(len b1) = LSeg (b1 /. (len b1)),(b2 /. 1)
proof end;

theorem Th9: :: SPPOL_2:9
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2)
for b3 being Nat st b3 + 1 <= len (b1 -: b2) holds
LSeg (b1 -: b2),b3 = LSeg b1,b3
proof end;

theorem Th10: :: SPPOL_2:10
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2)
for b3 being Nat st b2 in rng b1 holds
LSeg (b1 :- b2),(b3 + 1) = LSeg b1,(b3 + (b2 .. b1))
proof end;

theorem Th11: :: SPPOL_2:11
L~ (<*> the carrier of (TOP-REAL 2)) = {}
proof end;

theorem Th12: :: SPPOL_2:12
for b1 being Point of (TOP-REAL 2) holds L~ <*b1*> = {}
proof end;

theorem Th13: :: SPPOL_2:13
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b2 in L~ b1 holds
ex b3 being Nat st
( 1 <= b3 & b3 + 1 <= len b1 & b2 in LSeg b1,b3 )
proof end;

theorem Th14: :: SPPOL_2:14
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b2 in L~ b1 holds
ex b3 being Nat st
( 1 <= b3 & b3 + 1 <= len b1 & b2 in LSeg (b1 /. b3),(b1 /. (b3 + 1)) )
proof end;

theorem Th15: :: SPPOL_2:15
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2)
for b3 being Nat st 1 <= b3 & b3 + 1 <= len b1 & b2 in LSeg (b1 /. b3),(b1 /. (b3 + 1)) holds
b2 in L~ b1
proof end;

theorem Th16: :: SPPOL_2:16
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Nat st 1 <= b2 & b2 + 1 <= len b1 holds
LSeg (b1 /. b2),(b1 /. (b2 + 1)) c= L~ b1
proof end;

theorem Th17: :: SPPOL_2:17
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2)
for b3 being Nat st b2 in LSeg b1,b3 holds
b2 in L~ b1
proof end;

theorem Th18: :: SPPOL_2:18
for b1 being FinSequence of (TOP-REAL 2) st len b1 >= 2 holds
rng b1 c= L~ b1
proof end;

theorem Th19: :: SPPOL_2:19
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st not b1 is empty holds
L~ (b1 ^ <*b2*>) = (L~ b1) \/ (LSeg (b1 /. (len b1)),b2)
proof end;

theorem Th20: :: SPPOL_2:20
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st not b1 is empty holds
L~ (<*b2*> ^ b1) = (LSeg b2,(b1 /. 1)) \/ (L~ b1)
proof end;

theorem Th21: :: SPPOL_2:21
for b1, b2 being Point of (TOP-REAL 2) holds L~ <*b1,b2*> = LSeg b1,b2
proof end;

theorem Th22: :: SPPOL_2:22
for b1 being FinSequence of (TOP-REAL 2) holds L~ b1 = L~ (Rev b1)
proof end;

theorem Th23: :: SPPOL_2:23
for b1, b2 being FinSequence of (TOP-REAL 2) st not b1 is empty & not b2 is empty holds
L~ (b1 ^ b2) = ((L~ b1) \/ (LSeg (b1 /. (len b1)),(b2 /. 1))) \/ (L~ b2)
proof end;

Lemma22: for b1 being FinSequence of (TOP-REAL 2)
for b2 being Nat holds L~ (b1 | b2) c= L~ b1
proof end;

theorem Th24: :: SPPOL_2:24
canceled;

theorem Th25: :: SPPOL_2:25
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b2 in rng b1 holds
L~ b1 = (L~ (b1 -: b2)) \/ (L~ (b1 :- b2))
proof end;

theorem Th26: :: SPPOL_2:26
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2)
for b3 being Nat st b2 in LSeg b1,b3 holds
L~ b1 = L~ (Ins b1,b3,b2)
proof end;

registration
cluster being_S-Seq FinSequence of the carrier of (TOP-REAL 2);
existence
ex b1 being FinSequence of (TOP-REAL 2) st b1 is being_S-Seq
proof end;
cluster being_S-Seq -> one-to-one non trivial special unfolded s.n.c. FinSequence of the carrier of (TOP-REAL 2);
coherence
for b1 being FinSequence of (TOP-REAL 2) st b1 is being_S-Seq holds
( b1 is one-to-one & b1 is unfolded & b1 is s.n.c. & b1 is special & not b1 is trivial )
proof end;
cluster one-to-one non trivial special unfolded s.n.c. -> being_S-Seq FinSequence of the carrier of (TOP-REAL 2);
coherence
for b1 being FinSequence of (TOP-REAL 2) st b1 is one-to-one & b1 is unfolded & b1 is s.n.c. & b1 is special & not b1 is trivial holds
b1 is being_S-Seq
proof end;
cluster being_S-Seq -> non empty FinSequence of the carrier of (TOP-REAL 2);
coherence
for b1 being FinSequence of (TOP-REAL 2) st b1 is being_S-Seq holds
not b1 is empty
proof end;
end;

registration
cluster non empty one-to-one non trivial special unfolded s.n.c. being_S-Seq FinSequence of the carrier of (TOP-REAL 2);
existence
ex b1 being FinSequence of (TOP-REAL 2) st
( b1 is one-to-one & b1 is unfolded & b1 is s.n.c. & b1 is special & not b1 is trivial )
proof end;
end;

theorem Th27: :: SPPOL_2:27
for b1 being FinSequence of (TOP-REAL 2) st len b1 <= 2 holds
b1 is unfolded
proof end;

Lemma26: for b1, b2 being Point of (TOP-REAL 2) holds <*b1,b2*> is unfolded
proof end;

Lemma27: for b1 being FinSequence of (TOP-REAL 2)
for b2 being Nat st b1 is unfolded holds
b1 | b2 is unfolded
proof end;

Lemma28: for b1 being FinSequence of (TOP-REAL 2)
for b2 being Nat st b1 is unfolded holds
b1 /^ b2 is unfolded
proof end;

registration
let c1 be unfolded FinSequence of (TOP-REAL 2);
let c2 be Nat;
cluster a1 | a2 -> unfolded ;
coherence
c1 | c2 is unfolded
by Lemma27;
cluster a1 /^ a2 -> unfolded ;
coherence
c1 /^ c2 is unfolded
by Lemma28;
end;

theorem Th28: :: SPPOL_2:28
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b2 in rng b1 & b1 is unfolded holds
b1 :- b2 is unfolded
proof end;

Lemma30: for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b1 is unfolded holds
b1 -: b2 is unfolded
proof end;

registration
let c1 be unfolded FinSequence of (TOP-REAL 2);
let c2 be Point of (TOP-REAL 2);
cluster a1 -: a2 -> unfolded ;
coherence
c1 -: c2 is unfolded
by Lemma30;
end;

theorem Th29: :: SPPOL_2:29
for b1 being FinSequence of (TOP-REAL 2) st b1 is unfolded holds
Rev b1 is unfolded
proof end;

theorem Th30: :: SPPOL_2:30
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b1 is unfolded & (LSeg b2,(b1 /. 1)) /\ (LSeg b1,1) = {(b1 /. 1)} holds
<*b2*> ^ b1 is unfolded
proof end;

theorem Th31: :: SPPOL_2:31
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2)
for b3 being Nat st b1 is unfolded & b3 + 1 = len b1 & (LSeg b1,b3) /\ (LSeg (b1 /. (len b1)),b2) = {(b1 /. (len b1))} holds
b1 ^ <*b2*> is unfolded
proof end;

theorem Th32: :: SPPOL_2:32
for b1, b2 being FinSequence of (TOP-REAL 2)
for b3 being Nat st b1 is unfolded & b2 is unfolded & b3 + 1 = len b1 & (LSeg b1,b3) /\ (LSeg (b1 /. (len b1)),(b2 /. 1)) = {(b1 /. (len b1))} & (LSeg (b1 /. (len b1)),(b2 /. 1)) /\ (LSeg b2,1) = {(b2 /. 1)} holds
b1 ^ b2 is unfolded
proof end;

theorem Th33: :: SPPOL_2:33
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2)
for b3 being Nat st b1 is unfolded & b2 in LSeg b1,b3 holds
Ins b1,b3,b2 is unfolded
proof end;

theorem Th34: :: SPPOL_2:34
for b1 being FinSequence of (TOP-REAL 2) st len b1 <= 2 holds
b1 is s.n.c.
proof end;

Lemma37: for b1, b2 being Point of (TOP-REAL 2) holds <*b1,b2*> is s.n.c.
proof end;

Lemma38: for b1 being FinSequence of (TOP-REAL 2)
for b2 being Nat st b1 is s.n.c. holds
b1 | b2 is s.n.c.
proof end;

Lemma39: for b1 being FinSequence of (TOP-REAL 2)
for b2 being Nat st b1 is s.n.c. holds
b1 /^ b2 is s.n.c.
proof end;

registration
let c1 be s.n.c. FinSequence of (TOP-REAL 2);
let c2 be Nat;
cluster a1 | a2 -> s.n.c. ;
coherence
c1 | c2 is s.n.c.
by Lemma38;
cluster a1 /^ a2 -> s.n.c. ;
coherence
c1 /^ c2 is s.n.c.
by Lemma39;
end;

Lemma40: for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b1 is s.n.c. holds
b1 -: b2 is s.n.c.
proof end;

registration
let c1 be s.n.c. FinSequence of (TOP-REAL 2);
let c2 be Point of (TOP-REAL 2);
cluster a1 -: a2 -> s.n.c. ;
coherence
c1 -: c2 is s.n.c.
by Lemma40;
end;

theorem Th35: :: SPPOL_2:35
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b2 in rng b1 & b1 is s.n.c. holds
b1 :- b2 is s.n.c.
proof end;

theorem Th36: :: SPPOL_2:36
for b1 being FinSequence of (TOP-REAL 2) st b1 is s.n.c. holds
Rev b1 is s.n.c.
proof end;

theorem Th37: :: SPPOL_2:37
for b1, b2 being FinSequence of (TOP-REAL 2) st b1 is s.n.c. & b2 is s.n.c. & L~ b1 misses L~ b2 & ( for b3 being Nat st 1 <= b3 & b3 + 2 <= len b1 holds
LSeg b1,b3 misses LSeg (b1 /. (len b1)),(b2 /. 1) ) & ( for b3 being Nat st 2 <= b3 & b3 + 1 <= len b2 holds
LSeg b2,b3 misses LSeg (b1 /. (len b1)),(b2 /. 1) ) holds
b1 ^ b2 is s.n.c.
proof end;

theorem Th38: :: SPPOL_2:38
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2)
for b3 being Nat st b1 is unfolded & b1 is s.n.c. & b2 in LSeg b1,b3 & not b2 in rng b1 holds
Ins b1,b3,b2 is s.n.c.
proof end;

Lemma45: <*> the carrier of (TOP-REAL 2) is special
proof end;

registration
cluster <*> the carrier of (TOP-REAL 2) -> special ;
coherence
<*> the carrier of (TOP-REAL 2) is special
by Lemma45;
end;

theorem Th39: :: SPPOL_2:39
for b1 being Point of (TOP-REAL 2) holds <*b1*> is special
proof end;

theorem Th40: :: SPPOL_2:40
for b1, b2 being Point of (TOP-REAL 2) st ( b1 `1 = b2 `1 or b1 `2 = b2 `2 ) holds
<*b1,b2*> is special
proof end;

Lemma48: for b1 being FinSequence of (TOP-REAL 2)
for b2 being Nat st b1 is special holds
b1 | b2 is special
proof end;

Lemma49: for b1 being FinSequence of (TOP-REAL 2)
for b2 being Nat st b1 is special holds
b1 /^ b2 is special
proof end;

registration
let c1 be special FinSequence of (TOP-REAL 2);
let c2 be Nat;
cluster a1 | a2 -> special ;
coherence
c1 | c2 is special
by Lemma48;
cluster a1 /^ a2 -> special ;
coherence
c1 /^ c2 is special
by Lemma49;
end;

theorem Th41: :: SPPOL_2:41
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b2 in rng b1 & b1 is special holds
b1 :- b2 is special
proof end;

Lemma51: for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b1 is special holds
b1 -: b2 is special
proof end;

registration
let c1 be special FinSequence of (TOP-REAL 2);
let c2 be Point of (TOP-REAL 2);
cluster a1 -: a2 -> special ;
coherence
c1 -: c2 is special
by Lemma51;
end;

theorem Th42: :: SPPOL_2:42
for b1 being FinSequence of (TOP-REAL 2) st b1 is special holds
Rev b1 is special
proof end;

Lemma53: for b1, b2 being FinSequence of (TOP-REAL 2) st b1 is special & b2 is special & ( (b1 /. (len b1)) `1 = (b2 /. 1) `1 or (b1 /. (len b1)) `2 = (b2 /. 1) `2 ) holds
b1 ^ b2 is special
proof end;

theorem Th43: :: SPPOL_2:43
canceled;

theorem Th44: :: SPPOL_2:44
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2)
for b3 being Nat st b1 is special & b2 in LSeg b1,b3 holds
Ins b1,b3,b2 is special
proof end;

theorem Th45: :: SPPOL_2:45
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b2 in rng b1 & 1 <> b2 .. b1 & b2 .. b1 <> len b1 & b1 is unfolded & b1 is s.n.c. holds
(L~ (b1 -: b2)) /\ (L~ (b1 :- b2)) = {b2}
proof end;

theorem Th46: :: SPPOL_2:46
for b1, b2 being Point of (TOP-REAL 2) st b1 <> b2 & ( b1 `1 = b2 `1 or b1 `2 = b2 `2 ) holds
<*b1,b2*> is being_S-Seq
proof end;

definition
mode S-Sequence_in_R2 is being_S-Seq FinSequence of (TOP-REAL 2);
end;

theorem Th47: :: SPPOL_2:47
for b1 being S-Sequence_in_R2 holds Rev b1 is being_S-Seq
proof end;

theorem Th48: :: SPPOL_2:48
for b1 being Nat
for b2 being S-Sequence_in_R2 st b1 in dom b2 holds
b2 /. b1 in L~ b2
proof end;

theorem Th49: :: SPPOL_2:49
for b1, b2 being Point of (TOP-REAL 2) st b1 <> b2 & ( b1 `1 = b2 `1 or b1 `2 = b2 `2 ) holds
LSeg b1,b2 is being_S-P_arc
proof end;

Lemma58: for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b2 in rng b1 holds
L~ (b1 -: b2) c= L~ b1
proof end;

Lemma59: for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b2 in rng b1 holds
L~ (b1 :- b2) c= L~ b1
proof end;

theorem Th50: :: SPPOL_2:50
for b1 being Point of (TOP-REAL 2)
for b2 being S-Sequence_in_R2 st b1 in rng b2 & b1 .. b2 <> 1 holds
b2 -: b1 is being_S-Seq
proof end;

theorem Th51: :: SPPOL_2:51
for b1 being Point of (TOP-REAL 2)
for b2 being S-Sequence_in_R2 st b1 in rng b2 & b1 .. b2 <> len b2 holds
b2 :- b1 is being_S-Seq
proof end;

theorem Th52: :: SPPOL_2:52
for b1 being Point of (TOP-REAL 2)
for b2 being Nat
for b3 being S-Sequence_in_R2 st b1 in LSeg b3,b2 & not b1 in rng b3 holds
Ins b3,b2,b1 is being_S-Seq
proof end;

registration
cluster being_S-P_arc Element of K40(the carrier of (TOP-REAL 2));
existence
ex b1 being Subset of (TOP-REAL 2) st b1 is being_S-P_arc
proof end;
end;

theorem Th53: :: SPPOL_2:53
for b1 being Subset of (TOP-REAL 2)
for b2, b3 being Point of (TOP-REAL 2) st b1 is_S-P_arc_joining b2,b3 holds
b1 is_S-P_arc_joining b3,b2
proof end;

definition
let c1, c2 be Point of (TOP-REAL 2);
let c3 be Subset of (TOP-REAL 2);
pred c1,c2 split c3 means :Def1: :: SPPOL_2:def 1
( a1 <> a2 & ex b1, b2 being S-Sequence_in_R2 st
( a1 = b1 /. 1 & a1 = b2 /. 1 & a2 = b1 /. (len b1) & a2 = b2 /. (len b2) & (L~ b1) /\ (L~ b2) = {a1,a2} & a3 = (L~ b1) \/ (L~ b2) ) );
end;

:: deftheorem Def1 defines split SPPOL_2:def 1 :
for b1, b2 being Point of (TOP-REAL 2)
for b3 being Subset of (TOP-REAL 2) holds
( b1,b2 split b3 iff ( b1 <> b2 & ex b4, b5 being S-Sequence_in_R2 st
( b1 = b4 /. 1 & b1 = b5 /. 1 & b2 = b4 /. (len b4) & b2 = b5 /. (len b5) & (L~ b4) /\ (L~ b5) = {b1,b2} & b3 = (L~ b4) \/ (L~ b5) ) ) );

theorem Th54: :: SPPOL_2:54
for b1 being Subset of (TOP-REAL 2)
for b2, b3 being Point of (TOP-REAL 2) st b2,b3 split b1 holds
b3,b2 split b1
proof end;

Lemma64: for b1 being Subset of (TOP-REAL 2)
for b2, b3, b4 being Point of (TOP-REAL 2)
for b5, b6 being S-Sequence_in_R2 st b2 = b5 /. 1 & b2 = b6 /. 1 & b3 = b5 /. (len b5) & b3 = b6 /. (len b6) & (L~ b5) /\ (L~ b6) = {b2,b3} & b1 = (L~ b5) \/ (L~ b6) & b4 <> b2 & b4 in rng b5 holds
ex b7, b8 being S-Sequence_in_R2 st
( b2 = b7 /. 1 & b2 = b8 /. 1 & b4 = b7 /. (len b7) & b4 = b8 /. (len b8) & (L~ b7) /\ (L~ b8) = {b2,b4} & b1 = (L~ b7) \/ (L~ b8) )
proof end;

theorem Th55: :: SPPOL_2:55
for b1 being Subset of (TOP-REAL 2)
for b2, b3, b4 being Point of (TOP-REAL 2) st b2,b3 split b1 & b4 in b1 & b4 <> b2 holds
b2,b4 split b1
proof end;

theorem Th56: :: SPPOL_2:56
for b1 being Subset of (TOP-REAL 2)
for b2, b3, b4 being Point of (TOP-REAL 2) st b2,b3 split b1 & b4 in b1 & b4 <> b3 holds
b4,b3 split b1
proof end;

theorem Th57: :: SPPOL_2:57
for b1 being Subset of (TOP-REAL 2)
for b2, b3, b4, b5 being Point of (TOP-REAL 2) st b2,b3 split b1 & b4 in b1 & b5 in b1 & b4 <> b5 holds
b4,b5 split b1
proof end;

notation
let c1 be Subset of (TOP-REAL 2);
synonym special_polygonal c1 for being_special_polygon c1;
end;

definition
let c1 be Subset of (TOP-REAL 2);
redefine attr a1 is being_special_polygon means :Def2: :: SPPOL_2:def 2
ex b1, b2 being Point of (TOP-REAL 2) st b1,b2 split a1;
compatibility
( c1 is special_polygonal iff ex b1, b2 being Point of (TOP-REAL 2) st b1,b2 split c1 )
proof end;
end;

:: deftheorem Def2 defines special_polygonal SPPOL_2:def 2 :
for b1 being Subset of (TOP-REAL 2) holds
( b1 is special_polygonal iff ex b2, b3 being Point of (TOP-REAL 2) st b2,b3 split b1 );

Lemma69: for b1 being Subset of (TOP-REAL 2) st b1 is special_polygonal holds
ex b2, b3 being Point of (TOP-REAL 2) st
( b2 <> b3 & b2 in b1 & b3 in b1 )
proof end;

definition
let c1, c2, c3, c4 be real number ;
func [.c1,c2,c3,c4.] -> Subset of (TOP-REAL 2) equals :: SPPOL_2:def 3
((LSeg |[a1,a3]|,|[a1,a4]|) \/ (LSeg |[a1,a4]|,|[a2,a4]|)) \/ ((LSeg |[a2,a4]|,|[a2,a3]|) \/ (LSeg |[a2,a3]|,|[a1,a3]|));
coherence
((LSeg |[c1,c3]|,|[c1,c4]|) \/ (LSeg |[c1,c4]|,|[c2,c4]|)) \/ ((LSeg |[c2,c4]|,|[c2,c3]|) \/ (LSeg |[c2,c3]|,|[c1,c3]|)) is Subset of (TOP-REAL 2)
;
end;

:: deftheorem Def3 defines [. SPPOL_2:def 3 :
for b1, b2, b3, b4 being real number holds [.b1,b2,b3,b4.] = ((LSeg |[b1,b3]|,|[b1,b4]|) \/ (LSeg |[b1,b4]|,|[b2,b4]|)) \/ ((LSeg |[b2,b4]|,|[b2,b3]|) \/ (LSeg |[b2,b3]|,|[b1,b3]|));

registration
let c1 be Nat;
let c2, c3 be Point of (TOP-REAL c1);
cluster LSeg a2,a3 -> compact ;
coherence
LSeg c2,c3 is compact
by SPPOL_1:28;
end;

registration
let c1, c2, c3, c4 be real number ;
cluster [.a1,a2,a3,a4.] -> non empty compact ;
coherence
( not [.c1,c2,c3,c4.] is empty & [.c1,c2,c3,c4.] is compact )
proof end;
end;

theorem Th58: :: SPPOL_2:58
for b1, b2, b3, b4 being real number st b1 <= b2 & b3 <= b4 holds
[.b1,b2,b3,b4.] = { b5 where B is Point of (TOP-REAL 2) : ( ( b5 `1 = b1 & b5 `2 <= b4 & b5 `2 >= b3 ) or ( b5 `1 <= b2 & b5 `1 >= b1 & b5 `2 = b4 ) or ( b5 `1 <= b2 & b5 `1 >= b1 & b5 `2 = b3 ) or ( b5 `1 = b2 & b5 `2 <= b4 & b5 `2 >= b3 ) ) }
proof end;

theorem Th59: :: SPPOL_2:59
for b1, b2, b3, b4 being real number st b1 <> b2 & b3 <> b4 holds
[.b1,b2,b3,b4.] is special_polygonal
proof end;

theorem Th60: :: SPPOL_2:60
R^2-unit_square = [.0,1,0,1.] ;

registration
cluster special_polygonal Element of K40(the carrier of (TOP-REAL 2));
existence
ex b1 being Subset of (TOP-REAL 2) st b1 is special_polygonal
proof end;
end;

theorem Th61: :: SPPOL_2:61
R^2-unit_square is special_polygonal by Th59, Th60;

registration
cluster special_polygonal Element of K40(the carrier of (TOP-REAL 2));
existence
ex b1 being Subset of (TOP-REAL 2) st b1 is special_polygonal
by Th61;
cluster special_polygonal -> non empty Element of K40(the carrier of (TOP-REAL 2));
coherence
for b1 being Subset of (TOP-REAL 2) st b1 is special_polygonal holds
not b1 is empty
proof end;
cluster special_polygonal -> non trivial Element of K40(the carrier of (TOP-REAL 2));
coherence
for b1 being Subset of (TOP-REAL 2) st b1 is special_polygonal holds
not b1 is trivial
proof end;
end;

definition
mode Special_polygon_in_R2 is special_polygonal Subset of (TOP-REAL 2);
end;

theorem Th62: :: SPPOL_2:62
for b1 being Subset of (TOP-REAL 2) st b1 is being_S-P_arc holds
b1 is compact
proof end;

theorem Th63: :: SPPOL_2:63
for b1 being Special_polygon_in_R2 holds b1 is compact
proof end;

theorem Th64: :: SPPOL_2:64
for b1 being Subset of (TOP-REAL 2) st b1 is special_polygonal holds
for b2, b3 being Point of (TOP-REAL 2) st b2 <> b3 & b2 in b1 & b3 in b1 holds
b2,b3 split b1
proof end;

theorem Th65: :: SPPOL_2:65
for b1 being Subset of (TOP-REAL 2) st b1 is special_polygonal holds
for b2, b3 being Point of (TOP-REAL 2) st b2 <> b3 & b2 in b1 & b3 in b1 holds
ex b4, b5 being Subset of (TOP-REAL 2) st
( b4 is_S-P_arc_joining b2,b3 & b5 is_S-P_arc_joining b2,b3 & b4 /\ b5 = {b2,b3} & b1 = b4 \/ b5 )
proof end;