:: SPRECT_3 semantic presentation

theorem Th1: :: SPRECT_3:1
canceled;

theorem Th2: :: SPRECT_3:2
for b1, b2, b3, b4 being set st b1 c= b2 & b2 /\ b3 = {b4} & b4 in b1 holds
b1 /\ b3 = {b4}
proof end;

Lemma1: for b1, b2, b3, b4 being Real st b4 >= 0 & b4 <= 1 & b3 = ((1 - b4) * b1) + (b4 * b2) & b1 <= b3 & b2 < b3 holds
b4 = 0
by XREAL_1:181;

Lemma2: for b1, b2, b3, b4 being Real st b4 >= 0 & b4 <= 1 & b3 = ((1 - b4) * b1) + (b4 * b2) & b1 >= b3 & b2 > b3 holds
b4 = 0
by XREAL_1:182;

theorem Th3: :: SPRECT_3:3
canceled;

theorem Th4: :: SPRECT_3:4
canceled;

theorem Th5: :: SPRECT_3:5
for b1, b2, b3 being Nat st b1 -' b2 <= b3 holds
b1 <= b3 + b2
proof end;

theorem Th6: :: SPRECT_3:6
for b1, b2, b3 being Nat st b1 <= b2 + b3 holds
b1 -' b3 <= b2
proof end;

theorem Th7: :: SPRECT_3:7
for b1, b2, b3 being Nat st b1 <= b2 -' b3 & b3 <= b2 holds
b1 + b3 <= b2
proof end;

theorem Th8: :: SPRECT_3:8
for b1, b2, b3 being Nat st b1 + b2 <= b3 holds
b2 <= b3 -' b1
proof end;

theorem Th9: :: SPRECT_3:9
for b1, b2, b3 being Nat st b1 <= b2 & b2 < b3 holds
b2 -' b1 < b3 -' b1
proof end;

theorem Th10: :: SPRECT_3:10
for b1, b2, b3 being Nat st b1 < b2 & b3 < b2 holds
b1 -' b3 < b2 -' b3
proof end;

theorem Th11: :: SPRECT_3:11
for b1 being non empty set
for b2 being non empty FinSequence of b1
for b3 being FinSequence of b1 holds (b3 ^ b2) /. (len (b3 ^ b2)) = b2 /. (len b2)
proof end;

theorem Th12: :: SPRECT_3:12
for b1, b2, b3, b4 being set holds Indices (b1,b2 ][ b3,b4) = {[1,1],[1,2],[2,1],[2,2]}
proof end;

theorem Th13: :: SPRECT_3:13
for b1 being Nat
for b2, b3 being Point of (TOP-REAL b1)
for b4 being Real st 0 < b4 & b2 = ((1 - b4) * b2) + (b4 * b3) holds
b2 = b3
proof end;

theorem Th14: :: SPRECT_3:14
for b1 being Nat
for b2, b3 being Point of (TOP-REAL b1)
for b4 being Real st b4 < 1 & b2 = ((1 - b4) * b3) + (b4 * b2) holds
b2 = b3
proof end;

theorem Th15: :: SPRECT_3:15
for b1 being Nat
for b2, b3 being Point of (TOP-REAL b1) st b2 = (1 / 2) * (b2 + b3) holds
b2 = b3
proof end;

theorem Th16: :: SPRECT_3:16
for b1 being Nat
for b2, b3, b4 being Point of (TOP-REAL b1) st b3 in LSeg b2,b4 & b4 in LSeg b2,b3 holds
b3 = b4
proof end;

theorem Th17: :: SPRECT_3:17
for b1 being non empty Subset of (TOP-REAL 2)
for b2 being Element of (Euclid 2)
for b3 being Real st b1 = Ball b2,b3 holds
b1 is connected
proof end;

theorem Th18: :: SPRECT_3:18
for b1, b2 being Subset of (TOP-REAL 2) st b1 is open & b2 is_a_component_of b1 holds
b2 is open
proof end;

theorem Th19: :: SPRECT_3:19
for b1, b2, b3 being Point of (TOP-REAL 2) st LSeg b1,b2 is horizontal & b3 in LSeg b1,b2 holds
b1 `2 = b3 `2
proof end;

theorem Th20: :: SPRECT_3:20
for b1, b2, b3 being Point of (TOP-REAL 2) st LSeg b1,b2 is vertical & b3 in LSeg b1,b2 holds
b1 `1 = b3 `1
proof end;

theorem Th21: :: SPRECT_3:21
for b1, b2, b3, b4 being Point of (TOP-REAL 2) st LSeg b1,b2 is horizontal & LSeg b3,b4 is horizontal & LSeg b1,b2 meets LSeg b3,b4 holds
b1 `2 = b3 `2
proof end;

theorem Th22: :: SPRECT_3:22
for b1, b2, b3 being Point of (TOP-REAL 2) st LSeg b1,b2 is vertical & LSeg b2,b3 is horizontal holds
(LSeg b1,b2) /\ (LSeg b2,b3) = {b2}
proof end;

theorem Th23: :: SPRECT_3:23
for b1, b2, b3, b4 being Point of (TOP-REAL 2) st LSeg b1,b2 is horizontal & LSeg b4,b3 is vertical & b3 in LSeg b1,b2 holds
(LSeg b1,b2) /\ (LSeg b4,b3) = {b3}
proof end;

theorem Th24: :: SPRECT_3:24
for b1, b2, b3 being Nat
for b4 being Go-board st 1 <= b1 & b1 <= b2 & b2 <= width b4 & 1 <= b3 & b3 <= len b4 holds
(b4 * b3,b1) `2 <= (b4 * b3,b2) `2
proof end;

theorem Th25: :: SPRECT_3:25
for b1, b2, b3 being Nat
for b4 being Go-board st 1 <= b1 & b1 <= width b4 & 1 <= b2 & b2 <= b3 & b3 <= len b4 holds
(b4 * b2,b1) `1 <= (b4 * b3,b1) `1
proof end;

theorem Th26: :: SPRECT_3:26
for b1 being Subset of (TOP-REAL 2) holds LSeg (NW-corner b1),(NE-corner b1) c= L~ (SpStSeq b1)
proof end;

theorem Th27: :: SPRECT_3:27
for b1 being Subset of (TOP-REAL 2) holds N-most b1 c= LSeg (NW-corner b1),(NE-corner b1)
proof end;

theorem Th28: :: SPRECT_3:28
for b1 being non empty compact Subset of (TOP-REAL 2) holds N-min b1 in LSeg (NW-corner b1),(NE-corner b1)
proof end;

theorem Th29: :: SPRECT_3:29
for b1 being Subset of (TOP-REAL 2) holds LSeg (NW-corner b1),(NE-corner b1) is horizontal
proof end;

theorem Th30: :: SPRECT_3:30
canceled;

theorem Th31: :: SPRECT_3:31
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b1 /. 1 <> b2 & ( (b1 /. 1) `1 = b2 `1 or (b1 /. 1) `2 = b2 `2 ) & b1 is_S-Seq & (LSeg b2,(b1 /. 1)) /\ (L~ b1) = {(b1 /. 1)} holds
<*b2*> ^ b1 is_S-Seq
proof end;

theorem Th32: :: SPRECT_3:32
canceled;

theorem Th33: :: SPRECT_3:33
for b1 being Nat
for b2 being S-Sequence_in_R2
for b3 being Point of (TOP-REAL 2) st 1 < b1 & b1 <= len b2 & b3 in L~ (mid b2,1,b1) holds
LE b3,b2 /. b1, L~ b2,b2 /. 1,b2 /. (len b2)
proof end;

theorem Th34: :: SPRECT_3:34
for b1, b2 being Nat
for b3 being FinSequence of (TOP-REAL 2) st b1 in dom b3 & b2 in dom b3 holds
L~ (mid b3,b1,b2) c= L~ b3
proof end;

theorem Th35: :: SPRECT_3:35
for b1, b2 being Nat st 1 <= b1 & b1 < b2 holds
for b3 being FinSequence of (TOP-REAL 2) st b2 <= len b3 holds
L~ (mid b3,b1,b2) = (LSeg b3,b1) \/ (L~ (mid b3,(b1 + 1),b2))
proof end;

theorem Th36: :: SPRECT_3:36
for b1, b2 being Nat
for b3 being FinSequence of (TOP-REAL 2) st 1 <= b1 & b1 < b2 & b2 <= len b3 holds
L~ (mid b3,b1,b2) = (L~ (mid b3,b1,(b2 -' 1))) \/ (LSeg b3,(b2 -' 1))
proof end;

theorem Th37: :: SPRECT_3:37
canceled;

theorem Th38: :: SPRECT_3:38
for b1, b2 being FinSequence of (TOP-REAL 2) st b1 is_S-Seq & b2 is_S-Seq & ( (b1 /. (len b1)) `1 = (b2 /. 1) `1 or (b1 /. (len b1)) `2 = (b2 /. 1) `2 ) & L~ b1 misses L~ b2 & (LSeg (b1 /. (len b1)),(b2 /. 1)) /\ (L~ b1) = {(b1 /. (len b1))} & (LSeg (b1 /. (len b1)),(b2 /. 1)) /\ (L~ b2) = {(b2 /. 1)} holds
b1 ^ b2 is_S-Seq
proof end;

theorem Th39: :: SPRECT_3:39
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b2 in L~ b1 holds
(R_Cut b1,b2) /. 1 = b1 /. 1
proof end;

theorem Th40: :: SPRECT_3:40
for b1 being Nat
for b2 being S-Sequence_in_R2
for b3, b4 being Point of (TOP-REAL 2) st 1 <= b1 & b1 < len b2 & b3 in LSeg b2,b1 & b4 in LSeg (b2 /. b1),b3 holds
LE b4,b3, L~ b2,b2 /. 1,b2 /. (len b2)
proof end;

theorem Th41: :: SPRECT_3:41
for b1 being non constant standard special_circular_sequence holds
( LeftComp b1 is open & RightComp b1 is open )
proof end;

registration
let c1 be non constant standard special_circular_sequence;
cluster L~ a1 -> non horizontal non vertical ;
coherence
( not L~ c1 is vertical & not L~ c1 is horizontal )
proof end;
cluster LeftComp a1 -> being_Region ;
coherence
LeftComp c1 is being_Region
proof end;
cluster RightComp a1 -> being_Region ;
coherence
RightComp c1 is being_Region
proof end;
end;

theorem Th42: :: SPRECT_3:42
for b1 being non constant standard special_circular_sequence holds RightComp b1 misses L~ b1
proof end;

theorem Th43: :: SPRECT_3:43
for b1 being non constant standard special_circular_sequence holds LeftComp b1 misses L~ b1
proof end;

theorem Th44: :: SPRECT_3:44
for b1 being non constant standard special_circular_sequence holds i_w_n b1 < i_e_n b1
proof end;

theorem Th45: :: SPRECT_3:45
for b1 being non constant standard special_circular_sequence ex b2 being Nat st
( 1 <= b2 & b2 < len (GoB b1) & N-min (L~ b1) = (GoB b1) * b2,(width (GoB b1)) )
proof end;

theorem Th46: :: SPRECT_3:46
for b1 being Nat
for b2 being clockwise_oriented non constant standard special_circular_sequence st b1 in dom (GoB b2) & b2 /. 1 = (GoB b2) * b1,(width (GoB b2)) & b2 /. 1 = N-min (L~ b2) holds
( b2 /. 2 = (GoB b2) * (b1 + 1),(width (GoB b2)) & b2 /. ((len b2) -' 1) = (GoB b2) * b1,((width (GoB b2)) -' 1) )
proof end;

theorem Th47: :: SPRECT_3:47
for b1, b2 being Nat
for b3 being non constant standard special_circular_sequence st 1 <= b1 & b1 < b2 & b2 <= len b3 & b3 /. 1 in L~ (mid b3,b1,b2) & not b1 = 1 holds
b2 = len b3
proof end;

theorem Th48: :: SPRECT_3:48
for b1 being clockwise_oriented non constant standard special_circular_sequence st b1 /. 1 = N-min (L~ b1) holds
LSeg (b1 /. 1),(b1 /. 2) c= L~ (SpStSeq (L~ b1))
proof end;

theorem Th49: :: SPRECT_3:49
for b1 being rectangular FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) holds
( not b2 in L~ b1 or b2 `1 = W-bound (L~ b1) or b2 `1 = E-bound (L~ b1) or b2 `2 = S-bound (L~ b1) or b2 `2 = N-bound (L~ b1) )
proof end;

registration
cluster rectangular FinSequence of the carrier of (TOP-REAL 2);
existence
ex b1 being special_circular_sequence st b1 is rectangular
proof end;
end;

theorem Th50: :: SPRECT_3:50
for b1 being rectangular special_circular_sequence
for b2 being S-Sequence_in_R2 st b2 /. 1 in LeftComp b1 & b2 /. (len b2) in RightComp b1 holds
L~ b1 meets L~ b2
proof end;

theorem Th51: :: SPRECT_3:51
for b1 being rectangular special_circular_sequence holds SpStSeq (L~ b1) = b1
proof end;

theorem Th52: :: SPRECT_3:52
for b1 being rectangular special_circular_sequence holds L~ b1 = { b2 where B is Point of (TOP-REAL 2) : ( ( b2 `1 = W-bound (L~ b1) & b2 `2 <= N-bound (L~ b1) & b2 `2 >= S-bound (L~ b1) ) or ( b2 `1 <= E-bound (L~ b1) & b2 `1 >= W-bound (L~ b1) & b2 `2 = N-bound (L~ b1) ) or ( b2 `1 <= E-bound (L~ b1) & b2 `1 >= W-bound (L~ b1) & b2 `2 = S-bound (L~ b1) ) or ( b2 `1 = E-bound (L~ b1) & b2 `2 <= N-bound (L~ b1) & b2 `2 >= S-bound (L~ b1) ) ) }
proof end;

theorem Th53: :: SPRECT_3:53
for b1 being rectangular special_circular_sequence holds GoB b1 = (b1 /. 4),(b1 /. 1) ][ (b1 /. 3),(b1 /. 2)
proof end;

theorem Th54: :: SPRECT_3:54
for b1 being rectangular special_circular_sequence holds
( LeftComp b1 = { b2 where B is Point of (TOP-REAL 2) : ( not W-bound (L~ b1) <= b2 `1 or not b2 `1 <= E-bound (L~ b1) or not S-bound (L~ b1) <= b2 `2 or not b2 `2 <= N-bound (L~ b1) ) } & RightComp b1 = { b2 where B is Point of (TOP-REAL 2) : ( W-bound (L~ b1) < b2 `1 & b2 `1 < E-bound (L~ b1) & S-bound (L~ b1) < b2 `2 & b2 `2 < N-bound (L~ b1) ) } )
proof end;

registration
cluster clockwise_oriented rectangular FinSequence of the carrier of (TOP-REAL 2);
existence
ex b1 being rectangular special_circular_sequence st b1 is clockwise_oriented
proof end;
end;

registration
cluster rectangular -> clockwise_oriented rectangular FinSequence of the carrier of (TOP-REAL 2);
coherence
for b1 being rectangular special_circular_sequence holds b1 is clockwise_oriented
proof end;
end;

theorem Th55: :: SPRECT_3:55
for b1 being rectangular special_circular_sequence
for b2 being S-Sequence_in_R2 st b2 /. 1 in LeftComp b1 & b2 /. (len b2) in RightComp b1 holds
Last_Point (L~ b2),(b2 /. 1),(b2 /. (len b2)),(L~ b1) <> NW-corner (L~ b1)
proof end;

theorem Th56: :: SPRECT_3:56
for b1 being rectangular special_circular_sequence
for b2 being S-Sequence_in_R2 st b2 /. 1 in LeftComp b1 & b2 /. (len b2) in RightComp b1 holds
Last_Point (L~ b2),(b2 /. 1),(b2 /. (len b2)),(L~ b1) <> SE-corner (L~ b1)
proof end;

theorem Th57: :: SPRECT_3:57
for b1 being rectangular special_circular_sequence
for b2 being Point of (TOP-REAL 2) st ( W-bound (L~ b1) > b2 `1 or b2 `1 > E-bound (L~ b1) or S-bound (L~ b1) > b2 `2 or b2 `2 > N-bound (L~ b1) ) holds
b2 in LeftComp b1
proof end;

theorem Th58: :: SPRECT_3:58
for b1 being clockwise_oriented non constant standard special_circular_sequence st b1 /. 1 = N-min (L~ b1) holds
LeftComp (SpStSeq (L~ b1)) c= LeftComp b1
proof end;

theorem Th59: :: SPRECT_3:59
for b1 being FinSequence of (TOP-REAL 2)
for b2, b3 being Point of (TOP-REAL 2) holds
( <*b2,b3*> is_in_the_area_of b1 iff ( <*b2*> is_in_the_area_of b1 & <*b3*> is_in_the_area_of b1 ) )
proof end;

theorem Th60: :: SPRECT_3:60
for b1 being rectangular FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st <*b2*> is_in_the_area_of b1 & ( b2 `1 = W-bound (L~ b1) or b2 `1 = E-bound (L~ b1) or b2 `2 = S-bound (L~ b1) or b2 `2 = N-bound (L~ b1) ) holds
b2 in L~ b1
proof end;

theorem Th61: :: SPRECT_3:61
for b1 being FinSequence of (TOP-REAL 2)
for b2, b3 being Point of (TOP-REAL 2)
for b4 being Real st 0 <= b4 & b4 <= 1 & <*b2,b3*> is_in_the_area_of b1 holds
<*(((1 - b4) * b2) + (b4 * b3))*> is_in_the_area_of b1
proof end;

theorem Th62: :: SPRECT_3:62
for b1 being Nat
for b2, b3 being FinSequence of (TOP-REAL 2) st b3 is_in_the_area_of b2 & b1 in dom b3 holds
<*(b3 /. b1)*> is_in_the_area_of b2
proof end;

theorem Th63: :: SPRECT_3:63
for b1, b2 being FinSequence of (TOP-REAL 2)
for b3 being Point of (TOP-REAL 2) st b2 is_in_the_area_of b1 & b3 in L~ b2 holds
<*b3*> is_in_the_area_of b1
proof end;

theorem Th64: :: SPRECT_3:64
for b1 being rectangular FinSequence of (TOP-REAL 2)
for b2, b3 being Point of (TOP-REAL 2) st not b3 in L~ b1 & <*b2,b3*> is_in_the_area_of b1 holds
(LSeg b2,b3) /\ (L~ b1) c= {b2}
proof end;

theorem Th65: :: SPRECT_3:65
for b1 being rectangular FinSequence of (TOP-REAL 2)
for b2, b3 being Point of (TOP-REAL 2) st b2 in L~ b1 & not b3 in L~ b1 & <*b3*> is_in_the_area_of b1 holds
(LSeg b2,b3) /\ (L~ b1) = {b2}
proof end;

theorem Th66: :: SPRECT_3:66
for b1, b2 being Nat
for b3 being non constant standard special_circular_sequence st 1 <= b1 & b1 <= len (GoB b3) & 1 <= b2 & b2 <= width (GoB b3) holds
<*((GoB b3) * b1,b2)*> is_in_the_area_of b3
proof end;

theorem Th67: :: SPRECT_3:67
for b1 being FinSequence of (TOP-REAL 2)
for b2, b3 being Point of (TOP-REAL 2) st <*b2,b3*> is_in_the_area_of b1 holds
<*((1 / 2) * (b2 + b3))*> is_in_the_area_of b1
proof end;

theorem Th68: :: SPRECT_3:68
for b1, b2 being FinSequence of (TOP-REAL 2) st b2 is_in_the_area_of b1 holds
Rev b2 is_in_the_area_of b1
proof end;

theorem Th69: :: SPRECT_3:69
for b1, b2 being FinSequence of (TOP-REAL 2)
for b3 being Point of (TOP-REAL 2) st b2 is_in_the_area_of b1 & <*b3*> is_in_the_area_of b1 & b2 is_S-Seq & b3 in L~ b2 holds
R_Cut b2,b3 is_in_the_area_of b1
proof end;

theorem Th70: :: SPRECT_3:70
for b1 being non constant standard special_circular_sequence
for b2 being FinSequence of (TOP-REAL 2) holds
( b2 is_in_the_area_of b1 iff b2 is_in_the_area_of SpStSeq (L~ b1) )
proof end;

theorem Th71: :: SPRECT_3:71
for b1 being rectangular special_circular_sequence
for b2 being S-Sequence_in_R2 st b2 /. 1 in LeftComp b1 & b2 /. (len b2) in RightComp b1 holds
L_Cut b2,(Last_Point (L~ b2),(b2 /. 1),(b2 /. (len b2)),(L~ b1)) is_in_the_area_of b1
proof end;

theorem Th72: :: SPRECT_3:72
for b1, b2 being Nat
for b3 being non constant standard special_circular_sequence st 1 <= b1 & b1 < len (GoB b3) & 1 <= b2 & b2 < width (GoB b3) holds
Int (cell (GoB b3),b1,b2) misses L~ (SpStSeq (L~ b3))
proof end;

theorem Th73: :: SPRECT_3:73
for b1, b2 being FinSequence of (TOP-REAL 2)
for b3 being Point of (TOP-REAL 2) st b2 is_in_the_area_of b1 & <*b3*> is_in_the_area_of b1 & b2 is_S-Seq & b3 in L~ b2 holds
L_Cut b2,b3 is_in_the_area_of b1
proof end;