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