let f be non constant standard special_circular_sequence; :: thesis: ( f is clockwise_oriented iff (Rotate f,(E-max (L~ f))) /. 2 in E-most (L~ f) )
set r = Rotate f,(E-max (L~ f));
A1:
L~ (Rotate f,(E-max (L~ f))) = L~ f
by REVROT_1:33;
A2:
E-max (L~ f) in rng f
by SPRECT_2:50;
then A3:
(Rotate f,(E-max (L~ f))) /. 1 = E-max (L~ f)
by FINSEQ_6:98;
A4:
1 + 1 <= len (Rotate f,(E-max (L~ f)))
by TOPREAL8:3;
A5:
2 <= len f
by TOPREAL8:3;
rng (Rotate f,(E-max (L~ f))) = rng f
by FINSEQ_6:96, SPRECT_2:50;
then A6:
1 in dom (Rotate f,(E-max (L~ f)))
by FINSEQ_3:33, SPRECT_2:50;
A7:
Rotate f,(E-max (L~ f)) is_sequence_on GoB (Rotate f,(E-max (L~ f)))
by GOBOARD5:def 5;
set j = i_n_e (Rotate f,(E-max (L~ f)));
set i = len (GoB (Rotate f,(E-max (L~ f))));
A8:
( [(len (GoB (Rotate f,(E-max (L~ f))))),(i_n_e (Rotate f,(E-max (L~ f))))] in Indices (GoB (Rotate f,(E-max (L~ f)))) & (GoB (Rotate f,(E-max (L~ f)))) * (len (GoB (Rotate f,(E-max (L~ f))))),(i_n_e (Rotate f,(E-max (L~ f)))) = (Rotate f,(E-max (L~ f))) /. 1 )
by A1, A3, JORDAN5D:def 4;
then A9:
( 1 <= len (GoB (Rotate f,(E-max (L~ f)))) & len (GoB (Rotate f,(E-max (L~ f)))) <= len (GoB (Rotate f,(E-max (L~ f)))) & 1 <= i_n_e (Rotate f,(E-max (L~ f))) & i_n_e (Rotate f,(E-max (L~ f))) <= width (GoB (Rotate f,(E-max (L~ f)))) )
by MATRIX_1:39;
thus
( f is clockwise_oriented implies (Rotate f,(E-max (L~ f))) /. 2 in E-most (L~ f) )
:: thesis: ( (Rotate f,(E-max (L~ f))) /. 2 in E-most (L~ f) implies f is clockwise_oriented )proof
assume A10:
f is
clockwise_oriented
;
:: thesis: (Rotate f,(E-max (L~ f))) /. 2 in E-most (L~ f)
set k =
(E-max (L~ f)) .. f;
(E-max (L~ f)) .. f < len f
by SPRECT_5:17;
then A11:
( 1
<= (E-max (L~ f)) .. f &
((E-max (L~ f)) .. f) + 1
<= len f )
by A2, FINSEQ_4:31, NAT_1:13;
A12:
f /. ((E-max (L~ f)) .. f) = E-max (L~ f)
by A2, FINSEQ_5:41;
f is_sequence_on GoB f
by GOBOARD5:def 5;
then
f is_sequence_on GoB (Rotate f,(E-max (L~ f)))
by REVROT_1:28;
then consider i,
j being
Element of
NAT such that A13:
(
[i,(j + 1)] in Indices (GoB (Rotate f,(E-max (L~ f)))) &
[i,j] in Indices (GoB (Rotate f,(E-max (L~ f)))) &
f /. ((E-max (L~ f)) .. f) = (GoB (Rotate f,(E-max (L~ f)))) * i,
(j + 1) &
f /. (((E-max (L~ f)) .. f) + 1) = (GoB (Rotate f,(E-max (L~ f)))) * i,
j )
by A10, A11, A12, Th25;
A14:
( 1
<= i &
i <= len (GoB (Rotate f,(E-max (L~ f)))) & 1
<= j &
j <= width (GoB (Rotate f,(E-max (L~ f)))) )
by A13, MATRIX_1:39;
A15:
( 1
<= i &
i <= len (GoB (Rotate f,(E-max (L~ f)))) & 1
<= j + 1 &
j + 1
<= width (GoB (Rotate f,(E-max (L~ f)))) )
by A13, MATRIX_1:39;
(E-max (L~ f)) .. f <= ((E-max (L~ f)) .. f) + 1
by NAT_1:13;
then A16:
f /. (((E-max (L~ f)) .. f) + 1) =
(Rotate f,(E-max (L~ f))) /. (((((E-max (L~ f)) .. f) + 1) + 1) -' ((E-max (L~ f)) .. f))
by A2, A11, REVROT_1:10
.=
(Rotate f,(E-max (L~ f))) /. ((((E-max (L~ f)) .. f) + (1 + 1)) -' ((E-max (L~ f)) .. f))
.=
(Rotate f,(E-max (L~ f))) /. 2
by NAT_D:34
;
1
<= ((E-max (L~ f)) .. f) + 1
by NAT_1:11;
then
((E-max (L~ f)) .. f) + 1
in dom f
by A11, FINSEQ_3:27;
then
(
((E-max (L~ f)) .. f) + 1
in dom f &
f /. (((E-max (L~ f)) .. f) + 1) = f . (((E-max (L~ f)) .. f) + 1) )
by PARTFUN1:def 8;
then A17:
f /. (((E-max (L~ f)) .. f) + 1) in rng f
by FUNCT_1:12;
A18:
rng f c= L~ f
by A5, SPPOL_2:18;
(f /. (((E-max (L~ f)) .. f) + 1)) `1 =
((GoB (Rotate f,(E-max (L~ f)))) * i,1) `1
by A13, A14, GOBOARD5:3
.=
(f /. ((E-max (L~ f)) .. f)) `1
by A13, A15, GOBOARD5:3
.=
E-bound (L~ f)
by A12, EUCLID:56
;
hence
(Rotate f,(E-max (L~ f))) /. 2
in E-most (L~ f)
by A16, A17, A18, SPRECT_2:17;
:: thesis: verum
end;
assume A19:
(Rotate f,(E-max (L~ f))) /. 2 in E-most (L~ f)
; :: thesis: f is clockwise_oriented
len (Rotate f,(E-max (L~ f))) > 2
by TOPREAL8:3;
then A20:
1 + 1 in dom (Rotate f,(E-max (L~ f)))
by FINSEQ_3:27;
then consider i2, j2 being Element of NAT such that
A21:
( [i2,j2] in Indices (GoB (Rotate f,(E-max (L~ f)))) & (Rotate f,(E-max (L~ f))) /. (1 + 1) = (GoB (Rotate f,(E-max (L~ f)))) * i2,j2 )
by A7, GOBOARD1:def 11;
(GoB (Rotate f,(E-max (L~ f)))) * (len (GoB (Rotate f,(E-max (L~ f))))),(i_n_e (Rotate f,(E-max (L~ f)))) in E-most (L~ (Rotate f,(E-max (L~ f))))
by A1, A3, A8, PSCOMP_1:111;
then
((GoB (Rotate f,(E-max (L~ f)))) * (len (GoB (Rotate f,(E-max (L~ f))))),(i_n_e (Rotate f,(E-max (L~ f))))) `1 = (E-min (L~ (Rotate f,(E-max (L~ f))))) `1
by PSCOMP_1:108;
then A22:
( ((GoB (Rotate f,(E-max (L~ f)))) * i2,j2) `1 = ((GoB (Rotate f,(E-max (L~ f)))) * (len (GoB (Rotate f,(E-max (L~ f))))),(i_n_e (Rotate f,(E-max (L~ f))))) `1 & ((GoB (Rotate f,(E-max (L~ f)))) * (len (GoB (Rotate f,(E-max (L~ f))))),(i_n_e (Rotate f,(E-max (L~ f))))) `2 >= ((GoB (Rotate f,(E-max (L~ f)))) * i2,j2) `2 )
by A1, A3, A8, A19, A21, PSCOMP_1:108;
then A23:
i2 = len (GoB (Rotate f,(E-max (L~ f))))
by A8, A21, JORDAN1G:7;
then
(abs (i2 - i2)) + (abs ((i_n_e (Rotate f,(E-max (L~ f)))) - j2)) = 1
by A6, A7, A8, A20, A21, GOBOARD1:def 11;
then A24:
0 + (abs ((i_n_e (Rotate f,(E-max (L~ f)))) - j2)) = 1
by ABSVALUE:7;
A25:
( 1 <= j2 & j2 <= width (GoB (Rotate f,(E-max (L~ f)))) )
by A21, MATRIX_1:39;
then
(i_n_e (Rotate f,(E-max (L~ f)))) - j2 >= 0
by A9, A22, A23, GOBOARD5:5, XREAL_1:50;
then A26:
(i_n_e (Rotate f,(E-max (L~ f)))) - j2 = 1
by A24, ABSVALUE:def 1;
then
j2 = (i_n_e (Rotate f,(E-max (L~ f)))) - 1
;
then A27:
j2 = (i_n_e (Rotate f,(E-max (L~ f)))) -' 1
by A9, XREAL_1:235;
(i_n_e (Rotate f,(E-max (L~ f)))) - 1 < (i_n_e (Rotate f,(E-max (L~ f)))) - 0
by XREAL_1:17;
then A28:
(i_n_e (Rotate f,(E-max (L~ f)))) -' 1 < width (GoB (Rotate f,(E-max (L~ f))))
by A9, A26, A27, XXREAL_0:2;
( 1 + 1 <= len (Rotate f,(E-max (L~ f))) & Rotate f,(E-max (L~ f)) is_sequence_on GoB (Rotate f,(E-max (L~ f))) & [(len (GoB (Rotate f,(E-max (L~ f))))),(((i_n_e (Rotate f,(E-max (L~ f)))) -' 1) + 1)] in Indices (GoB (Rotate f,(E-max (L~ f)))) & [(len (GoB (Rotate f,(E-max (L~ f))))),((i_n_e (Rotate f,(E-max (L~ f)))) -' 1)] in Indices (GoB (Rotate f,(E-max (L~ f)))) & (Rotate f,(E-max (L~ f))) /. 1 = (GoB (Rotate f,(E-max (L~ f)))) * (len (GoB (Rotate f,(E-max (L~ f))))),(((i_n_e (Rotate f,(E-max (L~ f)))) -' 1) + 1) & (Rotate f,(E-max (L~ f))) /. (1 + 1) = (GoB (Rotate f,(E-max (L~ f)))) * (len (GoB (Rotate f,(E-max (L~ f))))),((i_n_e (Rotate f,(E-max (L~ f)))) -' 1) )
by A8, A9, A21, A22, A27, GOBOARD5:def 5, JORDAN1G:7, TOPREAL8:3, XREAL_1:237;
then
left_cell (Rotate f,(E-max (L~ f))),1,(GoB (Rotate f,(E-max (L~ f)))) = cell (GoB (Rotate f,(E-max (L~ f)))),(len (GoB (Rotate f,(E-max (L~ f))))),((i_n_e (Rotate f,(E-max (L~ f)))) -' 1)
by GOBRD13:28;
then
left_cell (Rotate f,(E-max (L~ f))),1 = cell (GoB (Rotate f,(E-max (L~ f)))),(len (GoB (Rotate f,(E-max (L~ f))))),((i_n_e (Rotate f,(E-max (L~ f)))) -' 1)
by A4, JORDAN1H:27;
then A29:
Int (left_cell (Rotate f,(E-max (L~ f))),1) = { |[t,s]| where t, s is Real : ( ((GoB (Rotate f,(E-max (L~ f)))) * (len (GoB (Rotate f,(E-max (L~ f))))),1) `1 < t & ((GoB (Rotate f,(E-max (L~ f)))) * 1,((i_n_e (Rotate f,(E-max (L~ f)))) -' 1)) `2 < s & s < ((GoB (Rotate f,(E-max (L~ f)))) * 1,(((i_n_e (Rotate f,(E-max (L~ f)))) -' 1) + 1)) `2 ) }
by A25, A27, A28, GOBOARD6:26;
A30:
Int (left_cell (Rotate f,(E-max (L~ f))),1) c= LeftComp (Rotate f,(E-max (L~ f)))
by A4, GOBOARD9:24;
Int (left_cell (Rotate f,(E-max (L~ f))),1) <> {}
by A4, GOBOARD9:18;
then consider p being set such that
A31:
p in Int (left_cell (Rotate f,(E-max (L~ f))),1)
by XBOOLE_0:def 1;
reconsider p = p as Point of (TOP-REAL 2) by A31;
consider t, s being Real such that
A32:
( p = |[t,s]| & ((GoB (Rotate f,(E-max (L~ f)))) * (len (GoB (Rotate f,(E-max (L~ f))))),1) `1 < t & ((GoB (Rotate f,(E-max (L~ f)))) * 1,((i_n_e (Rotate f,(E-max (L~ f)))) -' 1)) `2 < s & s < ((GoB (Rotate f,(E-max (L~ f)))) * 1,(((i_n_e (Rotate f,(E-max (L~ f)))) -' 1) + 1)) `2 )
by A29, A31;
now assume
east_halfline p meets L~ (Rotate f,(E-max (L~ f)))
;
:: thesis: contradictionthen
(east_halfline p) /\ (L~ (Rotate f,(E-max (L~ f)))) <> {}
by XBOOLE_0:def 7;
then consider a being
set such that A33:
a in (east_halfline p) /\ (L~ (Rotate f,(E-max (L~ f))))
by XBOOLE_0:def 1;
A34:
(
a in east_halfline p &
a in L~ (Rotate f,(E-max (L~ f))) )
by A33, XBOOLE_0:def 4;
reconsider a =
a as
Point of
(TOP-REAL 2) by A33;
A35:
((GoB (Rotate f,(E-max (L~ f)))) * (len (GoB (Rotate f,(E-max (L~ f))))),1) `1 = ((GoB (Rotate f,(E-max (L~ f)))) * (len (GoB (Rotate f,(E-max (L~ f))))),(i_n_e (Rotate f,(E-max (L~ f))))) `1
by A9, GOBOARD5:3;
a `1 >= p `1
by A34, TOPREAL1:def 13;
then
a `1 >= t
by A32, EUCLID:56;
then
a `1 > ((GoB (Rotate f,(E-max (L~ f)))) * (len (GoB (Rotate f,(E-max (L~ f))))),(i_n_e (Rotate f,(E-max (L~ f))))) `1
by A32, A35, XXREAL_0:2;
then
a `1 > E-bound (L~ (Rotate f,(E-max (L~ f))))
by A1, A3, A8, EUCLID:56;
hence
contradiction
by A34, PSCOMP_1:71;
:: thesis: verum end;
then A36:
east_halfline p c= UBD (L~ (Rotate f,(E-max (L~ f))))
by JORDAN2C:135;
p in east_halfline p
by TOPREAL1:45;
then A37:
LeftComp (Rotate f,(E-max (L~ f))) meets UBD (L~ (Rotate f,(E-max (L~ f))))
by A30, A31, A36, XBOOLE_0:3;
A38:
LeftComp (Rotate f,(E-max (L~ f))) is_a_component_of (L~ (Rotate f,(E-max (L~ f)))) `
by GOBOARD9:def 1;
UBD (L~ (Rotate f,(E-max (L~ f)))) is_a_component_of (L~ (Rotate f,(E-max (L~ f)))) `
by JORDAN2C:132;
then
Rotate f,(E-max (L~ f)) is clockwise_oriented
by A37, A38, GOBOARD9:3, JORDAN1H:49;
hence
f is clockwise_oriented
by JORDAN1H:48; :: thesis: verum