let c be FinSequence; ( c is Chain of G iff ( c is FinSequence of the carrier' of G & ex p being FinSequence of the carrier of G st p is_vertex_seq_of c ) )
hereby ( c is FinSequence of the carrier' of G & ex p being FinSequence of the carrier of G st p is_vertex_seq_of c implies c is Chain of G )
assume A1:
c is
Chain of
G
;
( c is FinSequence of the carrier' of G & ex p being FinSequence of the carrier of G st p is_vertex_seq_of c )then consider p being
FinSequence such that A2:
len p = (len c) + 1
and A3:
for
n being
Nat st 1
<= n &
n <= len p holds
p . n in the
carrier of
G
and A4:
for
n being
Nat st 1
<= n &
n <= len c holds
ex
x9,
y9 being
Element of the
carrier of
G st
(
x9 = p . n &
y9 = p . (n + 1) &
c . n joins x9,
y9 )
by GRAPH_1:def 14;
thus
c is
FinSequence of the
carrier' of
G
by A1;
ex p being FinSequence of the carrier of G st p is_vertex_seq_of cthen reconsider p =
p as
FinSequence of the
carrier of
G by FINSEQ_2:12;
take p =
p;
p is_vertex_seq_of cthus
p is_vertex_seq_of c
verumproof
thus
len p = (len c) + 1
by A2;
GRAPH_2:def 2 for b1 being set holds
( not 1 <= b1 or not b1 <= len c or c . b1 joins p /. b1,p /. (b1 + 1) )
let n be
Nat;
( not 1 <= n or not n <= len c or c . n joins p /. n,p /. (n + 1) )
assume that A6:
1
<= n
and A7:
n <= len c
;
c . n joins p /. n,p /. (n + 1)
n + 1
<= len p
by A2, A7, XREAL_1:6;
then A8:
p /. (n + 1) = p . (n + 1)
by FINSEQ_4:15, NAT_1:12;
(
n <= len p & ex
x9,
y9 being
Element of the
carrier of
G st
(
x9 = p . n &
y9 = p . (n + 1) &
c . n joins x9,
y9 ) )
by A2, A4, A6, A7, NAT_1:12;
hence
c . n joins p /. n,
p /. (n + 1)
by A6, A8, FINSEQ_4:15;
verum
end;
end;
assume A9:
c is FinSequence of the carrier' of G
; ( for p being FinSequence of the carrier of G holds not p is_vertex_seq_of c or c is Chain of G )
given p being FinSequence of the carrier of G such that A10:
p is_vertex_seq_of c
; c is Chain of G
take
p
; ( len p = (len c) + 1 & ( for b1 being set holds
( not 1 <= b1 or not b1 <= len p or p . b1 in the carrier of G ) ) & ( for b1 being set holds
( not 1 <= b1 or not b1 <= len c or ex b2, b3 being Element of the carrier of G st
( b2 = p . b1 & b3 = p . (b1 + 1) & c . b1 joins b2,b3 ) ) ) )
thus A12:
len p = (len c) + 1
by A10; ( ( for b1 being set holds
( not 1 <= b1 or not b1 <= len p or p . b1 in the carrier of G ) ) & ( for b1 being set holds
( not 1 <= b1 or not b1 <= len c or ex b2, b3 being Element of the carrier of G st
( b2 = p . b1 & b3 = p . (b1 + 1) & c . b1 joins b2,b3 ) ) ) )
hereby for b1 being set holds
( not 1 <= b1 or not b1 <= len c or ex b2, b3 being Element of the carrier of G st
( b2 = p . b1 & b3 = p . (b1 + 1) & c . b1 joins b2,b3 ) )
end;
let n be Nat; ( not 1 <= n or not n <= len c or ex b1, b2 being Element of the carrier of G st
( b1 = p . n & b2 = p . (n + 1) & c . n joins b1,b2 ) )
assume that
A14:
1 <= n
and
A15:
n <= len c
; ex b1, b2 being Element of the carrier of G st
( b1 = p . n & b2 = p . (n + 1) & c . n joins b1,b2 )
take x9 = p /. n; ex b1 being Element of the carrier of G st
( x9 = p . n & b1 = p . (n + 1) & c . n joins x9,b1 )
take y9 = p /. (n + 1); ( x9 = p . n & y9 = p . (n + 1) & c . n joins x9,y9 )
( n <= len p & n + 1 <= len p )
by A12, A15, NAT_1:12, XREAL_1:6;
hence
( x9 = p . n & y9 = p . (n + 1) )
by A14, FINSEQ_4:15, NAT_1:12; c . n joins x9,y9
thus
c . n joins x9,y9
by A10, A14, A15; verum