let f be FinSequence of (TOP-REAL 2); :: thesis: ( f is nodic & PairF f is Simple & f . 1 <> f . (len f) implies f is s.n.c. )
assume A1:
( f is nodic & PairF f is Simple & f . 1 <> f . (len f) )
; :: thesis: f is s.n.c.
reconsider f1 = f as FinSequence of the carrier of (PGraph the carrier of (TOP-REAL 2)) ;
A2:
(len f) -' 1 <= len f
by NAT_D:44;
per cases
( (len f) -' 1 > 2 or (len f) -' 1 <= 2 )
;
suppose A3:
(len f) -' 1
> 2
;
:: thesis: f is s.n.c. then A4:
(len f) -' 1
> 1
by XXREAL_0:2;
then A5:
1
< len f
by NAT_D:44;
len f >= 1
by A4, NAT_D:44;
then A6:
f1 is_oriented_vertex_seq_of PairF f
by Th11;
A7:
1
+ 1
< len f
by A3, NAT_D:44;
A8:
(len f) -' 1
= (len f) - 1
by A4, NAT_D:39;
then A9:
((len f) -' 1) + 1
= len f
;
now assume A10:
LSeg f,1
meets LSeg f,
((len f) -' 1)
;
:: thesis: contradictionnow per cases
( ( (LSeg f,1) /\ (LSeg f,((len f) -' 1)) = {(f . 1)} & ( f . 1 = f . ((len f) -' 1) or f . 1 = f . (((len f) -' 1) + 1) ) ) or ( (LSeg f,1) /\ (LSeg f,((len f) -' 1)) = {(f . (1 + 1))} & ( f . (1 + 1) = f . ((len f) -' 1) or f . (1 + 1) = f . (((len f) -' 1) + 1) ) ) or LSeg f,1 = LSeg f,((len f) -' 1) )
by A1, A10, Def4;
case A12:
LSeg f,1
= LSeg f,
((len f) -' 1)
;
:: thesis: contradictionA13:
1
+ 1
< ((len f) -' 1) + 1
by A4, XREAL_1:8;
A14:
(len f) -' 1
< len f
by A9, NAT_1:13;
A15:
1
< len f
by A4, NAT_D:44;
LSeg (f /. 1),
(f /. (1 + 1)) = LSeg f,
((len f) -' 1)
by A7, A12, TOPREAL1:def 5;
then A16:
LSeg (f /. 1),
(f /. (1 + 1)) = LSeg (f /. ((len f) -' 1)),
(f /. (((len f) -' 1) + 1))
by A4, A8, TOPREAL1:def 5;
A17:
f /. 1
= f . 1
by A15, FINSEQ_4:24;
A18:
f /. (1 + 1) = f . (1 + 1)
by A7, FINSEQ_4:24;
A19:
f /. ((len f) -' 1) = f . ((len f) -' 1)
by A4, A14, FINSEQ_4:24;
A20:
f /. (((len f) -' 1) + 1) = f . (((len f) -' 1) + 1)
by A5, A8, FINSEQ_4:24;
hence
contradiction
;
:: thesis: verum end; end; end; hence
contradiction
;
:: thesis: verum end; hence
f is
s.n.c.
by A1, Th17, Th18;
:: thesis: verum end; end;